Codebase list libotf / 5779bda
* Updated to libotf 0.9.9. Harshula Jayasuriya 15 years ago
19 changed file(s) with 16386 addition(s) and 21121 deletion(s). Raw diff Collapse all Expand all
0 2009-03-03 Kenichi Handa <handa@m17n.org>
1
2 * Version 0.9.9 released.
3
4 2009-03-03 Kenichi Handa <handa@m17n.org>
5
6 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.9".
7 (LIBOTF_RELEASE_NUMBER): Changed to 9.
8
9 2009-03-02 Kenichi Handa <handa@m17n.org>
10
11 * configure.ac: Versions changed to 0.9.9.
12
13 2009-02-26 Kenichi Handa <handa@m17n.org>
14
15 * src/otfopen.c (free_stream): Check stream->buf before freeing
16 it.
17 (read_gdef_table): Do nothing if stream->buf is NULL.
18 (read_header_part): If a font doesn't have a GDEF table, make a
19 pseudo stream.
20
21 * src/otfdrive.c (glyph_class_table): New variable.
22 (get_class_def_auto): New function.
23 (OTF_drive_gdef): If a font doesn't have a GDEF table, use
24 get_class_def_auto.
25
26 2009-02-25 Kenichi Handa <handa@m17n.org>
27
28 * src/otfopen.c (get_table_info): Always succeed for GDEF table.
29
30 * example/otfview.c (main): If ! otf, don't setup sub14.
31
32 2008-12-31 Kenichi Handa <handa@m17n.org>
33
34 * src/otfdrive.c (check_cmap_uvs): Update the member
35 MGlyph.f.index.to.
36
37 2008-12-29 Kenichi Handa <handa@m17n.org>
38
39 * src/otf.h (OTF_get_variation_glyphs): Extern it..
40
41 * src/otfdrive.c (OTF_get_variation_glyphs): New function.
42
43 * example/otfview.c (uvs_area, uvs_label): New variables.
44 (sub14, uvs): New variable.
45 (update_uvs_area): New function.
46 (update_seq_area): Set `glyph_id' member only when no charmap is
47 used.
48 (update_render_area): Handle a variation selector.
49 (UVSProc): New function.
50 (RenderProc): Call update_uvs_area if the font is OpenType.
51 (create_widgets): Create uvs_area widget if the font has variation
52 selector.
53 (main): Setup sub14. Set font in gc_set.
54
55 2008-12-24 Kenichi Handa <handa@m17n.org>
56
57 * src/otfdrive.c (get_uvs_glyph): Complete the code.
58
59 2008-12-23 Kenichi Handa <handa@m17n.org>
60
61 * example/otfview.c (update_seq_area): Call OTF_drive_cmap.
62
63 * example/otfdump.c (dump_cmap_table): Fix previous change.
64
65 * src/otfdrive.c (lookup_encoding_4): Fix typo.
66 (get_uvs_glyph): Argument changed.
67 (check_cmap_uvs): Adjusted for the above change.
68
69 * src/otfopen.c (READ_UINT24): New macro.
70 (read_cmap_uvs_table): Argument changed. Complete the code.
71 (read_cmap_table): Adjusted for the above change. Fix typo.
72
73 * src/otf.h (OTF_cmapSegment): Fix typo.
74 (OTF_EncodingSubtable4): Fix typo.
75 (OTF_UVSMapping): New type.
76 (OTF_UnicodeValueRange): New type.
77 (OTF_VariationSelectorRecord): New type.
78 (OTF_EncodingSubtable14): Fix previous change.
79
80 2008-12-22 Kenichi Handa <handa@m17n.org>
81
82 * example/otfdump.c (dump_cmap_table): Handle format 14.
83
84 * src/otfdrive.c (check_cmap_uvs): New function. Not yet completed.
85 (UVS_P): New macro.
86 (OTF_drive_cmap): Check UVS (Unicode Variation Sequences).
87 (get_uvs_glyph): New function.
88
89 * src/otfopen.c (read_cmap_uvs_table): New function.
90 (read_cmap_table): Handle format 14 (Unicode Variation Sequences).
91 Not yet completed.
92
93 * src/otf.h (OTF_EncodingSubtable14): New type.
94 (OTF_EncodingSubtable): New union member f.f14.
95
96 2008-12-03 Kenichi Handa <handa@m17n.org>
97
98 * example/otfview.c (update_seq_area): Call OTF_drive_gpos2
99 instead of OTF_drive_gpos. Handle the accumulated positioning.
100
101 * src/otfdrive.c (setup_lookup_flags): The last argument changed
102 to lookup_flags. Just set the elements to 1 or 0.
103 (gstring_insert_for_gpos): New function.
104 (lookup_gpos): New arg accumulate. Insert pseudo glyphs to
105 accumulate positioning if necessary.
106 (OTF_drive_gsub_internal): Adjusted for the change of
107 setup_lookup_flags.
108 (OTF_drive_gpos_internal): Renamed from OTF_drive_gpos. Adjusted
109 for the change of setup_lookup_flags and lookup_gpos.
110 (OTF_drive_gpos): Just call OTF_drive_gpos_internal with
111 accumulate == 0.
112 (OTF_drive_gpos2): New function.
113
114 * src/otf.h (OTF_drive_gpos2): Extern it.
115
116 2008-11-27 Simon Zamecnik <zamecnik@ui42.sk> (tiny change)
117
118 * src/otfdrive.c (setup_lookup_indices): New arg LangSys.
119 (OTF_drive_gsub_internal, OTF_drive_gpos): Adjusted for the above
120 change.
121
122 2008-07-01 Kenichi Handa <handa@m17n.org>
123
124 * src/otfopen.c (make_stream, setup_stream)
125 (make_stream_from_ft_face, free_stream, read_offset_table): Make
126 them static.
127
0128 2008-06-29 Kenichi Handa <handa@m17n.org>
1129
2130 * Version 0.9.8 released.
172300 2005-11-22 Kenichi Handa <handa@m17n.org>
173301
174302 * example/otfview.c (main) [! HAVE_X11_XAW_COMMAND_H]: Fix args to
175 fpintf.
303 fprintf.
176304
177305 * configure.ac: Use AC_CHECK_HEADERS instead of AC_CHECK_HEADER.
178306
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
3636 # 330, Boston, MA 02111-1307, USA.
3737
3838
39 srcdir = @srcdir@
40 top_srcdir = @top_srcdir@
4139 VPATH = @srcdir@
4240 pkgdatadir = $(datadir)/@PACKAGE@
4341 pkglibdir = $(libdir)/@PACKAGE@
4442 pkgincludedir = $(includedir)/@PACKAGE@
45 top_builddir = .
4643 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
47 INSTALL = @INSTALL@
4844 install_sh_DATA = $(install_sh) -c -m 644
4945 install_sh_PROGRAM = $(install_sh) -c
5046 install_sh_SCRIPT = $(install_sh) -c
5854 POST_UNINSTALL = :
5955 build_triplet = @build@
6056 host_triplet = @host@
57 subdir = .
6158 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
6259 $(srcdir)/Makefile.in $(srcdir)/libotf-config.in \
6360 $(srcdir)/libotf.pc.in $(top_srcdir)/configure AUTHORS COPYING \
6461 ChangeLog INSTALL NEWS config.guess config.sub depcomp \
6562 install-sh ltmain.sh missing
66 subdir = .
6763 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
6864 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
6965 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
7066 $(ACLOCAL_M4)
7167 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
72 configure.lineno configure.status.lineno
68 configure.lineno config.status.lineno
7369 mkinstalldirs = $(install_sh) -d
7470 CONFIG_HEADER = $(top_builddir)/src/config.h
7571 CONFIG_CLEAN_FILES = libotf-config libotf.pc
8076 DIST_SOURCES =
8177 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
8278 html-recursive info-recursive install-data-recursive \
83 install-exec-recursive install-info-recursive \
84 install-recursive installcheck-recursive installdirs-recursive \
85 pdf-recursive ps-recursive uninstall-info-recursive \
86 uninstall-recursive
79 install-dvi-recursive install-exec-recursive \
80 install-html-recursive install-info-recursive \
81 install-pdf-recursive install-ps-recursive install-recursive \
82 installcheck-recursive installdirs-recursive pdf-recursive \
83 ps-recursive uninstall-recursive
8784 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
8885 am__vpath_adj = case $$p in \
8986 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
9289 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
9390 pkgconfigDATA_INSTALL = $(INSTALL_DATA)
9491 DATA = $(pkgconfig_DATA)
92 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
93 distclean-recursive maintainer-clean-recursive
9594 ETAGS = etags
9695 CTAGS = ctags
9796 DIST_SUBDIRS = $(SUBDIRS)
108107 distcleancheck_listfiles = find . -type f -print
109108 ACLOCAL = @ACLOCAL@
110109 ALLOCA = @ALLOCA@
111 AMDEP_FALSE = @AMDEP_FALSE@
112 AMDEP_TRUE = @AMDEP_TRUE@
113110 AMTAR = @AMTAR@
114111 AR = @AR@
115112 AUTOCONF = @AUTOCONF@
121118 CFLAGS = @CFLAGS@
122119 CPP = @CPP@
123120 CPPFLAGS = @CPPFLAGS@
124 CXX = @CXX@
125 CXXCPP = @CXXCPP@
126 CXXDEPMODE = @CXXDEPMODE@
127 CXXFLAGS = @CXXFLAGS@
128121 CYGPATH_W = @CYGPATH_W@
129122 DEFS = @DEFS@
130123 DEPDIR = @DEPDIR@
131124 DSYMUTIL = @DSYMUTIL@
132 ECHO = @ECHO@
125 DUMPBIN = @DUMPBIN@
133126 ECHO_C = @ECHO_C@
134127 ECHO_N = @ECHO_N@
135128 ECHO_T = @ECHO_T@
136129 EGREP = @EGREP@
137130 EXEEXT = @EXEEXT@
138 F77 = @F77@
139 FFLAGS = @FFLAGS@
131 FGREP = @FGREP@
140132 FREETYPE_INC = @FREETYPE_INC@
141133 FREETYPE_LD_FLAGS = @FREETYPE_LD_FLAGS@
142134 GREP = @GREP@
143135 HAVE_FREETYPE_CONFIG = @HAVE_FREETYPE_CONFIG@
136 INSTALL = @INSTALL@
144137 INSTALL_DATA = @INSTALL_DATA@
145138 INSTALL_PROGRAM = @INSTALL_PROGRAM@
146139 INSTALL_SCRIPT = @INSTALL_SCRIPT@
147140 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
141 LD = @LD@
148142 LDFLAGS = @LDFLAGS@
149143 LIBOBJS = @LIBOBJS@
150144 LIBS = @LIBS@
151145 LIBTOOL = @LIBTOOL@
146 LIPO = @LIPO@
152147 LN_S = @LN_S@
153148 LTLIBOBJS = @LTLIBOBJS@
154149 MAKEINFO = @MAKEINFO@
150 MKDIR_P = @MKDIR_P@
151 NM = @NM@
155152 NMEDIT = @NMEDIT@
156153 OBJEXT = @OBJEXT@
154 OTOOL = @OTOOL@
155 OTOOL64 = @OTOOL64@
157156 PACKAGE = @PACKAGE@
158157 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
159158 PACKAGE_NAME = @PACKAGE_NAME@
173172 X_EXTRA_LIBS = @X_EXTRA_LIBS@
174173 X_LIBS = @X_LIBS@
175174 X_PRE_LIBS = @X_PRE_LIBS@
175 abs_builddir = @abs_builddir@
176 abs_srcdir = @abs_srcdir@
177 abs_top_builddir = @abs_top_builddir@
178 abs_top_srcdir = @abs_top_srcdir@
176179 ac_ct_CC = @ac_ct_CC@
177 ac_ct_CXX = @ac_ct_CXX@
178 ac_ct_F77 = @ac_ct_F77@
179 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
180 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
181 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
182 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
180 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
183181 am__include = @am__include@
184182 am__leading_dot = @am__leading_dot@
185183 am__quote = @am__quote@
191189 build_cpu = @build_cpu@
192190 build_os = @build_os@
193191 build_vendor = @build_vendor@
192 builddir = @builddir@
194193 datadir = @datadir@
195194 datarootdir = @datarootdir@
196195 docdir = @docdir@
209208 libexecdir = @libexecdir@
210209 localedir = @localedir@
211210 localstatedir = @localstatedir@
211 lt_ECHO = @lt_ECHO@
212212 mandir = @mandir@
213213 mkdir_p = @mkdir_p@
214214 oldincludedir = @oldincludedir@
218218 psdir = @psdir@
219219 sbindir = @sbindir@
220220 sharedstatedir = @sharedstatedir@
221 srcdir = @srcdir@
221222 sysconfdir = @sysconfdir@
222223 target_alias = @target_alias@
224 top_builddir = @top_builddir@
225 top_srcdir = @top_srcdir@
223226 SUBDIRS = src example
224227 bin_SCRIPTS = libotf-config
225228 EXTRA_DIST = autogen.sh
267270 cd $(top_builddir) && $(SHELL) ./config.status $@
268271 install-binSCRIPTS: $(bin_SCRIPTS)
269272 @$(NORMAL_INSTALL)
270 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
273 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
271274 @list='$(bin_SCRIPTS)'; for p in $$list; do \
272275 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
273276 if test -f $$d$$p; then \
293296
294297 distclean-libtool:
295298 -rm -f libtool
296 uninstall-info-am:
297299 install-pkgconfigDATA: $(pkgconfig_DATA)
298300 @$(NORMAL_INSTALL)
299 test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
301 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
300302 @list='$(pkgconfig_DATA)'; for p in $$list; do \
301303 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
302304 f=$(am__strip_dir) \
343345 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
344346 fi; test -z "$$fail"
345347
346 mostlyclean-recursive clean-recursive distclean-recursive \
347 maintainer-clean-recursive:
348 $(RECURSIVE_CLEAN_TARGETS):
348349 @failcom='exit 1'; \
349350 for f in x $$MAKEFLAGS; do \
350351 case $$f in \
388389 unique=`for i in $$list; do \
389390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
390391 done | \
391 $(AWK) ' { files[$$0] = 1; } \
392 END { for (i in files) print i; }'`; \
392 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
393394 mkid -fID $$unique
394395 tags: TAGS
395396
414415 unique=`for i in $$list; do \
415416 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
416417 done | \
417 $(AWK) ' { files[$$0] = 1; } \
418 END { for (i in files) print i; }'`; \
418 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
419 END { if (nonempty) { for (i in files) print i; }; }'`; \
419420 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
420421 test -n "$$unique" || unique=$$empty_fix; \
421422 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
425426 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
426427 $(TAGS_FILES) $(LISP)
427428 tags=; \
428 here=`pwd`; \
429429 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
430430 unique=`for i in $$list; do \
431431 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
432432 done | \
433 $(AWK) ' { files[$$0] = 1; } \
434 END { for (i in files) print i; }'`; \
433 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
434 END { if (nonempty) { for (i in files) print i; }; }'`; \
435435 test -z "$(CTAGS_ARGS)$$tags$$unique" \
436436 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
437437 $$tags $$unique
446446
447447 distdir: $(DISTFILES)
448448 $(am__remove_distdir)
449 mkdir $(distdir)
450 $(mkdir_p) $(distdir)/.
451 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
452 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
453 list='$(DISTFILES)'; for file in $$list; do \
454 case $$file in \
455 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
456 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
457 esac; \
449 test -d $(distdir) || mkdir $(distdir)
450 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
451 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
452 list='$(DISTFILES)'; \
453 dist_files=`for file in $$list; do echo $$file; done | \
454 sed -e "s|^$$srcdirstrip/||;t" \
455 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
456 case $$dist_files in \
457 */*) $(MKDIR_P) `echo "$$dist_files" | \
458 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
459 sort -u` ;; \
460 esac; \
461 for file in $$dist_files; do \
458462 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
459 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
460 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
461 dir="/$$dir"; \
462 $(mkdir_p) "$(distdir)$$dir"; \
463 else \
464 dir=''; \
465 fi; \
466463 if test -d $$d/$$file; then \
464 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
467465 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
468466 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
469467 fi; \
477475 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
478476 if test "$$subdir" = .; then :; else \
479477 test -d "$(distdir)/$$subdir" \
480 || $(mkdir_p) "$(distdir)/$$subdir" \
478 || $(MKDIR_P) "$(distdir)/$$subdir" \
481479 || exit 1; \
482480 distdir=`$(am__cd) $(distdir) && pwd`; \
483481 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
485483 $(MAKE) $(AM_MAKEFLAGS) \
486484 top_distdir="$$top_distdir" \
487485 distdir="$$distdir/$$subdir" \
486 am__remove_distdir=: \
487 am__skip_length_check=: \
488488 distdir) \
489489 || exit 1; \
490490 fi; \
492492 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
493493 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
494494 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
495 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
495 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
496496 || chmod -R a+r $(distdir)
497497 dist-gzip: distdir
498498 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
500500
501501 dist-bzip2: distdir
502502 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
503 $(am__remove_distdir)
504
505 dist-lzma: distdir
506 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
503507 $(am__remove_distdir)
504508
505509 dist-tarZ: distdir
528532 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
529533 *.tar.bz2*) \
530534 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
535 *.tar.lzma*) \
536 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
531537 *.tar.Z*) \
532538 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
533539 *.shar.gz*) \
567573 $(am__remove_distdir)
568574 @(echo "$(distdir) archives ready for distribution: "; \
569575 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
570 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
576 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
571577 distuninstallcheck:
572578 @cd $(distuninstallcheck_dir) \
573579 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
592598 installdirs: installdirs-recursive
593599 installdirs-am:
594600 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \
595 test -z "$$dir" || $(mkdir_p) "$$dir"; \
601 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
596602 done
597603 install: install-recursive
598604 install-exec: install-exec-recursive
640646
641647 install-data-am: install-pkgconfigDATA
642648
649 install-dvi: install-dvi-recursive
650
643651 install-exec-am: install-binSCRIPTS
644652
653 install-html: install-html-recursive
654
645655 install-info: install-info-recursive
646656
647657 install-man:
658
659 install-pdf: install-pdf-recursive
660
661 install-ps: install-ps-recursive
648662
649663 installcheck-am:
650664
666680
667681 ps-am:
668682
669 uninstall-am: uninstall-binSCRIPTS uninstall-info-am \
670 uninstall-pkgconfigDATA
671
672 uninstall-info: uninstall-info-recursive
673
674 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
675 check-am clean clean-generic clean-libtool clean-recursive \
676 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
677 dist-shar dist-tarZ dist-zip distcheck distclean \
678 distclean-generic distclean-libtool distclean-recursive \
679 distclean-tags distcleancheck distdir distuninstallcheck dvi \
680 dvi-am html html-am info info-am install install-am \
681 install-binSCRIPTS install-data install-data-am install-exec \
682 install-exec-am install-info install-info-am install-man \
683 install-pkgconfigDATA install-strip installcheck \
684 installcheck-am installdirs installdirs-am maintainer-clean \
685 maintainer-clean-generic maintainer-clean-recursive \
686 mostlyclean mostlyclean-generic mostlyclean-libtool \
687 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
688 uninstall uninstall-am uninstall-binSCRIPTS uninstall-info-am \
689 uninstall-pkgconfigDATA
683 uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
684
685 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
686 install-strip
687
688 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
689 all all-am am--refresh check check-am clean clean-generic \
690 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
691 dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \
692 distclean distclean-generic distclean-libtool distclean-tags \
693 distcleancheck distdir distuninstallcheck dvi dvi-am html \
694 html-am info info-am install install-am install-binSCRIPTS \
695 install-data install-data-am install-dvi install-dvi-am \
696 install-exec install-exec-am install-html install-html-am \
697 install-info install-info-am install-man install-pdf \
698 install-pdf-am install-pkgconfigDATA install-ps install-ps-am \
699 install-strip installcheck installcheck-am installdirs \
700 installdirs-am maintainer-clean maintainer-clean-generic \
701 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
702 ps ps-am tags tags-recursive uninstall uninstall-am \
703 uninstall-binSCRIPTS uninstall-pkgconfigDATA
690704
691705 # Tell versions [3.59,3.63) of GNU make to not export all variables.
692706 # Otherwise a system limit (for SysV at least) may be exceeded.
00 NEWS -- What's new in libotf. -*- outline -*-
1 Copyright (C) 2003, 2004, 2005, 2006, 2008
1 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009
22 National Institute of Advanced Industrial Science and Technology (AIST)
33 Registration Number H15PRO167
44 See the end for copying conditions.
5
6
7 * Changes in libotf 0.9.9
8
9 ** New function OTF_get_variation_glyphs returns glyphs selected by
10 variation selectors.
11
12 ** The funciton OTF_drive_cmap handles a variation selector.
13
14 ** The example program `otfview' can handle variation selectors.
15
16 ** The function OTF_drive_gpos is obsolte now, and the new function
17 OTF_drive_gpos2 should be used instead. See the comment of the member
18 "glyph_id" of type "OTF_Glyph" for the detail.
19
20 ** If a font doesn't have GDEF table, automatically synthesized GDEF
21 table is used.
522
623
724 * Changes in libotf 0.9.6 through 0.9.8
5168
5269 * Copyright information
5370
54 Copyright (C) 2003, 2004, 2005, 2006, 2008
71 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009
5572 National Institute of Advanced Industrial Science and Technology (AIST)
5673 Registration Number H15PRO167
5774
0 This directory tree holds version 0.9.8 of the otf library. -*- text -*-
0 This directory tree holds version 0.9.9 of the otf library. -*- text -*-
11
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
55 See the end for copying conditions.
88 #####################################################################
99 # libotf -- A Library for handling OpenType Font (OTF) #
1010 # #
11 # Ver.0.9.7 (2007.12.28) #
11 # Ver.0.9.9 (2009.3.2) #
1212 #####################################################################
1313
1414 (1) What is libotf?
6565
6666 -----
6767
68 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
68 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
6969 National Institute of Advanced Industrial Science and Technology (AIST)
7070 Registration Number H15PRO167
7171
+5238
-3958
aclocal.m4 less more
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
0 # generated automatically by aclocal 1.10.1 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
3 # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
66 # with or without modifications, as long as this notice is preserved.
1010 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1111 # PARTICULAR PURPOSE.
1212
13 m4_ifndef([AC_AUTOCONF_VERSION],
14 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(AC_AUTOCONF_VERSION, [2.61],,
16 [m4_warning([this file was generated for autoconf 2.61.
17 You have another version of autoconf. It may work, but is not guaranteed to.
18 If you have problems, you may need to regenerate the build system entirely.
19 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20
1321 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 52 Debian 1.5.26-3 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
22 #
23 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24 # 2006, 2007, 2008 Free Software Foundation, Inc.
25 # Written by Gordon Matzigkeit, 1996
26 #
27 # This file is free software; the Free Software Foundation gives
28 # unlimited permission to copy and/or distribute it, with or without
29 # modifications, as long as this notice is preserved.
30
31 m4_define([_LT_COPYING], [dnl
32 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33 # 2006, 2007, 2008 Free Software Foundation, Inc.
34 # Written by Gordon Matzigkeit, 1996
35 #
36 # This file is part of GNU Libtool.
37 #
38 # GNU Libtool is free software; you can redistribute it and/or
39 # modify it under the terms of the GNU General Public License as
40 # published by the Free Software Foundation; either version 2 of
41 # the License, or (at your option) any later version.
42 #
43 # As a special exception to the GNU General Public License,
44 # if you distribute this file as part of a program or library that
45 # is built using GNU Libtool, you may include this file under the
46 # same distribution terms that you use for the rest of that program.
47 #
48 # GNU Libtool is distributed in the hope that it will be useful,
49 # but WITHOUT ANY WARRANTY; without even the implied warranty of
50 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
51 # GNU General Public License for more details.
52 #
53 # You should have received a copy of the GNU General Public License
54 # along with GNU Libtool; see the file COPYING. If not, a copy
55 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
56 # obtained by writing to the Free Software Foundation, Inc.,
57 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
58 ])
59
60 # serial 56 LT_INIT
61
62
63 # LT_PREREQ(VERSION)
64 # ------------------
65 # Complain and exit if this libtool version is less that VERSION.
66 m4_defun([LT_PREREQ],
67 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
68 [m4_default([$3],
69 [m4_fatal([Libtool version $1 or higher is required],
70 63)])],
71 [$2])])
72
73
74 # _LT_CHECK_BUILDDIR
75 # ------------------
76 # Complain if the absolute build directory name contains unusual characters
77 m4_defun([_LT_CHECK_BUILDDIR],
78 [case `pwd` in
79 *\ * | *\ *)
80 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
81 esac
82 ])
83
84
85 # LT_INIT([OPTIONS])
86 # ------------------
87 AC_DEFUN([LT_INIT],
88 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
89 AC_BEFORE([$0], [LT_LANG])dnl
90 AC_BEFORE([$0], [LT_OUTPUT])dnl
91 AC_BEFORE([$0], [LTDL_INIT])dnl
92 m4_require([_LT_CHECK_BUILDDIR])dnl
93
94 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
95 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
96 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
97 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
98 dnl unless we require an AC_DEFUNed macro:
99 AC_REQUIRE([LTOPTIONS_VERSION])dnl
100 AC_REQUIRE([LTSUGAR_VERSION])dnl
101 AC_REQUIRE([LTVERSION_VERSION])dnl
102 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
103 m4_require([_LT_PROG_LTMAIN])dnl
104
105 dnl Parse OPTIONS
106 _LT_SET_OPTIONS([$0], [$1])
70107
71108 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
109 LIBTOOL_DEPS="$ltmain"
73110
74111 # Always use our own libtool.
75112 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76113 AC_SUBST(LIBTOOL)dnl
77114
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
115 _LT_SETUP
116
117 # Only expand once:
118 m4_define([LT_INIT])
119 ])# LT_INIT
120
121 # Old names:
122 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
123 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
124 dnl aclocal-1.4 backwards compatibility:
125 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
126 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
127
128
129 # _LT_CC_BASENAME(CC)
130 # -------------------
131 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
132 m4_defun([_LT_CC_BASENAME],
133 [for cc_temp in $1""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
142 ])
143
144
145 # _LT_FILEUTILS_DEFAULTS
146 # ----------------------
147 # It is okay to use these file commands and assume they have been set
148 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
149 m4_defun([_LT_FILEUTILS_DEFAULTS],
150 [: ${CP="cp -f"}
151 : ${MV="mv -f"}
152 : ${RM="rm -f"}
153 ])# _LT_FILEUTILS_DEFAULTS
154
155
156 # _LT_SETUP
157 # ---------
158 m4_defun([_LT_SETUP],
159 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
91160 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
161 _LT_DECL([], [host_alias], [0], [The host system])dnl
162 _LT_DECL([], [host], [0])dnl
163 _LT_DECL([], [host_os], [0])dnl
164 dnl
165 _LT_DECL([], [build_alias], [0], [The build system])dnl
166 _LT_DECL([], [build], [0])dnl
167 _LT_DECL([], [build_os], [0])dnl
168 dnl
92169 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
170 AC_REQUIRE([LT_PATH_LD])dnl
171 AC_REQUIRE([LT_PATH_NM])dnl
172 dnl
97173 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
174 test -z "$LN_S" && LN_S="ln -s"
175 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
102176 dnl
103 AC_LIBTOOL_SYS_MAX_CMD_LEN
104 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
105 AC_LIBTOOL_OBJDIR
106
107 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
108 _LT_AC_PROG_ECHO_BACKSLASH
177 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
178 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
179 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
180 dnl
181 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
182 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
183 m4_require([_LT_CMD_RELOAD])dnl
184 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187
188 _LT_CONFIG_LIBTOOL_INIT([
189 # See if we are running on zsh, and set the options which allow our
190 # commands through without removal of \ escapes INIT.
191 if test -n "\${ZSH_VERSION+set}" ; then
192 setopt NO_GLOB_SUBST
193 fi
194 ])
195 if test -n "${ZSH_VERSION+set}" ; then
196 setopt NO_GLOB_SUBST
197 fi
198
199 _LT_CHECK_OBJDIR
200
201 m4_require([_LT_TAG_COMPILER])dnl
202 _LT_PROG_ECHO_BACKSLASH
109203
110204 case $host_os in
111205 aix3*)
121215
122216 # Sed substitution that helps us do robust quoting. It backslashifies
123217 # metacharacters that are still active within double-quoted strings.
124 Xsed='sed -e 1s/^X//'
125 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
218 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
126219
127220 # Same as above, but do not quote variable references.
128 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
221 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
129222
130223 # Sed substitution to delay expansion of an escaped shell variable in a
131224 # double_quote_subst'ed string.
132225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
133226
227 # Sed substitution to delay expansion of an escaped single quote.
228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
229
134230 # Sed substitution to avoid accidental globbing in evaled expressions
135231 no_glob_subst='s/\*/\\\*/g'
136232
137 # Constants:
138 rm="rm -f"
139
140233 # Global variables:
141 default_ofile=libtool
234 ofile=libtool
142235 can_build_shared=yes
143236
144237 # All known linkers require a `.a' archive for static linking (except MSVC,
145238 # which needs '.lib').
146239 libext=a
147 ltmain="$ac_aux_dir/ltmain.sh"
148 ofile="$default_ofile"
240
149241 with_gnu_ld="$lt_cv_prog_gnu_ld"
150
151 AC_CHECK_TOOL(AR, ar, false)
152 AC_CHECK_TOOL(RANLIB, ranlib, :)
153 AC_CHECK_TOOL(STRIP, strip, :)
154242
155243 old_CC="$CC"
156244 old_CFLAGS="$CFLAGS"
157245
158246 # Set sane defaults for various variables
159 test -z "$AR" && AR=ar
160 test -z "$AR_FLAGS" && AR_FLAGS=cru
161 test -z "$AS" && AS=as
162247 test -z "$CC" && CC=cc
163248 test -z "$LTCC" && LTCC=$CC
164249 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
165 test -z "$DLLTOOL" && DLLTOOL=dlltool
166250 test -z "$LD" && LD=ld
167 test -z "$LN_S" && LN_S="ln -s"
251 test -z "$ac_objext" && ac_objext=o
252
253 _LT_CC_BASENAME([$compiler])
254
255 # Only perform the check for file, if the check method requires it
168256 test -z "$MAGIC_CMD" && MAGIC_CMD=file
169 test -z "$NM" && NM=nm
170 test -z "$SED" && SED=sed
171 test -z "$OBJDUMP" && OBJDUMP=objdump
172 test -z "$RANLIB" && RANLIB=:
173 test -z "$STRIP" && STRIP=:
174 test -z "$ac_objext" && ac_objext=o
175
176 # Determine commands to create old-style static archives.
177 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
178 old_postinstall_cmds='chmod 644 $oldlib'
179 old_postuninstall_cmds=
180
181 if test -n "$RANLIB"; then
182 case $host_os in
183 openbsd*)
184 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
185 ;;
186 *)
187 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
188 ;;
189 esac
190 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
191 fi
192
193 _LT_CC_BASENAME([$compiler])
194
195 # Only perform the check for file, if the check method requires it
196257 case $deplibs_check_method in
197258 file_magic*)
198259 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
199 AC_PATH_MAGIC
260 _LT_PATH_MAGIC
200261 fi
201262 ;;
202263 esac
203264
204 _LT_REQUIRED_DARWIN_CHECKS
205
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208 enable_win32_dll=yes, enable_win32_dll=no)
209
210 AC_ARG_ENABLE([libtool-lock],
211 [AC_HELP_STRING([--disable-libtool-lock],
212 [avoid locking (might break parallel builds)])])
213 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
214
215 AC_ARG_WITH([pic],
216 [AC_HELP_STRING([--with-pic],
217 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
218 [pic_mode="$withval"],
219 [pic_mode=default])
220 test -z "$pic_mode" && pic_mode=default
221
222265 # Use C for the default configuration in the libtool script
223 tagname=
224 AC_LIBTOOL_LANG_C_CONFIG
225 _LT_AC_TAGCONFIG
226 ])# AC_LIBTOOL_SETUP
227
228
229 # _LT_AC_SYS_COMPILER
266 LT_SUPPORTED_TAG([CC])
267 _LT_LANG_C_CONFIG
268 _LT_LANG_DEFAULT_CONFIG
269 _LT_CONFIG_COMMANDS
270 ])# _LT_SETUP
271
272
273 # _LT_PROG_LTMAIN
274 # ---------------
275 # Note that this code is called both from `configure', and `config.status'
276 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
277 # `config.status' has no value for ac_aux_dir unless we are using Automake,
278 # so we pass a copy along to make sure it has a sensible value anyway.
279 m4_defun([_LT_PROG_LTMAIN],
280 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
281 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
282 ltmain="$ac_aux_dir/ltmain.sh"
283 ])# _LT_PROG_LTMAIN
284
285
286
287 # So that we can recreate a full libtool script including additional
288 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
289 # in macros and then make a single call at the end using the `libtool'
290 # label.
291
292
293 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
294 # ----------------------------------------
295 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
296 m4_define([_LT_CONFIG_LIBTOOL_INIT],
297 [m4_ifval([$1],
298 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
299 [$1
300 ])])])
301
302 # Initialize.
303 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
304
305
306 # _LT_CONFIG_LIBTOOL([COMMANDS])
307 # ------------------------------
308 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
309 m4_define([_LT_CONFIG_LIBTOOL],
310 [m4_ifval([$1],
311 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
312 [$1
313 ])])])
314
315 # Initialize.
316 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
317
318
319 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
320 # -----------------------------------------------------
321 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
322 [_LT_CONFIG_LIBTOOL([$1])
323 _LT_CONFIG_LIBTOOL_INIT([$2])
324 ])
325
326
327 # _LT_FORMAT_COMMENT([COMMENT])
328 # -----------------------------
329 # Add leading comment marks to the start of each line, and a trailing
330 # full-stop to the whole comment if one is not present already.
331 m4_define([_LT_FORMAT_COMMENT],
332 [m4_ifval([$1], [
333 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
334 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
335 )])
336
337
338
339
340
341 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
342 # -------------------------------------------------------------------
343 # CONFIGNAME is the name given to the value in the libtool script.
344 # VARNAME is the (base) name used in the configure script.
345 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
346 # VARNAME. Any other value will be used directly.
347 m4_define([_LT_DECL],
348 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
349 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
350 [m4_ifval([$1], [$1], [$2])])
351 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
352 m4_ifval([$4],
353 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
354 lt_dict_add_subkey([lt_decl_dict], [$2],
355 [tagged?], [m4_ifval([$5], [yes], [no])])])
356 ])
357
358
359 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
360 # --------------------------------------------------------
361 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
362
363
364 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
365 # ------------------------------------------------
366 m4_define([lt_decl_tag_varnames],
367 [_lt_decl_filter([tagged?], [yes], $@)])
368
369
370 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
371 # ---------------------------------------------------------
372 m4_define([_lt_decl_filter],
373 [m4_case([$#],
374 [0], [m4_fatal([$0: too few arguments: $#])],
375 [1], [m4_fatal([$0: too few arguments: $#: $1])],
376 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
377 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
378 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
379 ])
380
381
382 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
383 # --------------------------------------------------
384 m4_define([lt_decl_quote_varnames],
385 [_lt_decl_filter([value], [1], $@)])
386
387
388 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
389 # ---------------------------------------------------
390 m4_define([lt_decl_dquote_varnames],
391 [_lt_decl_filter([value], [2], $@)])
392
393
394 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
395 # ---------------------------------------------------
396 m4_define([lt_decl_varnames_tagged],
397 [_$0(m4_quote(m4_default([$1], [[, ]])),
398 m4_quote(m4_if([$2], [],
399 m4_quote(lt_decl_tag_varnames),
400 m4_quote(m4_shift($@)))),
401 m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
402 m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
403
404
405 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
406 # ------------------------------------------------
407 m4_define([lt_decl_all_varnames],
408 [_$0(m4_quote(m4_default([$1], [[, ]])),
409 m4_if([$2], [],
410 m4_quote(lt_decl_varnames),
411 m4_quote(m4_shift($@))))[]dnl
412 ])
413 m4_define([_lt_decl_all_varnames],
414 [lt_join($@, lt_decl_varnames_tagged([$1],
415 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
416 ])
417
418
419 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
420 # ------------------------------------
421 # Quote a variable value, and forward it to `config.status' so that its
422 # declaration there will have the same value as in `configure'. VARNAME
423 # must have a single quote delimited value for this to work.
424 m4_define([_LT_CONFIG_STATUS_DECLARE],
425 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
426
427
428 # _LT_CONFIG_STATUS_DECLARATIONS
429 # ------------------------------
430 # We delimit libtool config variables with single quotes, so when
431 # we write them to config.status, we have to be sure to quote all
432 # embedded single quotes properly. In configure, this macro expands
433 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
434 #
435 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
436 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
437 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
438 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
439
440
441 # _LT_LIBTOOL_TAGS
442 # ----------------
443 # Output comment and list of tags supported by the script
444 m4_defun([_LT_LIBTOOL_TAGS],
445 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
446 available_tags="_LT_TAGS"dnl
447 ])
448
449
450 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
451 # -----------------------------------
452 # Extract the dictionary values for VARNAME (optionally with TAG) and
453 # expand to a commented shell variable setting:
454 #
455 # # Some comment about what VAR is for.
456 # visible_name=$lt_internal_name
457 m4_define([_LT_LIBTOOL_DECLARE],
458 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
459 [description])))[]dnl
460 m4_pushdef([_libtool_name],
461 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
462 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
463 [0], [_libtool_name=[$]$1],
464 [1], [_libtool_name=$lt_[]$1],
465 [2], [_libtool_name=$lt_[]$1],
466 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
467 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
468 ])
469
470
471 # _LT_LIBTOOL_CONFIG_VARS
472 # -----------------------
473 # Produce commented declarations of non-tagged libtool config variables
474 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
475 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
476 # section) are produced by _LT_LIBTOOL_TAG_VARS.
477 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
478 [m4_foreach([_lt_var],
479 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
480 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
481
482
483 # _LT_LIBTOOL_TAG_VARS(TAG)
484 # -------------------------
485 m4_define([_LT_LIBTOOL_TAG_VARS],
486 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
487 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
488
489
490 # _LT_TAGVAR(VARNAME, [TAGNAME])
491 # ------------------------------
492 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
493
494
495 # _LT_CONFIG_COMMANDS
230496 # -------------------
231 AC_DEFUN([_LT_AC_SYS_COMPILER],
497 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
498 # variables for single and double quote escaping we saved from calls
499 # to _LT_DECL, we can put quote escaped variables declarations
500 # into `config.status', and then the shell code to quote escape them in
501 # for loops in `config.status'. Finally, any additional code accumulated
502 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
503 m4_defun([_LT_CONFIG_COMMANDS],
504 [AC_PROVIDE_IFELSE([LT_OUTPUT],
505 dnl If the libtool generation code has been placed in $CONFIG_LT,
506 dnl instead of duplicating it all over again into config.status,
507 dnl then we will have config.status run $CONFIG_LT later, so it
508 dnl needs to know what name is stored there:
509 [AC_CONFIG_COMMANDS([libtool],
510 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
511 dnl If the libtool generation code is destined for config.status,
512 dnl expand the accumulated commands and init code now:
513 [AC_CONFIG_COMMANDS([libtool],
514 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
515 ])#_LT_CONFIG_COMMANDS
516
517
518 # Initialize.
519 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
520 [
521
522 # The HP-UX ksh and POSIX shell print the target directory to stdout
523 # if CDPATH is set.
524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
525
526 sed_quote_subst='$sed_quote_subst'
527 double_quote_subst='$double_quote_subst'
528 delay_variable_subst='$delay_variable_subst'
529 _LT_CONFIG_STATUS_DECLARATIONS
530 LTCC='$LTCC'
531 LTCFLAGS='$LTCFLAGS'
532 compiler='$compiler_DEFAULT'
533
534 # Quote evaled strings.
535 for var in lt_decl_all_varnames([[ \
536 ]], lt_decl_quote_varnames); do
537 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
538 *[[\\\\\\\`\\"\\\$]]*)
539 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
540 ;;
541 *)
542 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
543 ;;
544 esac
545 done
546
547 # Double-quote double-evaled strings.
548 for var in lt_decl_all_varnames([[ \
549 ]], lt_decl_dquote_varnames); do
550 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
551 *[[\\\\\\\`\\"\\\$]]*)
552 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
553 ;;
554 *)
555 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
556 ;;
557 esac
558 done
559
560 # Fix-up fallback echo if it was mangled by the above quoting rules.
561 case \$lt_ECHO in
562 *'\\\[$]0 --fallback-echo"')dnl "
563 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
564 ;;
565 esac
566
567 _LT_OUTPUT_LIBTOOL_INIT
568 ])
569
570
571 # LT_OUTPUT
572 # ---------
573 # This macro allows early generation of the libtool script (before
574 # AC_OUTPUT is called), incase it is used in configure for compilation
575 # tests.
576 AC_DEFUN([LT_OUTPUT],
577 [: ${CONFIG_LT=./config.lt}
578 AC_MSG_NOTICE([creating $CONFIG_LT])
579 cat >"$CONFIG_LT" <<_LTEOF
580 #! $SHELL
581 # Generated by $as_me.
582 # Run this file to recreate a libtool stub with the current configuration.
583
584 lt_cl_silent=false
585 SHELL=\${CONFIG_SHELL-$SHELL}
586 _LTEOF
587
588 cat >>"$CONFIG_LT" <<\_LTEOF
589 AS_SHELL_SANITIZE
590 _AS_PREPARE
591
592 exec AS_MESSAGE_FD>&1
593 exec AS_MESSAGE_LOG_FD>>config.log
594 {
595 echo
596 AS_BOX([Running $as_me.])
597 } >&AS_MESSAGE_LOG_FD
598
599 lt_cl_help="\
600 \`$as_me' creates a local libtool stub from the current configuration,
601 for use in further configure time tests before the real libtool is
602 generated.
603
604 Usage: $[0] [[OPTIONS]]
605
606 -h, --help print this help, then exit
607 -V, --version print version number, then exit
608 -q, --quiet do not print progress messages
609 -d, --debug don't remove temporary files
610
611 Report bugs to <bug-libtool@gnu.org>."
612
613 lt_cl_version="\
614 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
615 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
616 configured by $[0], generated by m4_PACKAGE_STRING.
617
618 Copyright (C) 2008 Free Software Foundation, Inc.
619 This config.lt script is free software; the Free Software Foundation
620 gives unlimited permision to copy, distribute and modify it."
621
622 while test $[#] != 0
623 do
624 case $[1] in
625 --version | --v* | -V )
626 echo "$lt_cl_version"; exit 0 ;;
627 --help | --h* | -h )
628 echo "$lt_cl_help"; exit 0 ;;
629 --debug | --d* | -d )
630 debug=: ;;
631 --quiet | --q* | --silent | --s* | -q )
632 lt_cl_silent=: ;;
633
634 -*) AC_MSG_ERROR([unrecognized option: $[1]
635 Try \`$[0] --help' for more information.]) ;;
636
637 *) AC_MSG_ERROR([unrecognized argument: $[1]
638 Try \`$[0] --help' for more information.]) ;;
639 esac
640 shift
641 done
642
643 if $lt_cl_silent; then
644 exec AS_MESSAGE_FD>/dev/null
645 fi
646 _LTEOF
647
648 cat >>"$CONFIG_LT" <<_LTEOF
649 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
650 _LTEOF
651
652 cat >>"$CONFIG_LT" <<\_LTEOF
653 AC_MSG_NOTICE([creating $ofile])
654 _LT_OUTPUT_LIBTOOL_COMMANDS
655 AS_EXIT(0)
656 _LTEOF
657 chmod +x "$CONFIG_LT"
658
659 # configure is writing to config.log, but config.lt does its own redirection,
660 # appending to config.log, which fails on DOS, as config.log is still kept
661 # open by configure. Here we exec the FD to /dev/null, effectively closing
662 # config.log, so it can be properly (re)opened and appended to by config.lt.
663 if test "$no_create" != yes; then
664 lt_cl_success=:
665 test "$silent" = yes &&
666 lt_config_lt_args="$lt_config_lt_args --quiet"
667 exec AS_MESSAGE_LOG_FD>/dev/null
668 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
669 exec AS_MESSAGE_LOG_FD>>config.log
670 $lt_cl_success || AS_EXIT(1)
671 fi
672 ])# LT_OUTPUT
673
674
675 # _LT_CONFIG(TAG)
676 # ---------------
677 # If TAG is the built-in tag, create an initial libtool script with a
678 # default configuration from the untagged config vars. Otherwise add code
679 # to config.status for appending the configuration named by TAG from the
680 # matching tagged config vars.
681 m4_defun([_LT_CONFIG],
682 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
683 _LT_CONFIG_SAVE_COMMANDS([
684 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
685 m4_if(_LT_TAG, [C], [
686 # See if we are running on zsh, and set the options which allow our
687 # commands through without removal of \ escapes.
688 if test -n "${ZSH_VERSION+set}" ; then
689 setopt NO_GLOB_SUBST
690 fi
691
692 cfgfile="${ofile}T"
693 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
694 $RM "$cfgfile"
695
696 cat <<_LT_EOF >> "$cfgfile"
697 #! $SHELL
698
699 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
700 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
701 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
702 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
703 #
704 _LT_COPYING
705 _LT_LIBTOOL_TAGS
706
707 # ### BEGIN LIBTOOL CONFIG
708 _LT_LIBTOOL_CONFIG_VARS
709 _LT_LIBTOOL_TAG_VARS
710 # ### END LIBTOOL CONFIG
711
712 _LT_EOF
713
714 case $host_os in
715 aix3*)
716 cat <<\_LT_EOF >> "$cfgfile"
717 # AIX sometimes has problems with the GCC collect2 program. For some
718 # reason, if we set the COLLECT_NAMES environment variable, the problems
719 # vanish in a puff of smoke.
720 if test "X${COLLECT_NAMES+set}" != Xset; then
721 COLLECT_NAMES=
722 export COLLECT_NAMES
723 fi
724 _LT_EOF
725 ;;
726 esac
727
728 _LT_PROG_LTMAIN
729
730 # We use sed instead of cat because bash on DJGPP gets confused if
731 # if finds mixed CR/LF and LF-only lines. Since sed operates in
732 # text mode, it properly converts lines to CR/LF. This bash problem
733 # is reportedly fixed, but why not run on old versions too?
734 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
735 || (rm -f "$cfgfile"; exit 1)
736
737 _LT_PROG_XSI_SHELLFNS
738
739 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
740 || (rm -f "$cfgfile"; exit 1)
741
742 mv -f "$cfgfile" "$ofile" ||
743 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
744 chmod +x "$ofile"
745 ],
746 [cat <<_LT_EOF >> "$ofile"
747
748 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
749 dnl in a comment (ie after a #).
750 # ### BEGIN LIBTOOL TAG CONFIG: $1
751 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
752 # ### END LIBTOOL TAG CONFIG: $1
753 _LT_EOF
754 ])dnl /m4_if
755 ],
756 [m4_if([$1], [], [
757 PACKAGE='$PACKAGE'
758 VERSION='$VERSION'
759 TIMESTAMP='$TIMESTAMP'
760 RM='$RM'
761 ofile='$ofile'], [])
762 ])dnl /_LT_CONFIG_SAVE_COMMANDS
763 ])# _LT_CONFIG
764
765
766 # LT_SUPPORTED_TAG(TAG)
767 # ---------------------
768 # Trace this macro to discover what tags are supported by the libtool
769 # --tag option, using:
770 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
771 AC_DEFUN([LT_SUPPORTED_TAG], [])
772
773
774 # C support is built-in for now
775 m4_define([_LT_LANG_C_enabled], [])
776 m4_define([_LT_TAGS], [])
777
778
779 # LT_LANG(LANG)
780 # -------------
781 # Enable libtool support for the given language if not already enabled.
782 AC_DEFUN([LT_LANG],
783 [AC_BEFORE([$0], [LT_OUTPUT])dnl
784 m4_case([$1],
785 [C], [_LT_LANG(C)],
786 [C++], [_LT_LANG(CXX)],
787 [Java], [_LT_LANG(GCJ)],
788 [Fortran 77], [_LT_LANG(F77)],
789 [Fortran], [_LT_LANG(FC)],
790 [Windows Resource], [_LT_LANG(RC)],
791 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
792 [_LT_LANG($1)],
793 [m4_fatal([$0: unsupported language: "$1"])])])dnl
794 ])# LT_LANG
795
796
797 # _LT_LANG(LANGNAME)
798 # ------------------
799 m4_defun([_LT_LANG],
800 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
801 [LT_SUPPORTED_TAG([$1])dnl
802 m4_append([_LT_TAGS], [$1 ])dnl
803 m4_define([_LT_LANG_]$1[_enabled], [])dnl
804 _LT_LANG_$1_CONFIG($1)])dnl
805 ])# _LT_LANG
806
807
808 # _LT_LANG_DEFAULT_CONFIG
809 # -----------------------
810 m4_defun([_LT_LANG_DEFAULT_CONFIG],
811 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
812 [LT_LANG(CXX)],
813 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
814
815 AC_PROVIDE_IFELSE([AC_PROG_F77],
816 [LT_LANG(F77)],
817 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
818
819 AC_PROVIDE_IFELSE([AC_PROG_FC],
820 [LT_LANG(FC)],
821 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
822
823 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
824 dnl pulling things in needlessly.
825 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
826 [LT_LANG(GCJ)],
827 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
828 [LT_LANG(GCJ)],
829 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
830 [LT_LANG(GCJ)],
831 [m4_ifdef([AC_PROG_GCJ],
832 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
833 m4_ifdef([A][M_PROG_GCJ],
834 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
835 m4_ifdef([LT_PROG_GCJ],
836 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
837
838 AC_PROVIDE_IFELSE([LT_PROG_RC],
839 [LT_LANG(RC)],
840 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
841 ])# _LT_LANG_DEFAULT_CONFIG
842
843 # Obsolete macros:
844 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
845 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
846 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
847 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
848 dnl aclocal-1.4 backwards compatibility:
849 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
850 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
851 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
852 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
853
854
855 # _LT_TAG_COMPILER
856 # ----------------
857 m4_defun([_LT_TAG_COMPILER],
232858 [AC_REQUIRE([AC_PROG_CC])dnl
859
860 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
861 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
862 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
863 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
233864
234865 # If no C compiler was specified, use CC.
235866 LTCC=${LTCC-"$CC"}
239870
240871 # Allow CC to be a program name with arguments.
241872 compiler=$CC
242 ])# _LT_AC_SYS_COMPILER
243
244
245 # _LT_CC_BASENAME(CC)
246 # -------------------
247 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
248 AC_DEFUN([_LT_CC_BASENAME],
249 [for cc_temp in $1""; do
250 case $cc_temp in
251 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
252 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
253 \-*) ;;
254 *) break;;
255 esac
256 done
257 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
258 ])
873 ])# _LT_TAG_COMPILER
259874
260875
261876 # _LT_COMPILER_BOILERPLATE
262877 # ------------------------
263878 # Check for compiler boilerplate output or warnings with
264879 # the simple compiler test code.
265 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
266 [AC_REQUIRE([LT_AC_PROG_SED])dnl
880 m4_defun([_LT_COMPILER_BOILERPLATE],
881 [m4_require([_LT_DECL_SED])dnl
267882 ac_outfile=conftest.$ac_objext
268883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
269884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
270885 _lt_compiler_boilerplate=`cat conftest.err`
271 $rm conftest*
886 $RM conftest*
272887 ])# _LT_COMPILER_BOILERPLATE
273888
274889
276891 # ----------------------
277892 # Check for linker boilerplate output or warnings with
278893 # the simple link test code.
279 AC_DEFUN([_LT_LINKER_BOILERPLATE],
280 [AC_REQUIRE([LT_AC_PROG_SED])dnl
894 m4_defun([_LT_LINKER_BOILERPLATE],
895 [m4_require([_LT_DECL_SED])dnl
281896 ac_outfile=conftest.$ac_objext
282897 echo "$lt_simple_link_test_code" >conftest.$ac_ext
283898 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
284899 _lt_linker_boilerplate=`cat conftest.err`
285 $rm -r conftest*
900 $RM -r conftest*
286901 ])# _LT_LINKER_BOILERPLATE
287902
288903 # _LT_REQUIRED_DARWIN_CHECKS
289 # --------------------------
290 # Check for some things on darwin
291 AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
904 # -------------------------
905 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
292906 case $host_os in
293907 rhapsody* | darwin*)
294908 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
295909 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
910 AC_CHECK_TOOL([LIPO], [lipo], [:])
911 AC_CHECK_TOOL([OTOOL], [otool], [:])
912 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
913 _LT_DECL([], [DSYMUTIL], [1],
914 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
915 _LT_DECL([], [NMEDIT], [1],
916 [Tool to change global to local symbols on Mac OS X])
917 _LT_DECL([], [LIPO], [1],
918 [Tool to manipulate fat objects and archives on Mac OS X])
919 _LT_DECL([], [OTOOL], [1],
920 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
921 _LT_DECL([], [OTOOL64], [1],
922 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
296923
297924 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
298925 [lt_cv_apple_cc_single_mod=no
299926 if test -z "${LT_MULTI_MODULE}"; then
300 # By default we will add the -single_module flag. You can override
301 # by either setting the environment variable LT_MULTI_MODULE
302 # non-empty at configure time, or by adding -multi_module to the
303 # link flags.
304 echo "int foo(void){return 1;}" > conftest.c
305 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
306 -dynamiclib ${wl}-single_module conftest.c
307 if test -f libconftest.dylib; then
308 lt_cv_apple_cc_single_mod=yes
309 rm -rf libconftest.dylib*
310 fi
311 rm conftest.c
927 # By default we will add the -single_module flag. You can override
928 # by either setting the environment variable LT_MULTI_MODULE
929 # non-empty at configure time, or by adding -multi_module to the
930 # link flags.
931 rm -rf libconftest.dylib*
932 echo "int foo(void){return 1;}" > conftest.c
933 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
934 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
935 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
936 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
937 _lt_result=$?
938 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
939 lt_cv_apple_cc_single_mod=yes
940 else
941 cat conftest.err >&AS_MESSAGE_LOG_FD
942 fi
943 rm -rf libconftest.dylib*
944 rm -f conftest.*
312945 fi])
313946 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
314947 [lt_cv_ld_exported_symbols_list],
317950 echo "_main" > conftest.sym
318951 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
319952 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
320 [lt_cv_ld_exported_symbols_list=yes],
321 [lt_cv_ld_exported_symbols_list=no])
322 LDFLAGS="$save_LDFLAGS"
953 [lt_cv_ld_exported_symbols_list=yes],
954 [lt_cv_ld_exported_symbols_list=no])
955 LDFLAGS="$save_LDFLAGS"
323956 ])
324957 case $host_os in
325 rhapsody* | darwin1.[[0123]])
958 rhapsody* | darwin1.[[012]])
326959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
327960 darwin1.*)
328 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
329 darwin*)
961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
962 darwin*) # darwin 5.x on
330963 # if running on 10.5 or later, the deployment target defaults
331964 # to the OS version, if on x86, and 10.4, the deployment
332 # target defaults to 10.4. Don't you love it?
965 # target defaults to 10.4. Don't you love it?
333966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
334 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
335 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
336 10.[[012]]*)
337 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
338 10.*)
339 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
967 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
969 10.[[012]]*)
970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
971 10.*)
972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
340973 esac
341974 ;;
342975 esac
346979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
347980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
348981 else
349 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
350983 fi
351984 if test "$DSYMUTIL" != ":"; then
352 _lt_dsymutil="~$DSYMUTIL \$lib || :"
985 _lt_dsymutil='~$DSYMUTIL $lib || :'
353986 else
354987 _lt_dsymutil=
355988 fi
357990 esac
358991 ])
359992
360 # _LT_AC_SYS_LIBPATH_AIX
361 # ----------------------
993
994 # _LT_DARWIN_LINKER_FEATURES
995 # --------------------------
996 # Checks for linker and compiler features on darwin
997 m4_defun([_LT_DARWIN_LINKER_FEATURES],
998 [
999 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1000 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1001 _LT_TAGVAR(hardcode_direct, $1)=no
1002 _LT_TAGVAR(hardcode_automatic, $1)=yes
1003 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1004 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1005 _LT_TAGVAR(link_all_deplibs, $1)=yes
1006 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1007 if test "$GCC" = "yes"; then
1008 output_verbose_link_cmd=echo
1009 _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}"
1010 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1011 _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}"
1012 _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}"
1013 m4_if([$1], [CXX],
1014 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1015 _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}"
1016 _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}"
1017 fi
1018 ],[])
1019 else
1020 _LT_TAGVAR(ld_shlibs, $1)=no
1021 fi
1022 ])
1023
1024 # _LT_SYS_MODULE_PATH_AIX
1025 # -----------------------
3621026 # Links a minimal program and checks the executable
3631027 # for the system default hardcoded library path. In most cases,
3641028 # this is /usr/lib:/lib, but when the MPI compilers are used
3651029 # the location of the communication and MPI libs are included too.
3661030 # If we don't find anything, use the default library path according
3671031 # to the aix ld manual.
368 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
369 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1032 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1033 [m4_require([_LT_DECL_SED])dnl
3701034 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
3711035 lt_aix_libpath_sed='
3721036 /Import File Strings/,/^$/ {
3811045 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
3821046 fi],[])
3831047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
384 ])# _LT_AC_SYS_LIBPATH_AIX
385
386
387 # _LT_AC_SHELL_INIT(ARG)
388 # ----------------------
389 AC_DEFUN([_LT_AC_SHELL_INIT],
1048 ])# _LT_SYS_MODULE_PATH_AIX
1049
1050
1051 # _LT_SHELL_INIT(ARG)
1052 # -------------------
1053 m4_define([_LT_SHELL_INIT],
3901054 [ifdef([AC_DIVERSION_NOTICE],
3911055 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3921056 [AC_DIVERT_PUSH(NOTICE)])
3931057 $1
3941058 AC_DIVERT_POP
395 ])# _LT_AC_SHELL_INIT
396
397
398 # _LT_AC_PROG_ECHO_BACKSLASH
399 # --------------------------
1059 ])# _LT_SHELL_INIT
1060
1061
1062 # _LT_PROG_ECHO_BACKSLASH
1063 # -----------------------
4001064 # Add some code to the start of the generated configure script which
4011065 # will find an echo command which doesn't interpret backslashes.
402 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
403 [_LT_AC_SHELL_INIT([
1066 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1067 [_LT_SHELL_INIT([
4041068 # Check that we are running under the correct shell.
4051069 SHELL=${CONFIG_SHELL-/bin/sh}
4061070
407 case X$ECHO in
1071 case X$lt_ECHO in
4081072 X*--fallback-echo)
4091073 # Remove one level of quotation (which was required for Make).
410 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1074 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
4111075 ;;
4121076 esac
4131077
414 echo=${ECHO-echo}
1078 ECHO=${lt_ECHO-echo}
4151079 if test "X[$]1" = X--no-reexec; then
4161080 # Discard the --no-reexec flag, and continue.
4171081 shift
4181082 elif test "X[$]1" = X--fallback-echo; then
4191083 # Avoid inline document here, it may be left over
4201084 :
421 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
422 # Yippee, $echo works!
1085 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1086 # Yippee, $ECHO works!
4231087 :
4241088 else
4251089 # Restart under the correct shell.
4291093 if test "X[$]1" = X--fallback-echo; then
4301094 # used as fallback echo
4311095 shift
432 cat <<EOF
1096 cat <<_LT_EOF
4331097 [$]*
434 EOF
1098 _LT_EOF
4351099 exit 0
4361100 fi
4371101
4391103 # if CDPATH is set.
4401104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4411105
442 if test -z "$ECHO"; then
443 if test "X${echo_test_string+set}" != Xset; then
444 # find a string as large as possible, as long as the shell can cope with it
445 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
446 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
447 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
448 echo_test_string=`eval $cmd` &&
449 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
450 then
451 break
452 fi
453 done
454 fi
455
456 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
457 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
458 test "X$echo_testing_string" = "X$echo_test_string"; then
459 :
460 else
461 # The Solaris, AIX, and Digital Unix default echo programs unquote
462 # backslashes. This makes it impossible to quote backslashes using
463 # echo "$something" | sed 's/\\/\\\\/g'
464 #
465 # So, first we look for a working echo in the user's PATH.
466
467 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
468 for dir in $PATH /usr/ucb; do
1106 if test -z "$lt_ECHO"; then
1107 if test "X${echo_test_string+set}" != Xset; then
1108 # find a string as large as possible, as long as the shell can cope with it
1109 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1110 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1111 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1112 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1113 then
1114 break
1115 fi
1116 done
1117 fi
1118
1119 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1120 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1121 test "X$echo_testing_string" = "X$echo_test_string"; then
1122 :
1123 else
1124 # The Solaris, AIX, and Digital Unix default echo programs unquote
1125 # backslashes. This makes it impossible to quote backslashes using
1126 # echo "$something" | sed 's/\\/\\\\/g'
1127 #
1128 # So, first we look for a working echo in the user's PATH.
1129
1130 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1131 for dir in $PATH /usr/ucb; do
1132 IFS="$lt_save_ifs"
1133 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1134 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1135 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1136 test "X$echo_testing_string" = "X$echo_test_string"; then
1137 ECHO="$dir/echo"
1138 break
1139 fi
1140 done
4691141 IFS="$lt_save_ifs"
470 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
471 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
472 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
473 test "X$echo_testing_string" = "X$echo_test_string"; then
474 echo="$dir/echo"
475 break
476 fi
477 done
478 IFS="$lt_save_ifs"
479
480 if test "X$echo" = Xecho; then
481 # We didn't find a better echo, so look for alternatives.
482 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
483 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
484 test "X$echo_testing_string" = "X$echo_test_string"; then
485 # This shell has a builtin print -r that does the trick.
486 echo='print -r'
487 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
488 test "X$CONFIG_SHELL" != X/bin/ksh; then
489 # If we have ksh, try running configure again with it.
490 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
491 export ORIGINAL_CONFIG_SHELL
492 CONFIG_SHELL=/bin/ksh
493 export CONFIG_SHELL
494 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
495 else
496 # Try using printf.
497 echo='printf %s\n'
498 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
499 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
500 test "X$echo_testing_string" = "X$echo_test_string"; then
501 # Cool, printf works
502 :
503 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
504 test "X$echo_testing_string" = 'X\t' &&
505 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1142
1143 if test "X$ECHO" = Xecho; then
1144 # We didn't find a better echo, so look for alternatives.
1145 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1146 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1147 test "X$echo_testing_string" = "X$echo_test_string"; then
1148 # This shell has a builtin print -r that does the trick.
1149 ECHO='print -r'
1150 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1151 test "X$CONFIG_SHELL" != X/bin/ksh; then
1152 # If we have ksh, try running configure again with it.
1153 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1154 export ORIGINAL_CONFIG_SHELL
1155 CONFIG_SHELL=/bin/ksh
1156 export CONFIG_SHELL
1157 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1158 else
1159 # Try using printf.
1160 ECHO='printf %s\n'
1161 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1162 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
5061163 test "X$echo_testing_string" = "X$echo_test_string"; then
507 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
508 export CONFIG_SHELL
509 SHELL="$CONFIG_SHELL"
510 export SHELL
511 echo="$CONFIG_SHELL [$]0 --fallback-echo"
512 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
513 test "X$echo_testing_string" = 'X\t' &&
514 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
515 test "X$echo_testing_string" = "X$echo_test_string"; then
516 echo="$CONFIG_SHELL [$]0 --fallback-echo"
517 else
518 # maybe with a smaller string...
519 prev=:
520
521 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
522 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
523 then
524 break
1164 # Cool, printf works
1165 :
1166 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1167 test "X$echo_testing_string" = 'X\t' &&
1168 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1169 test "X$echo_testing_string" = "X$echo_test_string"; then
1170 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1171 export CONFIG_SHELL
1172 SHELL="$CONFIG_SHELL"
1173 export SHELL
1174 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1175 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1176 test "X$echo_testing_string" = 'X\t' &&
1177 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1178 test "X$echo_testing_string" = "X$echo_test_string"; then
1179 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1180 else
1181 # maybe with a smaller string...
1182 prev=:
1183
1184 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1185 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1186 then
1187 break
1188 fi
1189 prev="$cmd"
1190 done
1191
1192 if test "$prev" != 'sed 50q "[$]0"'; then
1193 echo_test_string=`eval $prev`
1194 export echo_test_string
1195 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1196 else
1197 # Oops. We lost completely, so just stick with echo.
1198 ECHO=echo
5251199 fi
526 prev="$cmd"
527 done
528
529 if test "$prev" != 'sed 50q "[$]0"'; then
530 echo_test_string=`eval $prev`
531 export echo_test_string
532 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
533 else
534 # Oops. We lost completely, so just stick with echo.
535 echo=echo
536 fi
1200 fi
5371201 fi
5381202 fi
5391203 fi
5401204 fi
541 fi
5421205
5431206 # Copy echo and quote the copy suitably for passing to libtool from
5441207 # the Makefile, instead of quoting the original, which is used later.
545 ECHO=$echo
546 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
547 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1208 lt_ECHO=$ECHO
1209 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1210 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
5481211 fi
5491212
550 AC_SUBST(ECHO)
551 ])])# _LT_AC_PROG_ECHO_BACKSLASH
552
553
554 # _LT_AC_LOCK
555 # -----------
556 AC_DEFUN([_LT_AC_LOCK],
1213 AC_SUBST(lt_ECHO)
1214 ])
1215 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1216 _LT_DECL([], [ECHO], [1],
1217 [An echo program that does not interpret backslashes])
1218 ])# _LT_PROG_ECHO_BACKSLASH
1219
1220
1221 # _LT_ENABLE_LOCK
1222 # ---------------
1223 m4_defun([_LT_ENABLE_LOCK],
5571224 [AC_ARG_ENABLE([libtool-lock],
558 [AC_HELP_STRING([--disable-libtool-lock],
559 [avoid locking (might break parallel builds)])])
1225 [AS_HELP_STRING([--disable-libtool-lock],
1226 [avoid locking (might break parallel builds)])])
5601227 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5611228
5621229 # Some flags need to be propagated to the compiler or linker for good
5671234 echo 'int i;' > conftest.$ac_ext
5681235 if AC_TRY_EVAL(ac_compile); then
5691236 case `/usr/bin/file conftest.$ac_objext` in
570 *ELF-32*)
571 HPUX_IA64_MODE="32"
572 ;;
573 *ELF-64*)
574 HPUX_IA64_MODE="64"
575 ;;
1237 *ELF-32*)
1238 HPUX_IA64_MODE="32"
1239 ;;
1240 *ELF-64*)
1241 HPUX_IA64_MODE="64"
1242 ;;
5761243 esac
5771244 fi
5781245 rm -rf conftest*
5811248 # Find out which ABI we are using.
5821249 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
5831250 if AC_TRY_EVAL(ac_compile); then
584 if test "$lt_cv_prog_gnu_ld" = yes; then
585 case `/usr/bin/file conftest.$ac_objext` in
586 *32-bit*)
587 LD="${LD-ld} -melf32bsmip"
588 ;;
589 *N32*)
590 LD="${LD-ld} -melf32bmipn32"
591 ;;
592 *64-bit*)
593 LD="${LD-ld} -melf64bmip"
594 ;;
595 esac
596 else
597 case `/usr/bin/file conftest.$ac_objext` in
598 *32-bit*)
599 LD="${LD-ld} -32"
600 ;;
601 *N32*)
602 LD="${LD-ld} -n32"
603 ;;
604 *64-bit*)
605 LD="${LD-ld} -64"
606 ;;
607 esac
608 fi
1251 if test "$lt_cv_prog_gnu_ld" = yes; then
1252 case `/usr/bin/file conftest.$ac_objext` in
1253 *32-bit*)
1254 LD="${LD-ld} -melf32bsmip"
1255 ;;
1256 *N32*)
1257 LD="${LD-ld} -melf32bmipn32"
1258 ;;
1259 *64-bit*)
1260 LD="${LD-ld} -melf64bmip"
1261 ;;
1262 esac
1263 else
1264 case `/usr/bin/file conftest.$ac_objext` in
1265 *32-bit*)
1266 LD="${LD-ld} -32"
1267 ;;
1268 *N32*)
1269 LD="${LD-ld} -n32"
1270 ;;
1271 *64-bit*)
1272 LD="${LD-ld} -64"
1273 ;;
1274 esac
1275 fi
6091276 fi
6101277 rm -rf conftest*
6111278 ;;
6121279
6131280 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
614 s390*-*linux*|sparc*-*linux*)
1281 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6151282 # Find out which ABI we are using.
6161283 echo 'int i;' > conftest.$ac_ext
6171284 if AC_TRY_EVAL(ac_compile); then
6181285 case `/usr/bin/file conftest.o` in
619 *32-bit*)
620 case $host in
621 x86_64-*kfreebsd*-gnu)
622 LD="${LD-ld} -m elf_i386_fbsd"
623 ;;
624 x86_64-*linux*)
625 LD="${LD-ld} -m elf_i386"
626 ;;
627 ppc64-*linux*|powerpc64-*linux*)
628 LD="${LD-ld} -m elf32ppclinux"
629 ;;
630 s390x-*linux*)
631 LD="${LD-ld} -m elf_s390"
632 ;;
633 sparc64-*linux*)
634 LD="${LD-ld} -m elf32_sparc"
635 ;;
636 esac
637 ;;
638 *64-bit*)
639 case $host in
640 x86_64-*kfreebsd*-gnu)
641 LD="${LD-ld} -m elf_x86_64_fbsd"
642 ;;
643 x86_64-*linux*)
644 LD="${LD-ld} -m elf_x86_64"
645 ;;
646 ppc*-*linux*|powerpc*-*linux*)
647 LD="${LD-ld} -m elf64ppc"
648 ;;
649 s390*-*linux*)
650 LD="${LD-ld} -m elf64_s390"
651 ;;
652 sparc*-*linux*)
653 LD="${LD-ld} -m elf64_sparc"
654 ;;
655 esac
656 ;;
1286 *32-bit*)
1287 case $host in
1288 x86_64-*kfreebsd*-gnu)
1289 LD="${LD-ld} -m elf_i386_fbsd"
1290 ;;
1291 x86_64-*linux*)
1292 LD="${LD-ld} -m elf_i386"
1293 ;;
1294 ppc64-*linux*|powerpc64-*linux*)
1295 LD="${LD-ld} -m elf32ppclinux"
1296 ;;
1297 s390x-*linux*)
1298 LD="${LD-ld} -m elf_s390"
1299 ;;
1300 sparc64-*linux*)
1301 LD="${LD-ld} -m elf32_sparc"
1302 ;;
1303 esac
1304 ;;
1305 *64-bit*)
1306 case $host in
1307 x86_64-*kfreebsd*-gnu)
1308 LD="${LD-ld} -m elf_x86_64_fbsd"
1309 ;;
1310 x86_64-*linux*)
1311 LD="${LD-ld} -m elf_x86_64"
1312 ;;
1313 ppc*-*linux*|powerpc*-*linux*)
1314 LD="${LD-ld} -m elf64ppc"
1315 ;;
1316 s390*-*linux*|s390*-*tpf*)
1317 LD="${LD-ld} -m elf64_s390"
1318 ;;
1319 sparc*-*linux*)
1320 LD="${LD-ld} -m elf64_sparc"
1321 ;;
1322 esac
1323 ;;
6571324 esac
6581325 fi
6591326 rm -rf conftest*
6651332 CFLAGS="$CFLAGS -belf"
6661333 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
6671334 [AC_LANG_PUSH(C)
668 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1335 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
6691336 AC_LANG_POP])
6701337 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6711338 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6811348 case $lt_cv_prog_gnu_ld in
6821349 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6831350 *)
684 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1351 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6851352 LD="${LD-ld} -64"
6861353 fi
6871354 ;;
6911358 fi
6921359 rm -rf conftest*
6931360 ;;
694
695 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
696 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
697 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
698 AC_CHECK_TOOL(AS, as, false)
699 AC_CHECK_TOOL(OBJDUMP, objdump, false)
700 ;;
701 ])
7021361 esac
7031362
7041363 need_locks="$enable_libtool_lock"
705
706 ])# _LT_AC_LOCK
707
708
709 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1364 ])# _LT_ENABLE_LOCK
1365
1366
1367 # _LT_CMD_OLD_ARCHIVE
1368 # -------------------
1369 m4_defun([_LT_CMD_OLD_ARCHIVE],
1370 [AC_CHECK_TOOL(AR, ar, false)
1371 test -z "$AR" && AR=ar
1372 test -z "$AR_FLAGS" && AR_FLAGS=cru
1373 _LT_DECL([], [AR], [1], [The archiver])
1374 _LT_DECL([], [AR_FLAGS], [1])
1375
1376 AC_CHECK_TOOL(STRIP, strip, :)
1377 test -z "$STRIP" && STRIP=:
1378 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1379
1380 AC_CHECK_TOOL(RANLIB, ranlib, :)
1381 test -z "$RANLIB" && RANLIB=:
1382 _LT_DECL([], [RANLIB], [1],
1383 [Commands used to install an old-style archive])
1384
1385 # Determine commands to create old-style static archives.
1386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1387 old_postinstall_cmds='chmod 644 $oldlib'
1388 old_postuninstall_cmds=
1389
1390 if test -n "$RANLIB"; then
1391 case $host_os in
1392 openbsd*)
1393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1394 ;;
1395 *)
1396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1397 ;;
1398 esac
1399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1400 fi
1401 _LT_DECL([], [old_postinstall_cmds], [2])
1402 _LT_DECL([], [old_postuninstall_cmds], [2])
1403 _LT_TAGDECL([], [old_archive_cmds], [2],
1404 [Commands used to build an old-style archive])
1405 ])# _LT_CMD_OLD_ARCHIVE
1406
1407
1408 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
7101409 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
7111410 # ----------------------------------------------------------------
7121411 # Check whether the given compiler option works
713 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
714 [AC_REQUIRE([LT_AC_PROG_SED])
1412 AC_DEFUN([_LT_COMPILER_OPTION],
1413 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1414 m4_require([_LT_DECL_SED])dnl
7151415 AC_CACHE_CHECK([$1], [$2],
7161416 [$2=no
717 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1417 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
7181418 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7191419 lt_compiler_flag="$3"
7201420 # Insert the option either (1) after the last *FLAGS variable, or
7341434 if (exit $ac_status) && test -s "$ac_outfile"; then
7351435 # The compiler can only warn and ignore the option if not recognized
7361436 # So say no if there are warnings other than the usual output.
737 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1437 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7381438 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7391439 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7401440 $2=yes
7411441 fi
7421442 fi
743 $rm conftest*
1443 $RM conftest*
7441444 ])
7451445
7461446 if test x"[$]$2" = xyes; then
747 ifelse([$5], , :, [$5])
1447 m4_if([$5], , :, [$5])
7481448 else
749 ifelse([$6], , :, [$6])
1449 m4_if([$6], , :, [$6])
7501450 fi
751 ])# AC_LIBTOOL_COMPILER_OPTION
752
753
754 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
755 # [ACTION-SUCCESS], [ACTION-FAILURE])
756 # ------------------------------------------------------------
757 # Check whether the given compiler option works
758 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
759 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1451 ])# _LT_COMPILER_OPTION
1452
1453 # Old name:
1454 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1455 dnl aclocal-1.4 backwards compatibility:
1456 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1457
1458
1459 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1460 # [ACTION-SUCCESS], [ACTION-FAILURE])
1461 # ----------------------------------------------------
1462 # Check whether the given linker option works
1463 AC_DEFUN([_LT_LINKER_OPTION],
1464 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1465 m4_require([_LT_DECL_SED])dnl
7601466 AC_CACHE_CHECK([$1], [$2],
7611467 [$2=no
7621468 save_LDFLAGS="$LDFLAGS"
7681474 if test -s conftest.err; then
7691475 # Append any errors to the config.log.
7701476 cat conftest.err 1>&AS_MESSAGE_LOG_FD
771 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1477 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7721478 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7731479 if diff conftest.exp conftest.er2 >/dev/null; then
7741480 $2=yes
7771483 $2=yes
7781484 fi
7791485 fi
780 $rm -r conftest*
1486 $RM -r conftest*
7811487 LDFLAGS="$save_LDFLAGS"
7821488 ])
7831489
7841490 if test x"[$]$2" = xyes; then
785 ifelse([$4], , :, [$4])
1491 m4_if([$4], , :, [$4])
7861492 else
787 ifelse([$5], , :, [$5])
1493 m4_if([$5], , :, [$5])
7881494 fi
789 ])# AC_LIBTOOL_LINKER_OPTION
790
791
792 # AC_LIBTOOL_SYS_MAX_CMD_LEN
793 # --------------------------
794 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
795 [# find the maximum length of command line arguments
1495 ])# _LT_LINKER_OPTION
1496
1497 # Old name:
1498 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1499 dnl aclocal-1.4 backwards compatibility:
1500 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1501
1502
1503 # LT_CMD_MAX_LEN
1504 #---------------
1505 AC_DEFUN([LT_CMD_MAX_LEN],
1506 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1507 # find the maximum length of command line arguments
7961508 AC_MSG_CHECKING([the maximum length of command line arguments])
7971509 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
7981510 i=0
8691581 sysv5* | sco5v6* | sysv4.2uw2*)
8701582 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8711583 if test -n "$kargmax"; then
872 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1584 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
8731585 else
8741586 lt_cv_sys_max_cmd_len=32768
8751587 fi
8801592 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8811593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8821594 else
1595 # Make teststring a little bigger before we do anything with it.
1596 # a 1K string should be a reasonable start.
1597 for i in 1 2 3 4 5 6 7 8 ; do
1598 teststring=$teststring$teststring
1599 done
8831600 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
884 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
885 = "XX$teststring") >/dev/null 2>&1 &&
886 new_result=`expr "X$teststring" : ".*" 2>&1` &&
887 lt_cv_sys_max_cmd_len=$new_result &&
1601 # If test is not a shell built-in, we'll probably end up computing a
1602 # maximum length that is only half of the actual maximum length, but
1603 # we can't tell.
1604 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
1605 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8881606 test $i != 17 # 1/2 MB should be enough
8891607 do
8901608 i=`expr $i + 1`
8911609 teststring=$teststring$teststring
8921610 done
1611 # Only check the string length outside the loop.
1612 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8931613 teststring=
894 # Add a significant safety factor because C++ compilers can tack on massive
895 # amounts of additional arguments before passing them to the linker.
896 # It appears as though 1/2 is a usable value.
1614 # Add a significant safety factor because C++ compilers can tack on
1615 # massive amounts of additional arguments before passing them to the
1616 # linker. It appears as though 1/2 is a usable value.
8971617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8981618 fi
8991619 ;;
9041624 else
9051625 AC_MSG_RESULT(none)
9061626 fi
907 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
908
909
910 # _LT_AC_CHECK_DLFCN
911 # ------------------
912 AC_DEFUN([_LT_AC_CHECK_DLFCN],
913 [AC_CHECK_HEADERS(dlfcn.h)dnl
914 ])# _LT_AC_CHECK_DLFCN
915
916
917 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
918 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
919 # ---------------------------------------------------------------------
920 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
921 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1627 max_cmd_len=$lt_cv_sys_max_cmd_len
1628 _LT_DECL([], [max_cmd_len], [0],
1629 [What is the maximum length of a command?])
1630 ])# LT_CMD_MAX_LEN
1631
1632 # Old name:
1633 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1634 dnl aclocal-1.4 backwards compatibility:
1635 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1636
1637
1638 # _LT_HEADER_DLFCN
1639 # ----------------
1640 m4_defun([_LT_HEADER_DLFCN],
1641 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1642 ])# _LT_HEADER_DLFCN
1643
1644
1645 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1646 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1647 # ----------------------------------------------------------------
1648 m4_defun([_LT_TRY_DLOPEN_SELF],
1649 [m4_require([_LT_HEADER_DLFCN])dnl
9221650 if test "$cross_compiling" = yes; then :
9231651 [$4]
9241652 else
9251653 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9261654 lt_status=$lt_dlunknown
927 cat > conftest.$ac_ext <<EOF
1655 cat > conftest.$ac_ext <<_LT_EOF
9281656 [#line __oline__ "configure"
9291657 #include "confdefs.h"
9301658
9871715
9881716 exit (status);
9891717 }]
990 EOF
1718 _LT_EOF
9911719 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
9921720 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
9931721 lt_status=$?
10021730 fi
10031731 fi
10041732 rm -fr conftest*
1005 ])# _LT_AC_TRY_DLOPEN_SELF
1006
1007
1008 # AC_LIBTOOL_DLOPEN_SELF
1009 # ----------------------
1010 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1011 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1733 ])# _LT_TRY_DLOPEN_SELF
1734
1735
1736 # LT_SYS_DLOPEN_SELF
1737 # ------------------
1738 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1739 [m4_require([_LT_HEADER_DLFCN])dnl
10121740 if test "x$enable_dlopen" != xyes; then
10131741 enable_dlopen=unknown
10141742 enable_dlopen_self=unknown
10271755 mingw* | pw32*)
10281756 lt_cv_dlopen="LoadLibrary"
10291757 lt_cv_dlopen_libs=
1030 ;;
1758 ;;
10311759
10321760 cygwin*)
10331761 lt_cv_dlopen="dlopen"
10341762 lt_cv_dlopen_libs=
1035 ;;
1763 ;;
10361764
10371765 darwin*)
10381766 # if libdl is installed we need to link against it
10421770 lt_cv_dlopen_libs=
10431771 lt_cv_dlopen_self=yes
10441772 ])
1045 ;;
1773 ;;
10461774
10471775 *)
10481776 AC_CHECK_FUNC([shl_load],
10841812
10851813 AC_CACHE_CHECK([whether a program can dlopen itself],
10861814 lt_cv_dlopen_self, [dnl
1087 _LT_AC_TRY_DLOPEN_SELF(
1815 _LT_TRY_DLOPEN_SELF(
10881816 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
10891817 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
10901818 ])
10921820 if test "x$lt_cv_dlopen_self" = xyes; then
10931821 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10941822 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1095 lt_cv_dlopen_self_static, [dnl
1096 _LT_AC_TRY_DLOPEN_SELF(
1823 lt_cv_dlopen_self_static, [dnl
1824 _LT_TRY_DLOPEN_SELF(
10971825 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
10981826 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
10991827 ])
11151843 *) enable_dlopen_self_static=unknown ;;
11161844 esac
11171845 fi
1118 ])# AC_LIBTOOL_DLOPEN_SELF
1119
1120
1121 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1122 # ---------------------------------
1123 # Check to see if options -c and -o are simultaneously supported by compiler
1124 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1125 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1126 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1846 _LT_DECL([dlopen_support], [enable_dlopen], [0],
1847 [Whether dlopen is supported])
1848 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
1849 [Whether dlopen of programs is supported])
1850 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
1851 [Whether dlopen of statically linked programs is supported])
1852 ])# LT_SYS_DLOPEN_SELF
1853
1854 # Old name:
1855 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
1856 dnl aclocal-1.4 backwards compatibility:
1857 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
1858
1859
1860 # _LT_COMPILER_C_O([TAGNAME])
1861 # ---------------------------
1862 # Check to see if options -c and -o are simultaneously supported by compiler.
1863 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
1864 m4_defun([_LT_COMPILER_C_O],
1865 [m4_require([_LT_DECL_SED])dnl
1866 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1867 m4_require([_LT_TAG_COMPILER])dnl
11271868 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1128 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1129 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1130 $rm -r conftest 2>/dev/null
1869 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1870 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1871 $RM -r conftest 2>/dev/null
11311872 mkdir conftest
11321873 cd conftest
11331874 mkdir out
11511892 then
11521893 # The compiler can only warn and ignore the option if not recognized
11531894 # So say no if there are warnings
1154 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1895 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11551896 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11561897 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1157 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1898 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
11581899 fi
11591900 fi
11601901 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1161 $rm conftest*
1902 $RM conftest*
11621903 # SGI C++ compiler will create directory out/ii_files/ for
11631904 # template instantiation
1164 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1165 $rm out/* && rmdir out
1905 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
1906 $RM out/* && rmdir out
11661907 cd ..
1167 rmdir conftest
1168 $rm conftest*
1908 $RM -r conftest
1909 $RM conftest*
11691910 ])
1170 ])# AC_LIBTOOL_PROG_CC_C_O
1171
1172
1173 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1174 # -----------------------------------------
1911 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
1912 [Does compiler simultaneously support -c and -o options?])
1913 ])# _LT_COMPILER_C_O
1914
1915
1916 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
1917 # ----------------------------------
11751918 # Check to see if we can do hard links to lock some files if needed
1176 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1177 [AC_REQUIRE([_LT_AC_LOCK])dnl
1919 m4_defun([_LT_COMPILER_FILE_LOCKS],
1920 [m4_require([_LT_ENABLE_LOCK])dnl
1921 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1922 _LT_COMPILER_C_O([$1])
11781923
11791924 hard_links="nottested"
1180 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1925 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
11811926 # do not overwrite the value of need_locks provided by the user
11821927 AC_MSG_CHECKING([if we can lock with hard links])
11831928 hard_links=yes
1184 $rm conftest*
1929 $RM conftest*
11851930 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11861931 touch conftest.a
11871932 ln conftest.a conftest.b 2>&5 || hard_links=no
11941939 else
11951940 need_locks=no
11961941 fi
1197 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1198
1199
1200 # AC_LIBTOOL_OBJDIR
1201 # -----------------
1202 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1942 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
1943 ])# _LT_COMPILER_FILE_LOCKS
1944
1945
1946 # _LT_CHECK_OBJDIR
1947 # ----------------
1948 m4_defun([_LT_CHECK_OBJDIR],
12031949 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
12041950 [rm -f .libs 2>/dev/null
12051951 mkdir .libs 2>/dev/null
12111957 fi
12121958 rmdir .libs 2>/dev/null])
12131959 objdir=$lt_cv_objdir
1214 ])# AC_LIBTOOL_OBJDIR
1215
1216
1217 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1218 # ----------------------------------------------
1960 _LT_DECL([], [objdir], [0],
1961 [The name of the directory that contains temporary libtool files])dnl
1962 m4_pattern_allow([LT_OBJDIR])dnl
1963 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
1964 [Define to the sub-directory in which libtool stores uninstalled libraries.])
1965 ])# _LT_CHECK_OBJDIR
1966
1967
1968 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
1969 # --------------------------------------
12191970 # Check hardcoding attributes.
1220 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1971 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
12211972 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1222 _LT_AC_TAGVAR(hardcode_action, $1)=
1223 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1224 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1225 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1226
1227 # We can hardcode non-existant directories.
1228 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1973 _LT_TAGVAR(hardcode_action, $1)=
1974 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
1975 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
1976 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1977
1978 # We can hardcode non-existent directories.
1979 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
12291980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12301981 # have to relink, otherwise we might link with an installed library
12311982 # when we should be linking with a yet-to-be-installed one
1232 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1233 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1983 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1984 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
12341985 # Linking always hardcodes the temporary library directory.
1235 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1986 _LT_TAGVAR(hardcode_action, $1)=relink
12361987 else
12371988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1238 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1989 _LT_TAGVAR(hardcode_action, $1)=immediate
12391990 fi
12401991 else
12411992 # We cannot hardcode anything, or else we can only hardcode existing
12421993 # directories.
1243 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1994 _LT_TAGVAR(hardcode_action, $1)=unsupported
12441995 fi
1245 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1246
1247 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1996 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
1997
1998 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
1999 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
12482000 # Fast installation is not supported
12492001 enable_fast_install=no
12502002 elif test "$shlibpath_overrides_runpath" = yes ||
12522004 # Fast installation is not necessary
12532005 enable_fast_install=needless
12542006 fi
1255 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1256
1257
1258 # AC_LIBTOOL_SYS_LIB_STRIP
1259 # ------------------------
1260 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1261 [striplib=
2007 _LT_TAGDECL([], [hardcode_action], [0],
2008 [How to hardcode a shared library path into an executable])
2009 ])# _LT_LINKER_HARDCODE_LIBPATH
2010
2011
2012 # _LT_CMD_STRIPLIB
2013 # ----------------
2014 m4_defun([_LT_CMD_STRIPLIB],
2015 [m4_require([_LT_DECL_EGREP])
2016 striplib=
12622017 old_striplib=
12632018 AC_MSG_CHECKING([whether stripping libraries is possible])
1264 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2019 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12652020 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12662021 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12672022 AC_MSG_RESULT([yes])
12682023 else
12692024 # FIXME - insert some real tests, host_os isn't really good enough
12702025 case $host_os in
1271 darwin*)
1272 if test -n "$STRIP" ; then
1273 striplib="$STRIP -x"
1274 old_striplib="$STRIP -S"
1275 AC_MSG_RESULT([yes])
1276 else
1277 AC_MSG_RESULT([no])
1278 fi
1279 ;;
1280 *)
1281 AC_MSG_RESULT([no])
2026 darwin*)
2027 if test -n "$STRIP" ; then
2028 striplib="$STRIP -x"
2029 old_striplib="$STRIP -S"
2030 AC_MSG_RESULT([yes])
2031 else
2032 AC_MSG_RESULT([no])
2033 fi
2034 ;;
2035 *)
2036 AC_MSG_RESULT([no])
12822037 ;;
12832038 esac
12842039 fi
1285 ])# AC_LIBTOOL_SYS_LIB_STRIP
1286
1287
1288 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
2040 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2041 _LT_DECL([], [striplib], [1])
2042 ])# _LT_CMD_STRIPLIB
2043
2044
2045 # _LT_SYS_DYNAMIC_LINKER([TAG])
12892046 # -----------------------------
12902047 # PORTME Fill in your ld.so characteristics
1291 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1292 [AC_REQUIRE([LT_AC_PROG_SED])dnl
2048 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2049 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2050 m4_require([_LT_DECL_EGREP])dnl
2051 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2052 m4_require([_LT_DECL_SED])dnl
12932053 AC_MSG_CHECKING([dynamic linker characteristics])
1294 library_names_spec=
1295 libname_spec='lib$name'
1296 soname_spec=
1297 shrext_cmds=".so"
1298 postinstall_cmds=
1299 postuninstall_cmds=
1300 finish_cmds=
1301 finish_eval=
1302 shlibpath_var=
1303 shlibpath_overrides_runpath=unknown
1304 version_type=none
1305 dynamic_linker="$host_os ld.so"
1306 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1307 m4_if($1,[],[
2054 m4_if([$1],
2055 [], [
13082056 if test "$GCC" = yes; then
13092057 case $host_os in
13102058 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13112059 *) lt_awk_arg="/^libraries:/" ;;
13122060 esac
13132061 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1314 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
2062 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13152063 # if the path contains ";" then we assume it to be the separator
13162064 # otherwise default to the standard path separator (i.e. ":") - it is
13172065 # assumed that no part of a normal pathname contains ";" but that should
13182066 # okay in the real world where ";" in dirpaths is itself problematic.
1319 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2067 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13202068 else
1321 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2069 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13222070 fi
13232071 # Ok, now we have the path, separated by spaces, we can step through it
13242072 # and add multilib dir if necessary.
13322080 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13332081 fi
13342082 done
1335 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
2083 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13362084 BEGIN {RS=" "; FS="/|\n";} {
13372085 lt_foo="";
13382086 lt_count=0;
13522100 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
13532101 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
13542102 }'`
1355 sys_lib_search_path_spec=`echo $lt_search_path_spec`
2103 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13562104 else
13572105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13582106 fi])
2107 library_names_spec=
2108 libname_spec='lib$name'
2109 soname_spec=
2110 shrext_cmds=".so"
2111 postinstall_cmds=
2112 postuninstall_cmds=
2113 finish_cmds=
2114 finish_eval=
2115 shlibpath_var=
2116 shlibpath_overrides_runpath=unknown
2117 version_type=none
2118 dynamic_linker="$host_os ld.so"
2119 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13592120 need_lib_prefix=unknown
13602121 hardcode_into_libs=no
13612122
13922153 aix4 | aix4.[[01]] | aix4.[[01]].*)
13932154 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13942155 echo ' yes '
1395 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2156 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13962157 :
13972158 else
13982159 can_build_shared=no
14182179 ;;
14192180
14202181 amigaos*)
1421 library_names_spec='$libname.ixlibrary $libname.a'
1422 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1423 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2182 case $host_cpu in
2183 powerpc)
2184 # Since July 2007 AmigaOS4 officially supports .so libraries.
2185 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2187 ;;
2188 m68k)
2189 library_names_spec='$libname.ixlibrary $libname.a'
2190 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2191 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2192 ;;
2193 esac
14242194 ;;
14252195
14262196 beos*)
14542224 library_names_spec='$libname.dll.a'
14552225 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14562226 postinstall_cmds='base_file=`basename \${file}`~
1457 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2227 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14582228 dldir=$destdir/`dirname \$dlpath`~
14592229 test -d \$dldir || mkdir -p \$dldir~
14602230 $install_prog $dir/$dlname \$dldir/$dlname~
1461 chmod a+x \$dldir/$dlname'
2231 chmod a+x \$dldir/$dlname~
2232 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2233 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2234 fi'
14622235 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14632236 dlpath=$dir/\$dldll~
1464 $rm \$dlpath'
2237 $RM \$dlpath'
14652238 shlibpath_overrides_runpath=yes
14662239
14672240 case $host_os in
14732246 mingw*)
14742247 # MinGW DLLs use traditional 'lib' prefix
14752248 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1476 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1477 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2249 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2250 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
14782251 # It is most probably a Windows format PATH printed by
14792252 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14802253 # path with ; separators, and with drive letters. We can handle the
14812254 # drive letters (cygwin fileutils understands them), so leave them,
14822255 # especially as we might pass files found there to a mingw objdump,
14832256 # which wouldn't understand a cygwinified path. Ahh.
1484 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2257 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14852258 else
1486 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2259 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14872260 fi
14882261 ;;
14892262 pw32*)
15072280 version_type=darwin
15082281 need_lib_prefix=no
15092282 need_version=no
1510 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2283 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15112284 soname_spec='${libname}${release}${major}$shared_ext'
15122285 shlibpath_overrides_runpath=yes
15132286 shlibpath_var=DYLD_LIBRARY_PATH
15142287 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1515 m4_if([$1], [],[
1516 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2288 m4_if([$1], [],[
2289 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
15172290 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15182291 ;;
15192292
16062379 fi
16072380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16082381 ;;
1609 hppa*64*)
1610 shrext_cmds='.sl'
1611 hardcode_into_libs=yes
1612 dynamic_linker="$host_os dld.sl"
1613 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1616 soname_spec='${libname}${release}${shared_ext}$major'
1617 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1618 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1619 ;;
1620 *)
2382 hppa*64*)
2383 shrext_cmds='.sl'
2384 hardcode_into_libs=yes
2385 dynamic_linker="$host_os dld.sl"
2386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2389 soname_spec='${libname}${release}${shared_ext}$major'
2390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2392 ;;
2393 *)
16212394 shrext_cmds='.sl'
16222395 dynamic_linker="$host_os dld.sl"
16232396 shlibpath_var=SHLIB_PATH
16942467 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16952468 shlibpath_var=LD_LIBRARY_PATH
16962469 shlibpath_overrides_runpath=no
2470 # Some binutils ld are patched to set DT_RUNPATH
2471 save_LDFLAGS=$LDFLAGS
2472 save_libdir=$libdir
2473 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2474 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2475 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2476 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2477 [shlibpath_overrides_runpath=yes])])
2478 LDFLAGS=$save_LDFLAGS
2479 libdir=$save_libdir
2480
16972481 # This implies no fast_install, which is unacceptable.
16982482 # Some rework will be needed to allow for fast_install
16992483 # before this can be enabled.
17012485
17022486 # Append ld.so.conf contents to the search path
17032487 if test -f /etc/ld.so.conf; then
1704 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2488 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17052489 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17062490 fi
17072491
17302514 version_type=sunos
17312515 need_lib_prefix=no
17322516 need_version=no
1733 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2517 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17342518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17352519 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17362520 dynamic_linker='NetBSD (a.out) ld.so'
17512535 shlibpath_overrides_runpath=yes
17522536 ;;
17532537
1754 nto-qnx*)
1755 version_type=linux
2538 *nto* | *qnx*)
2539 version_type=qnx
17562540 need_lib_prefix=no
17572541 need_version=no
17582542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17592543 soname_spec='${libname}${release}${shared_ext}$major'
17602544 shlibpath_var=LD_LIBRARY_PATH
1761 shlibpath_overrides_runpath=yes
2545 shlibpath_overrides_runpath=no
2546 hardcode_into_libs=yes
2547 dynamic_linker='ldqnx.so'
17622548 ;;
17632549
17642550 openbsd*)
17672553 need_lib_prefix=no
17682554 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17692555 case $host_os in
1770 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1771 *) need_version=no ;;
2556 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2557 *) need_version=no ;;
17722558 esac
17732559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17742560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17752561 shlibpath_var=LD_LIBRARY_PATH
1776 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2562 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17772563 case $host_os in
17782564 openbsd2.[[89]] | openbsd2.[[89]].*)
17792565 shlibpath_overrides_runpath=no
18452631 sni)
18462632 shlibpath_overrides_runpath=no
18472633 need_lib_prefix=no
1848 export_dynamic_flag_spec='${wl}-Blargedynsym'
18492634 runpath_var=LD_RUN_PATH
18502635 ;;
18512636 siemens)
18762661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18772662 soname_spec='${libname}${release}${shared_ext}$major'
18782663 shlibpath_var=LD_LIBRARY_PATH
2664 shlibpath_overrides_runpath=yes
18792665 hardcode_into_libs=yes
18802666 if test "$with_gnu_ld" = yes; then
18812667 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1882 shlibpath_overrides_runpath=no
18832668 else
18842669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1885 shlibpath_overrides_runpath=yes
18862670 case $host_os in
18872671 sco3.2v5*)
18882672 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18922676 sys_lib_dlsearch_path_spec='/usr/lib'
18932677 ;;
18942678
2679 tpf*)
2680 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
2681 version_type=linux
2682 need_lib_prefix=no
2683 need_version=no
2684 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2685 shlibpath_var=LD_LIBRARY_PATH
2686 shlibpath_overrides_runpath=no
2687 hardcode_into_libs=yes
2688 ;;
2689
18952690 uts4*)
18962691 version_type=linux
18972692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19062701 AC_MSG_RESULT([$dynamic_linker])
19072702 test "$dynamic_linker" = no && can_build_shared=no
19082703
1909 AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1910 [lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1911 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1912 AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1913 [lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1914 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1915
19162704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19172705 if test "$GCC" = yes; then
19182706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19192707 fi
1920 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1921
1922
1923 # _LT_AC_TAGCONFIG
1924 # ----------------
1925 AC_DEFUN([_LT_AC_TAGCONFIG],
1926 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1927 AC_ARG_WITH([tags],
1928 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1929 [include additional configurations @<:@automatic@:>@])],
1930 [tagnames="$withval"])
1931
1932 if test -f "$ltmain" && test -n "$tagnames"; then
1933 if test ! -f "${ofile}"; then
1934 AC_MSG_WARN([output file `$ofile' does not exist])
1935 fi
1936
1937 if test -z "$LTCC"; then
1938 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1939 if test -z "$LTCC"; then
1940 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1941 else
1942 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1943 fi
1944 fi
1945 if test -z "$LTCFLAGS"; then
1946 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1947 fi
1948
1949 # Extract list of available tagged configurations in $ofile.
1950 # Note that this assumes the entire list is on one line.
1951 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1952
1953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1954 for tagname in $tagnames; do
1955 IFS="$lt_save_ifs"
1956 # Check whether tagname contains only valid characters
1957 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1958 "") ;;
1959 *) AC_MSG_ERROR([invalid tag name: $tagname])
1960 ;;
1961 esac
1962
1963 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1964 then
1965 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1966 fi
1967
1968 # Update the list of available tags.
1969 if test -n "$tagname"; then
1970 echo appending configuration tag \"$tagname\" to $ofile
1971
1972 case $tagname in
1973 CXX)
1974 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1975 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1976 (test "X$CXX" != "Xg++"))) ; then
1977 AC_LIBTOOL_LANG_CXX_CONFIG
1978 else
1979 tagname=""
1980 fi
1981 ;;
1982
1983 F77)
1984 if test -n "$F77" && test "X$F77" != "Xno"; then
1985 AC_LIBTOOL_LANG_F77_CONFIG
1986 else
1987 tagname=""
1988 fi
1989 ;;
1990
1991 GCJ)
1992 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1993 AC_LIBTOOL_LANG_GCJ_CONFIG
1994 else
1995 tagname=""
1996 fi
1997 ;;
1998
1999 RC)
2000 AC_LIBTOOL_LANG_RC_CONFIG
2001 ;;
2002
2003 *)
2004 AC_MSG_ERROR([Unsupported tag name: $tagname])
2005 ;;
2006 esac
2007
2008 # Append the new tag name to the list of available tags.
2009 if test -n "$tagname" ; then
2010 available_tags="$available_tags $tagname"
2011 fi
2012 fi
2013 done
2014 IFS="$lt_save_ifs"
2015
2016 # Now substitute the updated list of available tags.
2017 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2018 mv "${ofile}T" "$ofile"
2019 chmod +x "$ofile"
2020 else
2021 rm -f "${ofile}T"
2022 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2023 fi
2708
2709 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2710 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20242711 fi
2025 ])# _LT_AC_TAGCONFIG
2026
2027
2028 # AC_LIBTOOL_DLOPEN
2029 # -----------------
2030 # enable checks for dlopen support
2031 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2032 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2033 ])# AC_LIBTOOL_DLOPEN
2034
2035
2036 # AC_LIBTOOL_WIN32_DLL
2037 # --------------------
2038 # declare package support for building win32 DLLs
2039 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2040 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2041 ])# AC_LIBTOOL_WIN32_DLL
2042
2043
2044 # AC_ENABLE_SHARED([DEFAULT])
2045 # ---------------------------
2046 # implement the --enable-shared flag
2047 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2048 AC_DEFUN([AC_ENABLE_SHARED],
2049 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2050 AC_ARG_ENABLE([shared],
2051 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2052 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2053 [p=${PACKAGE-default}
2054 case $enableval in
2055 yes) enable_shared=yes ;;
2056 no) enable_shared=no ;;
2057 *)
2058 enable_shared=no
2059 # Look at the argument we got. We use all the common list separators.
2060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2061 for pkg in $enableval; do
2062 IFS="$lt_save_ifs"
2063 if test "X$pkg" = "X$p"; then
2064 enable_shared=yes
2065 fi
2066 done
2067 IFS="$lt_save_ifs"
2068 ;;
2069 esac],
2070 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2071 ])# AC_ENABLE_SHARED
2072
2073
2074 # AC_DISABLE_SHARED
2075 # -----------------
2076 # set the default shared flag to --disable-shared
2077 AC_DEFUN([AC_DISABLE_SHARED],
2078 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2079 AC_ENABLE_SHARED(no)
2080 ])# AC_DISABLE_SHARED
2081
2082
2083 # AC_ENABLE_STATIC([DEFAULT])
2084 # ---------------------------
2085 # implement the --enable-static flag
2086 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2087 AC_DEFUN([AC_ENABLE_STATIC],
2088 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2089 AC_ARG_ENABLE([static],
2090 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2091 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2092 [p=${PACKAGE-default}
2093 case $enableval in
2094 yes) enable_static=yes ;;
2095 no) enable_static=no ;;
2096 *)
2097 enable_static=no
2098 # Look at the argument we got. We use all the common list separators.
2099 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2100 for pkg in $enableval; do
2101 IFS="$lt_save_ifs"
2102 if test "X$pkg" = "X$p"; then
2103 enable_static=yes
2104 fi
2105 done
2106 IFS="$lt_save_ifs"
2107 ;;
2108 esac],
2109 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2110 ])# AC_ENABLE_STATIC
2111
2112
2113 # AC_DISABLE_STATIC
2114 # -----------------
2115 # set the default static flag to --disable-static
2116 AC_DEFUN([AC_DISABLE_STATIC],
2117 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2118 AC_ENABLE_STATIC(no)
2119 ])# AC_DISABLE_STATIC
2120
2121
2122 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2123 # ---------------------------------
2124 # implement the --enable-fast-install flag
2125 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2126 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2127 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2128 AC_ARG_ENABLE([fast-install],
2129 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2130 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2131 [p=${PACKAGE-default}
2132 case $enableval in
2133 yes) enable_fast_install=yes ;;
2134 no) enable_fast_install=no ;;
2135 *)
2136 enable_fast_install=no
2137 # Look at the argument we got. We use all the common list separators.
2138 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2139 for pkg in $enableval; do
2140 IFS="$lt_save_ifs"
2141 if test "X$pkg" = "X$p"; then
2142 enable_fast_install=yes
2143 fi
2144 done
2145 IFS="$lt_save_ifs"
2146 ;;
2147 esac],
2148 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2149 ])# AC_ENABLE_FAST_INSTALL
2150
2151
2152 # AC_DISABLE_FAST_INSTALL
2153 # -----------------------
2154 # set the default to --disable-fast-install
2155 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2156 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2157 AC_ENABLE_FAST_INSTALL(no)
2158 ])# AC_DISABLE_FAST_INSTALL
2159
2160
2161 # AC_LIBTOOL_PICMODE([MODE])
2712 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2713 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
2714 fi
2715
2716 _LT_DECL([], [variables_saved_for_relink], [1],
2717 [Variables whose values should be saved in libtool wrapper scripts and
2718 restored at link time])
2719 _LT_DECL([], [need_lib_prefix], [0],
2720 [Do we need the "lib" prefix for modules?])
2721 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
2722 _LT_DECL([], [version_type], [0], [Library versioning type])
2723 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
2724 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
2725 _LT_DECL([], [shlibpath_overrides_runpath], [0],
2726 [Is shlibpath searched before the hard-coded library search path?])
2727 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
2728 _LT_DECL([], [library_names_spec], [1],
2729 [[List of archive names. First name is the real one, the rest are links.
2730 The last name is the one that the linker finds with -lNAME]])
2731 _LT_DECL([], [soname_spec], [1],
2732 [[The coded name of the library, if different from the real name]])
2733 _LT_DECL([], [postinstall_cmds], [2],
2734 [Command to use after installation of a shared archive])
2735 _LT_DECL([], [postuninstall_cmds], [2],
2736 [Command to use after uninstallation of a shared archive])
2737 _LT_DECL([], [finish_cmds], [2],
2738 [Commands used to finish a libtool library installation in a directory])
2739 _LT_DECL([], [finish_eval], [1],
2740 [[As "finish_cmds", except a single script fragment to be evaled but
2741 not shown]])
2742 _LT_DECL([], [hardcode_into_libs], [0],
2743 [Whether we should hardcode library paths into libraries])
2744 _LT_DECL([], [sys_lib_search_path_spec], [2],
2745 [Compile-time system search path for libraries])
2746 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2747 [Run-time system search path for libraries])
2748 ])# _LT_SYS_DYNAMIC_LINKER
2749
2750
2751 # _LT_PATH_TOOL_PREFIX(TOOL)
21622752 # --------------------------
2163 # implement the --with-pic flag
2164 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2165 AC_DEFUN([AC_LIBTOOL_PICMODE],
2166 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2167 pic_mode=ifelse($#,1,$1,default)
2168 ])# AC_LIBTOOL_PICMODE
2169
2170
2171 # AC_PROG_EGREP
2172 # -------------
2173 # This is predefined starting with Autoconf 2.54, so this conditional
2174 # definition can be removed once we require Autoconf 2.54 or later.
2175 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2176 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2177 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2178 then ac_cv_prog_egrep='grep -E'
2179 else ac_cv_prog_egrep='egrep'
2180 fi])
2181 EGREP=$ac_cv_prog_egrep
2182 AC_SUBST([EGREP])
2183 ])])
2184
2185
2186 # AC_PATH_TOOL_PREFIX
2187 # -------------------
21882753 # find a file program which can recognize shared library
2189 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2190 [AC_REQUIRE([AC_PROG_EGREP])dnl
2754 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
2755 [m4_require([_LT_DECL_EGREP])dnl
21912756 AC_MSG_CHECKING([for $1])
21922757 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
21932758 [case $MAGIC_CMD in
22002765 dnl $ac_dummy forces splitting on constant user-supplied paths.
22012766 dnl POSIX.2 word splitting is done only on the output of word expansions,
22022767 dnl not every word. This closes a longstanding sh security hole.
2203 ac_dummy="ifelse([$2], , $PATH, [$2])"
2768 ac_dummy="m4_if([$2], , $PATH, [$2])"
22042769 for ac_dir in $ac_dummy; do
22052770 IFS="$lt_save_ifs"
22062771 test -z "$ac_dir" && ac_dir=.
22152780 $EGREP "$file_magic_regex" > /dev/null; then
22162781 :
22172782 else
2218 cat <<EOF 1>&2
2783 cat <<_LT_EOF 1>&2
22192784
22202785 *** Warning: the command libtool uses to detect shared libraries,
22212786 *** $file_magic_cmd, produces output that libtool cannot recognize.
22262791 *** may want to report the problem to your system manager and/or to
22272792 *** bug-libtool@gnu.org
22282793
2229 EOF
2794 _LT_EOF
22302795 fi ;;
22312796 esac
22322797 fi
22432808 else
22442809 AC_MSG_RESULT(no)
22452810 fi
2246 ])# AC_PATH_TOOL_PREFIX
2247
2248
2249 # AC_PATH_MAGIC
2250 # -------------
2811 _LT_DECL([], [MAGIC_CMD], [0],
2812 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
2813 ])# _LT_PATH_TOOL_PREFIX
2814
2815 # Old name:
2816 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
2817 dnl aclocal-1.4 backwards compatibility:
2818 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
2819
2820
2821 # _LT_PATH_MAGIC
2822 # --------------
22512823 # find a file program which can recognize a shared library
2252 AC_DEFUN([AC_PATH_MAGIC],
2253 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2824 m4_defun([_LT_PATH_MAGIC],
2825 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
22542826 if test -z "$lt_cv_path_MAGIC_CMD"; then
22552827 if test -n "$ac_tool_prefix"; then
2256 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2828 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
22572829 else
22582830 MAGIC_CMD=:
22592831 fi
22602832 fi
2261 ])# AC_PATH_MAGIC
2262
2263
2264 # AC_PROG_LD
2833 ])# _LT_PATH_MAGIC
2834
2835
2836 # LT_PATH_LD
22652837 # ----------
22662838 # find the pathname to the GNU or non-GNU linker
2267 AC_DEFUN([AC_PROG_LD],
2268 [AC_ARG_WITH([gnu-ld],
2269 [AC_HELP_STRING([--with-gnu-ld],
2839 AC_DEFUN([LT_PATH_LD],
2840 [AC_REQUIRE([AC_PROG_CC])dnl
2841 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2842 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2843 m4_require([_LT_DECL_SED])dnl
2844 m4_require([_LT_DECL_EGREP])dnl
2845
2846 AC_ARG_WITH([gnu-ld],
2847 [AS_HELP_STRING([--with-gnu-ld],
22702848 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
22712849 [test "$withval" = no || with_gnu_ld=yes],
2272 [with_gnu_ld=no])
2273 AC_REQUIRE([LT_AC_PROG_SED])dnl
2274 AC_REQUIRE([AC_PROG_CC])dnl
2275 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2276 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2850 [with_gnu_ld=no])dnl
2851
22772852 ac_prog=ld
22782853 if test "$GCC" = yes; then
22792854 # Check if gcc -print-prog-name=ld gives a path.
22902865 [[\\/]]* | ?:[[\\/]]*)
22912866 re_direlt='/[[^/]][[^/]]*/\.\./'
22922867 # Canonicalize the pathname of ld
2293 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2294 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2295 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2868 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
2869 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
2870 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
22962871 done
22972872 test -z "$LD" && LD="$ac_prog"
22982873 ;;
23422917 AC_MSG_RESULT(no)
23432918 fi
23442919 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2345 AC_PROG_LD_GNU
2346 ])# AC_PROG_LD
2347
2348
2349 # AC_PROG_LD_GNU
2350 # --------------
2351 AC_DEFUN([AC_PROG_LD_GNU],
2352 [AC_REQUIRE([AC_PROG_EGREP])dnl
2353 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2920 _LT_PATH_LD_GNU
2921 AC_SUBST([LD])
2922
2923 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
2924 ])# LT_PATH_LD
2925
2926 # Old names:
2927 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
2928 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
2929 dnl aclocal-1.4 backwards compatibility:
2930 dnl AC_DEFUN([AM_PROG_LD], [])
2931 dnl AC_DEFUN([AC_PROG_LD], [])
2932
2933
2934 # _LT_PATH_LD_GNU
2935 #- --------------
2936 m4_defun([_LT_PATH_LD_GNU],
2937 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
23542938 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
23552939 case `$LD -v 2>&1 </dev/null` in
23562940 *GNU* | *'with BFD'*)
23612945 ;;
23622946 esac])
23632947 with_gnu_ld=$lt_cv_prog_gnu_ld
2364 ])# AC_PROG_LD_GNU
2365
2366
2367 # AC_PROG_LD_RELOAD_FLAG
2368 # ----------------------
2948 ])# _LT_PATH_LD_GNU
2949
2950
2951 # _LT_CMD_RELOAD
2952 # --------------
23692953 # find reload flag for linker
23702954 # -- PORTME Some linkers may need a different reload flag.
2371 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2955 m4_defun([_LT_CMD_RELOAD],
23722956 [AC_CACHE_CHECK([for $LD option to reload object files],
23732957 lt_cv_ld_reload_flag,
23742958 [lt_cv_ld_reload_flag='-r'])
23872971 fi
23882972 ;;
23892973 esac
2390 ])# AC_PROG_LD_RELOAD_FLAG
2391
2392
2393 # AC_DEPLIBS_CHECK_METHOD
2394 # -----------------------
2974 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
2975 _LT_DECL([], [reload_cmds], [2])dnl
2976 ])# _LT_CMD_RELOAD
2977
2978
2979 # _LT_CHECK_MAGIC_METHOD
2980 # ----------------------
23952981 # how to check for library dependencies
23962982 # -- PORTME fill in with the dynamic library characteristics
2397 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2398 [AC_CACHE_CHECK([how to recognize dependent libraries],
2983 m4_defun([_LT_CHECK_MAGIC_METHOD],
2984 [m4_require([_LT_DECL_EGREP])
2985 AC_CACHE_CHECK([how to recognize dependent libraries],
23992986 lt_cv_deplibs_check_method,
24002987 [lt_cv_file_magic_cmd='$MAGIC_CMD'
24012988 lt_cv_file_magic_test_file=
24503037 ;;
24513038
24523039 freebsd* | dragonfly*)
2453 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
24543041 case $host_cpu in
24553042 i*86 )
24563043 # Not sure whether the presence of OpenBSD here was a mistake.
25083095 ;;
25093096
25103097 netbsd* | netbsdelf*-gnu)
2511 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3098 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
25123099 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
25133100 else
25143101 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
25213108 lt_cv_file_magic_test_file=/usr/lib/libnls.so
25223109 ;;
25233110
2524 nto-qnx*)
2525 lt_cv_deplibs_check_method=unknown
3111 *nto* | *qnx*)
3112 lt_cv_deplibs_check_method=pass_all
25263113 ;;
25273114
25283115 openbsd*)
2529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3116 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
25303117 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
25313118 else
25323119 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
25423129 ;;
25433130
25443131 solaris*)
3132 lt_cv_deplibs_check_method=pass_all
3133 ;;
3134
3135 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
25453136 lt_cv_deplibs_check_method=pass_all
25463137 ;;
25473138
25723163 esac
25733164 ;;
25743165
2575 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3166 tpf*)
25763167 lt_cv_deplibs_check_method=pass_all
25773168 ;;
25783169 esac
25803171 file_magic_cmd=$lt_cv_file_magic_cmd
25813172 deplibs_check_method=$lt_cv_deplibs_check_method
25823173 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2583 ])# AC_DEPLIBS_CHECK_METHOD
2584
2585
2586 # AC_PROG_NM
3174
3175 _LT_DECL([], [deplibs_check_method], [1],
3176 [Method to check whether dependent libraries are shared objects])
3177 _LT_DECL([], [file_magic_cmd], [1],
3178 [Command to use when deplibs_check_method == "file_magic"])
3179 ])# _LT_CHECK_MAGIC_METHOD
3180
3181
3182 # LT_PATH_NM
25873183 # ----------
2588 # find the pathname to a BSD-compatible name lister
2589 AC_DEFUN([AC_PROG_NM],
2590 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3184 # find the pathname to a BSD- or MS-compatible name lister
3185 AC_DEFUN([LT_PATH_NM],
3186 [AC_REQUIRE([AC_PROG_CC])dnl
3187 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
25913188 [if test -n "$NM"; then
25923189 # Let the user override the test.
25933190 lt_cv_path_NM="$NM"
26293226 done
26303227 IFS="$lt_save_ifs"
26313228 done
2632 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3229 : ${lt_cv_path_NM=no}
26333230 fi])
2634 NM="$lt_cv_path_NM"
2635 ])# AC_PROG_NM
2636
2637
2638 # AC_CHECK_LIBM
2639 # -------------
3231 if test "$lt_cv_path_NM" != "no"; then
3232 NM="$lt_cv_path_NM"
3233 else
3234 # Didn't find any BSD compatible name lister, look for dumpbin.
3235 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3236 AC_SUBST([DUMPBIN])
3237 if test "$DUMPBIN" != ":"; then
3238 NM="$DUMPBIN"
3239 fi
3240 fi
3241 test -z "$NM" && NM=nm
3242 AC_SUBST([NM])
3243 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3244
3245 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3246 [lt_cv_nm_interface="BSD nm"
3247 echo "int some_variable = 0;" > conftest.$ac_ext
3248 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3249 (eval "$ac_compile" 2>conftest.err)
3250 cat conftest.err >&AS_MESSAGE_LOG_FD
3251 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3252 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3253 cat conftest.err >&AS_MESSAGE_LOG_FD
3254 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3255 cat conftest.out >&AS_MESSAGE_LOG_FD
3256 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3257 lt_cv_nm_interface="MS dumpbin"
3258 fi
3259 rm -f conftest*])
3260 ])# LT_PATH_NM
3261
3262 # Old names:
3263 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3264 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3265 dnl aclocal-1.4 backwards compatibility:
3266 dnl AC_DEFUN([AM_PROG_NM], [])
3267 dnl AC_DEFUN([AC_PROG_NM], [])
3268
3269
3270 # LT_LIB_M
3271 # --------
26403272 # check for math library
2641 AC_DEFUN([AC_CHECK_LIBM],
3273 AC_DEFUN([LT_LIB_M],
26423274 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
26433275 LIBM=
26443276 case $host in
26533285 AC_CHECK_LIB(m, cos, LIBM="-lm")
26543286 ;;
26553287 esac
2656 ])# AC_CHECK_LIBM
2657
2658
2659 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2660 # -----------------------------------
2661 # sets LIBLTDL to the link flags for the libltdl convenience library and
2662 # LTDLINCL to the include flags for the libltdl header and adds
2663 # --enable-ltdl-convenience to the configure arguments. Note that
2664 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2665 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2666 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2667 # (note the single quotes!). If your package is not flat and you're not
2668 # using automake, define top_builddir and top_srcdir appropriately in
2669 # the Makefiles.
2670 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2671 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2672 case $enable_ltdl_convenience in
2673 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2674 "") enable_ltdl_convenience=yes
2675 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2676 esac
2677 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2678 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2679 # For backwards non-gettext consistent compatibility...
2680 INCLTDL="$LTDLINCL"
2681 ])# AC_LIBLTDL_CONVENIENCE
2682
2683
2684 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2685 # -----------------------------------
2686 # sets LIBLTDL to the link flags for the libltdl installable library and
2687 # LTDLINCL to the include flags for the libltdl header and adds
2688 # --enable-ltdl-install to the configure arguments. Note that
2689 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2690 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2691 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2692 # '${top_srcdir}/' (note the single quotes!). If your package is not
2693 # flat and you're not using automake, define top_builddir and top_srcdir
2694 # appropriately in the Makefiles.
2695 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2696 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2697 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2698 AC_CHECK_LIB(ltdl, lt_dlinit,
2699 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2700 [if test x"$enable_ltdl_install" = xno; then
2701 AC_MSG_WARN([libltdl not installed, but installation disabled])
2702 else
2703 enable_ltdl_install=yes
2704 fi
2705 ])
2706 if test x"$enable_ltdl_install" = x"yes"; then
2707 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2708 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2709 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2710 else
2711 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2712 LIBLTDL="-lltdl"
2713 LTDLINCL=
2714 fi
2715 # For backwards non-gettext consistent compatibility...
2716 INCLTDL="$LTDLINCL"
2717 ])# AC_LIBLTDL_INSTALLABLE
2718
2719
2720 # AC_LIBTOOL_CXX
2721 # --------------
2722 # enable support for C++ libraries
2723 AC_DEFUN([AC_LIBTOOL_CXX],
2724 [AC_REQUIRE([_LT_AC_LANG_CXX])
2725 ])# AC_LIBTOOL_CXX
2726
2727
2728 # _LT_AC_LANG_CXX
2729 # ---------------
2730 AC_DEFUN([_LT_AC_LANG_CXX],
2731 [AC_REQUIRE([AC_PROG_CXX])
2732 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2733 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2734 ])# _LT_AC_LANG_CXX
2735
2736 # _LT_AC_PROG_CXXCPP
2737 # ------------------
2738 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2739 [
2740 AC_REQUIRE([AC_PROG_CXX])
2741 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2742 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2743 (test "X$CXX" != "Xg++"))) ; then
2744 AC_PROG_CXXCPP
2745 fi
2746 ])# _LT_AC_PROG_CXXCPP
2747
2748 # AC_LIBTOOL_F77
2749 # --------------
2750 # enable support for Fortran 77 libraries
2751 AC_DEFUN([AC_LIBTOOL_F77],
2752 [AC_REQUIRE([_LT_AC_LANG_F77])
2753 ])# AC_LIBTOOL_F77
2754
2755
2756 # _LT_AC_LANG_F77
2757 # ---------------
2758 AC_DEFUN([_LT_AC_LANG_F77],
2759 [AC_REQUIRE([AC_PROG_F77])
2760 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2761 ])# _LT_AC_LANG_F77
2762
2763
2764 # AC_LIBTOOL_GCJ
2765 # --------------
2766 # enable support for GCJ libraries
2767 AC_DEFUN([AC_LIBTOOL_GCJ],
2768 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2769 ])# AC_LIBTOOL_GCJ
2770
2771
2772 # _LT_AC_LANG_GCJ
2773 # ---------------
2774 AC_DEFUN([_LT_AC_LANG_GCJ],
2775 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2776 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2777 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2778 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2779 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2780 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2781 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2782 ])# _LT_AC_LANG_GCJ
2783
2784
2785 # AC_LIBTOOL_RC
2786 # -------------
2787 # enable support for Windows resource files
2788 AC_DEFUN([AC_LIBTOOL_RC],
2789 [AC_REQUIRE([LT_AC_PROG_RC])
2790 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2791 ])# AC_LIBTOOL_RC
2792
2793
2794 # AC_LIBTOOL_LANG_C_CONFIG
2795 # ------------------------
2796 # Ensure that the configuration vars for the C compiler are
2797 # suitably defined. Those variables are subsequently used by
2798 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2799 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2800 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2801 [lt_save_CC="$CC"
2802 AC_LANG_PUSH(C)
2803
2804 # Source file extension for C test sources.
2805 ac_ext=c
2806
2807 # Object file extension for compiled C test sources.
2808 objext=o
2809 _LT_AC_TAGVAR(objext, $1)=$objext
2810
2811 # Code to be used in simple compile tests
2812 lt_simple_compile_test_code="int some_variable = 0;"
2813
2814 # Code to be used in simple link tests
2815 lt_simple_link_test_code='int main(){return(0);}'
2816
2817 _LT_AC_SYS_COMPILER
2818
2819 # save warnings/boilerplate of simple test code
2820 _LT_COMPILER_BOILERPLATE
2821 _LT_LINKER_BOILERPLATE
2822
2823 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2824 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2825 AC_LIBTOOL_PROG_CC_C_O($1)
2826 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2827 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2828 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2829 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2830 AC_LIBTOOL_SYS_LIB_STRIP
2831 AC_LIBTOOL_DLOPEN_SELF
2832
2833 # Report which library types will actually be built
2834 AC_MSG_CHECKING([if libtool supports shared libraries])
2835 AC_MSG_RESULT([$can_build_shared])
2836
2837 AC_MSG_CHECKING([whether to build shared libraries])
2838 test "$can_build_shared" = "no" && enable_shared=no
2839
2840 # On AIX, shared libraries and static libraries use the same namespace, and
2841 # are all built from PIC.
2842 case $host_os in
2843 aix3*)
2844 test "$enable_shared" = yes && enable_static=no
2845 if test -n "$RANLIB"; then
2846 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2847 postinstall_cmds='$RANLIB $lib'
2848 fi
2849 ;;
2850
2851 aix[[4-9]]*)
2852 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2853 test "$enable_shared" = yes && enable_static=no
2854 fi
2855 ;;
2856 esac
2857 AC_MSG_RESULT([$enable_shared])
2858
2859 AC_MSG_CHECKING([whether to build static libraries])
2860 # Make sure either enable_shared or enable_static is yes.
2861 test "$enable_shared" = yes || enable_static=yes
2862 AC_MSG_RESULT([$enable_static])
2863
2864 AC_LIBTOOL_CONFIG($1)
2865
2866 AC_LANG_POP
2867 CC="$lt_save_CC"
2868 ])# AC_LIBTOOL_LANG_C_CONFIG
2869
2870
2871 # AC_LIBTOOL_LANG_CXX_CONFIG
2872 # --------------------------
2873 # Ensure that the configuration vars for the C compiler are
2874 # suitably defined. Those variables are subsequently used by
2875 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2876 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2877 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2878 [AC_LANG_PUSH(C++)
2879 AC_REQUIRE([AC_PROG_CXX])
2880 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2881
2882 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2883 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2884 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2885 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2886 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2887 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2888 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2889 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2890 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2891 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2892 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2893 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2894 _LT_AC_TAGVAR(module_cmds, $1)=
2895 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2896 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2897 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2898 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2899 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2900 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2901
2902 # Dependencies to place before and after the object being linked:
2903 _LT_AC_TAGVAR(predep_objects, $1)=
2904 _LT_AC_TAGVAR(postdep_objects, $1)=
2905 _LT_AC_TAGVAR(predeps, $1)=
2906 _LT_AC_TAGVAR(postdeps, $1)=
2907 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2908 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2909
2910 # Source file extension for C++ test sources.
2911 ac_ext=cpp
2912
2913 # Object file extension for compiled C++ test sources.
2914 objext=o
2915 _LT_AC_TAGVAR(objext, $1)=$objext
2916
2917 # Code to be used in simple compile tests
2918 lt_simple_compile_test_code="int some_variable = 0;"
2919
2920 # Code to be used in simple link tests
2921 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2922
2923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2924 _LT_AC_SYS_COMPILER
2925
2926 # save warnings/boilerplate of simple test code
2927 _LT_COMPILER_BOILERPLATE
2928 _LT_LINKER_BOILERPLATE
2929
2930 # Allow CC to be a program name with arguments.
2931 lt_save_CC=$CC
2932 lt_save_LD=$LD
2933 lt_save_GCC=$GCC
2934 GCC=$GXX
2935 lt_save_with_gnu_ld=$with_gnu_ld
2936 lt_save_path_LD=$lt_cv_path_LD
2937 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2938 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2939 else
2940 $as_unset lt_cv_prog_gnu_ld
2941 fi
2942 if test -n "${lt_cv_path_LDCXX+set}"; then
2943 lt_cv_path_LD=$lt_cv_path_LDCXX
2944 else
2945 $as_unset lt_cv_path_LD
2946 fi
2947 test -z "${LDCXX+set}" || LD=$LDCXX
2948 CC=${CXX-"c++"}
2949 compiler=$CC
2950 _LT_AC_TAGVAR(compiler, $1)=$CC
2951 _LT_CC_BASENAME([$compiler])
2952
2953 # We don't want -fno-exception wen compiling C++ code, so set the
2954 # no_builtin_flag separately
2955 if test "$GXX" = yes; then
2956 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2957 else
2958 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2959 fi
2960
2961 if test "$GXX" = yes; then
2962 # Set up default GNU C++ configuration
2963
2964 AC_PROG_LD
2965
2966 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2967 # archiving commands below assume that GNU ld is being used.
2968 if test "$with_gnu_ld" = yes; then
2969 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2970 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
2971
2972 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2973 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2974
2975 # If archive_cmds runs LD, not CC, wlarc should be empty
2976 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2977 # investigate it a little bit more. (MM)
2978 wlarc='${wl}'
2979
2980 # ancient GNU ld didn't support --whole-archive et. al.
2981 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2982 grep 'no-whole-archive' > /dev/null; then
2983 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2984 else
2985 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2986 fi
2987 else
2988 with_gnu_ld=no
2989 wlarc=
2990
2991 # A generic and very simple default shared library creation
2992 # command for GNU C++ for the case where it uses the native
2993 # linker, instead of GNU ld. If possible, this setting should
2994 # overridden to take advantage of the native linker features on
2995 # the platform it is being used on.
2996 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2997 fi
2998
2999 # Commands to make compiler produce verbose output that lists
3000 # what "hidden" libraries, object files and flags are used when
3001 # linking a shared library.
3002 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3003
3004 else
3005 GXX=no
3006 with_gnu_ld=no
3007 wlarc=
3008 fi
3009
3010 # PORTME: fill in a description of your system's C++ link characteristics
3011 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3012 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3013 case $host_os in
3014 aix3*)
3015 # FIXME: insert proper C++ library support
3016 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3017 ;;
3018 aix[[4-9]]*)
3019 if test "$host_cpu" = ia64; then
3020 # On IA64, the linker does run time linking by default, so we don't
3021 # have to do anything special.
3022 aix_use_runtimelinking=no
3023 exp_sym_flag='-Bexport'
3024 no_entry_flag=""
3025 else
3026 aix_use_runtimelinking=no
3027
3028 # Test if we are trying to use run time linking or normal
3029 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3030 # need to do runtime linking.
3031 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3032 for ld_flag in $LDFLAGS; do
3033 case $ld_flag in
3034 *-brtl*)
3035 aix_use_runtimelinking=yes
3036 break
3037 ;;
3038 esac
3039 done
3040 ;;
3041 esac
3042
3043 exp_sym_flag='-bexport'
3044 no_entry_flag='-bnoentry'
3045 fi
3046
3047 # When large executables or shared objects are built, AIX ld can
3048 # have problems creating the table of contents. If linking a library
3049 # or program results in "error TOC overflow" add -mminimal-toc to
3050 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3051 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3052
3053 _LT_AC_TAGVAR(archive_cmds, $1)=''
3054 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3055 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3056 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3057
3058 if test "$GXX" = yes; then
3059 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3060 # We only want to do this on AIX 4.2 and lower, the check
3061 # below for broken collect2 doesn't work under 4.3+
3062 collect2name=`${CC} -print-prog-name=collect2`
3063 if test -f "$collect2name" && \
3064 strings "$collect2name" | grep resolve_lib_name >/dev/null
3065 then
3066 # We have reworked collect2
3067 :
3068 else
3069 # We have old collect2
3070 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3071 # It fails to find uninstalled libraries when the uninstalled
3072 # path is not listed in the libpath. Setting hardcode_minus_L
3073 # to unsupported forces relinking
3074 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3075 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3076 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3077 fi
3078 ;;
3079 esac
3080 shared_flag='-shared'
3081 if test "$aix_use_runtimelinking" = yes; then
3082 shared_flag="$shared_flag "'${wl}-G'
3083 fi
3084 else
3085 # not using gcc
3086 if test "$host_cpu" = ia64; then
3087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3088 # chokes on -Wl,-G. The following line is correct:
3089 shared_flag='-G'
3090 else
3091 if test "$aix_use_runtimelinking" = yes; then
3092 shared_flag='${wl}-G'
3093 else
3094 shared_flag='${wl}-bM:SRE'
3095 fi
3096 fi
3097 fi
3098
3099 # It seems that -bexpall does not export symbols beginning with
3100 # underscore (_), so it is better to generate a list of symbols to export.
3101 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3102 if test "$aix_use_runtimelinking" = yes; then
3103 # Warning - without using the other runtime loading flags (-brtl),
3104 # -berok will link without error, but may produce a broken library.
3105 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3106 # Determine the default libpath from the value encoded in an empty executable.
3107 _LT_AC_SYS_LIBPATH_AIX
3108 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3109
3110 _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3111 else
3112 if test "$host_cpu" = ia64; then
3113 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3114 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3115 _LT_AC_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"
3116 else
3117 # Determine the default libpath from the value encoded in an empty executable.
3118 _LT_AC_SYS_LIBPATH_AIX
3119 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3120 # Warning - without using the other run time loading flags,
3121 # -berok will link without error, but may produce a broken library.
3122 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3123 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3124 # Exported symbols can be pulled into shared objects from archives
3125 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3126 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3127 # This is similar to how AIX traditionally builds its shared libraries.
3128 _LT_AC_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'
3129 fi
3130 fi
3131 ;;
3132
3133 beos*)
3134 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3135 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3137 # support --undefined. This deserves some investigation. FIXME
3138 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3139 else
3140 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3141 fi
3142 ;;
3143
3144 chorus*)
3145 case $cc_basename in
3146 *)
3147 # FIXME: insert proper C++ library support
3148 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3149 ;;
3150 esac
3151 ;;
3152
3153 cygwin* | mingw* | pw32*)
3154 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3155 # as there is no search path for DLLs.
3156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3157 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3158 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3159 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3160
3161 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3162 _LT_AC_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'
3163 # If the export-symbols file already is a .def file (1st line
3164 # is EXPORTS), use it as is; otherwise, prepend...
3165 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3166 cp $export_symbols $output_objdir/$soname.def;
3167 else
3168 echo EXPORTS > $output_objdir/$soname.def;
3169 cat $export_symbols >> $output_objdir/$soname.def;
3170 fi~
3171 $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'
3172 else
3173 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3174 fi
3175 ;;
3176 darwin* | rhapsody*)
3177 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3178 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3179 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3180 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3181 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3182 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3183 _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3184 if test "$GXX" = yes ; then
3185 output_verbose_link_cmd='echo'
3186 _LT_AC_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}"
3187 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3188 _LT_AC_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}"
3189 _LT_AC_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}"
3190 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3191 _LT_AC_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}"
3192 _LT_AC_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}"
3193 fi
3194 else
3195 case $cc_basename in
3196 xlc*)
3197 output_verbose_link_cmd='echo'
3198 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3199 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3200 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3201 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3202 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3203 ;;
3204 *)
3205 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3206 ;;
3207 esac
3208 fi
3209 ;;
3210
3211 dgux*)
3212 case $cc_basename in
3213 ec++*)
3214 # FIXME: insert proper C++ library support
3215 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3216 ;;
3217 ghcx*)
3218 # Green Hills C++ Compiler
3219 # FIXME: insert proper C++ library support
3220 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3221 ;;
3222 *)
3223 # FIXME: insert proper C++ library support
3224 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225 ;;
3226 esac
3227 ;;
3228 freebsd[[12]]*)
3229 # C++ shared libraries reported to be fairly broken before switch to ELF
3230 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3231 ;;
3232 freebsd-elf*)
3233 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3234 ;;
3235 freebsd* | dragonfly*)
3236 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3237 # conventions
3238 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3239 ;;
3240 gnu*)
3241 ;;
3242 hpux9*)
3243 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3244 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3245 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3246 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3247 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3248 # but as the default
3249 # location of the library.
3250
3251 case $cc_basename in
3252 CC*)
3253 # FIXME: insert proper C++ library support
3254 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3255 ;;
3256 aCC*)
3257 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3258 # Commands to make compiler produce verbose output that lists
3259 # what "hidden" libraries, object files and flags are used when
3260 # linking a shared library.
3261 #
3262 # There doesn't appear to be a way to prevent this compiler from
3263 # explicitly linking system object files so we need to strip them
3264 # from the output so that they don't get included in the library
3265 # dependencies.
3266 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3267 ;;
3268 *)
3269 if test "$GXX" = yes; then
3270 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3271 else
3272 # FIXME: insert proper C++ library support
3273 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3274 fi
3275 ;;
3276 esac
3277 ;;
3278 hpux10*|hpux11*)
3279 if test $with_gnu_ld = no; then
3280 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3281 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3282
3283 case $host_cpu in
3284 hppa*64*|ia64*) ;;
3285 *)
3286 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3287 ;;
3288 esac
3289 fi
3290 case $host_cpu in
3291 hppa*64*|ia64*)
3292 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3293 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3294 ;;
3295 *)
3296 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3297 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3298 # but as the default
3299 # location of the library.
3300 ;;
3301 esac
3302
3303 case $cc_basename in
3304 CC*)
3305 # FIXME: insert proper C++ library support
3306 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3307 ;;
3308 aCC*)
3309 case $host_cpu in
3310 hppa*64*)
3311 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3312 ;;
3313 ia64*)
3314 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3315 ;;
3316 *)
3317 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3318 ;;
3319 esac
3320 # Commands to make compiler produce verbose output that lists
3321 # what "hidden" libraries, object files and flags are used when
3322 # linking a shared library.
3323 #
3324 # There doesn't appear to be a way to prevent this compiler from
3325 # explicitly linking system object files so we need to strip them
3326 # from the output so that they don't get included in the library
3327 # dependencies.
3328 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3329 ;;
3330 *)
3331 if test "$GXX" = yes; then
3332 if test $with_gnu_ld = no; then
3333 case $host_cpu in
3334 hppa*64*)
3335 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3336 ;;
3337 ia64*)
3338 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3339 ;;
3340 *)
3341 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3342 ;;
3343 esac
3344 fi
3345 else
3346 # FIXME: insert proper C++ library support
3347 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3348 fi
3349 ;;
3350 esac
3351 ;;
3352 interix[[3-9]]*)
3353 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3354 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3356 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3357 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3358 # Instead, shared libraries are loaded at an image base (0x10000000 by
3359 # default) and relocated if they conflict, which is a slow very memory
3360 # consuming and fragmenting process. To avoid this, we pick a random,
3361 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3362 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3363 _LT_AC_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'
3364 _LT_AC_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'
3365 ;;
3366 irix5* | irix6*)
3367 case $cc_basename in
3368 CC*)
3369 # SGI C++
3370 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3371
3372 # Archives containing C++ object files must be created using
3373 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3374 # necessary to make sure instantiated templates are included
3375 # in the archive.
3376 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3377 ;;
3378 *)
3379 if test "$GXX" = yes; then
3380 if test "$with_gnu_ld" = no; then
3381 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3382 else
3383 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3384 fi
3385 fi
3386 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3387 ;;
3388 esac
3389 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3390 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3391 ;;
3392 linux* | k*bsd*-gnu)
3393 case $cc_basename in
3394 KCC*)
3395 # Kuck and Associates, Inc. (KAI) C++ Compiler
3396
3397 # KCC will only create a shared library if the output file
3398 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3399 # to its proper name (with version) after linking.
3400 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3401 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3402 # Commands to make compiler produce verbose output that lists
3403 # what "hidden" libraries, object files and flags are used when
3404 # linking a shared library.
3405 #
3406 # There doesn't appear to be a way to prevent this compiler from
3407 # explicitly linking system object files so we need to strip them
3408 # from the output so that they don't get included in the library
3409 # dependencies.
3410 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3411
3412 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3413 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3414
3415 # Archives containing C++ object files must be created using
3416 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3417 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3418 ;;
3419 icpc*)
3420 # Intel C++
3421 with_gnu_ld=yes
3422 # version 8.0 and above of icpc choke on multiply defined symbols
3423 # if we add $predep_objects and $postdep_objects, however 7.1 and
3424 # earlier do not add the objects themselves.
3425 case `$CC -V 2>&1` in
3426 *"Version 7."*)
3427 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3428 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3429 ;;
3430 *) # Version 8.0 or newer
3431 tmp_idyn=
3432 case $host_cpu in
3433 ia64*) tmp_idyn=' -i_dynamic';;
3434 esac
3435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3436 _LT_AC_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'
3437 ;;
3438 esac
3439 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3440 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3441 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3442 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3443 ;;
3444 pgCC* | pgcpp*)
3445 # Portland Group C++ compiler
3446 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3447 _LT_AC_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'
3448
3449 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3450 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3452 ;;
3453 cxx*)
3454 # Compaq C++
3455 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3456 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3457
3458 runpath_var=LD_RUN_PATH
3459 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3460 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3461
3462 # Commands to make compiler produce verbose output that lists
3463 # what "hidden" libraries, object files and flags are used when
3464 # linking a shared library.
3465 #
3466 # There doesn't appear to be a way to prevent this compiler from
3467 # explicitly linking system object files so we need to strip them
3468 # from the output so that they don't get included in the library
3469 # dependencies.
3470 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3471 ;;
3472 *)
3473 case `$CC -V 2>&1 | sed 5q` in
3474 *Sun\ C*)
3475 # Sun C++ 5.9
3476 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3477 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3478 _LT_AC_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'
3479 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3480 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3481
3482 # Not sure whether something based on
3483 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3484 # would be better.
3485 output_verbose_link_cmd='echo'
3486
3487 # Archives containing C++ object files must be created using
3488 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3489 # necessary to make sure instantiated templates are included
3490 # in the archive.
3491 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3492 ;;
3493 esac
3494 ;;
3495 esac
3496 ;;
3497 lynxos*)
3498 # FIXME: insert proper C++ library support
3499 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3500 ;;
3501 m88k*)
3502 # FIXME: insert proper C++ library support
3503 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3504 ;;
3505 mvs*)
3506 case $cc_basename in
3507 cxx*)
3508 # FIXME: insert proper C++ library support
3509 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3510 ;;
3511 *)
3512 # FIXME: insert proper C++ library support
3513 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3514 ;;
3515 esac
3516 ;;
3517 netbsd* | netbsdelf*-gnu)
3518 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3519 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3520 wlarc=
3521 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3522 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3523 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3524 fi
3525 # Workaround some broken pre-1.5 toolchains
3526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3527 ;;
3528 openbsd2*)
3529 # C++ shared libraries are fairly broken
3530 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3531 ;;
3532 openbsd*)
3533 if test -f /usr/libexec/ld.so; then
3534 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3535 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3536 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3537 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3539 _LT_AC_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'
3540 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3541 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3542 fi
3543 output_verbose_link_cmd='echo'
3544 else
3545 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3546 fi
3547 ;;
3548 osf3*)
3549 case $cc_basename in
3550 KCC*)
3551 # Kuck and Associates, Inc. (KAI) C++ Compiler
3552
3553 # KCC will only create a shared library if the output file
3554 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3555 # to its proper name (with version) after linking.
3556 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3557
3558 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3559 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3560
3561 # Archives containing C++ object files must be created using
3562 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3563 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3564
3565 ;;
3566 RCC*)
3567 # Rational C++ 2.4.1
3568 # FIXME: insert proper C++ library support
3569 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3570 ;;
3571 cxx*)
3572 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3573 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3574
3575 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3576 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3577
3578 # Commands to make compiler produce verbose output that lists
3579 # what "hidden" libraries, object files and flags are used when
3580 # linking a shared library.
3581 #
3582 # There doesn't appear to be a way to prevent this compiler from
3583 # explicitly linking system object files so we need to strip them
3584 # from the output so that they don't get included in the library
3585 # dependencies.
3586 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3587 ;;
3588 *)
3589 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3590 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3591 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3592
3593 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3594 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3595
3596 # Commands to make compiler produce verbose output that lists
3597 # what "hidden" libraries, object files and flags are used when
3598 # linking a shared library.
3599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3600
3601 else
3602 # FIXME: insert proper C++ library support
3603 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3604 fi
3605 ;;
3606 esac
3607 ;;
3608 osf4* | osf5*)
3609 case $cc_basename in
3610 KCC*)
3611 # Kuck and Associates, Inc. (KAI) C++ Compiler
3612
3613 # KCC will only create a shared library if the output file
3614 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3615 # to its proper name (with version) after linking.
3616 _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3617
3618 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3619 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3620
3621 # Archives containing C++ object files must be created using
3622 # the KAI C++ compiler.
3623 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3624 ;;
3625 RCC*)
3626 # Rational C++ 2.4.1
3627 # FIXME: insert proper C++ library support
3628 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3629 ;;
3630 cxx*)
3631 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3632 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3633 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3634 echo "-hidden">> $lib.exp~
3635 $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~
3636 $rm $lib.exp'
3637
3638 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3639 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3640
3641 # Commands to make compiler produce verbose output that lists
3642 # what "hidden" libraries, object files and flags are used when
3643 # linking a shared library.
3644 #
3645 # There doesn't appear to be a way to prevent this compiler from
3646 # explicitly linking system object files so we need to strip them
3647 # from the output so that they don't get included in the library
3648 # dependencies.
3649 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3650 ;;
3651 *)
3652 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3653 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3654 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3655
3656 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3657 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3658
3659 # Commands to make compiler produce verbose output that lists
3660 # what "hidden" libraries, object files and flags are used when
3661 # linking a shared library.
3662 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3663
3664 else
3665 # FIXME: insert proper C++ library support
3666 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3667 fi
3668 ;;
3669 esac
3670 ;;
3671 psos*)
3672 # FIXME: insert proper C++ library support
3673 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3674 ;;
3675 sunos4*)
3676 case $cc_basename in
3677 CC*)
3678 # Sun C++ 4.x
3679 # FIXME: insert proper C++ library support
3680 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3681 ;;
3682 lcc*)
3683 # Lucid
3684 # FIXME: insert proper C++ library support
3685 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3686 ;;
3687 *)
3688 # FIXME: insert proper C++ library support
3689 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3690 ;;
3691 esac
3692 ;;
3693 solaris*)
3694 case $cc_basename in
3695 CC*)
3696 # Sun C++ 4.2, 5.x and Centerline C++
3697 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3698 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3699 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3700 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3701 $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'
3702
3703 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3704 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3705 case $host_os in
3706 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3707 *)
3708 # The compiler driver will combine and reorder linker options,
3709 # but understands `-z linker_flag'.
3710 # Supported since Solaris 2.6 (maybe 2.5.1?)
3711 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3712 ;;
3713 esac
3714 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3715
3716 output_verbose_link_cmd='echo'
3717
3718 # Archives containing C++ object files must be created using
3719 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3720 # necessary to make sure instantiated templates are included
3721 # in the archive.
3722 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3723 ;;
3724 gcx*)
3725 # Green Hills C++ Compiler
3726 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3727
3728 # The C++ compiler must be used to create the archive.
3729 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3730 ;;
3731 *)
3732 # GNU C++ compiler with Solaris linker
3733 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3734 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3735 if $CC --version | grep -v '^2\.7' > /dev/null; then
3736 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3737 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3738 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3739
3740 # Commands to make compiler produce verbose output that lists
3741 # what "hidden" libraries, object files and flags are used when
3742 # linking a shared library.
3743 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3744 else
3745 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3746 # platform.
3747 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3748 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3749 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3750
3751 # Commands to make compiler produce verbose output that lists
3752 # what "hidden" libraries, object files and flags are used when
3753 # linking a shared library.
3754 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3755 fi
3756
3757 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3758 case $host_os in
3759 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3760 *)
3761 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3762 ;;
3763 esac
3764 fi
3765 ;;
3766 esac
3767 ;;
3768 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3769 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3770 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3771 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3772 runpath_var='LD_RUN_PATH'
3773
3774 case $cc_basename in
3775 CC*)
3776 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3777 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3778 ;;
3779 *)
3780 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3781 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3782 ;;
3783 esac
3784 ;;
3785 sysv5* | sco3.2v5* | sco5v6*)
3786 # Note: We can NOT use -z defs as we might desire, because we do not
3787 # link with -lc, and that would cause any symbols used from libc to
3788 # always be unresolved, which means just about no library would
3789 # ever link correctly. If we're not using GNU ld we use -z text
3790 # though, which does catch some bad symbols but isn't as heavy-handed
3791 # as -z defs.
3792 # For security reasons, it is highly recommended that you always
3793 # use absolute paths for naming shared libraries, and exclude the
3794 # DT_RUNPATH tag from executables and libraries. But doing so
3795 # requires that you compile everything twice, which is a pain.
3796 # So that behaviour is only enabled if SCOABSPATH is set to a
3797 # non-empty value in the environment. Most likely only useful for
3798 # creating official distributions of packages.
3799 # This is a hack until libtool officially supports absolute path
3800 # names for shared libraries.
3801 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3802 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3803 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3804 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3805 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3806 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3807 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3808 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3809 runpath_var='LD_RUN_PATH'
3810
3811 case $cc_basename in
3812 CC*)
3813 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3814 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3815 ;;
3816 *)
3817 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3818 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3819 ;;
3820 esac
3821 ;;
3822 tandem*)
3823 case $cc_basename in
3824 NCC*)
3825 # NonStop-UX NCC 3.20
3826 # FIXME: insert proper C++ library support
3827 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3828 ;;
3829 *)
3830 # FIXME: insert proper C++ library support
3831 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3832 ;;
3833 esac
3834 ;;
3835 vxworks*)
3836 # FIXME: insert proper C++ library support
3837 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3838 ;;
3839 *)
3840 # FIXME: insert proper C++ library support
3841 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3842 ;;
3843 esac
3844 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3845 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3846
3847 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3848 _LT_AC_TAGVAR(LD, $1)="$LD"
3849
3850 AC_LIBTOOL_POSTDEP_PREDEP($1)
3851 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3852 AC_LIBTOOL_PROG_CC_C_O($1)
3853 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3854 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3855 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3856 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3857
3858 AC_LIBTOOL_CONFIG($1)
3859
3860 AC_LANG_POP
3861 CC=$lt_save_CC
3862 LDCXX=$LD
3863 LD=$lt_save_LD
3864 GCC=$lt_save_GCC
3865 with_gnu_ldcxx=$with_gnu_ld
3866 with_gnu_ld=$lt_save_with_gnu_ld
3867 lt_cv_path_LDCXX=$lt_cv_path_LD
3868 lt_cv_path_LD=$lt_save_path_LD
3869 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3870 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3871 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3872
3873 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3874 # ------------------------------------
3875 # Figure out "hidden" library dependencies from verbose
3876 # compiler output when linking a shared library.
3877 # Parse the compiler output and extract the necessary
3878 # objects, libraries and library flags.
3879 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3880 [AC_REQUIRE([LT_AC_PROG_SED])dnl
3881 dnl we can't use the lt_simple_compile_test_code here,
3882 dnl because it contains code intended for an executable,
3883 dnl not a library. It's possible we should let each
3884 dnl tag define a new lt_????_link_test_code variable,
3885 dnl but it's only used here...
3886 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3887 int a;
3888 void foo (void) { a = 0; }
3889 EOF
3890 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3891 class Foo
3892 {
3893 public:
3894 Foo (void) { a = 0; }
3895 private:
3896 int a;
3897 };
3898 EOF
3899 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3900 subroutine foo
3901 implicit none
3902 integer*4 a
3903 a=0
3904 return
3905 end
3906 EOF
3907 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3908 public class foo {
3909 private int a;
3910 public void bar (void) {
3911 a = 0;
3912 }
3913 };
3914 EOF
3915 ])
3916 dnl Parse the compiler output and extract the necessary
3917 dnl objects, libraries and library flags.
3918 if AC_TRY_EVAL(ac_compile); then
3919 # Parse the compiler output and extract the necessary
3920 # objects, libraries and library flags.
3921
3922 # Sentinel used to keep track of whether or not we are before
3923 # the conftest object file.
3924 pre_test_object_deps_done=no
3925
3926 # The `*' in the case matches for architectures that use `case' in
3927 # $output_verbose_cmd can trigger glob expansion during the loop
3928 # eval without this substitution.
3929 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3930
3931 for p in `eval $output_verbose_link_cmd`; do
3932 case $p in
3933
3934 -L* | -R* | -l*)
3935 # Some compilers place space between "-{L,R}" and the path.
3936 # Remove the space.
3937 if test $p = "-L" \
3938 || test $p = "-R"; then
3939 prev=$p
3940 continue
3941 else
3942 prev=
3943 fi
3944
3945 if test "$pre_test_object_deps_done" = no; then
3946 case $p in
3947 -L* | -R*)
3948 # Internal compiler library paths should come after those
3949 # provided the user. The postdeps already come after the
3950 # user supplied libs so there is no need to process them.
3951 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3952 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3953 else
3954 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3955 fi
3956 ;;
3957 # The "-l" case would never come before the object being
3958 # linked, so don't bother handling this case.
3959 esac
3960 else
3961 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3962 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3963 else
3964 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3965 fi
3966 fi
3967 ;;
3968
3969 *.$objext)
3970 # This assumes that the test object file only shows up
3971 # once in the compiler output.
3972 if test "$p" = "conftest.$objext"; then
3973 pre_test_object_deps_done=yes
3974 continue
3975 fi
3976
3977 if test "$pre_test_object_deps_done" = no; then
3978 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3979 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3980 else
3981 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3982 fi
3983 else
3984 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3985 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3986 else
3987 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3988 fi
3989 fi
3990 ;;
3991
3992 *) ;; # Ignore the rest.
3993
3994 esac
3995 done
3996
3997 # Clean up.
3998 rm -f a.out a.exe
3999 else
4000 echo "libtool.m4: error: problem compiling $1 test program"
4001 fi
4002
4003 $rm -f confest.$objext
4004
4005 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4006 if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4007 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4008 fi
4009
4010 # PORTME: override above test on systems where it is broken
4011 ifelse([$1],[CXX],
4012 [case $host_os in
4013 interix[[3-9]]*)
4014 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4015 # hack all around it, let's just trust "g++" to DTRT.
4016 _LT_AC_TAGVAR(predep_objects,$1)=
4017 _LT_AC_TAGVAR(postdep_objects,$1)=
4018 _LT_AC_TAGVAR(postdeps,$1)=
4019 ;;
4020
4021 linux*)
4022 case `$CC -V 2>&1 | sed 5q` in
4023 *Sun\ C*)
4024 # Sun C++ 5.9
4025 #
4026 # The more standards-conforming stlport4 library is
4027 # incompatible with the Cstd library. Avoid specifying
4028 # it if it's in CXXFLAGS. Ignore libCrun as
4029 # -library=stlport4 depends on it.
4030 case " $CXX $CXXFLAGS " in
4031 *" -library=stlport4 "*)
4032 solaris_use_stlport4=yes
4033 ;;
4034 esac
4035 if test "$solaris_use_stlport4" != yes; then
4036 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4037 fi
4038 ;;
4039 esac
4040 ;;
4041
4042 solaris*)
4043 case $cc_basename in
4044 CC*)
4045 # The more standards-conforming stlport4 library is
4046 # incompatible with the Cstd library. Avoid specifying
4047 # it if it's in CXXFLAGS. Ignore libCrun as
4048 # -library=stlport4 depends on it.
4049 case " $CXX $CXXFLAGS " in
4050 *" -library=stlport4 "*)
4051 solaris_use_stlport4=yes
4052 ;;
4053 esac
4054
4055 # Adding this requires a known-good setup of shared libraries for
4056 # Sun compiler versions before 5.6, else PIC objects from an old
4057 # archive will be linked into the output, leading to subtle bugs.
4058 if test "$solaris_use_stlport4" != yes; then
4059 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4060 fi
4061 ;;
4062 esac
4063 ;;
4064 esac
4065 ])
4066 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4067 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4068 esac
4069 ])# AC_LIBTOOL_POSTDEP_PREDEP
4070
4071 # AC_LIBTOOL_LANG_F77_CONFIG
4072 # --------------------------
4073 # Ensure that the configuration vars for the C compiler are
4074 # suitably defined. Those variables are subsequently used by
4075 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4076 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4077 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4078 [AC_REQUIRE([AC_PROG_F77])
4079 AC_LANG_PUSH(Fortran 77)
4080
4081 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4082 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4083 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4084 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4085 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4086 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4087 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4088 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4089 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4090 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4091 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4092 _LT_AC_TAGVAR(module_cmds, $1)=
4093 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4094 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4095 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4096 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4097 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4098 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4099
4100 # Source file extension for f77 test sources.
4101 ac_ext=f
4102
4103 # Object file extension for compiled f77 test sources.
4104 objext=o
4105 _LT_AC_TAGVAR(objext, $1)=$objext
4106
4107 # Code to be used in simple compile tests
4108 lt_simple_compile_test_code="\
4109 subroutine t
4110 return
4111 end
4112 "
4113
4114 # Code to be used in simple link tests
4115 lt_simple_link_test_code="\
4116 program t
4117 end
4118 "
4119
4120 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4121 _LT_AC_SYS_COMPILER
4122
4123 # save warnings/boilerplate of simple test code
4124 _LT_COMPILER_BOILERPLATE
4125 _LT_LINKER_BOILERPLATE
4126
4127 # Allow CC to be a program name with arguments.
4128 lt_save_CC="$CC"
4129 CC=${F77-"f77"}
4130 compiler=$CC
4131 _LT_AC_TAGVAR(compiler, $1)=$CC
4132 _LT_CC_BASENAME([$compiler])
4133
4134 AC_MSG_CHECKING([if libtool supports shared libraries])
4135 AC_MSG_RESULT([$can_build_shared])
4136
4137 AC_MSG_CHECKING([whether to build shared libraries])
4138 test "$can_build_shared" = "no" && enable_shared=no
4139
4140 # On AIX, shared libraries and static libraries use the same namespace, and
4141 # are all built from PIC.
4142 case $host_os in
4143 aix3*)
4144 test "$enable_shared" = yes && enable_static=no
4145 if test -n "$RANLIB"; then
4146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4147 postinstall_cmds='$RANLIB $lib'
4148 fi
4149 ;;
4150 aix[[4-9]]*)
4151 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4152 test "$enable_shared" = yes && enable_static=no
4153 fi
4154 ;;
4155 esac
4156 AC_MSG_RESULT([$enable_shared])
4157
4158 AC_MSG_CHECKING([whether to build static libraries])
4159 # Make sure either enable_shared or enable_static is yes.
4160 test "$enable_shared" = yes || enable_static=yes
4161 AC_MSG_RESULT([$enable_static])
4162
4163 _LT_AC_TAGVAR(GCC, $1)="$G77"
4164 _LT_AC_TAGVAR(LD, $1)="$LD"
4165
4166 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4167 AC_LIBTOOL_PROG_CC_C_O($1)
4168 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4169 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4170 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4171 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4172
4173 AC_LIBTOOL_CONFIG($1)
4174
4175 AC_LANG_POP
4176 CC="$lt_save_CC"
4177 ])# AC_LIBTOOL_LANG_F77_CONFIG
4178
4179
4180 # AC_LIBTOOL_LANG_GCJ_CONFIG
4181 # --------------------------
4182 # Ensure that the configuration vars for the C compiler are
4183 # suitably defined. Those variables are subsequently used by
4184 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4185 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4186 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4187 [AC_LANG_SAVE
4188
4189 # Source file extension for Java test sources.
4190 ac_ext=java
4191
4192 # Object file extension for compiled Java test sources.
4193 objext=o
4194 _LT_AC_TAGVAR(objext, $1)=$objext
4195
4196 # Code to be used in simple compile tests
4197 lt_simple_compile_test_code="class foo {}"
4198
4199 # Code to be used in simple link tests
4200 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4201
4202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4203 _LT_AC_SYS_COMPILER
4204
4205 # save warnings/boilerplate of simple test code
4206 _LT_COMPILER_BOILERPLATE
4207 _LT_LINKER_BOILERPLATE
4208
4209 # Allow CC to be a program name with arguments.
4210 lt_save_CC="$CC"
4211 CC=${GCJ-"gcj"}
4212 compiler=$CC
4213 _LT_AC_TAGVAR(compiler, $1)=$CC
4214 _LT_CC_BASENAME([$compiler])
4215
4216 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4217 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4218
4219 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4220
4221 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4222 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4223 AC_LIBTOOL_PROG_CC_C_O($1)
4224 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4225 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4226 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4227 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4228
4229 AC_LIBTOOL_CONFIG($1)
4230
4231 AC_LANG_RESTORE
4232 CC="$lt_save_CC"
4233 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4234
4235
4236 # AC_LIBTOOL_LANG_RC_CONFIG
4237 # -------------------------
4238 # Ensure that the configuration vars for the Windows resource compiler are
4239 # suitably defined. Those variables are subsequently used by
4240 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4241 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4242 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4243 [AC_LANG_SAVE
4244
4245 # Source file extension for RC test sources.
4246 ac_ext=rc
4247
4248 # Object file extension for compiled RC test sources.
4249 objext=o
4250 _LT_AC_TAGVAR(objext, $1)=$objext
4251
4252 # Code to be used in simple compile tests
4253 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4254
4255 # Code to be used in simple link tests
4256 lt_simple_link_test_code="$lt_simple_compile_test_code"
4257
4258 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4259 _LT_AC_SYS_COMPILER
4260
4261 # save warnings/boilerplate of simple test code
4262 _LT_COMPILER_BOILERPLATE
4263 _LT_LINKER_BOILERPLATE
4264
4265 # Allow CC to be a program name with arguments.
4266 lt_save_CC="$CC"
4267 CC=${RC-"windres"}
4268 compiler=$CC
4269 _LT_AC_TAGVAR(compiler, $1)=$CC
4270 _LT_CC_BASENAME([$compiler])
4271 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4272
4273 AC_LIBTOOL_CONFIG($1)
4274
4275 AC_LANG_RESTORE
4276 CC="$lt_save_CC"
4277 ])# AC_LIBTOOL_LANG_RC_CONFIG
4278
4279
4280 # AC_LIBTOOL_CONFIG([TAGNAME])
4281 # ----------------------------
4282 # If TAGNAME is not passed, then create an initial libtool script
4283 # with a default configuration from the untagged config vars. Otherwise
4284 # add code to config.status for appending the configuration named by
4285 # TAGNAME from the matching tagged config vars.
4286 AC_DEFUN([AC_LIBTOOL_CONFIG],
4287 [# The else clause should only fire when bootstrapping the
4288 # libtool distribution, otherwise you forgot to ship ltmain.sh
4289 # with your package, and you will get complaints that there are
4290 # no rules to generate ltmain.sh.
4291 if test -f "$ltmain"; then
4292 # See if we are running on zsh, and set the options which allow our commands through
4293 # without removal of \ escapes.
4294 if test -n "${ZSH_VERSION+set}" ; then
4295 setopt NO_GLOB_SUBST
4296 fi
4297 # Now quote all the things that may contain metacharacters while being
4298 # careful not to overquote the AC_SUBSTed values. We take copies of the
4299 # variables and quote the copies for generation of the libtool script.
4300 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4301 SED SHELL STRIP \
4302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4304 deplibs_check_method reload_flag reload_cmds need_locks \
4305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4306 lt_cv_sys_global_symbol_to_c_name_address \
4307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4308 old_postinstall_cmds old_postuninstall_cmds \
4309 _LT_AC_TAGVAR(compiler, $1) \
4310 _LT_AC_TAGVAR(CC, $1) \
4311 _LT_AC_TAGVAR(LD, $1) \
4312 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4313 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4314 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4315 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4316 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4317 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4318 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4319 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4320 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4321 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4322 _LT_AC_TAGVAR(predep_objects, $1) \
4323 _LT_AC_TAGVAR(postdep_objects, $1) \
4324 _LT_AC_TAGVAR(predeps, $1) \
4325 _LT_AC_TAGVAR(postdeps, $1) \
4326 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4327 _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4328 _LT_AC_TAGVAR(archive_cmds, $1) \
4329 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4330 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4331 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4332 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4333 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4334 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4335 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4336 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4337 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4338 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4339 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4340 _LT_AC_TAGVAR(module_cmds, $1) \
4341 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4342 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4343 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4344 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4345 _LT_AC_TAGVAR(include_expsyms, $1); do
4346
4347 case $var in
4348 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4349 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4350 _LT_AC_TAGVAR(archive_cmds, $1) | \
4351 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4352 _LT_AC_TAGVAR(module_cmds, $1) | \
4353 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4354 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4355 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4356 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4357 postinstall_cmds | postuninstall_cmds | \
4358 old_postinstall_cmds | old_postuninstall_cmds | \
4359 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4360 # Double-quote double-evaled strings.
4361 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4362 ;;
4363 *)
4364 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4365 ;;
4366 esac
4367 done
4368
4369 case $lt_echo in
4370 *'\[$]0 --fallback-echo"')
4371 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4372 ;;
4373 esac
4374
4375 ifelse([$1], [],
4376 [cfgfile="${ofile}T"
4377 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4378 $rm -f "$cfgfile"
4379 AC_MSG_NOTICE([creating $ofile])],
4380 [cfgfile="$ofile"])
4381
4382 cat <<__EOF__ >> "$cfgfile"
4383 ifelse([$1], [],
4384 [#! $SHELL
4385
4386 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4387 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4388 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4389 #
4390 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4391 # Free Software Foundation, Inc.
4392 #
4393 # This file is part of GNU Libtool:
4394 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4395 #
4396 # This program is free software; you can redistribute it and/or modify
4397 # it under the terms of the GNU General Public License as published by
4398 # the Free Software Foundation; either version 2 of the License, or
4399 # (at your option) any later version.
4400 #
4401 # This program is distributed in the hope that it will be useful, but
4402 # WITHOUT ANY WARRANTY; without even the implied warranty of
4403 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4404 # General Public License for more details.
4405 #
4406 # You should have received a copy of the GNU General Public License
4407 # along with this program; if not, write to the Free Software
4408 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4409 #
4410 # As a special exception to the GNU General Public License, if you
4411 # distribute this file as part of a program that contains a
4412 # configuration script generated by Autoconf, you may include it under
4413 # the same distribution terms that you use for the rest of that program.
4414
4415 # A sed program that does not truncate output.
4416 SED=$lt_SED
4417
4418 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4419 Xsed="$SED -e 1s/^X//"
4420
4421 # The HP-UX ksh and POSIX shell print the target directory to stdout
4422 # if CDPATH is set.
4423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4424
4425 # The names of the tagged configurations supported by this script.
4426 available_tags=
4427
4428 # ### BEGIN LIBTOOL CONFIG],
4429 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4430
4431 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4432
4433 # Shell to use when invoking shell scripts.
4434 SHELL=$lt_SHELL
4435
4436 # Whether or not to build shared libraries.
4437 build_libtool_libs=$enable_shared
4438
4439 # Whether or not to build static libraries.
4440 build_old_libs=$enable_static
4441
4442 # Whether or not to add -lc for building shared libraries.
4443 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4444
4445 # Whether or not to disallow shared libs when runtime libs are static
4446 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4447
4448 # Whether or not to optimize for fast installation.
4449 fast_install=$enable_fast_install
4450
4451 # The host system.
4452 host_alias=$host_alias
4453 host=$host
4454 host_os=$host_os
4455
4456 # The build system.
4457 build_alias=$build_alias
4458 build=$build
4459 build_os=$build_os
4460
4461 # An echo program that does not interpret backslashes.
4462 echo=$lt_echo
4463
4464 # The archiver.
4465 AR=$lt_AR
4466 AR_FLAGS=$lt_AR_FLAGS
4467
4468 # A C compiler.
4469 LTCC=$lt_LTCC
4470
4471 # LTCC compiler flags.
4472 LTCFLAGS=$lt_LTCFLAGS
4473
4474 # A language-specific compiler.
4475 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4476
4477 # Is the compiler the GNU C compiler?
4478 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4479
4480 # An ERE matcher.
4481 EGREP=$lt_EGREP
4482
4483 # The linker used to build libraries.
4484 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4485
4486 # Whether we need hard or soft links.
4487 LN_S=$lt_LN_S
4488
4489 # A BSD-compatible nm program.
4490 NM=$lt_NM
4491
4492 # A symbol stripping program
4493 STRIP=$lt_STRIP
4494
4495 # Used to examine libraries when file_magic_cmd begins "file"
4496 MAGIC_CMD=$MAGIC_CMD
4497
4498 # Used on cygwin: DLL creation program.
4499 DLLTOOL="$DLLTOOL"
4500
4501 # Used on cygwin: object dumper.
4502 OBJDUMP="$OBJDUMP"
4503
4504 # Used on cygwin: assembler.
4505 AS="$AS"
4506
4507 # The name of the directory that contains temporary libtool files.
4508 objdir=$objdir
4509
4510 # How to create reloadable object files.
4511 reload_flag=$lt_reload_flag
4512 reload_cmds=$lt_reload_cmds
4513
4514 # How to pass a linker flag through the compiler.
4515 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4516
4517 # Object file suffix (normally "o").
4518 objext="$ac_objext"
4519
4520 # Old archive suffix (normally "a").
4521 libext="$libext"
4522
4523 # Shared library suffix (normally ".so").
4524 shrext_cmds='$shrext_cmds'
4525
4526 # Executable file suffix (normally "").
4527 exeext="$exeext"
4528
4529 # Additional compiler flags for building library objects.
4530 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4531 pic_mode=$pic_mode
4532
4533 # What is the maximum length of a command?
4534 max_cmd_len=$lt_cv_sys_max_cmd_len
4535
4536 # Does compiler simultaneously support -c and -o options?
4537 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4538
4539 # Must we lock files when doing compilation?
4540 need_locks=$lt_need_locks
4541
4542 # Do we need the lib prefix for modules?
4543 need_lib_prefix=$need_lib_prefix
4544
4545 # Do we need a version for libraries?
4546 need_version=$need_version
4547
4548 # Whether dlopen is supported.
4549 dlopen_support=$enable_dlopen
4550
4551 # Whether dlopen of programs is supported.
4552 dlopen_self=$enable_dlopen_self
4553
4554 # Whether dlopen of statically linked programs is supported.
4555 dlopen_self_static=$enable_dlopen_self_static
4556
4557 # Compiler flag to prevent dynamic linking.
4558 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4559
4560 # Compiler flag to turn off builtin functions.
4561 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4562
4563 # Compiler flag to allow reflexive dlopens.
4564 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4565
4566 # Compiler flag to generate shared objects directly from archives.
4567 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4568
4569 # Compiler flag to generate thread-safe objects.
4570 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4571
4572 # Library versioning type.
4573 version_type=$version_type
4574
4575 # Format of library name prefix.
4576 libname_spec=$lt_libname_spec
4577
4578 # List of archive names. First name is the real one, the rest are links.
4579 # The last name is the one that the linker finds with -lNAME.
4580 library_names_spec=$lt_library_names_spec
4581
4582 # The coded name of the library, if different from the real name.
4583 soname_spec=$lt_soname_spec
4584
4585 # Commands used to build and install an old-style archive.
4586 RANLIB=$lt_RANLIB
4587 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4588 old_postinstall_cmds=$lt_old_postinstall_cmds
4589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4590
4591 # Create an old-style archive from a shared archive.
4592 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4593
4594 # Create a temporary old-style archive to link instead of a shared archive.
4595 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4596
4597 # Commands used to build and install a shared archive.
4598 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4599 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4600 postinstall_cmds=$lt_postinstall_cmds
4601 postuninstall_cmds=$lt_postuninstall_cmds
4602
4603 # Commands used to build a loadable module (assumed same as above if empty)
4604 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4605 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4606
4607 # Commands to strip libraries.
4608 old_striplib=$lt_old_striplib
4609 striplib=$lt_striplib
4610
4611 # Dependencies to place before the objects being linked to create a
4612 # shared library.
4613 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4614
4615 # Dependencies to place after the objects being linked to create a
4616 # shared library.
4617 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4618
4619 # Dependencies to place before the objects being linked to create a
4620 # shared library.
4621 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4622
4623 # Dependencies to place after the objects being linked to create a
4624 # shared library.
4625 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4626
4627 # The directories searched by this compiler when creating a shared
4628 # library
4629 compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4630
4631 # The library search path used internally by the compiler when linking
4632 # a shared library.
4633 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4634
4635 # Method to check whether dependent libraries are shared objects.
4636 deplibs_check_method=$lt_deplibs_check_method
4637
4638 # Command to use when deplibs_check_method == file_magic.
4639 file_magic_cmd=$lt_file_magic_cmd
4640
4641 # Flag that allows shared libraries with undefined symbols to be built.
4642 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4643
4644 # Flag that forces no undefined symbols.
4645 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4646
4647 # Commands used to finish a libtool library installation in a directory.
4648 finish_cmds=$lt_finish_cmds
4649
4650 # Same as above, but a single script fragment to be evaled but not shown.
4651 finish_eval=$lt_finish_eval
4652
4653 # Take the output of nm and produce a listing of raw symbols and C names.
4654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4655
4656 # Transform the output of nm in a proper C declaration
4657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4658
4659 # Transform the output of nm in a C name address pair
4660 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4661
4662 # This is the shared library runtime path variable.
4663 runpath_var=$runpath_var
4664
4665 # This is the shared library path variable.
4666 shlibpath_var=$shlibpath_var
4667
4668 # Is shlibpath searched before the hard-coded library search path?
4669 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4670
4671 # How to hardcode a shared library path into an executable.
4672 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4673
4674 # Whether we should hardcode library paths into libraries.
4675 hardcode_into_libs=$hardcode_into_libs
4676
4677 # Flag to hardcode \$libdir into a binary during linking.
4678 # This must work even if \$libdir does not exist.
4679 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4680
4681 # If ld is used when linking, flag to hardcode \$libdir into
4682 # a binary during linking. This must work even if \$libdir does
4683 # not exist.
4684 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4685
4686 # Whether we need a single -rpath flag with a separated argument.
4687 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4688
4689 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4690 # resulting binary.
4691 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4692
4693 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4694 # resulting binary.
4695 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4696
4697 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4698 # the resulting binary.
4699 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4700
4701 # Set to yes if building a shared library automatically hardcodes DIR into the library
4702 # and all subsequent libraries and executables linked against it.
4703 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4704
4705 # Variables whose values should be saved in libtool wrapper scripts and
4706 # restored at relink time.
4707 variables_saved_for_relink="$variables_saved_for_relink"
4708
4709 # Whether libtool must link a program against all its dependency libraries.
4710 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4711
4712 # Compile-time system search path for libraries
4713 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4714
4715 # Run-time system search path for libraries
4716 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4717
4718 # Fix the shell variable \$srcfile for the compiler.
4719 fix_srcfile_path=$lt_fix_srcfile_path
4720
4721 # Set to yes if exported symbols are required.
4722 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4723
4724 # The commands to list exported symbols.
4725 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4726
4727 # The commands to extract the exported symbol list from a shared archive.
4728 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4729
4730 # Symbols that should not be listed in the preloaded symbols.
4731 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4732
4733 # Symbols that must always be exported.
4734 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4735
4736 ifelse([$1],[],
4737 [# ### END LIBTOOL CONFIG],
4738 [# ### END LIBTOOL TAG CONFIG: $tagname])
4739
4740 __EOF__
4741
4742 ifelse([$1],[], [
4743 case $host_os in
4744 aix3*)
4745 cat <<\EOF >> "$cfgfile"
4746
4747 # AIX sometimes has problems with the GCC collect2 program. For some
4748 # reason, if we set the COLLECT_NAMES environment variable, the problems
4749 # vanish in a puff of smoke.
4750 if test "X${COLLECT_NAMES+set}" != Xset; then
4751 COLLECT_NAMES=
4752 export COLLECT_NAMES
4753 fi
4754 EOF
4755 ;;
4756 esac
4757
4758 # We use sed instead of cat because bash on DJGPP gets confused if
4759 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4760 # text mode, it properly converts lines to CR/LF. This bash problem
4761 # is reportedly fixed, but why not run on old versions too?
4762 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4763
4764 mv -f "$cfgfile" "$ofile" || \
4765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4766 chmod +x "$ofile"
4767 ])
4768 else
4769 # If there is no Makefile yet, we rely on a make rule to execute
4770 # `config.status --recheck' to rerun these tests and create the
4771 # libtool script then.
4772 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4773 if test -f "$ltmain_in"; then
4774 test -f Makefile && make "$ltmain"
4775 fi
4776 fi
4777 ])# AC_LIBTOOL_CONFIG
4778
4779
4780 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4781 # -------------------------------------------
4782 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4783 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4784
4785 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3288 AC_SUBST([LIBM])
3289 ])# LT_LIB_M
3290
3291 # Old name:
3292 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3293 dnl aclocal-1.4 backwards compatibility:
3294 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3295
3296
3297 # _LT_COMPILER_NO_RTTI([TAGNAME])
3298 # -------------------------------
3299 m4_defun([_LT_COMPILER_NO_RTTI],
3300 [m4_require([_LT_TAG_COMPILER])dnl
3301
3302 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
47863303
47873304 if test "$GCC" = yes; then
4788 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4789
4790 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3305 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3306
3307 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
47913308 lt_cv_prog_compiler_rtti_exceptions,
47923309 [-fno-rtti -fno-exceptions], [],
4793 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3310 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
47943311 fi
4795 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4796
4797
4798 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4799 # ---------------------------------
4800 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4801 [AC_REQUIRE([AC_CANONICAL_HOST])
4802 AC_REQUIRE([LT_AC_PROG_SED])
4803 AC_REQUIRE([AC_PROG_NM])
4804 AC_REQUIRE([AC_OBJEXT])
3312 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3313 [Compiler flag to turn off builtin functions])
3314 ])# _LT_COMPILER_NO_RTTI
3315
3316
3317 # _LT_CMD_GLOBAL_SYMBOLS
3318 # ----------------------
3319 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3320 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3321 AC_REQUIRE([AC_PROG_CC])dnl
3322 AC_REQUIRE([LT_PATH_NM])dnl
3323 AC_REQUIRE([LT_PATH_LD])dnl
3324 m4_require([_LT_DECL_SED])dnl
3325 m4_require([_LT_DECL_EGREP])dnl
3326 m4_require([_LT_TAG_COMPILER])dnl
3327
48053328 # Check for command to grab the raw symbol name followed by C symbol from nm.
48063329 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
48073330 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
48153338 # Regexp to match symbols that can be accessed directly from C.
48163339 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
48173340
4818 # Transform an extracted symbol line into a proper C declaration
4819 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4820
4821 # Transform an extracted symbol line into symbol name and symbol address
4822 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4823
48243341 # Define system-specific variables.
48253342 case $host_os in
48263343 aix*)
48293346 cygwin* | mingw* | pw32*)
48303347 symcode='[[ABCDGISTW]]'
48313348 ;;
4832 hpux*) # Its linker distinguishes data from code symbols
3349 hpux*)
48333350 if test "$host_cpu" = ia64; then
48343351 symcode='[[ABCDEGRST]]'
48353352 fi
4836 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4837 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4838 ;;
4839 linux* | k*bsd*-gnu)
4840 if test "$host_cpu" = ia64; then
4841 symcode='[[ABCDGIRSTW]]'
4842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4843 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4844 fi
48453353 ;;
48463354 irix* | nonstopux*)
48473355 symcode='[[BCDEGRST]]'
48633371 ;;
48643372 sysv4)
48653373 symcode='[[DFNSTU]]'
4866 ;;
4867 esac
4868
4869 # Handle CRLF in mingw tool chain
4870 opt_cr=
4871 case $build_os in
4872 mingw*)
4873 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
48743374 ;;
48753375 esac
48763376
48803380 symcode='[[ABCDGIRSTW]]' ;;
48813381 esac
48823382
4883 # Try without a prefix undercore, then with it.
3383 # Transform an extracted symbol line into a proper C declaration.
3384 # Some systems (esp. on ia64) link data and code symbols differently,
3385 # so use this general approach.
3386 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3387
3388 # Transform an extracted symbol line into symbol name and symbol address
3389 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3390 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'"
3391
3392 # Handle CRLF in mingw tool chain
3393 opt_cr=
3394 case $build_os in
3395 mingw*)
3396 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3397 ;;
3398 esac
3399
3400 # Try without a prefix underscore, then with it.
48843401 for ac_symprfx in "" "_"; do
48853402
48863403 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
48873404 symxfrm="\\1 $ac_symprfx\\2 \\2"
48883405
48893406 # Write the raw and C identifiers.
4890 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3407 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3408 # Fake it for dumpbin and say T for any non-static function
3409 # and D for any global variable.
3410 # Also find C++ and __fastcall symbols from MSVC++,
3411 # which start with @ or ?.
3412 lt_cv_sys_global_symbol_pipe="$AWK ['"\
3413 " {last_section=section; section=\$ 3};"\
3414 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
3415 " \$ 0!~/External *\|/{next};"\
3416 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
3417 " {if(hide[section]) next};"\
3418 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3419 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3420 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3421 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
3422 " ' prfx=^$ac_symprfx]"
3423 else
3424 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
3425 fi
48913426
48923427 # Check to see that the pipe works correctly.
48933428 pipe_works=no
48943429
48953430 rm -f conftest*
4896 cat > conftest.$ac_ext <<EOF
3431 cat > conftest.$ac_ext <<_LT_EOF
48973432 #ifdef __cplusplus
48983433 extern "C" {
48993434 #endif
49003435 char nm_test_var;
4901 void nm_test_func(){}
3436 void nm_test_func(void);
3437 void nm_test_func(void){}
49023438 #ifdef __cplusplus
49033439 }
49043440 #endif
49053441 int main(){nm_test_var='a';nm_test_func();return(0);}
4906 EOF
3442 _LT_EOF
49073443
49083444 if AC_TRY_EVAL(ac_compile); then
49093445 # Now try to grab the symbols.
49173453 fi
49183454
49193455 # Make sure that we snagged all the symbols we need.
4920 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4921 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4922 cat <<EOF > conftest.$ac_ext
3456 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
3457 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
3458 cat <<_LT_EOF > conftest.$ac_ext
49233459 #ifdef __cplusplus
49243460 extern "C" {
49253461 #endif
49263462
4927 EOF
3463 _LT_EOF
49283464 # Now generate the symbol file.
4929 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4930
4931 cat <<EOF >> conftest.$ac_ext
4932 #if defined (__STDC__) && __STDC__
4933 # define lt_ptr_t void *
4934 #else
4935 # define lt_ptr_t char *
4936 # define const
4937 #endif
4938
4939 /* The mapping between symbol names and symbols. */
3465 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
3466
3467 cat <<_LT_EOF >> conftest.$ac_ext
3468
3469 /* The mapping between symbol names and symbols. */
49403470 const struct {
49413471 const char *name;
4942 lt_ptr_t address;
3472 void *address;
49433473 }
4944 lt_preloaded_symbols[[]] =
3474 lt__PROGRAM__LTX_preloaded_symbols[[]] =
49453475 {
4946 EOF
4947 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4948 cat <<\EOF >> conftest.$ac_ext
4949 {0, (lt_ptr_t) 0}
3476 { "@PROGRAM@", (void *) 0 },
3477 _LT_EOF
3478 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
3479 cat <<\_LT_EOF >> conftest.$ac_ext
3480 {0, (void *) 0}
49503481 };
3482
3483 /* This works around a problem in FreeBSD linker */
3484 #ifdef FREEBSD_WORKAROUND
3485 static const void *lt_preloaded_setup() {
3486 return lt__PROGRAM__LTX_preloaded_symbols;
3487 }
3488 #endif
49513489
49523490 #ifdef __cplusplus
49533491 }
49543492 #endif
4955 EOF
3493 _LT_EOF
49563494 # Now try linking the two files.
49573495 mv conftest.$ac_objext conftstm.$ac_objext
49583496 lt_save_LIBS="$LIBS"
49593497 lt_save_CFLAGS="$CFLAGS"
49603498 LIBS="conftstm.$ac_objext"
4961 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3499 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
49623500 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
49633501 pipe_works=yes
49643502 fi
49953533 else
49963534 AC_MSG_RESULT(ok)
49973535 fi
4998 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4999
5000
5001 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5002 # ---------------------------------------
5003 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5004 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5005 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5006 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
3536
3537 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
3538 [Take the output of nm and produce a listing of raw symbols and C names])
3539 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
3540 [Transform the output of nm in a proper C declaration])
3541 _LT_DECL([global_symbol_to_c_name_address],
3542 [lt_cv_sys_global_symbol_to_c_name_address], [1],
3543 [Transform the output of nm in a C name address pair])
3544 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
3545 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
3546 [Transform the output of nm in a C name address pair when lib prefix is needed])
3547 ]) # _LT_CMD_GLOBAL_SYMBOLS
3548
3549
3550 # _LT_COMPILER_PIC([TAGNAME])
3551 # ---------------------------
3552 m4_defun([_LT_COMPILER_PIC],
3553 [m4_require([_LT_TAG_COMPILER])dnl
3554 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
3555 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3556 _LT_TAGVAR(lt_prog_compiler_static, $1)=
50073557
50083558 AC_MSG_CHECKING([for $compiler option to produce PIC])
5009 ifelse([$1],[CXX],[
3559 m4_if([$1], [CXX], [
50103560 # C++ specific cases for pic, static, wl, etc.
50113561 if test "$GXX" = yes; then
5012 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5013 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3562 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3563 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
50143564
50153565 case $host_os in
50163566 aix*)
50173567 # All AIX code is PIC.
50183568 if test "$host_cpu" = ia64; then
50193569 # AIX 5 now supports IA64 processor
5020 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3570 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
50213571 fi
50223572 ;;
3573
50233574 amigaos*)
5024 # FIXME: we need at least 68020 code to build shared libraries, but
5025 # adding the `-m68020' flag to GCC prevents building anything better,
5026 # like `-m68040'.
5027 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5028 ;;
3575 case $host_cpu in
3576 powerpc)
3577 # see comment about AmigaOS4 .so support
3578 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3579 ;;
3580 m68k)
3581 # FIXME: we need at least 68020 code to build shared libraries, but
3582 # adding the `-m68020' flag to GCC prevents building anything better,
3583 # like `-m68040'.
3584 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3585 ;;
3586 esac
3587 ;;
3588
50293589 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
50303590 # PIC is the default for these OSes.
50313591 ;;
50353595 # Although the cygwin gcc ignores -fPIC, still need this for old-style
50363596 # (--disable-auto-import) libraries
50373597 m4_if([$1], [GCJ], [],
5038 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3598 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
50393599 ;;
50403600 darwin* | rhapsody*)
50413601 # PIC is the default on this platform
50423602 # Common symbols not allowed in MH_DYLIB files
5043 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
3603 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
50443604 ;;
50453605 *djgpp*)
50463606 # DJGPP does not support shared libraries at all
5047 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
3607 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
50483608 ;;
50493609 interix[[3-9]]*)
50503610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
50523612 ;;
50533613 sysv4*MP*)
50543614 if test -d /usr/nec; then
5055 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3615 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
50563616 fi
50573617 ;;
50583618 hpux*)
50623622 hppa*64*|ia64*)
50633623 ;;
50643624 *)
5065 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
50663626 ;;
50673627 esac
50683628 ;;
3629 *qnx* | *nto*)
3630 # QNX uses GNU C++, but need to define -shared option too, otherwise
3631 # it will coredump.
3632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3633 ;;
50693634 *)
5070 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
50713636 ;;
50723637 esac
50733638 else
50763641 # All AIX code is PIC.
50773642 if test "$host_cpu" = ia64; then
50783643 # AIX 5 now supports IA64 processor
5079 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
50803645 else
5081 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
50823647 fi
50833648 ;;
50843649 chorus*)
50853650 case $cc_basename in
50863651 cxch68*)
50873652 # Green Hills C++ Compiler
5088 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
3653 # _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"
50893654 ;;
50903655 esac
50913656 ;;
5092 darwin*)
5093 # PIC is the default on this platform
5094 # Common symbols not allowed in MH_DYLIB files
5095 case $cc_basename in
5096 xlc*)
5097 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5098 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5099 ;;
5100 esac
5101 ;;
51023657 dgux*)
51033658 case $cc_basename in
51043659 ec++*)
5105 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3660 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
51063661 ;;
51073662 ghcx*)
51083663 # Green Hills C++ Compiler
5109 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3664 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
51103665 ;;
51113666 *)
51123667 ;;
51183673 hpux9* | hpux10* | hpux11*)
51193674 case $cc_basename in
51203675 CC*)
5121 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5122 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3676 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3677 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
51233678 if test "$host_cpu" != ia64; then
5124 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3679 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
51253680 fi
51263681 ;;
51273682 aCC*)
5128 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5129 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3683 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3684 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
51303685 case $host_cpu in
51313686 hppa*64*|ia64*)
51323687 # +Z the default
51333688 ;;
51343689 *)
5135 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3690 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
51363691 ;;
51373692 esac
51383693 ;;
51473702 irix5* | irix6* | nonstopux*)
51483703 case $cc_basename in
51493704 CC*)
5150 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5151 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3705 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3706 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
51523707 # CC pic flag -KPIC is the default.
51533708 ;;
51543709 *)
51593714 case $cc_basename in
51603715 KCC*)
51613716 # KAI C++ Compiler
5162 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5163 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3717 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3718 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
51643719 ;;
5165 icpc* | ecpc*)
3720 icpc* | ecpc* )
51663721 # Intel C++
5167 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5168 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5169 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3722 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3723 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3724 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
51703725 ;;
51713726 pgCC* | pgcpp*)
5172 # Portland Group C++ compiler.
5173 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5174 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5175 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3727 # Portland Group C++ compiler
3728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
3730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
51763731 ;;
51773732 cxx*)
51783733 # Compaq C++
51793734 # Make sure the PIC flag is empty. It appears that all Alpha
51803735 # Linux and Compaq Tru64 Unix objects are PIC.
5181 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5182 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3736 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3738 ;;
3739 xlc* | xlC*)
3740 # IBM XL 8.0 on PPC
3741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
3743 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
51833744 ;;
51843745 *)
51853746 case `$CC -V 2>&1 | sed 5q` in
51863747 *Sun\ C*)
51873748 # Sun C++ 5.9
5188 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5189 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5190 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3749 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3751 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
51913752 ;;
51923753 esac
51933754 ;;
52003761 mvs*)
52013762 case $cc_basename in
52023763 cxx*)
5203 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
3764 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
52043765 ;;
52053766 *)
52063767 ;;
52083769 ;;
52093770 netbsd* | netbsdelf*-gnu)
52103771 ;;
3772 *qnx* | *nto*)
3773 # QNX uses GNU C++, but need to define -shared option too, otherwise
3774 # it will coredump.
3775 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3776 ;;
52113777 osf3* | osf4* | osf5*)
52123778 case $cc_basename in
52133779 KCC*)
5214 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
3780 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
52153781 ;;
52163782 RCC*)
52173783 # Rational C++ 2.4.1
5218 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3784 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
52193785 ;;
52203786 cxx*)
52213787 # Digital/Compaq C++
5222 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3788 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
52233789 # Make sure the PIC flag is empty. It appears that all Alpha
52243790 # Linux and Compaq Tru64 Unix objects are PIC.
5225 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5226 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
3791 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
3792 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
52273793 ;;
52283794 *)
52293795 ;;
52353801 case $cc_basename in
52363802 CC*)
52373803 # Sun C++ 4.2, 5.x and Centerline C++
5238 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5239 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5240 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
3804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3805 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3806 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
52413807 ;;
52423808 gcx*)
52433809 # Green Hills C++ Compiler
5244 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
3810 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
52453811 ;;
52463812 *)
52473813 ;;
52513817 case $cc_basename in
52523818 CC*)
52533819 # Sun C++ 4.x
5254 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5255 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3820 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
3821 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
52563822 ;;
52573823 lcc*)
52583824 # Lucid
5259 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5260 ;;
5261 *)
5262 ;;
5263 esac
5264 ;;
5265 tandem*)
5266 case $cc_basename in
5267 NCC*)
5268 # NonStop-UX NCC 3.20
5269 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3825 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
52703826 ;;
52713827 *)
52723828 ;;
52753831 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
52763832 case $cc_basename in
52773833 CC*)
5278 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5279 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5280 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3834 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3837 ;;
3838 esac
3839 ;;
3840 tandem*)
3841 case $cc_basename in
3842 NCC*)
3843 # NonStop-UX NCC 3.20
3844 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3845 ;;
3846 *)
52813847 ;;
52823848 esac
52833849 ;;
52843850 vxworks*)
52853851 ;;
52863852 *)
5287 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3853 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
52883854 ;;
52893855 esac
52903856 fi
52913857 ],
52923858 [
52933859 if test "$GCC" = yes; then
5294 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5295 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3860 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3861 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
52963862
52973863 case $host_os in
52983864 aix*)
52993865 # All AIX code is PIC.
53003866 if test "$host_cpu" = ia64; then
53013867 # AIX 5 now supports IA64 processor
5302 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3868 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
53033869 fi
53043870 ;;
53053871
53063872 amigaos*)
5307 # FIXME: we need at least 68020 code to build shared libraries, but
5308 # adding the `-m68020' flag to GCC prevents building anything better,
5309 # like `-m68040'.
5310 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3873 case $host_cpu in
3874 powerpc)
3875 # see comment about AmigaOS4 .so support
3876 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3877 ;;
3878 m68k)
3879 # FIXME: we need at least 68020 code to build shared libraries, but
3880 # adding the `-m68020' flag to GCC prevents building anything better,
3881 # like `-m68040'.
3882 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
3883 ;;
3884 esac
53113885 ;;
53123886
53133887 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
53203894 # Although the cygwin gcc ignores -fPIC, still need this for old-style
53213895 # (--disable-auto-import) libraries
53223896 m4_if([$1], [GCJ], [],
5323 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3897 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
53243898 ;;
53253899
53263900 darwin* | rhapsody*)
53273901 # PIC is the default on this platform
53283902 # Common symbols not allowed in MH_DYLIB files
5329 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5330 ;;
5331
5332 interix[[3-9]]*)
5333 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5334 # Instead, we relocate shared libraries at runtime.
5335 ;;
5336
5337 msdosdjgpp*)
5338 # Just because we use GCC doesn't mean we suddenly get shared libraries
5339 # on systems that don't support them.
5340 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5341 enable_shared=no
5342 ;;
5343
5344 sysv4*MP*)
5345 if test -d /usr/nec; then
5346 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5347 fi
3903 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
53483904 ;;
53493905
53503906 hpux*)
53553911 # +Z the default
53563912 ;;
53573913 *)
5358 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3914 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
53593915 ;;
53603916 esac
53613917 ;;
53623918
3919 interix[[3-9]]*)
3920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
3921 # Instead, we relocate shared libraries at runtime.
3922 ;;
3923
3924 msdosdjgpp*)
3925 # Just because we use GCC doesn't mean we suddenly get shared libraries
3926 # on systems that don't support them.
3927 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
3928 enable_shared=no
3929 ;;
3930
3931 *nto* | *qnx*)
3932 # QNX uses GNU C++, but need to define -shared option too, otherwise
3933 # it will coredump.
3934 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
3935 ;;
3936
3937 sysv4*MP*)
3938 if test -d /usr/nec; then
3939 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
3940 fi
3941 ;;
3942
53633943 *)
5364 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
3944 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
53653945 ;;
53663946 esac
53673947 else
53683948 # PORTME Check for flag to pass linker flags through the system compiler.
53693949 case $host_os in
53703950 aix*)
5371 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3951 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53723952 if test "$host_cpu" = ia64; then
53733953 # AIX 5 now supports IA64 processor
5374 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3954 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
53753955 else
5376 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
3956 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
53773957 fi
53783958 ;;
5379 darwin*)
5380 # PIC is the default on this platform
5381 # Common symbols not allowed in MH_DYLIB files
5382 case $cc_basename in
5383 xlc*)
5384 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5385 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5386 ;;
5387 esac
5388 ;;
53893959
53903960 mingw* | cygwin* | pw32* | os2*)
53913961 # This hack is so that the source file can tell whether it is being
53923962 # built for inclusion in a dll (and should export symbols for example).
53933963 m4_if([$1], [GCJ], [],
5394 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
3964 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
53953965 ;;
53963966
53973967 hpux9* | hpux10* | hpux11*)
5398 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3968 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
53993969 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
54003970 # not for PA HP-UX.
54013971 case $host_cpu in
54033973 # +Z the default
54043974 ;;
54053975 *)
5406 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
3976 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
54073977 ;;
54083978 esac
54093979 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5410 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
3980 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
54113981 ;;
54123982
54133983 irix5* | irix6* | nonstopux*)
5414 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3984 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
54153985 # PIC (with -KPIC) is the default.
5416 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5417 ;;
5418
5419 newsos6)
5420 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5421 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3986 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
54223987 ;;
54233988
54243989 linux* | k*bsd*-gnu)
54253990 case $cc_basename in
5426 icc* | ecc*)
5427 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5428 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5429 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
3991 icc* | ecc* | ifort*)
3992 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
3993 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
3994 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
54303995 ;;
54313996 pgcc* | pgf77* | pgf90* | pgf95*)
54323997 # Portland Group compilers (*not* the Pentium gcc compiler,
54333998 # which looks to be a dead project)
5434 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5435 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5436 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
3999 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4000 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4001 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54374002 ;;
54384003 ccc*)
5439 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4004 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
54404005 # All Alpha code is PIC.
5441 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4006 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
54424007 ;;
4008 xl*)
4009 # IBM XL C 8.0/Fortran 10.1 on PPC
4010 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4011 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4012 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4013 ;;
54434014 *)
5444 case `$CC -V 2>&1 | sed 5q` in
4015 case `$CC -V 2>&1 | sed 5q` in
54454016 *Sun\ C*)
54464017 # Sun C 5.9
5447 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5448 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5449 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4018 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4019 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
54504021 ;;
54514022 *Sun\ F*)
54524023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5453 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5454 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5455 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4024 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4025 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4026 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
54564027 ;;
54574028 esac
54584029 ;;
54594030 esac
54604031 ;;
54614032
4033 newsos6)
4034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4035 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4036 ;;
4037
4038 *nto* | *qnx*)
4039 # QNX uses GNU C++, but need to define -shared option too, otherwise
4040 # it will coredump.
4041 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4042 ;;
4043
54624044 osf3* | osf4* | osf5*)
5463 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4045 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
54644046 # All OSF/1 code is PIC.
5465 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4047 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
54664048 ;;
54674049
54684050 rdos*)
5469 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4051 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
54704052 ;;
54714053
54724054 solaris*)
5473 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5474 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4055 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4056 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54754057 case $cc_basename in
54764058 f77* | f90* | f95*)
5477 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4059 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
54784060 *)
5479 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4061 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
54804062 esac
54814063 ;;
54824064
54834065 sunos4*)
5484 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5485 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5486 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4066 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4067 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4068 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54874069 ;;
54884070
54894071 sysv4 | sysv4.2uw2* | sysv4.3*)
5490 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5491 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5492 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4072 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4073 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4074 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54934075 ;;
54944076
54954077 sysv4*MP*)
54964078 if test -d /usr/nec ;then
5497 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5498 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4079 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4080 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
54994081 fi
55004082 ;;
55014083
55024084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5503 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5504 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5505 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4085 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4086 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4087 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
55064088 ;;
55074089
55084090 unicos*)
5509 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5510 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4091 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4092 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
55114093 ;;
55124094
55134095 uts4*)
5514 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5515 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4096 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4097 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
55164098 ;;
55174099
55184100 *)
5519 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4101 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
55204102 ;;
55214103 esac
55224104 fi
55234105 ])
5524 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4106 case $host_os in
4107 # For platforms which do not support PIC, -DPIC is meaningless:
4108 *djgpp*)
4109 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4110 ;;
4111 *)
4112 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4113 ;;
4114 esac
4115 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4116 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4117 [How to pass a linker flag through the compiler])
55254118
55264119 #
55274120 # Check to make sure the PIC flag actually works.
55284121 #
5529 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5530 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5531 _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5532 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5533 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4122 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4123 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4124 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4125 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4126 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
55344127 "" | " "*) ;;
5535 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4128 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
55364129 esac],
5537 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5538 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4130 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4131 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
55394132 fi
5540 case $host_os in
5541 # For platforms which do not support PIC, -DPIC is meaningless:
5542 *djgpp*)
5543 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5544 ;;
5545 *)
5546 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5547 ;;
5548 esac
4133 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4134 [Additional compiler flags for building library objects])
55494135
55504136 #
55514137 # Check to make sure the static flag actually works.
55524138 #
5553 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5554 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5555 _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4139 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4140 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4141 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
55564142 $lt_tmp_static_flag,
55574143 [],
5558 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5559 ])
5560
5561
5562 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5563 # ------------------------------------
4144 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4145 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4146 [Compiler flag to prevent dynamic linking])
4147 ])# _LT_COMPILER_PIC
4148
4149
4150 # _LT_LINKER_SHLIBS([TAGNAME])
4151 # ----------------------------
55644152 # See if the linker supports building shared libraries.
5565 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5566 [AC_REQUIRE([LT_AC_PROG_SED])dnl
4153 m4_defun([_LT_LINKER_SHLIBS],
4154 [AC_REQUIRE([LT_PATH_LD])dnl
4155 AC_REQUIRE([LT_PATH_NM])dnl
4156 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4157 m4_require([_LT_DECL_EGREP])dnl
4158 m4_require([_LT_DECL_SED])dnl
4159 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4160 m4_require([_LT_TAG_COMPILER])dnl
55674161 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5568 ifelse([$1],[CXX],[
5569 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4162 m4_if([$1], [CXX], [
4163 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
55704164 case $host_os in
55714165 aix[[4-9]]*)
55724166 # If we're using GNU nm, then we don't want the "-C" option.
55734167 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5574 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5575 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4168 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4169 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
55764170 else
5577 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4171 _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'
55784172 fi
55794173 ;;
55804174 pw32*)
5581 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4175 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
55824176 ;;
55834177 cygwin* | mingw*)
5584 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4178 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
55854179 ;;
55864180 linux* | k*bsd*-gnu)
5587 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4181 _LT_TAGVAR(link_all_deplibs, $1)=no
55884182 ;;
55894183 *)
5590 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4184 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
55914185 ;;
55924186 esac
5593 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5594 ],[
4187 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4188 ], [
55954189 runpath_var=
5596 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5597 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5598 _LT_AC_TAGVAR(archive_cmds, $1)=
5599 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5600 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5601 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5602 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5603 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5604 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5605 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5606 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5607 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5608 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5609 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5610 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5611 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5612 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5613 _LT_AC_TAGVAR(module_cmds, $1)=
5614 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5615 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5616 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4190 _LT_TAGVAR(allow_undefined_flag, $1)=
4191 _LT_TAGVAR(always_export_symbols, $1)=no
4192 _LT_TAGVAR(archive_cmds, $1)=
4193 _LT_TAGVAR(archive_expsym_cmds, $1)=
4194 _LT_TAGVAR(compiler_needs_object, $1)=no
4195 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4196 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4197 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4198 _LT_TAGVAR(hardcode_automatic, $1)=no
4199 _LT_TAGVAR(hardcode_direct, $1)=no
4200 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4201 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4202 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4203 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4204 _LT_TAGVAR(hardcode_minus_L, $1)=no
4205 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4206 _LT_TAGVAR(inherit_rpath, $1)=no
4207 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4208 _LT_TAGVAR(module_cmds, $1)=
4209 _LT_TAGVAR(module_expsym_cmds, $1)=
4210 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4211 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4212 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4213 _LT_TAGVAR(whole_archive_flag_spec, $1)=
56174214 # include_expsyms should be a list of space-separated symbols to be *always*
56184215 # included in the symbol list
5619 _LT_AC_TAGVAR(include_expsyms, $1)=
4216 _LT_TAGVAR(include_expsyms, $1)=
56204217 # exclude_expsyms can be an extended regexp of symbols to exclude
56214218 # it will be wrapped by ` (' and `)$', so one must not match beginning or
56224219 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
56234220 # as well as any symbol that contains `d'.
5624 _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4221 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
56254222 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
56264223 # platforms (ab)use it in PIC code, but their linkers get confused if
56274224 # the symbol is explicitly referenced. Since portable code cannot
56304227 # Exclude shared library initialization/finalization symbols.
56314228 dnl Note also adjust exclude_expsyms for C++ above.
56324229 extract_expsyms_cmds=
5633 # Just being paranoid about ensuring that cc_basename is set.
5634 _LT_CC_BASENAME([$compiler])
4230
56354231 case $host_os in
56364232 cygwin* | mingw* | pw32*)
56374233 # FIXME: the MSVC++ port hasn't been tested in a loooong time
56504246 ;;
56514247 esac
56524248
5653 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4249 _LT_TAGVAR(ld_shlibs, $1)=yes
56544250 if test "$with_gnu_ld" = yes; then
56554251 # If archive_cmds runs LD, not CC, wlarc should be empty
56564252 wlarc='${wl}'
56594255 # are reset later if shared libraries are not supported. Putting them
56604256 # here allows them to be overridden if necessary.
56614257 runpath_var=LD_RUN_PATH
5662 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5663 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4258 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4259 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
56644260 # ancient GNU ld didn't support --whole-archive et. al.
5665 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5666 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5667 else
5668 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4261 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4262 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4263 else
4264 _LT_TAGVAR(whole_archive_flag_spec, $1)=
56694265 fi
56704266 supports_anon_versioning=no
5671 case `$LD -v 2>/dev/null` in
4267 case `$LD -v 2>&1` in
56724268 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
56734269 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
56744270 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
56814277 aix[[3-9]]*)
56824278 # On AIX/PPC, the GNU linker is very broken
56834279 if test "$host_cpu" != ia64; then
5684 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5685 cat <<EOF 1>&2
4280 _LT_TAGVAR(ld_shlibs, $1)=no
4281 cat <<_LT_EOF 1>&2
56864282
56874283 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
56884284 *** to be unable to reliably create shared libraries on AIX.
56904286 *** really care for shared libraries, you may want to modify your PATH
56914287 *** so that a non-GNU linker is found, and then restart.
56924288
5693 EOF
4289 _LT_EOF
56944290 fi
56954291 ;;
56964292
56974293 amigaos*)
5698 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5699 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5700 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5701
5702 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5703 # that the semantics of dynamic libraries on AmigaOS, at least up
5704 # to version 4, is to share data among multiple programs linked
5705 # with the same dynamic library. Since this doesn't match the
5706 # behavior of shared libraries on other platforms, we can't use
5707 # them.
5708 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4294 case $host_cpu in
4295 powerpc)
4296 # see comment about AmigaOS4 .so support
4297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4298 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4299 ;;
4300 m68k)
4301 _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)'
4302 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4303 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4304 ;;
4305 esac
57094306 ;;
57104307
57114308 beos*)
5712 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5713 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4309 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4310 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
57144311 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
57154312 # support --undefined. This deserves some investigation. FIXME
5716 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4313 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
57174314 else
5718 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4315 _LT_TAGVAR(ld_shlibs, $1)=no
57194316 fi
57204317 ;;
57214318
57224319 cygwin* | mingw* | pw32*)
5723 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4320 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
57244321 # as there is no search path for DLLs.
5725 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5726 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5727 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5728 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5729 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5730
5731 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5732 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4322 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4323 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4324 _LT_TAGVAR(always_export_symbols, $1)=no
4325 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4326 _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'
4327
4328 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4329 _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'
57334330 # If the export-symbols file already is a .def file (1st line
57344331 # is EXPORTS), use it as is; otherwise, prepend...
5735 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4332 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
57364333 cp $export_symbols $output_objdir/$soname.def;
57374334 else
57384335 echo EXPORTS > $output_objdir/$soname.def;
57404337 fi~
57414338 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
57424339 else
5743 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4340 _LT_TAGVAR(ld_shlibs, $1)=no
57444341 fi
57454342 ;;
57464343
57474344 interix[[3-9]]*)
5748 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5749 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5750 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5751 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4345 _LT_TAGVAR(hardcode_direct, $1)=no
4346 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4347 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4348 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
57524349 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
57534350 # Instead, shared libraries are loaded at an image base (0x10000000 by
57544351 # default) and relocated if they conflict, which is a slow very memory
57554352 # consuming and fragmenting process. To avoid this, we pick a random,
57564353 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
57574354 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5758 _LT_AC_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'
5759 _LT_AC_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'
5760 ;;
5761
5762 gnu* | linux* | k*bsd*-gnu)
5763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4355 _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'
4356 _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'
4357 ;;
4358
4359 gnu* | linux* | tpf* | k*bsd*-gnu)
4360 tmp_diet=no
4361 if test "$host_os" = linux-dietlibc; then
4362 case $cc_basename in
4363 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
4364 esac
4365 fi
4366 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4367 && test "$tmp_diet" = no
4368 then
57644369 tmp_addflag=
4370 tmp_sharedflag='-shared'
57654371 case $cc_basename,$host_cpu in
5766 pgcc*) # Portland Group C compiler
5767 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4372 pgcc*) # Portland Group C compiler
4373 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
57684374 tmp_addflag=' $pic_flag'
57694375 ;;
57704376 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5771 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4377 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
57724378 tmp_addflag=' $pic_flag -Mnomain' ;;
5773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
4379 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
57744380 tmp_addflag=' -i_dynamic' ;;
57754381 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
57764382 tmp_addflag=' -i_dynamic -nofor_main' ;;
57774383 ifc* | ifort*) # Intel Fortran compiler
57784384 tmp_addflag=' -nofor_main' ;;
4385 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
4386 tmp_sharedflag='-qmkshrobj'
4387 tmp_addflag= ;;
57794388 esac
57804389 case `$CC -V 2>&1 | sed 5q` in
57814390 *Sun\ C*) # Sun C 5.9
5782 _LT_AC_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; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4391 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
4392 _LT_TAGVAR(compiler_needs_object, $1)=yes
57834393 tmp_sharedflag='-G' ;;
57844394 *Sun\ F*) # Sun Fortran 8.3
57854395 tmp_sharedflag='-G' ;;
5786 *)
5787 tmp_sharedflag='-shared' ;;
57884396 esac
5789 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5790
5791 if test $supports_anon_versioning = yes; then
5792 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5794 $echo "local: *; };" >> $output_objdir/$libname.ver~
5795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5796 fi
5797 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
4397 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4398
4399 if test "x$supports_anon_versioning" = xyes; then
4400 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4402 echo "local: *; };" >> $output_objdir/$libname.ver~
4403 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
4404 fi
4405
4406 case $cc_basename in
4407 xlf*)
4408 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
4409 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4411 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4412 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
4413 if test "x$supports_anon_versioning" = xyes; then
4414 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4416 echo "local: *; };" >> $output_objdir/$libname.ver~
4417 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
4418 fi
4419 ;;
4420 esac
57984421 else
5799 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4422 _LT_TAGVAR(ld_shlibs, $1)=no
58004423 fi
58014424 ;;
58024425
58034426 netbsd* | netbsdelf*-gnu)
5804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5805 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4428 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
58064429 wlarc=
58074430 else
5808 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5809 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4431 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4432 _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'
58104433 fi
58114434 ;;
58124435
58134436 solaris*)
5814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5815 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5816 cat <<EOF 1>&2
4437 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
4438 _LT_TAGVAR(ld_shlibs, $1)=no
4439 cat <<_LT_EOF 1>&2
58174440
58184441 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
58194442 *** create shared libraries on Solaris systems. Therefore, libtool
58224445 *** your PATH or compiler configuration so that the native linker is
58234446 *** used, and then restart.
58244447
5825 EOF
5826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5827 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5828 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4448 _LT_EOF
4449 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4451 _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'
58294452 else
5830 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4453 _LT_TAGVAR(ld_shlibs, $1)=no
58314454 fi
58324455 ;;
58334456
58344457 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
58354458 case `$LD -v 2>&1` in
58364459 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5837 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4460 _LT_TAGVAR(ld_shlibs, $1)=no
58384461 cat <<_LT_EOF 1>&2
58394462
58404463 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
58474470 _LT_EOF
58484471 ;;
58494472 *)
5850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5851 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5852 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5853 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
4473 # For security reasons, it is highly recommended that you always
4474 # use absolute paths for naming shared libraries, and exclude the
4475 # DT_RUNPATH tag from executables and libraries. But doing so
4476 # requires that you compile everything twice, which is a pain.
4477 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4478 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4479 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4480 _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'
58544481 else
5855 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4482 _LT_TAGVAR(ld_shlibs, $1)=no
58564483 fi
58574484 ;;
58584485 esac
58594486 ;;
58604487
58614488 sunos4*)
5862 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4489 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
58634490 wlarc=
5864 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5865 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4491 _LT_TAGVAR(hardcode_direct, $1)=yes
4492 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
58664493 ;;
58674494
58684495 *)
5869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5870 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5871 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4496 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4497 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4498 _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'
58724499 else
5873 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4500 _LT_TAGVAR(ld_shlibs, $1)=no
58744501 fi
58754502 ;;
58764503 esac
58774504
5878 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
4505 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
58794506 runpath_var=
5880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5881 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5882 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4508 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4509 _LT_TAGVAR(whole_archive_flag_spec, $1)=
58834510 fi
58844511 else
58854512 # PORTME fill in a description of your system's linker (not GNU ld)
58864513 case $host_os in
58874514 aix3*)
5888 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5889 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5890 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4515 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4516 _LT_TAGVAR(always_export_symbols, $1)=yes
4517 _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'
58914518 # Note: this linker hardcodes the directories in LIBPATH if there
58924519 # are no directories specified by -L.
5893 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4520 _LT_TAGVAR(hardcode_minus_L, $1)=yes
58944521 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
58954522 # Neither direct hardcoding nor static linking is supported with a
58964523 # broken collect2.
5897 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4524 _LT_TAGVAR(hardcode_direct, $1)=unsupported
58984525 fi
58994526 ;;
59004527
59084535 else
59094536 # If we're using GNU nm, then we don't want the "-C" option.
59104537 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5911 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5912 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4538 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4539 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
59134540 else
5914 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
4541 _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'
59154542 fi
59164543 aix_use_runtimelinking=no
59174544
59204547 # need to do runtime linking.
59214548 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
59224549 for ld_flag in $LDFLAGS; do
5923 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5924 aix_use_runtimelinking=yes
5925 break
5926 fi
4550 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4551 aix_use_runtimelinking=yes
4552 break
4553 fi
59274554 done
59284555 ;;
59294556 esac
59384565 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
59394566 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
59404567
5941 _LT_AC_TAGVAR(archive_cmds, $1)=''
5942 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5943 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5944 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4568 _LT_TAGVAR(archive_cmds, $1)=''
4569 _LT_TAGVAR(hardcode_direct, $1)=yes
4570 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4571 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
4572 _LT_TAGVAR(link_all_deplibs, $1)=yes
4573 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
59454574
59464575 if test "$GCC" = yes; then
59474576 case $host_os in aix4.[[012]]|aix4.[[012]].*)
59484577 # We only want to do this on AIX 4.2 and lower, the check
59494578 # below for broken collect2 doesn't work under 4.3+
59504579 collect2name=`${CC} -print-prog-name=collect2`
5951 if test -f "$collect2name" && \
5952 strings "$collect2name" | grep resolve_lib_name >/dev/null
4580 if test -f "$collect2name" &&
4581 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
59534582 then
5954 # We have reworked collect2
5955 :
4583 # We have reworked collect2
4584 :
59564585 else
5957 # We have old collect2
5958 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5959 # It fails to find uninstalled libraries when the uninstalled
5960 # path is not listed in the libpath. Setting hardcode_minus_L
5961 # to unsupported forces relinking
5962 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5963 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5964 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4586 # We have old collect2
4587 _LT_TAGVAR(hardcode_direct, $1)=unsupported
4588 # It fails to find uninstalled libraries when the uninstalled
4589 # path is not listed in the libpath. Setting hardcode_minus_L
4590 # to unsupported forces relinking
4591 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4592 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4593 _LT_TAGVAR(hardcode_libdir_separator, $1)=
59654594 fi
59664595 ;;
59674596 esac
59694598 if test "$aix_use_runtimelinking" = yes; then
59704599 shared_flag="$shared_flag "'${wl}-G'
59714600 fi
4601 _LT_TAGVAR(link_all_deplibs, $1)=no
59724602 else
59734603 # not using gcc
59744604 if test "$host_cpu" = ia64; then
5975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5976 # chokes on -Wl,-G. The following line is correct:
4605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4606 # chokes on -Wl,-G. The following line is correct:
59774607 shared_flag='-G'
59784608 else
59794609 if test "$aix_use_runtimelinking" = yes; then
59864616
59874617 # It seems that -bexpall does not export symbols beginning with
59884618 # underscore (_), so it is better to generate a list of symbols to export.
5989 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4619 _LT_TAGVAR(always_export_symbols, $1)=yes
59904620 if test "$aix_use_runtimelinking" = yes; then
59914621 # Warning - without using the other runtime loading flags (-brtl),
59924622 # -berok will link without error, but may produce a broken library.
5993 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5994 # Determine the default libpath from the value encoded in an empty executable.
5995 _LT_AC_SYS_LIBPATH_AIX
5996 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5997 _LT_AC_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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5998 else
4623 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
4624 # Determine the default libpath from the value encoded in an
4625 # empty executable.
4626 _LT_SYS_MODULE_PATH_AIX
4627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4628 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4629 else
59994630 if test "$host_cpu" = ia64; then
6000 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6001 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6002 _LT_AC_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"
4631 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4632 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4633 _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"
60034634 else
6004 # Determine the default libpath from the value encoded in an empty executable.
6005 _LT_AC_SYS_LIBPATH_AIX
6006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4635 # Determine the default libpath from the value encoded in an
4636 # empty executable.
4637 _LT_SYS_MODULE_PATH_AIX
4638 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
60074639 # Warning - without using the other run time loading flags,
60084640 # -berok will link without error, but may produce a broken library.
6009 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6010 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4641 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4642 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
60114643 # Exported symbols can be pulled into shared objects from archives
6012 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6013 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4644 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4645 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
60144646 # This is similar to how AIX traditionally builds its shared libraries.
6015 _LT_AC_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'
4647 _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'
60164648 fi
60174649 fi
60184650 ;;
60194651
60204652 amigaos*)
6021 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6023 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6024 # see comment about different semantics on the GNU ld section
6025 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4653 case $host_cpu in
4654 powerpc)
4655 # see comment about AmigaOS4 .so support
4656 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4657 _LT_TAGVAR(archive_expsym_cmds, $1)=''
4658 ;;
4659 m68k)
4660 _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)'
4661 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4662 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4663 ;;
4664 esac
60264665 ;;
60274666
60284667 bsdi[[45]]*)
6029 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
4668 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
60304669 ;;
60314670
60324671 cygwin* | mingw* | pw32*)
60344673 # Microsoft Visual C++.
60354674 # hardcode_libdir_flag_spec is actually meaningless, as there is
60364675 # no search path for DLLs.
6037 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6038 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4676 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
4677 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
60394678 # Tell ltmain to make .lib files, not .a files.
60404679 libext=lib
60414680 # Tell ltmain to make .dll files, not .so files.
60424681 shrext_cmds=".dll"
60434682 # FIXME: Setting linknames here is a bad hack.
6044 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
4683 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
60454684 # The linker will automatically build a .lib file if we build a DLL.
6046 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
4685 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
60474686 # FIXME: Should let the user specify the lib program.
6048 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6049 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6050 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4687 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
4688 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
4689 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
60514690 ;;
60524691
60534692 darwin* | rhapsody*)
6054 case $host_os in
6055 rhapsody* | darwin1.[[012]])
6056 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6057 ;;
6058 *) # Darwin 1.3 on
6059 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6060 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6061 else
6062 case ${MACOSX_DEPLOYMENT_TARGET} in
6063 10.[[012]])
6064 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6065 ;;
6066 10.*)
6067 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6068 ;;
6069 esac
6070 fi
6071 ;;
6072 esac
6073 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6074 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6075 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6076 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6077 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6078 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6079 if test "$GCC" = yes ; then
6080 output_verbose_link_cmd='echo'
6081 _LT_AC_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}"
6082 _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6083 _LT_AC_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}"
6084 _LT_AC_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}"
6085 else
6086 case $cc_basename in
6087 xlc*)
6088 output_verbose_link_cmd='echo'
6089 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6090 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6092 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6093 _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6094 ;;
6095 *)
6096 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6097 ;;
6098 esac
6099 fi
4693 _LT_DARWIN_LINKER_FEATURES($1)
61004694 ;;
61014695
61024696 dgux*)
6103 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6104 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6105 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4697 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4698 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4699 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61064700 ;;
61074701
61084702 freebsd1*)
6109 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4703 _LT_TAGVAR(ld_shlibs, $1)=no
61104704 ;;
61114705
61124706 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
61144708 # does not break anything, and helps significantly (at the cost of a little
61154709 # extra space).
61164710 freebsd2.2*)
6117 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6118 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6119 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6120 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4711 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4712 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4713 _LT_TAGVAR(hardcode_direct, $1)=yes
4714 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61214715 ;;
61224716
61234717 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
61244718 freebsd2*)
6125 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6126 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6127 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6128 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4719 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4720 _LT_TAGVAR(hardcode_direct, $1)=yes
4721 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4722 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61294723 ;;
61304724
61314725 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
61324726 freebsd* | dragonfly*)
6133 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6134 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6135 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6136 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4727 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4728 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4729 _LT_TAGVAR(hardcode_direct, $1)=yes
4730 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
61374731 ;;
61384732
61394733 hpux9*)
61404734 if test "$GCC" = yes; then
6141 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4735 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
61424736 else
6143 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4737 _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'
61444738 fi
6145 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6146 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6147 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4740 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4741 _LT_TAGVAR(hardcode_direct, $1)=yes
61484742
61494743 # hardcode_minus_L: Not really in the search PATH,
61504744 # but as the default location of the library.
6151 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6152 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4745 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4746 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
61534747 ;;
61544748
61554749 hpux10*)
61564750 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6157 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4751 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
61584752 else
6159 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
4753 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
61604754 fi
61614755 if test "$with_gnu_ld" = no; then
6162 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6163 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6164
6165 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6166 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6167
4756 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4757 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4758 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4759 _LT_TAGVAR(hardcode_direct, $1)=yes
4760 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4761 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
61684762 # hardcode_minus_L: Not really in the search PATH,
61694763 # but as the default location of the library.
6170 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4764 _LT_TAGVAR(hardcode_minus_L, $1)=yes
61714765 fi
61724766 ;;
61734767
61754769 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
61764770 case $host_cpu in
61774771 hppa*64*)
6178 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4772 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
61794773 ;;
61804774 ia64*)
6181 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4775 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
61824776 ;;
61834777 *)
6184 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4778 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
61854779 ;;
61864780 esac
61874781 else
61884782 case $host_cpu in
61894783 hppa*64*)
6190 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4784 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
61914785 ;;
61924786 ia64*)
6193 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
4787 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
61944788 ;;
61954789 *)
6196 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
4790 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
61974791 ;;
61984792 esac
61994793 fi
62004794 if test "$with_gnu_ld" = no; then
6201 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6202 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4796 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62034797
62044798 case $host_cpu in
62054799 hppa*64*|ia64*)
6206 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6207 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6208 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4800 _LT_TAGVAR(hardcode_direct, $1)=no
4801 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62094802 ;;
62104803 *)
6211 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6212 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4804 _LT_TAGVAR(hardcode_direct, $1)=yes
4805 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4806 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
62134807
62144808 # hardcode_minus_L: Not really in the search PATH,
62154809 # but as the default location of the library.
6216 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4810 _LT_TAGVAR(hardcode_minus_L, $1)=yes
62174811 ;;
62184812 esac
62194813 fi
62214815
62224816 irix5* | irix6* | nonstopux*)
62234817 if test "$GCC" = yes; then
6224 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4818 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4819 # Try to use the -exported_symbol ld option, if it does not
4820 # work, assume that -exports_file does not work either and
4821 # implicitly export all symbols.
4822 save_LDFLAGS="$LDFLAGS"
4823 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4824 AC_LINK_IFELSE(int foo(void) {},
4825 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
4826 )
4827 LDFLAGS="$save_LDFLAGS"
62254828 else
6226 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6227 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
4829 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4830 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
62284831 fi
6229 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6230 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6231 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4832 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4834 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4835 _LT_TAGVAR(inherit_rpath, $1)=yes
4836 _LT_TAGVAR(link_all_deplibs, $1)=yes
62324837 ;;
62334838
62344839 netbsd* | netbsdelf*-gnu)
6235 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6236 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
4841 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
62374842 else
6238 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4843 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
62394844 fi
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6241 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6242 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4845 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4846 _LT_TAGVAR(hardcode_direct, $1)=yes
4847 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
62434848 ;;
62444849
62454850 newsos6)
6246 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6247 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6249 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6250 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4851 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4852 _LT_TAGVAR(hardcode_direct, $1)=yes
4853 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4854 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
4855 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4856 ;;
4857
4858 *nto* | *qnx*)
62514859 ;;
62524860
62534861 openbsd*)
62544862 if test -f /usr/libexec/ld.so; then
6255 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6256 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6257 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6258 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6259 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6260 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6261 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4863 _LT_TAGVAR(hardcode_direct, $1)=yes
4864 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4865 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
4866 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4867 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4868 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
4869 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4870 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
62624871 else
62634872 case $host_os in
62644873 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6265 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6266 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4874 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4875 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
62674876 ;;
62684877 *)
6269 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4878 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
4879 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
62714880 ;;
62724881 esac
6273 fi
4882 fi
62744883 else
6275 _LT_AC_TAGVAR(ld_shlibs, $1)=no
4884 _LT_TAGVAR(ld_shlibs, $1)=no
62764885 fi
62774886 ;;
62784887
62794888 os2*)
6280 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6281 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6282 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6283 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6284 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4889 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4890 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4891 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4892 _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'
4893 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
62854894 ;;
62864895
62874896 osf3*)
62884897 if test "$GCC" = yes; then
6289 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6290 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4898 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
62914900 else
6292 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6293 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4901 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4902 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
62944903 fi
6295 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6296 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4904 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4906 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
62974907 ;;
62984908
62994909 osf4* | osf5*) # as osf3* with the addition of -msym flag
63004910 if test "$GCC" = yes; then
6301 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6302 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6303 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4911 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4912 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4913 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
63044914 else
6305 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6306 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6307 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6308 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
4915 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4916 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
4917 _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~
4918 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
63094919
63104920 # Both c and cxx compiler support -rpath directly
6311 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4921 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
63124922 fi
6313 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4923 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4924 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
63144925 ;;
63154926
63164927 solaris*)
6317 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
4928 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
63184929 if test "$GCC" = yes; then
63194930 wlarc='${wl}'
6320 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6321 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6322 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
4931 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4932 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4933 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
63234934 else
6324 wlarc=''
6325 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6326 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6327 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4935 case `$CC -V 2>&1` in
4936 *"Compilers 5.0"*)
4937 wlarc=''
4938 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4939 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
4941 ;;
4942 *)
4943 wlarc='${wl}'
4944 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
4945 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
4946 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
4947 ;;
4948 esac
63284949 fi
6329 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6330 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4950 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4951 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63314952 case $host_os in
63324953 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
63334954 *)
63344955 # The compiler driver will combine and reorder linker options,
63354956 # but understands `-z linker_flag'. GCC discards it without `$wl',
63364957 # but is careful enough not to reorder.
6337 # Supported since Solaris 2.6 (maybe 2.5.1?)
4958 # Supported since Solaris 2.6 (maybe 2.5.1?)
63384959 if test "$GCC" = yes; then
6339 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4960 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
63404961 else
6341 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4962 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
63424963 fi
63434964 ;;
63444965 esac
6345 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4966 _LT_TAGVAR(link_all_deplibs, $1)=yes
63464967 ;;
63474968
63484969 sunos4*)
63494970 if test "x$host_vendor" = xsequent; then
63504971 # Use $CC to link under sequent, because it throws in some extra .o
63514972 # files that make .init and .fini sections work.
6352 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4973 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
63534974 else
6354 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4975 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
63554976 fi
6356 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6357 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6358 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6359 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4977 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4978 _LT_TAGVAR(hardcode_direct, $1)=yes
4979 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4980 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63604981 ;;
63614982
63624983 sysv4)
63634984 case $host_vendor in
63644985 sni)
6365 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6366 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
4986 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4987 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
63674988 ;;
63684989 siemens)
63694990 ## LD is ld it makes a PLAMLIB
63704991 ## CC just makes a GrossModule.
6371 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6372 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6373 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4992 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4993 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
4994 _LT_TAGVAR(hardcode_direct, $1)=no
63744995 ;;
63754996 motorola)
6376 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6377 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
4997 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4998 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
63784999 ;;
63795000 esac
63805001 runpath_var='LD_RUN_PATH'
6381 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5002 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63825003 ;;
63835004
63845005 sysv4.3*)
6385 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6386 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6387 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5006 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5007 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5008 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
63885009 ;;
63895010
63905011 sysv4*MP*)
63915012 if test -d /usr/nec; then
6392 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6393 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5013 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5014 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
63945015 runpath_var=LD_RUN_PATH
63955016 hardcode_runpath_var=yes
6396 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5017 _LT_TAGVAR(ld_shlibs, $1)=yes
63975018 fi
63985019 ;;
63995020
64005021 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6401 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6402 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6403 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5022 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5023 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5024 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
64045025 runpath_var='LD_RUN_PATH'
64055026
64065027 if test "$GCC" = yes; then
6407 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6408 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5028 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5029 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
64095030 else
6410 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6411 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5031 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5032 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
64125033 fi
64135034 ;;
64145035
64195040 # ever link correctly. If we're not using GNU ld we use -z text
64205041 # though, which does catch some bad symbols but isn't as heavy-handed
64215042 # as -z defs.
6422 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6423 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6424 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6425 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6426 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6427 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6428 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6429 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5043 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5044 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5045 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5046 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5047 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5048 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5049 _LT_TAGVAR(link_all_deplibs, $1)=yes
5050 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
64305051 runpath_var='LD_RUN_PATH'
64315052
64325053 if test "$GCC" = yes; then
6433 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6434 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5054 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5055 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
64355056 else
6436 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6437 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5057 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5058 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
64385059 fi
64395060 ;;
64405061
64415062 uts4*)
6442 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6443 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6444 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5063 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5064 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5065 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
64455066 ;;
64465067
64475068 *)
6448 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5069 _LT_TAGVAR(ld_shlibs, $1)=no
64495070 ;;
64505071 esac
5072
5073 if test x$host_vendor = xsni; then
5074 case $host in
5075 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5076 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5077 ;;
5078 esac
5079 fi
64515080 fi
64525081 ])
6453 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6454 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5082 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5083 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5084
5085 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5086
5087 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5088 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5089 _LT_DECL([], [extract_expsyms_cmds], [2],
5090 [The commands to extract the exported symbol list from a shared archive])
64555091
64565092 #
64575093 # Do we need to explicitly link libc?
64585094 #
6459 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
5095 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
64605096 x|xyes)
64615097 # Assume -lc should be added
6462 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5098 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
64635099
64645100 if test "$enable_shared" = yes && test "$GCC" = yes; then
6465 case $_LT_AC_TAGVAR(archive_cmds, $1) in
5101 case $_LT_TAGVAR(archive_cmds, $1) in
64665102 *'~'*)
64675103 # FIXME: we may have to deal with multi-command sequences.
64685104 ;;
64715107 # systems, -lgcc has to come before -lc. If gcc already passes -lc
64725108 # to ld, don't add -lc before -lgcc.
64735109 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6474 $rm conftest*
5110 $RM conftest*
64755111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
64765112
64775113 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
64795115 lib=conftest
64805116 libobjs=conftest.$ac_objext
64815117 deplibs=
6482 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6483 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5118 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5119 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
64845120 compiler_flags=-v
64855121 linker_flags=-v
64865122 verstring=
64875123 output_objdir=.
64885124 libname=conftest
6489 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6490 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6491 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5125 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5126 _LT_TAGVAR(allow_undefined_flag, $1)=
5127 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
64925128 then
6493 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5129 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
64945130 else
6495 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5131 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
64965132 fi
6497 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5133 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
64985134 else
64995135 cat conftest.err 1>&5
65005136 fi
6501 $rm conftest*
6502 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
5137 $RM conftest*
5138 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
65035139 ;;
65045140 esac
65055141 fi
65065142 ;;
65075143 esac
6508 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6509
6510
6511 # _LT_AC_FILE_LTDLL_C
6512 # -------------------
6513 # Be careful that the start marker always follows a newline.
6514 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6515 # /* ltdll.c starts here */
6516 # #define WIN32_LEAN_AND_MEAN
6517 # #include <windows.h>
6518 # #undef WIN32_LEAN_AND_MEAN
6519 # #include <stdio.h>
6520 #
6521 # #ifndef __CYGWIN__
6522 # # ifdef __CYGWIN32__
6523 # # define __CYGWIN__ __CYGWIN32__
6524 # # endif
6525 # #endif
6526 #
6527 # #ifdef __cplusplus
6528 # extern "C" {
6529 # #endif
6530 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6531 # #ifdef __cplusplus
6532 # }
6533 # #endif
6534 #
6535 # #ifdef __CYGWIN__
6536 # #include <cygwin/cygwin_dll.h>
6537 # DECLARE_CYGWIN_DLL( DllMain );
6538 # #endif
6539 # HINSTANCE __hDllInstance_base;
6540 #
6541 # BOOL APIENTRY
6542 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6543 # {
6544 # __hDllInstance_base = hInst;
6545 # return TRUE;
6546 # }
6547 # /* ltdll.c ends here */
6548 ])# _LT_AC_FILE_LTDLL_C
6549
6550
6551 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
5144
5145 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5146 [Whether or not to add -lc for building shared libraries])
5147 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5148 [enable_shared_with_static_runtimes], [0],
5149 [Whether or not to disallow shared libs when runtime libs are static])
5150 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5151 [Compiler flag to allow reflexive dlopens])
5152 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5153 [Compiler flag to generate shared objects directly from archives])
5154 _LT_TAGDECL([], [compiler_needs_object], [1],
5155 [Whether the compiler copes with passing no objects directly])
5156 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5157 [Create an old-style archive from a shared archive])
5158 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5159 [Create a temporary old-style archive to link instead of a shared archive])
5160 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5161 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5162 _LT_TAGDECL([], [module_cmds], [2],
5163 [Commands used to build a loadable module if different from building
5164 a shared archive.])
5165 _LT_TAGDECL([], [module_expsym_cmds], [2])
5166 _LT_TAGDECL([], [with_gnu_ld], [1],
5167 [Whether we are building with GNU ld or not])
5168 _LT_TAGDECL([], [allow_undefined_flag], [1],
5169 [Flag that allows shared libraries with undefined symbols to be built])
5170 _LT_TAGDECL([], [no_undefined_flag], [1],
5171 [Flag that enforces no undefined symbols])
5172 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5173 [Flag to hardcode $libdir into a binary during linking.
5174 This must work even if $libdir does not exist])
5175 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5176 [[If ld is used when linking, flag to hardcode $libdir into a binary
5177 during linking. This must work even if $libdir does not exist]])
5178 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5179 [Whether we need a single "-rpath" flag with a separated argument])
5180 _LT_TAGDECL([], [hardcode_direct], [0],
5181 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5182 DIR into the resulting binary])
5183 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5184 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5185 DIR into the resulting binary and the resulting library dependency is
5186 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5187 library is relocated])
5188 _LT_TAGDECL([], [hardcode_minus_L], [0],
5189 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5190 into the resulting binary])
5191 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5192 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5193 into the resulting binary])
5194 _LT_TAGDECL([], [hardcode_automatic], [0],
5195 [Set to "yes" if building a shared library automatically hardcodes DIR
5196 into the library and all subsequent libraries and executables linked
5197 against it])
5198 _LT_TAGDECL([], [inherit_rpath], [0],
5199 [Set to yes if linker adds runtime paths of dependent libraries
5200 to runtime path list])
5201 _LT_TAGDECL([], [link_all_deplibs], [0],
5202 [Whether libtool must link a program against all its dependency libraries])
5203 _LT_TAGDECL([], [fix_srcfile_path], [1],
5204 [Fix the shell variable $srcfile for the compiler])
5205 _LT_TAGDECL([], [always_export_symbols], [0],
5206 [Set to "yes" if exported symbols are required])
5207 _LT_TAGDECL([], [export_symbols_cmds], [2],
5208 [The commands to list exported symbols])
5209 _LT_TAGDECL([], [exclude_expsyms], [1],
5210 [Symbols that should not be listed in the preloaded symbols])
5211 _LT_TAGDECL([], [include_expsyms], [1],
5212 [Symbols that must always be exported])
5213 _LT_TAGDECL([], [prelink_cmds], [2],
5214 [Commands necessary for linking programs (against libraries) with templates])
5215 _LT_TAGDECL([], [file_list_spec], [1],
5216 [Specify filename containing input files])
5217 dnl FIXME: Not yet implemented
5218 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5219 dnl [Compiler flag to generate thread safe objects])
5220 ])# _LT_LINKER_SHLIBS
5221
5222
5223 # _LT_LANG_C_CONFIG([TAG])
5224 # ------------------------
5225 # Ensure that the configuration variables for a C compiler are suitably
5226 # defined. These variables are subsequently used by _LT_CONFIG to write
5227 # the compiler configuration to `libtool'.
5228 m4_defun([_LT_LANG_C_CONFIG],
5229 [m4_require([_LT_DECL_EGREP])dnl
5230 lt_save_CC="$CC"
5231 AC_LANG_PUSH(C)
5232
5233 # Source file extension for C test sources.
5234 ac_ext=c
5235
5236 # Object file extension for compiled C test sources.
5237 objext=o
5238 _LT_TAGVAR(objext, $1)=$objext
5239
5240 # Code to be used in simple compile tests
5241 lt_simple_compile_test_code="int some_variable = 0;"
5242
5243 # Code to be used in simple link tests
5244 lt_simple_link_test_code='int main(){return(0);}'
5245
5246 _LT_TAG_COMPILER
5247 # Save the default compiler, since it gets overwritten when the other
5248 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5249 compiler_DEFAULT=$CC
5250
5251 # save warnings/boilerplate of simple test code
5252 _LT_COMPILER_BOILERPLATE
5253 _LT_LINKER_BOILERPLATE
5254
5255 if test -n "$compiler"; then
5256 _LT_COMPILER_NO_RTTI($1)
5257 _LT_COMPILER_PIC($1)
5258 _LT_COMPILER_C_O($1)
5259 _LT_COMPILER_FILE_LOCKS($1)
5260 _LT_LINKER_SHLIBS($1)
5261 _LT_SYS_DYNAMIC_LINKER($1)
5262 _LT_LINKER_HARDCODE_LIBPATH($1)
5263 LT_SYS_DLOPEN_SELF
5264 _LT_CMD_STRIPLIB
5265
5266 # Report which library types will actually be built
5267 AC_MSG_CHECKING([if libtool supports shared libraries])
5268 AC_MSG_RESULT([$can_build_shared])
5269
5270 AC_MSG_CHECKING([whether to build shared libraries])
5271 test "$can_build_shared" = "no" && enable_shared=no
5272
5273 # On AIX, shared libraries and static libraries use the same namespace, and
5274 # are all built from PIC.
5275 case $host_os in
5276 aix3*)
5277 test "$enable_shared" = yes && enable_static=no
5278 if test -n "$RANLIB"; then
5279 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5280 postinstall_cmds='$RANLIB $lib'
5281 fi
5282 ;;
5283
5284 aix[[4-9]]*)
5285 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5286 test "$enable_shared" = yes && enable_static=no
5287 fi
5288 ;;
5289 esac
5290 AC_MSG_RESULT([$enable_shared])
5291
5292 AC_MSG_CHECKING([whether to build static libraries])
5293 # Make sure either enable_shared or enable_static is yes.
5294 test "$enable_shared" = yes || enable_static=yes
5295 AC_MSG_RESULT([$enable_static])
5296
5297 _LT_CONFIG($1)
5298 fi
5299 AC_LANG_POP
5300 CC="$lt_save_CC"
5301 ])# _LT_LANG_C_CONFIG
5302
5303
5304 # _LT_PROG_CXX
5305 # ------------
5306 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5307 # compiler, we have our own version here.
5308 m4_defun([_LT_PROG_CXX],
5309 [
5310 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5311 AC_PROG_CXX
5312 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5313 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5314 (test "X$CXX" != "Xg++"))) ; then
5315 AC_PROG_CXXCPP
5316 else
5317 _lt_caught_CXX_error=yes
5318 fi
5319 popdef([AC_MSG_ERROR])
5320 ])# _LT_PROG_CXX
5321
5322 dnl aclocal-1.4 backwards compatibility:
5323 dnl AC_DEFUN([_LT_PROG_CXX], [])
5324
5325
5326 # _LT_LANG_CXX_CONFIG([TAG])
5327 # --------------------------
5328 # Ensure that the configuration variables for a C++ compiler are suitably
5329 # defined. These variables are subsequently used by _LT_CONFIG to write
5330 # the compiler configuration to `libtool'.
5331 m4_defun([_LT_LANG_CXX_CONFIG],
5332 [AC_REQUIRE([_LT_PROG_CXX])dnl
5333 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5334 m4_require([_LT_DECL_EGREP])dnl
5335
5336 AC_LANG_PUSH(C++)
5337 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5338 _LT_TAGVAR(allow_undefined_flag, $1)=
5339 _LT_TAGVAR(always_export_symbols, $1)=no
5340 _LT_TAGVAR(archive_expsym_cmds, $1)=
5341 _LT_TAGVAR(compiler_needs_object, $1)=no
5342 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5343 _LT_TAGVAR(hardcode_direct, $1)=no
5344 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5345 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5346 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5347 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5348 _LT_TAGVAR(hardcode_minus_L, $1)=no
5349 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5350 _LT_TAGVAR(hardcode_automatic, $1)=no
5351 _LT_TAGVAR(inherit_rpath, $1)=no
5352 _LT_TAGVAR(module_cmds, $1)=
5353 _LT_TAGVAR(module_expsym_cmds, $1)=
5354 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5355 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5356 _LT_TAGVAR(no_undefined_flag, $1)=
5357 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5358 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5359
5360 # Source file extension for C++ test sources.
5361 ac_ext=cpp
5362
5363 # Object file extension for compiled C++ test sources.
5364 objext=o
5365 _LT_TAGVAR(objext, $1)=$objext
5366
5367 # No sense in running all these tests if we already determined that
5368 # the CXX compiler isn't working. Some variables (like enable_shared)
5369 # are currently assumed to apply to all compilers on this platform,
5370 # and will be corrupted by setting them based on a non-working compiler.
5371 if test "$_lt_caught_CXX_error" != yes; then
5372 # Code to be used in simple compile tests
5373 lt_simple_compile_test_code="int some_variable = 0;"
5374
5375 # Code to be used in simple link tests
5376 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
5377
5378 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
5379 _LT_TAG_COMPILER
5380
5381 # save warnings/boilerplate of simple test code
5382 _LT_COMPILER_BOILERPLATE
5383 _LT_LINKER_BOILERPLATE
5384
5385 # Allow CC to be a program name with arguments.
5386 lt_save_CC=$CC
5387 lt_save_LD=$LD
5388 lt_save_GCC=$GCC
5389 GCC=$GXX
5390 lt_save_with_gnu_ld=$with_gnu_ld
5391 lt_save_path_LD=$lt_cv_path_LD
5392 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
5393 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
5394 else
5395 $as_unset lt_cv_prog_gnu_ld
5396 fi
5397 if test -n "${lt_cv_path_LDCXX+set}"; then
5398 lt_cv_path_LD=$lt_cv_path_LDCXX
5399 else
5400 $as_unset lt_cv_path_LD
5401 fi
5402 test -z "${LDCXX+set}" || LD=$LDCXX
5403 CC=${CXX-"c++"}
5404 compiler=$CC
5405 _LT_TAGVAR(compiler, $1)=$CC
5406 _LT_CC_BASENAME([$compiler])
5407
5408 if test -n "$compiler"; then
5409 # We don't want -fno-exception when compiling C++ code, so set the
5410 # no_builtin_flag separately
5411 if test "$GXX" = yes; then
5412 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5413 else
5414 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5415 fi
5416
5417 if test "$GXX" = yes; then
5418 # Set up default GNU C++ configuration
5419
5420 LT_PATH_LD
5421
5422 # Check if GNU C++ uses GNU ld as the underlying linker, since the
5423 # archiving commands below assume that GNU ld is being used.
5424 if test "$with_gnu_ld" = yes; then
5425 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5426 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5427
5428 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5429 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5430
5431 # If archive_cmds runs LD, not CC, wlarc should be empty
5432 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
5433 # investigate it a little bit more. (MM)
5434 wlarc='${wl}'
5435
5436 # ancient GNU ld didn't support --whole-archive et. al.
5437 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
5438 $GREP 'no-whole-archive' > /dev/null; then
5439 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5440 else
5441 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5442 fi
5443 else
5444 with_gnu_ld=no
5445 wlarc=
5446
5447 # A generic and very simple default shared library creation
5448 # command for GNU C++ for the case where it uses the native
5449 # linker, instead of GNU ld. If possible, this setting should
5450 # overridden to take advantage of the native linker features on
5451 # the platform it is being used on.
5452 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
5453 fi
5454
5455 # Commands to make compiler produce verbose output that lists
5456 # what "hidden" libraries, object files and flags are used when
5457 # linking a shared library.
5458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
5459
5460 else
5461 GXX=no
5462 with_gnu_ld=no
5463 wlarc=
5464 fi
5465
5466 # PORTME: fill in a description of your system's C++ link characteristics
5467 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5468 _LT_TAGVAR(ld_shlibs, $1)=yes
5469 case $host_os in
5470 aix3*)
5471 # FIXME: insert proper C++ library support
5472 _LT_TAGVAR(ld_shlibs, $1)=no
5473 ;;
5474 aix[[4-9]]*)
5475 if test "$host_cpu" = ia64; then
5476 # On IA64, the linker does run time linking by default, so we don't
5477 # have to do anything special.
5478 aix_use_runtimelinking=no
5479 exp_sym_flag='-Bexport'
5480 no_entry_flag=""
5481 else
5482 aix_use_runtimelinking=no
5483
5484 # Test if we are trying to use run time linking or normal
5485 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5486 # need to do runtime linking.
5487 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5488 for ld_flag in $LDFLAGS; do
5489 case $ld_flag in
5490 *-brtl*)
5491 aix_use_runtimelinking=yes
5492 break
5493 ;;
5494 esac
5495 done
5496 ;;
5497 esac
5498
5499 exp_sym_flag='-bexport'
5500 no_entry_flag='-bnoentry'
5501 fi
5502
5503 # When large executables or shared objects are built, AIX ld can
5504 # have problems creating the table of contents. If linking a library
5505 # or program results in "error TOC overflow" add -mminimal-toc to
5506 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5507 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5508
5509 _LT_TAGVAR(archive_cmds, $1)=''
5510 _LT_TAGVAR(hardcode_direct, $1)=yes
5511 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5512 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5513 _LT_TAGVAR(link_all_deplibs, $1)=yes
5514 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5515
5516 if test "$GXX" = yes; then
5517 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5518 # We only want to do this on AIX 4.2 and lower, the check
5519 # below for broken collect2 doesn't work under 4.3+
5520 collect2name=`${CC} -print-prog-name=collect2`
5521 if test -f "$collect2name" &&
5522 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5523 then
5524 # We have reworked collect2
5525 :
5526 else
5527 # We have old collect2
5528 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5529 # It fails to find uninstalled libraries when the uninstalled
5530 # path is not listed in the libpath. Setting hardcode_minus_L
5531 # to unsupported forces relinking
5532 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5533 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5534 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5535 fi
5536 esac
5537 shared_flag='-shared'
5538 if test "$aix_use_runtimelinking" = yes; then
5539 shared_flag="$shared_flag "'${wl}-G'
5540 fi
5541 else
5542 # not using gcc
5543 if test "$host_cpu" = ia64; then
5544 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5545 # chokes on -Wl,-G. The following line is correct:
5546 shared_flag='-G'
5547 else
5548 if test "$aix_use_runtimelinking" = yes; then
5549 shared_flag='${wl}-G'
5550 else
5551 shared_flag='${wl}-bM:SRE'
5552 fi
5553 fi
5554 fi
5555
5556 # It seems that -bexpall does not export symbols beginning with
5557 # underscore (_), so it is better to generate a list of symbols to
5558 # export.
5559 _LT_TAGVAR(always_export_symbols, $1)=yes
5560 if test "$aix_use_runtimelinking" = yes; then
5561 # Warning - without using the other runtime loading flags (-brtl),
5562 # -berok will link without error, but may produce a broken library.
5563 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5564 # Determine the default libpath from the value encoded in an empty
5565 # executable.
5566 _LT_SYS_MODULE_PATH_AIX
5567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5568
5569 _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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5570 else
5571 if test "$host_cpu" = ia64; then
5572 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5573 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5574 _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"
5575 else
5576 # Determine the default libpath from the value encoded in an
5577 # empty executable.
5578 _LT_SYS_MODULE_PATH_AIX
5579 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5580 # Warning - without using the other run time loading flags,
5581 # -berok will link without error, but may produce a broken library.
5582 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5583 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5584 # Exported symbols can be pulled into shared objects from archives
5585 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5586 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5587 # This is similar to how AIX traditionally builds its shared
5588 # libraries.
5589 _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'
5590 fi
5591 fi
5592 ;;
5593
5594 beos*)
5595 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5596 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5597 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5598 # support --undefined. This deserves some investigation. FIXME
5599 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5600 else
5601 _LT_TAGVAR(ld_shlibs, $1)=no
5602 fi
5603 ;;
5604
5605 chorus*)
5606 case $cc_basename in
5607 *)
5608 # FIXME: insert proper C++ library support
5609 _LT_TAGVAR(ld_shlibs, $1)=no
5610 ;;
5611 esac
5612 ;;
5613
5614 cygwin* | mingw* | pw32*)
5615 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5616 # as there is no search path for DLLs.
5617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5618 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5619 _LT_TAGVAR(always_export_symbols, $1)=no
5620 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5621
5622 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5623 _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'
5624 # If the export-symbols file already is a .def file (1st line
5625 # is EXPORTS), use it as is; otherwise, prepend...
5626 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5627 cp $export_symbols $output_objdir/$soname.def;
5628 else
5629 echo EXPORTS > $output_objdir/$soname.def;
5630 cat $export_symbols >> $output_objdir/$soname.def;
5631 fi~
5632 $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'
5633 else
5634 _LT_TAGVAR(ld_shlibs, $1)=no
5635 fi
5636 ;;
5637 darwin* | rhapsody*)
5638 _LT_DARWIN_LINKER_FEATURES($1)
5639 ;;
5640
5641 dgux*)
5642 case $cc_basename in
5643 ec++*)
5644 # FIXME: insert proper C++ library support
5645 _LT_TAGVAR(ld_shlibs, $1)=no
5646 ;;
5647 ghcx*)
5648 # Green Hills C++ Compiler
5649 # FIXME: insert proper C++ library support
5650 _LT_TAGVAR(ld_shlibs, $1)=no
5651 ;;
5652 *)
5653 # FIXME: insert proper C++ library support
5654 _LT_TAGVAR(ld_shlibs, $1)=no
5655 ;;
5656 esac
5657 ;;
5658
5659 freebsd[[12]]*)
5660 # C++ shared libraries reported to be fairly broken before
5661 # switch to ELF
5662 _LT_TAGVAR(ld_shlibs, $1)=no
5663 ;;
5664
5665 freebsd-elf*)
5666 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5667 ;;
5668
5669 freebsd* | dragonfly*)
5670 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
5671 # conventions
5672 _LT_TAGVAR(ld_shlibs, $1)=yes
5673 ;;
5674
5675 gnu*)
5676 ;;
5677
5678 hpux9*)
5679 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5680 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5681 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5682 _LT_TAGVAR(hardcode_direct, $1)=yes
5683 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5684 # but as the default
5685 # location of the library.
5686
5687 case $cc_basename in
5688 CC*)
5689 # FIXME: insert proper C++ library support
5690 _LT_TAGVAR(ld_shlibs, $1)=no
5691 ;;
5692 aCC*)
5693 _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'
5694 # Commands to make compiler produce verbose output that lists
5695 # what "hidden" libraries, object files and flags are used when
5696 # linking a shared library.
5697 #
5698 # There doesn't appear to be a way to prevent this compiler from
5699 # explicitly linking system object files so we need to strip them
5700 # from the output so that they don't get included in the library
5701 # dependencies.
5702 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; $ECHO "X$list" | $Xsed'
5703 ;;
5704 *)
5705 if test "$GXX" = yes; then
5706 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5707 else
5708 # FIXME: insert proper C++ library support
5709 _LT_TAGVAR(ld_shlibs, $1)=no
5710 fi
5711 ;;
5712 esac
5713 ;;
5714
5715 hpux10*|hpux11*)
5716 if test $with_gnu_ld = no; then
5717 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5718 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5719
5720 case $host_cpu in
5721 hppa*64*|ia64*)
5722 ;;
5723 *)
5724 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5725 ;;
5726 esac
5727 fi
5728 case $host_cpu in
5729 hppa*64*|ia64*)
5730 _LT_TAGVAR(hardcode_direct, $1)=no
5731 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5732 ;;
5733 *)
5734 _LT_TAGVAR(hardcode_direct, $1)=yes
5735 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5736 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
5737 # but as the default
5738 # location of the library.
5739 ;;
5740 esac
5741
5742 case $cc_basename in
5743 CC*)
5744 # FIXME: insert proper C++ library support
5745 _LT_TAGVAR(ld_shlibs, $1)=no
5746 ;;
5747 aCC*)
5748 case $host_cpu in
5749 hppa*64*)
5750 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5751 ;;
5752 ia64*)
5753 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5754 ;;
5755 *)
5756 _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'
5757 ;;
5758 esac
5759 # Commands to make compiler produce verbose output that lists
5760 # what "hidden" libraries, object files and flags are used when
5761 # linking a shared library.
5762 #
5763 # There doesn't appear to be a way to prevent this compiler from
5764 # explicitly linking system object files so we need to strip them
5765 # from the output so that they don't get included in the library
5766 # dependencies.
5767 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5768 ;;
5769 *)
5770 if test "$GXX" = yes; then
5771 if test $with_gnu_ld = no; then
5772 case $host_cpu in
5773 hppa*64*)
5774 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5775 ;;
5776 ia64*)
5777 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5778 ;;
5779 *)
5780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5781 ;;
5782 esac
5783 fi
5784 else
5785 # FIXME: insert proper C++ library support
5786 _LT_TAGVAR(ld_shlibs, $1)=no
5787 fi
5788 ;;
5789 esac
5790 ;;
5791
5792 interix[[3-9]]*)
5793 _LT_TAGVAR(hardcode_direct, $1)=no
5794 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5795 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5796 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5797 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5798 # Instead, shared libraries are loaded at an image base (0x10000000 by
5799 # default) and relocated if they conflict, which is a slow very memory
5800 # consuming and fragmenting process. To avoid this, we pick a random,
5801 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5802 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5803 _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'
5804 _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'
5805 ;;
5806 irix5* | irix6*)
5807 case $cc_basename in
5808 CC*)
5809 # SGI C++
5810 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5811
5812 # Archives containing C++ object files must be created using
5813 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5814 # necessary to make sure instantiated templates are included
5815 # in the archive.
5816 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5817 ;;
5818 *)
5819 if test "$GXX" = yes; then
5820 if test "$with_gnu_ld" = no; then
5821 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5822 else
5823 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
5824 fi
5825 fi
5826 _LT_TAGVAR(link_all_deplibs, $1)=yes
5827 ;;
5828 esac
5829 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5830 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5831 _LT_TAGVAR(inherit_rpath, $1)=yes
5832 ;;
5833
5834 linux* | k*bsd*-gnu)
5835 case $cc_basename in
5836 KCC*)
5837 # Kuck and Associates, Inc. (KAI) C++ Compiler
5838
5839 # KCC will only create a shared library if the output file
5840 # ends with ".so" (or ".sl" for HP-UX), so rename the library
5841 # to its proper name (with version) after linking.
5842 _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'
5843 _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'
5844 # Commands to make compiler produce verbose output that lists
5845 # what "hidden" libraries, object files and flags are used when
5846 # linking a shared library.
5847 #
5848 # There doesn't appear to be a way to prevent this compiler from
5849 # explicitly linking system object files so we need to strip them
5850 # from the output so that they don't get included in the library
5851 # dependencies.
5852 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5853
5854 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5855 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5856
5857 # Archives containing C++ object files must be created using
5858 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5859 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5860 ;;
5861 icpc* | ecpc* )
5862 # Intel C++
5863 with_gnu_ld=yes
5864 # version 8.0 and above of icpc choke on multiply defined symbols
5865 # if we add $predep_objects and $postdep_objects, however 7.1 and
5866 # earlier do not add the objects themselves.
5867 case `$CC -V 2>&1` in
5868 *"Version 7."*)
5869 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5870 _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'
5871 ;;
5872 *) # Version 8.0 or newer
5873 tmp_idyn=
5874 case $host_cpu in
5875 ia64*) tmp_idyn=' -i_dynamic';;
5876 esac
5877 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5878 _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'
5879 ;;
5880 esac
5881 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5882 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5883 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5884 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5885 ;;
5886 pgCC* | pgcpp*)
5887 # Portland Group C++ compiler
5888 case `$CC -V` in
5889 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
5890 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5891 rm -rf $tpldir~
5892 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5893 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
5894 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5895 rm -rf $tpldir~
5896 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5897 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
5898 $RANLIB $oldlib'
5899 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5900 rm -rf $tpldir~
5901 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5902 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5903 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5904 rm -rf $tpldir~
5905 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5906 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
5907 ;;
5908 *) # Version 6 will use weak symbols
5909 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5910 _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'
5911 ;;
5912 esac
5913
5914 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5915 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5916 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5917 ;;
5918 cxx*)
5919 # Compaq C++
5920 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5921 _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'
5922
5923 runpath_var=LD_RUN_PATH
5924 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5925 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5926
5927 # Commands to make compiler produce verbose output that lists
5928 # what "hidden" libraries, object files and flags are used when
5929 # linking a shared library.
5930 #
5931 # There doesn't appear to be a way to prevent this compiler from
5932 # explicitly linking system object files so we need to strip them
5933 # from the output so that they don't get included in the library
5934 # dependencies.
5935 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
5936 ;;
5937 xl*)
5938 # IBM XL 8.0 on PPC, with GNU ld
5939 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5940 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5941 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5942 if test "x$supports_anon_versioning" = xyes; then
5943 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5944 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5945 echo "local: *; };" >> $output_objdir/$libname.ver~
5946 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5947 fi
5948 ;;
5949 *)
5950 case `$CC -V 2>&1 | sed 5q` in
5951 *Sun\ C*)
5952 # Sun C++ 5.9
5953 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5954 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5955 _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'
5956 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5957 _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; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
5958 _LT_TAGVAR(compiler_needs_object, $1)=yes
5959
5960 # Not sure whether something based on
5961 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
5962 # would be better.
5963 output_verbose_link_cmd='echo'
5964
5965 # Archives containing C++ object files must be created using
5966 # "CC -xar", where "CC" is the Sun C++ compiler. This is
5967 # necessary to make sure instantiated templates are included
5968 # in the archive.
5969 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5970 ;;
5971 esac
5972 ;;
5973 esac
5974 ;;
5975
5976 lynxos*)
5977 # FIXME: insert proper C++ library support
5978 _LT_TAGVAR(ld_shlibs, $1)=no
5979 ;;
5980
5981 m88k*)
5982 # FIXME: insert proper C++ library support
5983 _LT_TAGVAR(ld_shlibs, $1)=no
5984 ;;
5985
5986 mvs*)
5987 case $cc_basename in
5988 cxx*)
5989 # FIXME: insert proper C++ library support
5990 _LT_TAGVAR(ld_shlibs, $1)=no
5991 ;;
5992 *)
5993 # FIXME: insert proper C++ library support
5994 _LT_TAGVAR(ld_shlibs, $1)=no
5995 ;;
5996 esac
5997 ;;
5998
5999 netbsd*)
6000 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6001 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6002 wlarc=
6003 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6004 _LT_TAGVAR(hardcode_direct, $1)=yes
6005 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6006 fi
6007 # Workaround some broken pre-1.5 toolchains
6008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6009 ;;
6010
6011 *nto* | *qnx*)
6012 _LT_TAGVAR(ld_shlibs, $1)=yes
6013 ;;
6014
6015 openbsd2*)
6016 # C++ shared libraries are fairly broken
6017 _LT_TAGVAR(ld_shlibs, $1)=no
6018 ;;
6019
6020 openbsd*)
6021 if test -f /usr/libexec/ld.so; then
6022 _LT_TAGVAR(hardcode_direct, $1)=yes
6023 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6024 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6025 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6026 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6027 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028 _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'
6029 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6030 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6031 fi
6032 output_verbose_link_cmd=echo
6033 else
6034 _LT_TAGVAR(ld_shlibs, $1)=no
6035 fi
6036 ;;
6037
6038 osf3* | osf4* | osf5*)
6039 case $cc_basename in
6040 KCC*)
6041 # Kuck and Associates, Inc. (KAI) C++ Compiler
6042
6043 # KCC will only create a shared library if the output file
6044 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6045 # to its proper name (with version) after linking.
6046 _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'
6047
6048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6049 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6050
6051 # Archives containing C++ object files must be created using
6052 # the KAI C++ compiler.
6053 case $host in
6054 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6055 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6056 esac
6057 ;;
6058 RCC*)
6059 # Rational C++ 2.4.1
6060 # FIXME: insert proper C++ library support
6061 _LT_TAGVAR(ld_shlibs, $1)=no
6062 ;;
6063 cxx*)
6064 case $host in
6065 osf3*)
6066 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6067 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6068 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6069 ;;
6070 *)
6071 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6072 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6073 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6074 echo "-hidden">> $lib.exp~
6075 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6076 $RM $lib.exp'
6077 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6078 ;;
6079 esac
6080
6081 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6082
6083 # Commands to make compiler produce verbose output that lists
6084 # what "hidden" libraries, object files and flags are used when
6085 # linking a shared library.
6086 #
6087 # There doesn't appear to be a way to prevent this compiler from
6088 # explicitly linking system object files so we need to strip them
6089 # from the output so that they don't get included in the library
6090 # dependencies.
6091 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6092 ;;
6093 *)
6094 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6095 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6096 case $host in
6097 osf3*)
6098 _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" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6099 ;;
6100 *)
6101 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6102 ;;
6103 esac
6104
6105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6106 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6107
6108 # Commands to make compiler produce verbose output that lists
6109 # what "hidden" libraries, object files and flags are used when
6110 # linking a shared library.
6111 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6112
6113 else
6114 # FIXME: insert proper C++ library support
6115 _LT_TAGVAR(ld_shlibs, $1)=no
6116 fi
6117 ;;
6118 esac
6119 ;;
6120
6121 psos*)
6122 # FIXME: insert proper C++ library support
6123 _LT_TAGVAR(ld_shlibs, $1)=no
6124 ;;
6125
6126 sunos4*)
6127 case $cc_basename in
6128 CC*)
6129 # Sun C++ 4.x
6130 # FIXME: insert proper C++ library support
6131 _LT_TAGVAR(ld_shlibs, $1)=no
6132 ;;
6133 lcc*)
6134 # Lucid
6135 # FIXME: insert proper C++ library support
6136 _LT_TAGVAR(ld_shlibs, $1)=no
6137 ;;
6138 *)
6139 # FIXME: insert proper C++ library support
6140 _LT_TAGVAR(ld_shlibs, $1)=no
6141 ;;
6142 esac
6143 ;;
6144
6145 solaris*)
6146 case $cc_basename in
6147 CC*)
6148 # Sun C++ 4.2, 5.x and Centerline C++
6149 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6150 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6151 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6152 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6153 $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'
6154
6155 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6156 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6157 case $host_os in
6158 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6159 *)
6160 # The compiler driver will combine and reorder linker options,
6161 # but understands `-z linker_flag'.
6162 # Supported since Solaris 2.6 (maybe 2.5.1?)
6163 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6164 ;;
6165 esac
6166 _LT_TAGVAR(link_all_deplibs, $1)=yes
6167
6168 output_verbose_link_cmd='echo'
6169
6170 # Archives containing C++ object files must be created using
6171 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6172 # necessary to make sure instantiated templates are included
6173 # in the archive.
6174 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6175 ;;
6176 gcx*)
6177 # Green Hills C++ Compiler
6178 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6179
6180 # The C++ compiler must be used to create the archive.
6181 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6182 ;;
6183 *)
6184 # GNU C++ compiler with Solaris linker
6185 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6186 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6187 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6188 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6189 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6190 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6191
6192 # Commands to make compiler produce verbose output that lists
6193 # what "hidden" libraries, object files and flags are used when
6194 # linking a shared library.
6195 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6196 else
6197 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6198 # platform.
6199 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6200 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6201 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6202
6203 # Commands to make compiler produce verbose output that lists
6204 # what "hidden" libraries, object files and flags are used when
6205 # linking a shared library.
6206 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6207 fi
6208
6209 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6210 case $host_os in
6211 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6212 *)
6213 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6214 ;;
6215 esac
6216 fi
6217 ;;
6218 esac
6219 ;;
6220
6221 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6222 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6223 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6224 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6225 runpath_var='LD_RUN_PATH'
6226
6227 case $cc_basename in
6228 CC*)
6229 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6230 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6231 ;;
6232 *)
6233 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6234 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6235 ;;
6236 esac
6237 ;;
6238
6239 sysv5* | sco3.2v5* | sco5v6*)
6240 # Note: We can NOT use -z defs as we might desire, because we do not
6241 # link with -lc, and that would cause any symbols used from libc to
6242 # always be unresolved, which means just about no library would
6243 # ever link correctly. If we're not using GNU ld we use -z text
6244 # though, which does catch some bad symbols but isn't as heavy-handed
6245 # as -z defs.
6246 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6247 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6248 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6249 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6250 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6251 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6252 _LT_TAGVAR(link_all_deplibs, $1)=yes
6253 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6254 runpath_var='LD_RUN_PATH'
6255
6256 case $cc_basename in
6257 CC*)
6258 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6259 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6260 ;;
6261 *)
6262 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6263 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6264 ;;
6265 esac
6266 ;;
6267
6268 tandem*)
6269 case $cc_basename in
6270 NCC*)
6271 # NonStop-UX NCC 3.20
6272 # FIXME: insert proper C++ library support
6273 _LT_TAGVAR(ld_shlibs, $1)=no
6274 ;;
6275 *)
6276 # FIXME: insert proper C++ library support
6277 _LT_TAGVAR(ld_shlibs, $1)=no
6278 ;;
6279 esac
6280 ;;
6281
6282 vxworks*)
6283 # FIXME: insert proper C++ library support
6284 _LT_TAGVAR(ld_shlibs, $1)=no
6285 ;;
6286
6287 *)
6288 # FIXME: insert proper C++ library support
6289 _LT_TAGVAR(ld_shlibs, $1)=no
6290 ;;
6291 esac
6292
6293 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6294 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6295
6296 _LT_TAGVAR(GCC, $1)="$GXX"
6297 _LT_TAGVAR(LD, $1)="$LD"
6298
6299 ## CAVEAT EMPTOR:
6300 ## There is no encapsulation within the following macros, do not change
6301 ## the running order or otherwise move them around unless you know exactly
6302 ## what you are doing...
6303 _LT_SYS_HIDDEN_LIBDEPS($1)
6304 _LT_COMPILER_PIC($1)
6305 _LT_COMPILER_C_O($1)
6306 _LT_COMPILER_FILE_LOCKS($1)
6307 _LT_LINKER_SHLIBS($1)
6308 _LT_SYS_DYNAMIC_LINKER($1)
6309 _LT_LINKER_HARDCODE_LIBPATH($1)
6310
6311 _LT_CONFIG($1)
6312 fi # test -n "$compiler"
6313
6314 CC=$lt_save_CC
6315 LDCXX=$LD
6316 LD=$lt_save_LD
6317 GCC=$lt_save_GCC
6318 with_gnu_ld=$lt_save_with_gnu_ld
6319 lt_cv_path_LDCXX=$lt_cv_path_LD
6320 lt_cv_path_LD=$lt_save_path_LD
6321 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6322 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6323 fi # test "$_lt_caught_CXX_error" != yes
6324
6325 AC_LANG_POP
6326 ])# _LT_LANG_CXX_CONFIG
6327
6328
6329 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
65526330 # ---------------------------------
6553 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6554
6555
6556 # old names
6557 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6558 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6559 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6560 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6561 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6562 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6563 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6564
6565 # This is just to silence aclocal about the macro not being used
6566 ifelse([AC_DISABLE_FAST_INSTALL])
6567
6568 AC_DEFUN([LT_AC_PROG_GCJ],
6569 [AC_CHECK_TOOL(GCJ, gcj, no)
6570 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6571 AC_SUBST(GCJFLAGS)
6331 # Figure out "hidden" library dependencies from verbose
6332 # compiler output when linking a shared library.
6333 # Parse the compiler output and extract the necessary
6334 # objects, libraries and library flags.
6335 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6336 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6337 # Dependencies to place before and after the object being linked:
6338 _LT_TAGVAR(predep_objects, $1)=
6339 _LT_TAGVAR(postdep_objects, $1)=
6340 _LT_TAGVAR(predeps, $1)=
6341 _LT_TAGVAR(postdeps, $1)=
6342 _LT_TAGVAR(compiler_lib_search_path, $1)=
6343
6344 dnl we can't use the lt_simple_compile_test_code here,
6345 dnl because it contains code intended for an executable,
6346 dnl not a library. It's possible we should let each
6347 dnl tag define a new lt_????_link_test_code variable,
6348 dnl but it's only used here...
6349 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
6350 int a;
6351 void foo (void) { a = 0; }
6352 _LT_EOF
6353 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
6354 class Foo
6355 {
6356 public:
6357 Foo (void) { a = 0; }
6358 private:
6359 int a;
6360 };
6361 _LT_EOF
6362 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
6363 subroutine foo
6364 implicit none
6365 integer*4 a
6366 a=0
6367 return
6368 end
6369 _LT_EOF
6370 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
6371 subroutine foo
6372 implicit none
6373 integer a
6374 a=0
6375 return
6376 end
6377 _LT_EOF
6378 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
6379 public class foo {
6380 private int a;
6381 public void bar (void) {
6382 a = 0;
6383 }
6384 };
6385 _LT_EOF
65726386 ])
6573
6574 AC_DEFUN([LT_AC_PROG_RC],
6575 [AC_CHECK_TOOL(RC, windres, no)
6387 dnl Parse the compiler output and extract the necessary
6388 dnl objects, libraries and library flags.
6389 if AC_TRY_EVAL(ac_compile); then
6390 # Parse the compiler output and extract the necessary
6391 # objects, libraries and library flags.
6392
6393 # Sentinel used to keep track of whether or not we are before
6394 # the conftest object file.
6395 pre_test_object_deps_done=no
6396
6397 for p in `eval "$output_verbose_link_cmd"`; do
6398 case $p in
6399
6400 -L* | -R* | -l*)
6401 # Some compilers place space between "-{L,R}" and the path.
6402 # Remove the space.
6403 if test $p = "-L" ||
6404 test $p = "-R"; then
6405 prev=$p
6406 continue
6407 else
6408 prev=
6409 fi
6410
6411 if test "$pre_test_object_deps_done" = no; then
6412 case $p in
6413 -L* | -R*)
6414 # Internal compiler library paths should come after those
6415 # provided the user. The postdeps already come after the
6416 # user supplied libs so there is no need to process them.
6417 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
6418 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
6419 else
6420 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
6421 fi
6422 ;;
6423 # The "-l" case would never come before the object being
6424 # linked, so don't bother handling this case.
6425 esac
6426 else
6427 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
6428 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
6429 else
6430 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
6431 fi
6432 fi
6433 ;;
6434
6435 *.$objext)
6436 # This assumes that the test object file only shows up
6437 # once in the compiler output.
6438 if test "$p" = "conftest.$objext"; then
6439 pre_test_object_deps_done=yes
6440 continue
6441 fi
6442
6443 if test "$pre_test_object_deps_done" = no; then
6444 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
6445 _LT_TAGVAR(predep_objects, $1)="$p"
6446 else
6447 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
6448 fi
6449 else
6450 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
6451 _LT_TAGVAR(postdep_objects, $1)="$p"
6452 else
6453 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
6454 fi
6455 fi
6456 ;;
6457
6458 *) ;; # Ignore the rest.
6459
6460 esac
6461 done
6462
6463 # Clean up.
6464 rm -f a.out a.exe
6465 else
6466 echo "libtool.m4: error: problem compiling $1 test program"
6467 fi
6468
6469 $RM -f confest.$objext
6470
6471 # PORTME: override above test on systems where it is broken
6472 m4_if([$1], [CXX],
6473 [case $host_os in
6474 interix[[3-9]]*)
6475 # Interix 3.5 installs completely hosed .la files for C++, so rather than
6476 # hack all around it, let's just trust "g++" to DTRT.
6477 _LT_TAGVAR(predep_objects,$1)=
6478 _LT_TAGVAR(postdep_objects,$1)=
6479 _LT_TAGVAR(postdeps,$1)=
6480 ;;
6481
6482 linux*)
6483 case `$CC -V 2>&1 | sed 5q` in
6484 *Sun\ C*)
6485 # Sun C++ 5.9
6486
6487 # The more standards-conforming stlport4 library is
6488 # incompatible with the Cstd library. Avoid specifying
6489 # it if it's in CXXFLAGS. Ignore libCrun as
6490 # -library=stlport4 depends on it.
6491 case " $CXX $CXXFLAGS " in
6492 *" -library=stlport4 "*)
6493 solaris_use_stlport4=yes
6494 ;;
6495 esac
6496
6497 if test "$solaris_use_stlport4" != yes; then
6498 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6499 fi
6500 ;;
6501 esac
6502 ;;
6503
6504 solaris*)
6505 case $cc_basename in
6506 CC*)
6507 # The more standards-conforming stlport4 library is
6508 # incompatible with the Cstd library. Avoid specifying
6509 # it if it's in CXXFLAGS. Ignore libCrun as
6510 # -library=stlport4 depends on it.
6511 case " $CXX $CXXFLAGS " in
6512 *" -library=stlport4 "*)
6513 solaris_use_stlport4=yes
6514 ;;
6515 esac
6516
6517 # Adding this requires a known-good setup of shared libraries for
6518 # Sun compiler versions before 5.6, else PIC objects from an old
6519 # archive will be linked into the output, leading to subtle bugs.
6520 if test "$solaris_use_stlport4" != yes; then
6521 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
6522 fi
6523 ;;
6524 esac
6525 ;;
6526 esac
65766527 ])
65776528
6578
6579 # Cheap backport of AS_EXECUTABLE_P and required macros
6580 # from Autoconf 2.59; we should not use $as_executable_p directly.
6581
6582 # _AS_TEST_PREPARE
6583 # ----------------
6584 m4_ifndef([_AS_TEST_PREPARE],
6585 [m4_defun([_AS_TEST_PREPARE],
6586 [if test -x / >/dev/null 2>&1; then
6587 as_executable_p='test -x'
6588 else
6589 as_executable_p='test -f'
6529 case " $_LT_TAGVAR(postdeps, $1) " in
6530 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
6531 esac
6532 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
6533 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
6534 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
65906535 fi
6591 ])])# _AS_TEST_PREPARE
6592
6593 # AS_EXECUTABLE_P
6594 # ---------------
6595 # Check whether a file is executable.
6596 m4_ifndef([AS_EXECUTABLE_P],
6597 [m4_defun([AS_EXECUTABLE_P],
6598 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6599 $as_executable_p $1[]dnl
6600 ])])# AS_EXECUTABLE_P
6601
6536 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
6537 [The directories searched by this compiler when creating a shared library])
6538 _LT_TAGDECL([], [predep_objects], [1],
6539 [Dependencies to place before and after the objects being linked to
6540 create a shared library])
6541 _LT_TAGDECL([], [postdep_objects], [1])
6542 _LT_TAGDECL([], [predeps], [1])
6543 _LT_TAGDECL([], [postdeps], [1])
6544 _LT_TAGDECL([], [compiler_lib_search_path], [1],
6545 [The library search path used internally by the compiler when linking
6546 a shared library])
6547 ])# _LT_SYS_HIDDEN_LIBDEPS
6548
6549
6550 # _LT_PROG_F77
6551 # ------------
6552 # Since AC_PROG_F77 is broken, in that it returns the empty string
6553 # if there is no fortran compiler, we have our own version here.
6554 m4_defun([_LT_PROG_F77],
6555 [
6556 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
6557 AC_PROG_F77
6558 if test -z "$F77" || test "X$F77" = "Xno"; then
6559 _lt_disable_F77=yes
6560 fi
6561 popdef([AC_MSG_ERROR])
6562 ])# _LT_PROG_F77
6563
6564 dnl aclocal-1.4 backwards compatibility:
6565 dnl AC_DEFUN([_LT_PROG_F77], [])
6566
6567
6568 # _LT_LANG_F77_CONFIG([TAG])
6569 # --------------------------
6570 # Ensure that the configuration variables for a Fortran 77 compiler are
6571 # suitably defined. These variables are subsequently used by _LT_CONFIG
6572 # to write the compiler configuration to `libtool'.
6573 m4_defun([_LT_LANG_F77_CONFIG],
6574 [AC_REQUIRE([_LT_PROG_F77])dnl
6575 AC_LANG_PUSH(Fortran 77)
6576
6577 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6578 _LT_TAGVAR(allow_undefined_flag, $1)=
6579 _LT_TAGVAR(always_export_symbols, $1)=no
6580 _LT_TAGVAR(archive_expsym_cmds, $1)=
6581 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6582 _LT_TAGVAR(hardcode_direct, $1)=no
6583 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6584 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6585 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6586 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6587 _LT_TAGVAR(hardcode_minus_L, $1)=no
6588 _LT_TAGVAR(hardcode_automatic, $1)=no
6589 _LT_TAGVAR(inherit_rpath, $1)=no
6590 _LT_TAGVAR(module_cmds, $1)=
6591 _LT_TAGVAR(module_expsym_cmds, $1)=
6592 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6593 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6594 _LT_TAGVAR(no_undefined_flag, $1)=
6595 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6596 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6597
6598 # Source file extension for f77 test sources.
6599 ac_ext=f
6600
6601 # Object file extension for compiled f77 test sources.
6602 objext=o
6603 _LT_TAGVAR(objext, $1)=$objext
6604
6605 # No sense in running all these tests if we already determined that
6606 # the F77 compiler isn't working. Some variables (like enable_shared)
6607 # are currently assumed to apply to all compilers on this platform,
6608 # and will be corrupted by setting them based on a non-working compiler.
6609 if test "$_lt_disable_F77" != yes; then
6610 # Code to be used in simple compile tests
6611 lt_simple_compile_test_code="\
6612 subroutine t
6613 return
6614 end
6615 "
6616
6617 # Code to be used in simple link tests
6618 lt_simple_link_test_code="\
6619 program t
6620 end
6621 "
6622
6623 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6624 _LT_TAG_COMPILER
6625
6626 # save warnings/boilerplate of simple test code
6627 _LT_COMPILER_BOILERPLATE
6628 _LT_LINKER_BOILERPLATE
6629
6630 # Allow CC to be a program name with arguments.
6631 lt_save_CC="$CC"
6632 lt_save_GCC=$GCC
6633 CC=${F77-"f77"}
6634 compiler=$CC
6635 _LT_TAGVAR(compiler, $1)=$CC
6636 _LT_CC_BASENAME([$compiler])
6637 GCC=$G77
6638 if test -n "$compiler"; then
6639 AC_MSG_CHECKING([if libtool supports shared libraries])
6640 AC_MSG_RESULT([$can_build_shared])
6641
6642 AC_MSG_CHECKING([whether to build shared libraries])
6643 test "$can_build_shared" = "no" && enable_shared=no
6644
6645 # On AIX, shared libraries and static libraries use the same namespace, and
6646 # are all built from PIC.
6647 case $host_os in
6648 aix3*)
6649 test "$enable_shared" = yes && enable_static=no
6650 if test -n "$RANLIB"; then
6651 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6652 postinstall_cmds='$RANLIB $lib'
6653 fi
6654 ;;
6655 aix[[4-9]]*)
6656 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6657 test "$enable_shared" = yes && enable_static=no
6658 fi
6659 ;;
6660 esac
6661 AC_MSG_RESULT([$enable_shared])
6662
6663 AC_MSG_CHECKING([whether to build static libraries])
6664 # Make sure either enable_shared or enable_static is yes.
6665 test "$enable_shared" = yes || enable_static=yes
6666 AC_MSG_RESULT([$enable_static])
6667
6668 _LT_TAGVAR(GCC, $1)="$G77"
6669 _LT_TAGVAR(LD, $1)="$LD"
6670
6671 ## CAVEAT EMPTOR:
6672 ## There is no encapsulation within the following macros, do not change
6673 ## the running order or otherwise move them around unless you know exactly
6674 ## what you are doing...
6675 _LT_COMPILER_PIC($1)
6676 _LT_COMPILER_C_O($1)
6677 _LT_COMPILER_FILE_LOCKS($1)
6678 _LT_LINKER_SHLIBS($1)
6679 _LT_SYS_DYNAMIC_LINKER($1)
6680 _LT_LINKER_HARDCODE_LIBPATH($1)
6681
6682 _LT_CONFIG($1)
6683 fi # test -n "$compiler"
6684
6685 GCC=$lt_save_GCC
6686 CC="$lt_save_CC"
6687 fi # test "$_lt_disable_F77" != yes
6688
6689 AC_LANG_POP
6690 ])# _LT_LANG_F77_CONFIG
6691
6692
6693 # _LT_PROG_FC
6694 # -----------
6695 # Since AC_PROG_FC is broken, in that it returns the empty string
6696 # if there is no fortran compiler, we have our own version here.
6697 m4_defun([_LT_PROG_FC],
6698 [
6699 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
6700 AC_PROG_FC
6701 if test -z "$FC" || test "X$FC" = "Xno"; then
6702 _lt_disable_FC=yes
6703 fi
6704 popdef([AC_MSG_ERROR])
6705 ])# _LT_PROG_FC
6706
6707 dnl aclocal-1.4 backwards compatibility:
6708 dnl AC_DEFUN([_LT_PROG_FC], [])
6709
6710
6711 # _LT_LANG_FC_CONFIG([TAG])
6712 # -------------------------
6713 # Ensure that the configuration variables for a Fortran compiler are
6714 # suitably defined. These variables are subsequently used by _LT_CONFIG
6715 # to write the compiler configuration to `libtool'.
6716 m4_defun([_LT_LANG_FC_CONFIG],
6717 [AC_REQUIRE([_LT_PROG_FC])dnl
6718 AC_LANG_PUSH(Fortran)
6719
6720 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6721 _LT_TAGVAR(allow_undefined_flag, $1)=
6722 _LT_TAGVAR(always_export_symbols, $1)=no
6723 _LT_TAGVAR(archive_expsym_cmds, $1)=
6724 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6725 _LT_TAGVAR(hardcode_direct, $1)=no
6726 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6727 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6728 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6729 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6730 _LT_TAGVAR(hardcode_minus_L, $1)=no
6731 _LT_TAGVAR(hardcode_automatic, $1)=no
6732 _LT_TAGVAR(inherit_rpath, $1)=no
6733 _LT_TAGVAR(module_cmds, $1)=
6734 _LT_TAGVAR(module_expsym_cmds, $1)=
6735 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6736 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6737 _LT_TAGVAR(no_undefined_flag, $1)=
6738 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6739 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6740
6741 # Source file extension for fc test sources.
6742 ac_ext=${ac_fc_srcext-f}
6743
6744 # Object file extension for compiled fc test sources.
6745 objext=o
6746 _LT_TAGVAR(objext, $1)=$objext
6747
6748 # No sense in running all these tests if we already determined that
6749 # the FC compiler isn't working. Some variables (like enable_shared)
6750 # are currently assumed to apply to all compilers on this platform,
6751 # and will be corrupted by setting them based on a non-working compiler.
6752 if test "$_lt_disable_FC" != yes; then
6753 # Code to be used in simple compile tests
6754 lt_simple_compile_test_code="\
6755 subroutine t
6756 return
6757 end
6758 "
6759
6760 # Code to be used in simple link tests
6761 lt_simple_link_test_code="\
6762 program t
6763 end
6764 "
6765
6766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6767 _LT_TAG_COMPILER
6768
6769 # save warnings/boilerplate of simple test code
6770 _LT_COMPILER_BOILERPLATE
6771 _LT_LINKER_BOILERPLATE
6772
6773 # Allow CC to be a program name with arguments.
6774 lt_save_CC="$CC"
6775 lt_save_GCC=$GCC
6776 CC=${FC-"f95"}
6777 compiler=$CC
6778 GCC=$ac_cv_fc_compiler_gnu
6779
6780 _LT_TAGVAR(compiler, $1)=$CC
6781 _LT_CC_BASENAME([$compiler])
6782
6783 if test -n "$compiler"; then
6784 AC_MSG_CHECKING([if libtool supports shared libraries])
6785 AC_MSG_RESULT([$can_build_shared])
6786
6787 AC_MSG_CHECKING([whether to build shared libraries])
6788 test "$can_build_shared" = "no" && enable_shared=no
6789
6790 # On AIX, shared libraries and static libraries use the same namespace, and
6791 # are all built from PIC.
6792 case $host_os in
6793 aix3*)
6794 test "$enable_shared" = yes && enable_static=no
6795 if test -n "$RANLIB"; then
6796 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6797 postinstall_cmds='$RANLIB $lib'
6798 fi
6799 ;;
6800 aix[[4-9]]*)
6801 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6802 test "$enable_shared" = yes && enable_static=no
6803 fi
6804 ;;
6805 esac
6806 AC_MSG_RESULT([$enable_shared])
6807
6808 AC_MSG_CHECKING([whether to build static libraries])
6809 # Make sure either enable_shared or enable_static is yes.
6810 test "$enable_shared" = yes || enable_static=yes
6811 AC_MSG_RESULT([$enable_static])
6812
6813 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
6814 _LT_TAGVAR(LD, $1)="$LD"
6815
6816 ## CAVEAT EMPTOR:
6817 ## There is no encapsulation within the following macros, do not change
6818 ## the running order or otherwise move them around unless you know exactly
6819 ## what you are doing...
6820 _LT_SYS_HIDDEN_LIBDEPS($1)
6821 _LT_COMPILER_PIC($1)
6822 _LT_COMPILER_C_O($1)
6823 _LT_COMPILER_FILE_LOCKS($1)
6824 _LT_LINKER_SHLIBS($1)
6825 _LT_SYS_DYNAMIC_LINKER($1)
6826 _LT_LINKER_HARDCODE_LIBPATH($1)
6827
6828 _LT_CONFIG($1)
6829 fi # test -n "$compiler"
6830
6831 GCC=$lt_save_GCC
6832 CC="$lt_save_CC"
6833 fi # test "$_lt_disable_FC" != yes
6834
6835 AC_LANG_POP
6836 ])# _LT_LANG_FC_CONFIG
6837
6838
6839 # _LT_LANG_GCJ_CONFIG([TAG])
6840 # --------------------------
6841 # Ensure that the configuration variables for the GNU Java Compiler compiler
6842 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6843 # to write the compiler configuration to `libtool'.
6844 m4_defun([_LT_LANG_GCJ_CONFIG],
6845 [AC_REQUIRE([LT_PROG_GCJ])dnl
6846 AC_LANG_SAVE
6847
6848 # Source file extension for Java test sources.
6849 ac_ext=java
6850
6851 # Object file extension for compiled Java test sources.
6852 objext=o
6853 _LT_TAGVAR(objext, $1)=$objext
6854
6855 # Code to be used in simple compile tests
6856 lt_simple_compile_test_code="class foo {}"
6857
6858 # Code to be used in simple link tests
6859 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
6860
6861 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6862 _LT_TAG_COMPILER
6863
6864 # save warnings/boilerplate of simple test code
6865 _LT_COMPILER_BOILERPLATE
6866 _LT_LINKER_BOILERPLATE
6867
6868 # Allow CC to be a program name with arguments.
6869 lt_save_CC="$CC"
6870 lt_save_GCC=$GCC
6871 GCC=yes
6872 CC=${GCJ-"gcj"}
6873 compiler=$CC
6874 _LT_TAGVAR(compiler, $1)=$CC
6875 _LT_TAGVAR(LD, $1)="$LD"
6876 _LT_CC_BASENAME([$compiler])
6877
6878 # GCJ did not exist at the time GCC didn't implicitly link libc in.
6879 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6880
6881 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6882
6883 if test -n "$compiler"; then
6884 _LT_COMPILER_NO_RTTI($1)
6885 _LT_COMPILER_PIC($1)
6886 _LT_COMPILER_C_O($1)
6887 _LT_COMPILER_FILE_LOCKS($1)
6888 _LT_LINKER_SHLIBS($1)
6889 _LT_LINKER_HARDCODE_LIBPATH($1)
6890
6891 _LT_CONFIG($1)
6892 fi
6893
6894 AC_LANG_RESTORE
6895
6896 GCC=$lt_save_GCC
6897 CC="$lt_save_CC"
6898 ])# _LT_LANG_GCJ_CONFIG
6899
6900
6901 # _LT_LANG_RC_CONFIG([TAG])
6902 # -------------------------
6903 # Ensure that the configuration variables for the Windows resource compiler
6904 # are suitably defined. These variables are subsequently used by _LT_CONFIG
6905 # to write the compiler configuration to `libtool'.
6906 m4_defun([_LT_LANG_RC_CONFIG],
6907 [AC_REQUIRE([LT_PROG_RC])dnl
6908 AC_LANG_SAVE
6909
6910 # Source file extension for RC test sources.
6911 ac_ext=rc
6912
6913 # Object file extension for compiled RC test sources.
6914 objext=o
6915 _LT_TAGVAR(objext, $1)=$objext
6916
6917 # Code to be used in simple compile tests
6918 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
6919
6920 # Code to be used in simple link tests
6921 lt_simple_link_test_code="$lt_simple_compile_test_code"
6922
6923 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6924 _LT_TAG_COMPILER
6925
6926 # save warnings/boilerplate of simple test code
6927 _LT_COMPILER_BOILERPLATE
6928 _LT_LINKER_BOILERPLATE
6929
6930 # Allow CC to be a program name with arguments.
6931 lt_save_CC="$CC"
6932 lt_save_GCC=$GCC
6933 GCC=
6934 CC=${RC-"windres"}
6935 compiler=$CC
6936 _LT_TAGVAR(compiler, $1)=$CC
6937 _LT_CC_BASENAME([$compiler])
6938 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
6939
6940 if test -n "$compiler"; then
6941 :
6942 _LT_CONFIG($1)
6943 fi
6944
6945 GCC=$lt_save_GCC
6946 AC_LANG_RESTORE
6947 CC="$lt_save_CC"
6948 ])# _LT_LANG_RC_CONFIG
6949
6950
6951 # LT_PROG_GCJ
6952 # -----------
6953 AC_DEFUN([LT_PROG_GCJ],
6954 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
6955 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
6956 [AC_CHECK_TOOL(GCJ, gcj,)
6957 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6958 AC_SUBST(GCJFLAGS)])])[]dnl
6959 ])
6960
6961 # Old name:
6962 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
6963 dnl aclocal-1.4 backwards compatibility:
6964 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
6965
6966
6967 # LT_PROG_RC
6968 # ----------
6969 AC_DEFUN([LT_PROG_RC],
6970 [AC_CHECK_TOOL(RC, windres,)
6971 ])
6972
6973 # Old name:
6974 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
6975 dnl aclocal-1.4 backwards compatibility:
6976 dnl AC_DEFUN([LT_AC_PROG_RC], [])
6977
6978
6979 # _LT_DECL_EGREP
6980 # --------------
6981 # If we don't have a new enough Autoconf to choose the best grep
6982 # available, choose the one first in the user's PATH.
6983 m4_defun([_LT_DECL_EGREP],
6984 [AC_REQUIRE([AC_PROG_EGREP])dnl
6985 AC_REQUIRE([AC_PROG_FGREP])dnl
6986 test -z "$GREP" && GREP=grep
6987 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
6988 _LT_DECL([], [EGREP], [1], [An ERE matcher])
6989 _LT_DECL([], [FGREP], [1], [A literal string matcher])
6990 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
6991 AC_SUBST([GREP])
6992 ])
6993
6994
6995 # _LT_DECL_SED
6996 # ------------
6997 # Check for a fully-functional sed program, that truncates
6998 # as few characters as possible. Prefer GNU sed if found.
6999 m4_defun([_LT_DECL_SED],
7000 [AC_PROG_SED
7001 test -z "$SED" && SED=sed
7002 Xsed="$SED -e 1s/^X//"
7003 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7004 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7005 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7006 ])# _LT_DECL_SED
7007
7008 m4_ifndef([AC_PROG_SED], [
66027009 # NOTE: This macro has been submitted for inclusion into #
66037010 # GNU Autoconf as AC_PROG_SED. When it is available in #
66047011 # a released version of Autoconf we should remove this #
66057012 # macro and use it instead. #
6606 # LT_AC_PROG_SED
6607 # --------------
6608 # Check for a fully-functional sed program, that truncates
6609 # as few characters as possible. Prefer GNU sed if found.
6610 AC_DEFUN([LT_AC_PROG_SED],
7013
7014 m4_defun([AC_PROG_SED],
66117015 [AC_MSG_CHECKING([for a sed that does not truncate output])
66127016 AC_CACHE_VAL(lt_cv_path_SED,
66137017 [# Loop through the user's path and test for sed and gsed.
66197023 test -z "$as_dir" && as_dir=.
66207024 for lt_ac_prog in sed gsed; do
66217025 for ac_exec_ext in '' $ac_executable_extensions; do
6622 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7026 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
66237027 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
66247028 fi
66257029 done
66607064 SED=$lt_cv_path_SED
66617065 AC_SUBST([SED])
66627066 AC_MSG_RESULT([$SED])
7067 ])#AC_PROG_SED
7068 ])#m4_ifndef
7069
7070 # Old name:
7071 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7072 dnl aclocal-1.4 backwards compatibility:
7073 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7074
7075
7076 # _LT_CHECK_SHELL_FEATURES
7077 # ------------------------
7078 # Find out whether the shell is Bourne or XSI compatible,
7079 # or has some other useful features.
7080 m4_defun([_LT_CHECK_SHELL_FEATURES],
7081 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7082 # Try some XSI features
7083 xsi_shell=no
7084 ( _lt_dummy="a/b/c"
7085 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7086 = c,a/b,, \
7087 && eval 'test $(( 1 + 1 )) -eq 2 \
7088 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7089 && xsi_shell=yes
7090 AC_MSG_RESULT([$xsi_shell])
7091 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7092
7093 AC_MSG_CHECKING([whether the shell understands "+="])
7094 lt_shell_append=no
7095 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7096 >/dev/null 2>&1 \
7097 && lt_shell_append=yes
7098 AC_MSG_RESULT([$lt_shell_append])
7099 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7100
7101 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7102 lt_unset=unset
7103 else
7104 lt_unset=false
7105 fi
7106 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7107
7108 # test EBCDIC or ASCII
7109 case `echo X|tr X '\101'` in
7110 A) # ASCII based system
7111 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7112 lt_SP2NL='tr \040 \012'
7113 lt_NL2SP='tr \015\012 \040\040'
7114 ;;
7115 *) # EBCDIC based system
7116 lt_SP2NL='tr \100 \n'
7117 lt_NL2SP='tr \r\n \100\100'
7118 ;;
7119 esac
7120 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7121 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7122 ])# _LT_CHECK_SHELL_FEATURES
7123
7124
7125 # _LT_PROG_XSI_SHELLFNS
7126 # ---------------------
7127 # Bourne and XSI compatible variants of some useful shell functions.
7128 m4_defun([_LT_PROG_XSI_SHELLFNS],
7129 [case $xsi_shell in
7130 yes)
7131 cat << \_LT_EOF >> "$cfgfile"
7132
7133 # func_dirname file append nondir_replacement
7134 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7135 # otherwise set result to NONDIR_REPLACEMENT.
7136 func_dirname ()
7137 {
7138 case ${1} in
7139 */*) func_dirname_result="${1%/*}${2}" ;;
7140 * ) func_dirname_result="${3}" ;;
7141 esac
7142 }
7143
7144 # func_basename file
7145 func_basename ()
7146 {
7147 func_basename_result="${1##*/}"
7148 }
7149
7150 # func_dirname_and_basename file append nondir_replacement
7151 # perform func_basename and func_dirname in a single function
7152 # call:
7153 # dirname: Compute the dirname of FILE. If nonempty,
7154 # add APPEND to the result, otherwise set result
7155 # to NONDIR_REPLACEMENT.
7156 # value returned in "$func_dirname_result"
7157 # basename: Compute filename of FILE.
7158 # value retuned in "$func_basename_result"
7159 # Implementation must be kept synchronized with func_dirname
7160 # and func_basename. For efficiency, we do not delegate to
7161 # those functions but instead duplicate the functionality here.
7162 func_dirname_and_basename ()
7163 {
7164 case ${1} in
7165 */*) func_dirname_result="${1%/*}${2}" ;;
7166 * ) func_dirname_result="${3}" ;;
7167 esac
7168 func_basename_result="${1##*/}"
7169 }
7170
7171 # func_stripname prefix suffix name
7172 # strip PREFIX and SUFFIX off of NAME.
7173 # PREFIX and SUFFIX must not contain globbing or regex special
7174 # characters, hashes, percent signs, but SUFFIX may contain a leading
7175 # dot (in which case that matches only a dot).
7176 func_stripname ()
7177 {
7178 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7179 # positional parameters, so assign one to ordinary parameter first.
7180 func_stripname_result=${3}
7181 func_stripname_result=${func_stripname_result#"${1}"}
7182 func_stripname_result=${func_stripname_result%"${2}"}
7183 }
7184
7185 # func_opt_split
7186 func_opt_split ()
7187 {
7188 func_opt_split_opt=${1%%=*}
7189 func_opt_split_arg=${1#*=}
7190 }
7191
7192 # func_lo2o object
7193 func_lo2o ()
7194 {
7195 case ${1} in
7196 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7197 *) func_lo2o_result=${1} ;;
7198 esac
7199 }
7200
7201 # func_xform libobj-or-source
7202 func_xform ()
7203 {
7204 func_xform_result=${1%.*}.lo
7205 }
7206
7207 # func_arith arithmetic-term...
7208 func_arith ()
7209 {
7210 func_arith_result=$(( $[*] ))
7211 }
7212
7213 # func_len string
7214 # STRING may not start with a hyphen.
7215 func_len ()
7216 {
7217 func_len_result=${#1}
7218 }
7219
7220 _LT_EOF
7221 ;;
7222 *) # Bourne compatible functions.
7223 cat << \_LT_EOF >> "$cfgfile"
7224
7225 # func_dirname file append nondir_replacement
7226 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7227 # otherwise set result to NONDIR_REPLACEMENT.
7228 func_dirname ()
7229 {
7230 # Extract subdirectory from the argument.
7231 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7232 if test "X$func_dirname_result" = "X${1}"; then
7233 func_dirname_result="${3}"
7234 else
7235 func_dirname_result="$func_dirname_result${2}"
7236 fi
7237 }
7238
7239 # func_basename file
7240 func_basename ()
7241 {
7242 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7243 }
7244
7245 dnl func_dirname_and_basename
7246 dnl A portable version of this function is already defined in general.m4sh
7247 dnl so there is no need for it here.
7248
7249 # func_stripname prefix suffix name
7250 # strip PREFIX and SUFFIX off of NAME.
7251 # PREFIX and SUFFIX must not contain globbing or regex special
7252 # characters, hashes, percent signs, but SUFFIX may contain a leading
7253 # dot (in which case that matches only a dot).
7254 # func_strip_suffix prefix name
7255 func_stripname ()
7256 {
7257 case ${2} in
7258 .*) func_stripname_result=`$ECHO "X${3}" \
7259 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7260 *) func_stripname_result=`$ECHO "X${3}" \
7261 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7262 esac
7263 }
7264
7265 # sed scripts:
7266 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7267 my_sed_long_arg='1s/^-[[^=]]*=//'
7268
7269 # func_opt_split
7270 func_opt_split ()
7271 {
7272 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7273 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7274 }
7275
7276 # func_lo2o object
7277 func_lo2o ()
7278 {
7279 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7280 }
7281
7282 # func_xform libobj-or-source
7283 func_xform ()
7284 {
7285 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7286 }
7287
7288 # func_arith arithmetic-term...
7289 func_arith ()
7290 {
7291 func_arith_result=`expr "$[@]"`
7292 }
7293
7294 # func_len string
7295 # STRING may not start with a hyphen.
7296 func_len ()
7297 {
7298 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7299 }
7300
7301 _LT_EOF
7302 esac
7303
7304 case $lt_shell_append in
7305 yes)
7306 cat << \_LT_EOF >> "$cfgfile"
7307
7308 # func_append var value
7309 # Append VALUE to the end of shell variable VAR.
7310 func_append ()
7311 {
7312 eval "$[1]+=\$[2]"
7313 }
7314 _LT_EOF
7315 ;;
7316 *)
7317 cat << \_LT_EOF >> "$cfgfile"
7318
7319 # func_append var value
7320 # Append VALUE to the end of shell variable VAR.
7321 func_append ()
7322 {
7323 eval "$[1]=\$$[1]\$[2]"
7324 }
7325
7326 _LT_EOF
7327 ;;
7328 esac
66637329 ])
66647330
6665 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
7331 # Helper functions for option handling. -*- Autoconf -*-
7332 #
7333 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7334 # Written by Gary V. Vaughan, 2004
7335 #
7336 # This file is free software; the Free Software Foundation gives
7337 # unlimited permission to copy and/or distribute it, with or without
7338 # modifications, as long as this notice is preserved.
7339
7340 # serial 6 ltoptions.m4
7341
7342 # This is to help aclocal find these macros, as it can't see m4_define.
7343 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
7344
7345
7346 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
7347 # ------------------------------------------
7348 m4_define([_LT_MANGLE_OPTION],
7349 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
7350
7351
7352 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
7353 # ---------------------------------------
7354 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
7355 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
7356 # saved as a flag.
7357 m4_define([_LT_SET_OPTION],
7358 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
7359 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
7360 _LT_MANGLE_DEFUN([$1], [$2]),
7361 [m4_warning([Unknown $1 option `$2'])])[]dnl
7362 ])
7363
7364
7365 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
7366 # ------------------------------------------------------------
7367 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7368 m4_define([_LT_IF_OPTION],
7369 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
7370
7371
7372 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
7373 # -------------------------------------------------------
7374 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
7375 # are set.
7376 m4_define([_LT_UNLESS_OPTIONS],
7377 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7378 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
7379 [m4_define([$0_found])])])[]dnl
7380 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
7381 ])[]dnl
7382 ])
7383
7384
7385 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
7386 # ----------------------------------------
7387 # OPTION-LIST is a space-separated list of Libtool options associated
7388 # with MACRO-NAME. If any OPTION has a matching handler declared with
7389 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
7390 # the unknown option and exit.
7391 m4_defun([_LT_SET_OPTIONS],
7392 [# Set options
7393 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
7394 [_LT_SET_OPTION([$1], _LT_Option)])
7395
7396 m4_if([$1],[LT_INIT],[
7397 dnl
7398 dnl Simply set some default values (i.e off) if boolean options were not
7399 dnl specified:
7400 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
7401 ])
7402 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
7403 ])
7404 dnl
7405 dnl If no reference was made to various pairs of opposing options, then
7406 dnl we run the default mode handler for the pair. For example, if neither
7407 dnl `shared' nor `disable-shared' was passed, we enable building of shared
7408 dnl archives by default:
7409 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
7410 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
7411 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
7412 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
7413 [_LT_ENABLE_FAST_INSTALL])
7414 ])
7415 ])# _LT_SET_OPTIONS
7416
7417
7418
7419 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
7420 # -----------------------------------------
7421 m4_define([_LT_MANGLE_DEFUN],
7422 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
7423
7424
7425 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
7426 # -----------------------------------------------
7427 m4_define([LT_OPTION_DEFINE],
7428 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
7429 ])# LT_OPTION_DEFINE
7430
7431
7432 # dlopen
7433 # ------
7434 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
7435 ])
7436
7437 AU_DEFUN([AC_LIBTOOL_DLOPEN],
7438 [_LT_SET_OPTION([LT_INIT], [dlopen])
7439 AC_DIAGNOSE([obsolete],
7440 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7441 put the `dlopen' option into LT_INIT's first parameter.])
7442 ])
7443
7444 dnl aclocal-1.4 backwards compatibility:
7445 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
7446
7447
7448 # win32-dll
7449 # ---------
7450 # Declare package support for building win32 dll's.
7451 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
7452 [enable_win32_dll=yes
7453
7454 case $host in
7455 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
7456 AC_CHECK_TOOL(AS, as, false)
7457 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7458 AC_CHECK_TOOL(OBJDUMP, objdump, false)
7459 ;;
7460 esac
7461
7462 test -z "$AS" && AS=as
7463 _LT_DECL([], [AS], [0], [Assembler program])dnl
7464
7465 test -z "$DLLTOOL" && DLLTOOL=dlltool
7466 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
7467
7468 test -z "$OBJDUMP" && OBJDUMP=objdump
7469 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
7470 ])# win32-dll
7471
7472 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
7473 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
7474 _LT_SET_OPTION([LT_INIT], [win32-dll])
7475 AC_DIAGNOSE([obsolete],
7476 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7477 put the `win32-dll' option into LT_INIT's first parameter.])
7478 ])
7479
7480 dnl aclocal-1.4 backwards compatibility:
7481 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
7482
7483
7484 # _LT_ENABLE_SHARED([DEFAULT])
7485 # ----------------------------
7486 # implement the --enable-shared flag, and supports the `shared' and
7487 # `disable-shared' LT_INIT options.
7488 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7489 m4_define([_LT_ENABLE_SHARED],
7490 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
7491 AC_ARG_ENABLE([shared],
7492 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
7493 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
7494 [p=${PACKAGE-default}
7495 case $enableval in
7496 yes) enable_shared=yes ;;
7497 no) enable_shared=no ;;
7498 *)
7499 enable_shared=no
7500 # Look at the argument we got. We use all the common list separators.
7501 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7502 for pkg in $enableval; do
7503 IFS="$lt_save_ifs"
7504 if test "X$pkg" = "X$p"; then
7505 enable_shared=yes
7506 fi
7507 done
7508 IFS="$lt_save_ifs"
7509 ;;
7510 esac],
7511 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
7512
7513 _LT_DECL([build_libtool_libs], [enable_shared], [0],
7514 [Whether or not to build shared libraries])
7515 ])# _LT_ENABLE_SHARED
7516
7517 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
7518 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
7519
7520 # Old names:
7521 AC_DEFUN([AC_ENABLE_SHARED],
7522 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
7523 ])
7524
7525 AC_DEFUN([AC_DISABLE_SHARED],
7526 [_LT_SET_OPTION([LT_INIT], [disable-shared])
7527 ])
7528
7529 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7530 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7531
7532 dnl aclocal-1.4 backwards compatibility:
7533 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
7534 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
7535
7536
7537
7538 # _LT_ENABLE_STATIC([DEFAULT])
7539 # ----------------------------
7540 # implement the --enable-static flag, and support the `static' and
7541 # `disable-static' LT_INIT options.
7542 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7543 m4_define([_LT_ENABLE_STATIC],
7544 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
7545 AC_ARG_ENABLE([static],
7546 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
7547 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
7548 [p=${PACKAGE-default}
7549 case $enableval in
7550 yes) enable_static=yes ;;
7551 no) enable_static=no ;;
7552 *)
7553 enable_static=no
7554 # Look at the argument we got. We use all the common list separators.
7555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7556 for pkg in $enableval; do
7557 IFS="$lt_save_ifs"
7558 if test "X$pkg" = "X$p"; then
7559 enable_static=yes
7560 fi
7561 done
7562 IFS="$lt_save_ifs"
7563 ;;
7564 esac],
7565 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
7566
7567 _LT_DECL([build_old_libs], [enable_static], [0],
7568 [Whether or not to build static libraries])
7569 ])# _LT_ENABLE_STATIC
7570
7571 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
7572 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
7573
7574 # Old names:
7575 AC_DEFUN([AC_ENABLE_STATIC],
7576 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
7577 ])
7578
7579 AC_DEFUN([AC_DISABLE_STATIC],
7580 [_LT_SET_OPTION([LT_INIT], [disable-static])
7581 ])
7582
7583 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7584 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7585
7586 dnl aclocal-1.4 backwards compatibility:
7587 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
7588 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
7589
7590
7591
7592 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
7593 # ----------------------------------
7594 # implement the --enable-fast-install flag, and support the `fast-install'
7595 # and `disable-fast-install' LT_INIT options.
7596 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
7597 m4_define([_LT_ENABLE_FAST_INSTALL],
7598 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
7599 AC_ARG_ENABLE([fast-install],
7600 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
7601 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
7602 [p=${PACKAGE-default}
7603 case $enableval in
7604 yes) enable_fast_install=yes ;;
7605 no) enable_fast_install=no ;;
7606 *)
7607 enable_fast_install=no
7608 # Look at the argument we got. We use all the common list separators.
7609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7610 for pkg in $enableval; do
7611 IFS="$lt_save_ifs"
7612 if test "X$pkg" = "X$p"; then
7613 enable_fast_install=yes
7614 fi
7615 done
7616 IFS="$lt_save_ifs"
7617 ;;
7618 esac],
7619 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
7620
7621 _LT_DECL([fast_install], [enable_fast_install], [0],
7622 [Whether or not to optimize for fast installation])dnl
7623 ])# _LT_ENABLE_FAST_INSTALL
7624
7625 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
7626 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
7627
7628 # Old names:
7629 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
7630 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
7631 AC_DIAGNOSE([obsolete],
7632 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7633 the `fast-install' option into LT_INIT's first parameter.])
7634 ])
7635
7636 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
7637 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
7638 AC_DIAGNOSE([obsolete],
7639 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
7640 the `disable-fast-install' option into LT_INIT's first parameter.])
7641 ])
7642
7643 dnl aclocal-1.4 backwards compatibility:
7644 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
7645 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
7646
7647
7648 # _LT_WITH_PIC([MODE])
7649 # --------------------
7650 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
7651 # LT_INIT options.
7652 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
7653 m4_define([_LT_WITH_PIC],
7654 [AC_ARG_WITH([pic],
7655 [AS_HELP_STRING([--with-pic],
7656 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
7657 [pic_mode="$withval"],
7658 [pic_mode=default])
7659
7660 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
7661
7662 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
7663 ])# _LT_WITH_PIC
7664
7665 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
7666 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
7667
7668 # Old name:
7669 AU_DEFUN([AC_LIBTOOL_PICMODE],
7670 [_LT_SET_OPTION([LT_INIT], [pic-only])
7671 AC_DIAGNOSE([obsolete],
7672 [$0: Remove this warning and the call to _LT_SET_OPTION when you
7673 put the `pic-only' option into LT_INIT's first parameter.])
7674 ])
7675
7676 dnl aclocal-1.4 backwards compatibility:
7677 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
7678
7679
7680 m4_define([_LTDL_MODE], [])
7681 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
7682 [m4_define([_LTDL_MODE], [nonrecursive])])
7683 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
7684 [m4_define([_LTDL_MODE], [recursive])])
7685 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
7686 [m4_define([_LTDL_MODE], [subproject])])
7687
7688 m4_define([_LTDL_TYPE], [])
7689 LT_OPTION_DEFINE([LTDL_INIT], [installable],
7690 [m4_define([_LTDL_TYPE], [installable])])
7691 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
7692 [m4_define([_LTDL_TYPE], [convenience])])
7693
7694 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
7695 #
7696 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7697 # Written by Gary V. Vaughan, 2004
7698 #
7699 # This file is free software; the Free Software Foundation gives
7700 # unlimited permission to copy and/or distribute it, with or without
7701 # modifications, as long as this notice is preserved.
7702
7703 # serial 5 ltsugar.m4
7704
7705 # This is to help aclocal find these macros, as it can't see m4_define.
7706 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
7707
7708
7709 # lt_join(SEP, ARG1, [ARG2...])
7710 # -----------------------------
7711 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
7712 # associated separator.
7713 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
7714 # versions in m4sugar had bugs.
7715 m4_define([lt_join],
7716 [m4_if([$#], [1], [],
7717 [$#], [2], [[$2]],
7718 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
7719 m4_define([_lt_join],
7720 [m4_if([$#$2], [2], [],
7721 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
7722
7723
7724 # lt_car(LIST)
7725 # lt_cdr(LIST)
7726 # ------------
7727 # Manipulate m4 lists.
7728 # These macros are necessary as long as will still need to support
7729 # Autoconf-2.59 which quotes differently.
7730 m4_define([lt_car], [[$1]])
7731 m4_define([lt_cdr],
7732 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
7733 [$#], 1, [],
7734 [m4_dquote(m4_shift($@))])])
7735 m4_define([lt_unquote], $1)
7736
7737
7738 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
7739 # ------------------------------------------
7740 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
7741 # Note that neither SEPARATOR nor STRING are expanded; they are appended
7742 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
7743 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
7744 # than defined and empty).
7745 #
7746 # This macro is needed until we can rely on Autoconf 2.62, since earlier
7747 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
7748 m4_define([lt_append],
7749 [m4_define([$1],
7750 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
7751
7752
7753
7754 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
7755 # ----------------------------------------------------------
7756 # Produce a SEP delimited list of all paired combinations of elements of
7757 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
7758 # has the form PREFIXmINFIXSUFFIXn.
7759 m4_define([lt_combine],
7760 [m4_if([$2], [], [],
7761 [m4_if([$4], [], [],
7762 [lt_join(m4_quote(m4_default([$1], [[, ]])),
7763 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
7764 [m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
7765 [_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
7766 ])
7767
7768
7769 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
7770 # -----------------------------------------------------------------------
7771 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
7772 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
7773 m4_define([lt_if_append_uniq],
7774 [m4_ifdef([$1],
7775 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
7776 [lt_append([$1], [$2], [$3])$4],
7777 [$5])],
7778 [lt_append([$1], [$2], [$3])$4])])
7779
7780
7781 # lt_dict_add(DICT, KEY, VALUE)
7782 # -----------------------------
7783 m4_define([lt_dict_add],
7784 [m4_define([$1($2)], [$3])])
7785
7786
7787 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
7788 # --------------------------------------------
7789 m4_define([lt_dict_add_subkey],
7790 [m4_define([$1($2:$3)], [$4])])
7791
7792
7793 # lt_dict_fetch(DICT, KEY, [SUBKEY])
7794 # ----------------------------------
7795 m4_define([lt_dict_fetch],
7796 [m4_ifval([$3],
7797 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
7798 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
7799
7800
7801 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
7802 # -----------------------------------------------------------------
7803 m4_define([lt_if_dict_fetch],
7804 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
7805 [$5],
7806 [$6])])
7807
7808
7809 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
7810 # --------------------------------------------------------------
7811 m4_define([lt_dict_filter],
7812 [m4_if([$5], [], [],
7813 [lt_join(m4_quote(m4_default([$4], [[, ]])),
7814 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
7815 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
7816 ])
7817
7818 # ltversion.m4 -- version numbers -*- Autoconf -*-
7819 #
7820 # Copyright (C) 2004 Free Software Foundation, Inc.
7821 # Written by Scott James Remnant, 2004
7822 #
7823 # This file is free software; the Free Software Foundation gives
7824 # unlimited permission to copy and/or distribute it, with or without
7825 # modifications, as long as this notice is preserved.
7826
7827 # Generated from ltversion.in.
7828
7829 # serial 2976 ltversion.m4
7830 # This file is part of GNU Libtool
7831
7832 m4_define([LT_PACKAGE_VERSION], [2.2.4])
7833 m4_define([LT_PACKAGE_REVISION], [1.2976])
7834
7835 AC_DEFUN([LTVERSION_VERSION],
7836 [macro_version='2.2.4'
7837 macro_revision='1.2976'
7838 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
7839 _LT_DECL(, macro_revision, 0)
7840 ])
7841
7842 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
7843 #
7844 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
7845 # Written by Scott James Remnant, 2004.
7846 #
7847 # This file is free software; the Free Software Foundation gives
7848 # unlimited permission to copy and/or distribute it, with or without
7849 # modifications, as long as this notice is preserved.
7850
7851 # serial 4 lt~obsolete.m4
7852
7853 # These exist entirely to fool aclocal when bootstrapping libtool.
7854 #
7855 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
7856 # which have later been changed to m4_define as they aren't part of the
7857 # exported API, or moved to Autoconf or Automake where they belong.
7858 #
7859 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
7860 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
7861 # using a macro with the same name in our local m4/libtool.m4 it'll
7862 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
7863 # and doesn't know about Autoconf macros at all.)
7864 #
7865 # So we provide this file, which has a silly filename so it's always
7866 # included after everything else. This provides aclocal with the
7867 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
7868 # because those macros already exist, or will be overwritten later.
7869 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
7870 #
7871 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
7872 # Yes, that means every name once taken will need to remain here until
7873 # we give up compatibility with versions before 1.7, at which point
7874 # we need to keep only those names which we still refer to.
7875
7876 # This is to help aclocal find these macros, as it can't see m4_define.
7877 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
7878
7879 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
7880 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
7881 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
7882 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
7883 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
7884 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
7885 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
7886 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
7887 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
7888 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
7889 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
7890 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
7891 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
7892 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
7893 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
7894 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
7895 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
7896 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
7897 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
7898 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
7899 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
7900 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
7901 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
7902 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
7903 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
7904 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
7905 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
7906 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
7907 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
7908 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
7909 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
7910 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
7911 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
7912 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
7913 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
7914 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
7915 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
7916 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
7917 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
7918 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
7919 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
7920 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
7921 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
7922 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
7923 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
7924 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
7925 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
7926 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
7927 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
7928 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
7929 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
7930 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
7931 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
7932 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
7933 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
7934
7935 # Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
66667936 #
66677937 # This file is free software; the Free Software Foundation
66687938 # gives unlimited permission to copy and/or distribute it,
66727942 # ----------------------------
66737943 # Automake X.Y traces this macro to ensure aclocal.m4 has been
66747944 # generated from the m4 files accompanying Automake X.Y.
6675 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7945 # (This private macro should not be called outside this file.)
7946 AC_DEFUN([AM_AUTOMAKE_VERSION],
7947 [am__api_version='1.10'
7948 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7949 dnl require some minimum version. Point them to the right macro.
7950 m4_if([$1], [1.10.1], [],
7951 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7952 ])
7953
7954 # _AM_AUTOCONF_VERSION(VERSION)
7955 # -----------------------------
7956 # aclocal traces this macro to find the Autoconf version.
7957 # This is a private macro too. Using m4_define simplifies
7958 # the logic in aclocal, which can simply ignore this definition.
7959 m4_define([_AM_AUTOCONF_VERSION], [])
66767960
66777961 # AM_SET_CURRENT_AUTOMAKE_VERSION
66787962 # -------------------------------
6679 # Call AM_AUTOMAKE_VERSION so it can be traced.
7963 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
66807964 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
66817965 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6682 [AM_AUTOMAKE_VERSION([1.9.6])])
7966 [AM_AUTOMAKE_VERSION([1.10.1])dnl
7967 m4_ifndef([AC_AUTOCONF_VERSION],
7968 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
7969 _AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
66837970
66847971 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
66857972
67368023
67378024 # AM_CONDITIONAL -*- Autoconf -*-
67388025
6739 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
8026 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
67408027 # Free Software Foundation, Inc.
67418028 #
67428029 # This file is free software; the Free Software Foundation
67438030 # gives unlimited permission to copy and/or distribute it,
67448031 # with or without modifications, as long as this notice is preserved.
67458032
6746 # serial 7
8033 # serial 8
67478034
67488035 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
67498036 # -------------------------------------
67528039 [AC_PREREQ(2.52)dnl
67538040 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
67548041 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6755 AC_SUBST([$1_TRUE])
6756 AC_SUBST([$1_FALSE])
8042 AC_SUBST([$1_TRUE])dnl
8043 AC_SUBST([$1_FALSE])dnl
8044 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8045 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
67578046 if $2; then
67588047 $1_TRUE=
67598048 $1_FALSE='#'
67678056 Usually this means the macro was only invoked conditionally.]])
67688057 fi])])
67698058
6770
6771 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8059 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
67728060 # Free Software Foundation, Inc.
67738061 #
67748062 # This file is free software; the Free Software Foundation
67758063 # gives unlimited permission to copy and/or distribute it,
67768064 # with or without modifications, as long as this notice is preserved.
67778065
6778 # serial 8
8066 # serial 9
67798067
67808068 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
67818069 # written in clear, in which case automake, when reading aclocal.m4,
68038091 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
68048092 [$1], CXX, [depcc="$CXX" am_compiler_list=],
68058093 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8094 [$1], UPC, [depcc="$UPC" am_compiler_list=],
68068095 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
68078096 [depcc="$$1" am_compiler_list=])
68088097
68688157 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
68698158 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
68708159 >/dev/null 2>conftest.err &&
8160 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
68718161 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
68728162 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
68738163 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
69208210 AMDEPBACKSLASH='\'
69218211 fi
69228212 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6923 AC_SUBST([AMDEPBACKSLASH])
8213 AC_SUBST([AMDEPBACKSLASH])dnl
8214 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
69248215 ])
69258216
69268217 # Generate code to set up dependency tracking. -*- Autoconf -*-
69458236 # some people rename them; so instead we look at the file content.
69468237 # Grep'ing the first line is not enough: some people post-process
69478238 # each Makefile.in and add a new line on top of each file to say so.
6948 # So let's grep whole file.
6949 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8239 # Grep'ing the whole file is not good either: AIX grep has a line
8240 # limit of 2048, but all sed's we know have understand at least 4000.
8241 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
69508242 dirpart=`AS_DIRNAME("$mf")`
69518243 else
69528244 continue
70058297
70068298 # Do all the work for Automake. -*- Autoconf -*-
70078299
7008 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7009 # Free Software Foundation, Inc.
8300 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
8301 # 2005, 2006, 2008 Free Software Foundation, Inc.
70108302 #
70118303 # This file is free software; the Free Software Foundation
70128304 # gives unlimited permission to copy and/or distribute it,
70138305 # with or without modifications, as long as this notice is preserved.
70148306
7015 # serial 12
8307 # serial 13
70168308
70178309 # This macro actually does too much. Some checks are only needed if
70188310 # your package does certain things. But this isn't really a big deal.
70298321 # arguments mandatory, and then we can depend on a new Autoconf
70308322 # release and drop the old call support.
70318323 AC_DEFUN([AM_INIT_AUTOMAKE],
7032 [AC_PREREQ([2.58])dnl
8324 [AC_PREREQ([2.60])dnl
70338325 dnl Autoconf wants to disallow AM_ names. We explicitly allow
70348326 dnl the ones we care about.
70358327 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
70368328 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
70378329 AC_REQUIRE([AC_PROG_INSTALL])dnl
7038 # test to see if srcdir already configured
7039 if test "`cd $srcdir && pwd`" != "`pwd`" &&
7040 test -f $srcdir/config.status; then
7041 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8330 if test "`cd $srcdir && pwd`" != "`pwd`"; then
8331 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
8332 # is not polluted with repeated "-I."
8333 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
8334 # test to see if srcdir already configured
8335 if test -f $srcdir/config.status; then
8336 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8337 fi
70428338 fi
70438339
70448340 # test whether we have cygpath
70588354 AC_SUBST([PACKAGE], [$1])dnl
70598355 AC_SUBST([VERSION], [$2])],
70608356 [_AM_SET_OPTIONS([$1])dnl
8357 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
8358 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
8359 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
70618360 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
70628361 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
70638362
70938392 [_AM_DEPENDENCIES(CXX)],
70948393 [define([AC_PROG_CXX],
70958394 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8395 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
8396 [_AM_DEPENDENCIES(OBJC)],
8397 [define([AC_PROG_OBJC],
8398 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
70968399 ])
70978400 ])
70988401
71068409 # our stamp files there.
71078410 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
71088411 [# Compute $1's index in $config_headers.
8412 _am_arg=$1
71098413 _am_stamp_count=1
71108414 for _am_header in $config_headers :; do
71118415 case $_am_header in
7112 $1 | $1:* )
8416 $_am_arg | $_am_arg:* )
71138417 break ;;
71148418 * )
71158419 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
71168420 esac
71178421 done
7118 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
8422 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
71198423
71208424 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
71218425 #
71288432 # Define $install_sh.
71298433 AC_DEFUN([AM_PROG_INSTALL_SH],
71308434 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7131 install_sh=${install_sh-"$am_aux_dir/install-sh"}
8435 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
71328436 AC_SUBST(install_sh)])
71338437
71348438 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
72068510
72078511 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
72088512
7209 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
8513 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
72108514 # Free Software Foundation, Inc.
72118515 #
72128516 # This file is free software; the Free Software Foundation
72138517 # gives unlimited permission to copy and/or distribute it,
72148518 # with or without modifications, as long as this notice is preserved.
72158519
7216 # serial 4
8520 # serial 5
72178521
72188522 # AM_MISSING_PROG(NAME, PROGRAM)
72198523 # ------------------------------
72298533 # If it does, set am_missing_run to use it, otherwise, to nothing.
72308534 AC_DEFUN([AM_MISSING_HAS_RUN],
72318535 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8536 AC_REQUIRE_AUX_FILE([missing])dnl
72328537 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
72338538 # Use eval to expand $SHELL
72348539 if eval "$MISSING --run true"; then
72398544 fi
72408545 ])
72418546
7242 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
8547 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
72438548 #
72448549 # This file is free software; the Free Software Foundation
72458550 # gives unlimited permission to copy and/or distribute it,
72478552
72488553 # AM_PROG_MKDIR_P
72498554 # ---------------
7250 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7251 #
7252 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7253 # created by `make install' are always world readable, even if the
7254 # installer happens to have an overly restrictive umask (e.g. 077).
7255 # This was a mistake. There are at least two reasons why we must not
7256 # use `-m 0755':
7257 # - it causes special bits like SGID to be ignored,
7258 # - it may be too restrictive (some setups expect 775 directories).
7259 #
7260 # Do not use -m 0755 and let people choose whatever they expect by
7261 # setting umask.
7262 #
7263 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7264 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7265 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7266 # concurrently, both version can detect that a/ is missing, but only
7267 # one can create it and the other will error out. Consequently we
7268 # restrict ourselves to GNU make (using the --version option ensures
7269 # this.)
8555 # Check for `mkdir -p'.
72708556 AC_DEFUN([AM_PROG_MKDIR_P],
7271 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7272 # We used to keeping the `.' as first argument, in order to
7273 # allow $(mkdir_p) to be used without argument. As in
7274 # $(mkdir_p) $(somedir)
7275 # where $(somedir) is conditionally defined. However this is wrong
7276 # for two reasons:
7277 # 1. if the package is installed by a user who cannot write `.'
7278 # make install will fail,
7279 # 2. the above comment should most certainly read
7280 # $(mkdir_p) $(DESTDIR)$(somedir)
7281 # so it does not work when $(somedir) is undefined and
7282 # $(DESTDIR) is not.
7283 # To support the latter case, we have to write
7284 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7285 # so the `.' trick is pointless.
7286 mkdir_p='mkdir -p --'
7287 else
7288 # On NextStep and OpenStep, the `mkdir' command does not
7289 # recognize any option. It will interpret all options as
7290 # directories to create, and then abort because `.' already
7291 # exists.
7292 for d in ./-p ./--version;
7293 do
7294 test -d $d && rmdir $d
7295 done
7296 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7297 if test -f "$ac_aux_dir/mkinstalldirs"; then
7298 mkdir_p='$(mkinstalldirs)'
7299 else
7300 mkdir_p='$(install_sh) -d'
7301 fi
7302 fi
7303 AC_SUBST([mkdir_p])])
8557 [AC_PREREQ([2.60])dnl
8558 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8559 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8560 dnl while keeping a definition of mkdir_p for backward compatibility.
8561 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8562 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8563 dnl Makefile.ins that do not define MKDIR_P, so we do our own
8564 dnl adjustment using top_builddir (which is defined more often than
8565 dnl MKDIR_P).
8566 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8567 case $mkdir_p in
8568 [[\\/$]]* | ?:[[\\/]]*) ;;
8569 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8570 esac
8571 ])
73048572
73058573 # Helper functions for option handling. -*- Autoconf -*-
73068574
74128680 if test "$cross_compiling" != no; then
74138681 AC_CHECK_TOOL([STRIP], [strip], :)
74148682 fi
7415 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8683 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
74168684 AC_SUBST([INSTALL_STRIP_PROGRAM])])
8685
8686 # Copyright (C) 2006 Free Software Foundation, Inc.
8687 #
8688 # This file is free software; the Free Software Foundation
8689 # gives unlimited permission to copy and/or distribute it,
8690 # with or without modifications, as long as this notice is preserved.
8691
8692 # _AM_SUBST_NOTMAKE(VARIABLE)
8693 # ---------------------------
8694 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
8695 # This macro is traced by Automake.
8696 AC_DEFUN([_AM_SUBST_NOTMAKE])
74178697
74188698 # Check how to create a tarball. -*- Autoconf -*-
74198699
+4602
-12664
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61 for libotf 0.9.8.
2 # Generated by GNU Autoconf 2.61 for libotf 0.9.9.
33 #
44 # Report bugs to <handa@m17n.org>.
55 #
554554 # Check that we are running under the correct shell.
555555 SHELL=${CONFIG_SHELL-/bin/sh}
556556
557 case X$ECHO in
557 case X$lt_ECHO in
558558 X*--fallback-echo)
559559 # Remove one level of quotation (which was required for Make).
560 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561561 ;;
562562 esac
563563
564 echo=${ECHO-echo}
564 ECHO=${lt_ECHO-echo}
565565 if test "X$1" = X--no-reexec; then
566566 # Discard the --no-reexec flag, and continue.
567567 shift
568568 elif test "X$1" = X--fallback-echo; then
569569 # Avoid inline document here, it may be left over
570570 :
571 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $echo works!
571 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
572 # Yippee, $ECHO works!
573573 :
574574 else
575575 # Restart under the correct shell.
579579 if test "X$1" = X--fallback-echo; then
580580 # used as fallback echo
581581 shift
582 cat <<EOF
582 cat <<_LT_EOF
583583 $*
584 EOF
584 _LT_EOF
585585 exit 0
586586 fi
587587
589589 # if CDPATH is set.
590590 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591591
592 if test -z "$ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
598 echo_test_string=`eval $cmd` &&
599 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
600 then
601 break
602 fi
603 done
604 fi
605
606 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
609 :
610 else
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
614 #
615 # So, first we look for a working echo in the user's PATH.
616
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
592 if test -z "$lt_ECHO"; then
593 if test "X${echo_test_string+set}" != Xset; then
594 # find a string as large as possible, as long as the shell can cope with it
595 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
596 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
597 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
598 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 ECHO="$dir/echo"
624 break
625 fi
626 done
619627 IFS="$lt_save_ifs"
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
624 echo="$dir/echo"
625 break
626 fi
627 done
628 IFS="$lt_save_ifs"
629
630 if test "X$echo" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
636 echo='print -r'
637 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
643 export CONFIG_SHELL
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
645 else
646 # Try using printf.
647 echo='printf %s\n'
648 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
651 # Cool, printf works
652 :
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
628
629 if test "X$ECHO" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 ECHO='print -r'
636 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 ECHO='printf %s\n'
647 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
656649 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 export CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
660 export SHELL
661 echo="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 echo="$CONFIG_SHELL $0 --fallback-echo"
667 else
668 # maybe with a smaller string...
669 prev=:
670
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
673 then
674 break
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 ECHO="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 ECHO=echo
675685 fi
676 prev="$cmd"
677 done
678
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 else
684 # Oops. We lost completely, so just stick with echo.
685 echo=echo
686 fi
686 fi
687687 fi
688688 fi
689689 fi
690690 fi
691 fi
692691
693692 # Copy echo and quote the copy suitably for passing to libtool from
694693 # the Makefile, instead of quoting the original, which is used later.
695 ECHO=$echo
696 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 fi
699
700
701
702
703 tagnames=${tagnames+${tagnames},}CXX
704
705 tagnames=${tagnames+${tagnames},}F77
694 lt_ECHO=$ECHO
695 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
706701
707702 exec 7<&0 </dev/null 6>&1
708703
727722 # Identity of this package.
728723 PACKAGE_NAME='libotf'
729724 PACKAGE_TARNAME='libotf'
730 PACKAGE_VERSION='0.9.8'
731 PACKAGE_STRING='libotf 0.9.8'
725 PACKAGE_VERSION='0.9.9'
726 PACKAGE_STRING='libotf 0.9.9'
732727 PACKAGE_BUGREPORT='handa@m17n.org'
733728
734729 # Factoring default headers for most tests.
807802 INSTALL_PROGRAM
808803 INSTALL_SCRIPT
809804 INSTALL_DATA
805 am__isrc
810806 CYGPATH_W
811807 PACKAGE
812808 VERSION
841837 CCDEPMODE
842838 am__fastdepCC_TRUE
843839 am__fastdepCC_FALSE
840 LIBTOOL
844841 build
845842 build_cpu
846843 build_vendor
852849 SED
853850 GREP
854851 EGREP
852 FGREP
853 LD
854 DUMPBIN
855 ac_ct_DUMPBIN
856 NM
855857 LN_S
856 ECHO
857858 AR
858859 RANLIB
860 lt_ECHO
859861 DSYMUTIL
860862 NMEDIT
863 LIPO
864 OTOOL
865 OTOOL64
861866 CPP
862 CXX
863 CXXFLAGS
864 ac_ct_CXX
865 CXXDEPMODE
866 am__fastdepCXX_TRUE
867 am__fastdepCXX_FALSE
868 CXXCPP
869 F77
870 FFLAGS
871 ac_ct_F77
872 LIBTOOL
873867 XMKMF
874868 X_CFLAGS
875869 X_PRE_LIBS
892886 LIBS
893887 CPPFLAGS
894888 CPP
895 CXX
896 CXXFLAGS
897 CCC
898 CXXCPP
899 F77
900 FFLAGS
901889 XMKMF'
902890
903891
14011389 # Omit some internal or obsolete options to make the list less imposing.
14021390 # This message is too long to be a string in the A/UX 3.1 sh.
14031391 cat <<_ACEOF
1404 \`configure' configures libotf 0.9.8 to adapt to many kinds of systems.
1392 \`configure' configures libotf 0.9.9 to adapt to many kinds of systems.
14051393
14061394 Usage: $0 [OPTION]... [VAR=VALUE]...
14071395
14751463
14761464 if test -n "$ac_init_help"; then
14771465 case $ac_init_help in
1478 short | recursive ) echo "Configuration of libotf 0.9.8:";;
1466 short | recursive ) echo "Configuration of libotf 0.9.9:";;
14791467 esac
14801468 cat <<\_ACEOF
14811469
14931481 Optional Packages:
14941482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
14951483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1496 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
14971484 --with-pic try to use only PIC/non-PIC objects [default=use
14981485 both]
1499 --with-tags[=TAGS] include additional configurations [automatic]
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
15001487 --with-x use the X Window System
15011488
15021489 Some influential environment variables:
15081495 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
15091496 you have headers in a nonstandard directory <include dir>
15101497 CPP C preprocessor
1511 CXX C++ compiler command
1512 CXXFLAGS C++ compiler flags
1513 CXXCPP C++ preprocessor
1514 F77 Fortran 77 compiler command
1515 FFLAGS Fortran 77 compiler flags
15161498 XMKMF Path to xmkmf, Makefile generator for X Window System
15171499
15181500 Use these variables to override the choices made by `configure' or to help
15791561 test -n "$ac_init_help" && exit $ac_status
15801562 if $ac_init_version; then
15811563 cat <<\_ACEOF
1582 libotf configure 0.9.8
1564 libotf configure 0.9.9
15831565 generated by GNU Autoconf 2.61
15841566
15851567 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15931575 This file contains any messages produced by compilers while
15941576 running configure, to aid debugging if configure makes a mistake.
15951577
1596 It was created by libotf $as_me 0.9.8, which was
1578 It was created by libotf $as_me 0.9.9, which was
15971579 generated by GNU Autoconf 2.61. Invocation command line was
15981580
15991581 $ $0 $@
19461928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471929
19481930
1949 am__api_version="1.9"
1931 am__api_version='1.10'
1932
19501933 ac_aux_dir=
19511934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
19521935 if test -f "$ac_dir/install-sh"; then
21292112 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
21302113 fi
21312114
2132 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2133 # We used to keeping the `.' as first argument, in order to
2134 # allow $(mkdir_p) to be used without argument. As in
2135 # $(mkdir_p) $(somedir)
2136 # where $(somedir) is conditionally defined. However this is wrong
2137 # for two reasons:
2138 # 1. if the package is installed by a user who cannot write `.'
2139 # make install will fail,
2140 # 2. the above comment should most certainly read
2141 # $(mkdir_p) $(DESTDIR)$(somedir)
2142 # so it does not work when $(somedir) is undefined and
2143 # $(DESTDIR) is not.
2144 # To support the latter case, we have to write
2145 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2146 # so the `.' trick is pointless.
2147 mkdir_p='mkdir -p --'
2148 else
2149 # On NextStep and OpenStep, the `mkdir' command does not
2150 # recognize any option. It will interpret all options as
2151 # directories to create, and then abort because `.' already
2152 # exists.
2153 for d in ./-p ./--version;
2154 do
2155 test -d $d && rmdir $d
2156 done
2157 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2158 if test -f "$ac_aux_dir/mkinstalldirs"; then
2159 mkdir_p='$(mkinstalldirs)'
2115 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2116 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2117 if test -z "$MKDIR_P"; then
2118 if test "${ac_cv_path_mkdir+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2123 do
2124 IFS=$as_save_IFS
2125 test -z "$as_dir" && as_dir=.
2126 for ac_prog in mkdir gmkdir; do
2127 for ac_exec_ext in '' $ac_executable_extensions; do
2128 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2129 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2130 'mkdir (GNU coreutils) '* | \
2131 'mkdir (coreutils) '* | \
2132 'mkdir (fileutils) '4.1*)
2133 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2134 break 3;;
2135 esac
2136 done
2137 done
2138 done
2139 IFS=$as_save_IFS
2140
2141 fi
2142
2143 if test "${ac_cv_path_mkdir+set}" = set; then
2144 MKDIR_P="$ac_cv_path_mkdir -p"
21602145 else
2161 mkdir_p='$(install_sh) -d'
2146 # As a last resort, use the slow shell script. Don't cache a
2147 # value for MKDIR_P within a source directory, because that will
2148 # break other packages using the cache if that directory is
2149 # removed, or if the value is a relative name.
2150 test -d ./--version && rmdir ./--version
2151 MKDIR_P="$ac_install_sh -d"
21622152 fi
21632153 fi
2154 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2155 echo "${ECHO_T}$MKDIR_P" >&6; }
2156
2157 mkdir_p="$MKDIR_P"
2158 case $mkdir_p in
2159 [\\/$]* | ?:[\\/]*) ;;
2160 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2161 esac
21642162
21652163 for ac_prog in gawk mawk nawk awk
21662164 do
22432241 fi
22442242 rmdir .tst 2>/dev/null
22452243
2246 # test to see if srcdir already configured
2247 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2248 test -f $srcdir/config.status; then
2249 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2244 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2245 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2246 # is not polluted with repeated "-I."
2247 am__isrc=' -I$(srcdir)'
2248 # test to see if srcdir already configured
2249 if test -f $srcdir/config.status; then
2250 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
22502251 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
22512252 { (exit 1); exit 1; }; }
2253 fi
22522254 fi
22532255
22542256 # test whether we have cygpath
22632265
22642266 # Define the identity of the package.
22652267 PACKAGE=libotf
2266 VERSION=0.9.8
2268 VERSION=0.9.9
22672269
22682270
22692271 cat >>confdefs.h <<_ACEOF
22912293
22922294 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
22932295
2294 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2296 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
22952297
22962298 # Installed binaries are usually stripped using `strip' when the user
22972299 # run `make install-strip'. However `strip' might not be the right
23952397 fi
23962398
23972399 fi
2398 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2400 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23992401
24002402 # We need awk for the "check" target. The system "awk" is bad on
24012403 # some platforms.
33843386 am_depcomp="$ac_aux_dir/depcomp"
33853387 AMDEPBACKSLASH='\'
33863388 fi
3387
3388
3389 if test "x$enable_dependency_tracking" != xno; then
3389 if test "x$enable_dependency_tracking" != xno; then
33903390 AMDEP_TRUE=
33913391 AMDEP_FALSE='#'
33923392 else
33933393 AMDEP_TRUE='#'
33943394 AMDEP_FALSE=
33953395 fi
3396
33973396
33983397
33993398
34643463 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
34653464 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
34663465 >/dev/null 2>conftest.err &&
3466 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
34673467 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
34683468 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
34693469 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
34933493 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
34943494 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
34953495
3496
3497
3498 if
3496 if
34993497 test "x$enable_dependency_tracking" != xno \
35003498 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
35013499 am__fastdepCC_TRUE=
35063504 fi
35073505
35083506
3509 # Check whether --enable-shared was given.
3510 if test "${enable_shared+set}" = set; then
3511 enableval=$enable_shared; p=${PACKAGE-default}
3512 case $enableval in
3513 yes) enable_shared=yes ;;
3514 no) enable_shared=no ;;
3515 *)
3516 enable_shared=no
3517 # Look at the argument we got. We use all the common list separators.
3518 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3519 for pkg in $enableval; do
3520 IFS="$lt_save_ifs"
3521 if test "X$pkg" = "X$p"; then
3522 enable_shared=yes
3523 fi
3524 done
3525 IFS="$lt_save_ifs"
3526 ;;
3527 esac
3528 else
3529 enable_shared=yes
3530 fi
3531
3532
3533 # Check whether --enable-static was given.
3534 if test "${enable_static+set}" = set; then
3535 enableval=$enable_static; p=${PACKAGE-default}
3536 case $enableval in
3537 yes) enable_static=yes ;;
3538 no) enable_static=no ;;
3539 *)
3540 enable_static=no
3541 # Look at the argument we got. We use all the common list separators.
3542 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3543 for pkg in $enableval; do
3544 IFS="$lt_save_ifs"
3545 if test "X$pkg" = "X$p"; then
3546 enable_static=yes
3547 fi
3548 done
3549 IFS="$lt_save_ifs"
3550 ;;
3551 esac
3552 else
3553 enable_static=yes
3554 fi
3555
3556
3557 # Check whether --enable-fast-install was given.
3558 if test "${enable_fast_install+set}" = set; then
3559 enableval=$enable_fast_install; p=${PACKAGE-default}
3560 case $enableval in
3561 yes) enable_fast_install=yes ;;
3562 no) enable_fast_install=no ;;
3563 *)
3564 enable_fast_install=no
3565 # Look at the argument we got. We use all the common list separators.
3566 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3567 for pkg in $enableval; do
3568 IFS="$lt_save_ifs"
3569 if test "X$pkg" = "X$p"; then
3570 enable_fast_install=yes
3571 fi
3572 done
3573 IFS="$lt_save_ifs"
3574 ;;
3575 esac
3576 else
3577 enable_fast_install=yes
3578 fi
3579
3507 case `pwd` in
3508 *\ * | *\ *)
3509 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3510 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3511 esac
3512
3513
3514
3515 macro_version='2.2.4'
3516 macro_revision='1.2976'
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530 ltmain="$ac_aux_dir/ltmain.sh"
35803531
35813532 # Make sure we can run config.sub.
35823533 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
36633614
36643615 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
36653616 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3666 if test "${lt_cv_path_SED+set}" = set; then
3617 if test "${ac_cv_path_SED+set}" = set; then
36673618 echo $ECHO_N "(cached) $ECHO_C" >&6
36683619 else
3669 # Loop through the user's path and test for sed and gsed.
3670 # Then use that list of sed's as ones to test for truncation.
3620 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3621 for ac_i in 1 2 3 4 5 6 7; do
3622 ac_script="$ac_script$as_nl$ac_script"
3623 done
3624 echo "$ac_script" | sed 99q >conftest.sed
3625 $as_unset ac_script || ac_script=
3626 # Extract the first word of "sed gsed" to use in msg output
3627 if test -z "$SED"; then
3628 set dummy sed gsed; ac_prog_name=$2
3629 if test "${ac_cv_path_SED+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631 else
3632 ac_path_SED_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
36713634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36723635 for as_dir in $PATH
36733636 do
36743637 IFS=$as_save_IFS
36753638 test -z "$as_dir" && as_dir=.
3676 for lt_ac_prog in sed gsed; do
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3679 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3680 fi
3681 done
3639 for ac_prog in sed gsed; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3643 # Check for GNU ac_path_SED and select it if it is found.
3644 # Check for GNU $ac_path_SED
3645 case `"$ac_path_SED" --version 2>&1` in
3646 *GNU*)
3647 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3648 *)
3649 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3651 while :
3652 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 echo '' >> "conftest.nl"
3657 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_SED_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_SED="$ac_path_SED"
3663 ac_path_SED_max=$ac_count
3664 fi
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3667 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669 esac
3670
3671
3672 $ac_path_SED_found && break 3
36823673 done
36833674 done
3675
3676 done
36843677 IFS=$as_save_IFS
3685 lt_ac_max=0
3686 lt_ac_count=0
3687 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3688 # along with /bin/sed that truncates output.
3689 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3690 test ! -f $lt_ac_sed && continue
3691 cat /dev/null > conftest.in
3692 lt_ac_count=0
3693 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3694 # Check for GNU sed and select it if it is found.
3695 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3696 lt_cv_path_SED=$lt_ac_sed
3697 break
3698 fi
3699 while true; do
3700 cat conftest.in conftest.in >conftest.tmp
3701 mv conftest.tmp conftest.in
3702 cp conftest.in conftest.nl
3703 echo >>conftest.nl
3704 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3705 cmp -s conftest.out conftest.nl || break
3706 # 10000 chars as input seems more than enough
3707 test $lt_ac_count -gt 10 && break
3708 lt_ac_count=`expr $lt_ac_count + 1`
3709 if test $lt_ac_count -gt $lt_ac_max; then
3710 lt_ac_max=$lt_ac_count
3711 lt_cv_path_SED=$lt_ac_sed
3712 fi
3713 done
3714 done
3715
3716 fi
3717
3718 SED=$lt_cv_path_SED
3719
3720 { echo "$as_me:$LINENO: result: $SED" >&5
3721 echo "${ECHO_T}$SED" >&6; }
3678
3679
3680 fi
3681
3682 SED="$ac_cv_path_SED"
3683 if test -z "$SED"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3685 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3686 { (exit 1); exit 1; }; }
3687 fi
3688
3689 else
3690 ac_cv_path_SED=$SED
3691 fi
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3695 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3696 SED="$ac_cv_path_SED"
3697 rm -f conftest.sed
3698
3699 test -z "$SED" && SED=sed
3700 Xsed="$SED -e 1s/^X//"
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
37223711
37233712 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
37243713 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
38823871 EGREP="$ac_cv_path_EGREP"
38833872
38843873
3874 { echo "$as_me:$LINENO: checking for fgrep" >&5
3875 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3876 if test "${ac_cv_path_FGREP+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3880 then ac_cv_path_FGREP="$GREP -F"
3881 else
3882 # Extract the first word of "fgrep" to use in msg output
3883 if test -z "$FGREP"; then
3884 set dummy fgrep; ac_prog_name=$2
3885 if test "${ac_cv_path_FGREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3887 else
3888 ac_path_FGREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892 do
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in fgrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3899 # Check for GNU ac_path_FGREP and select it if it is found.
3900 # Check for GNU $ac_path_FGREP
3901 case `"$ac_path_FGREP" --version 2>&1` in
3902 *GNU*)
3903 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3904 *)
3905 ac_count=0
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3907 while :
3908 do
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'FGREP' >> "conftest.nl"
3913 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_FGREP="$ac_path_FGREP"
3919 ac_path_FGREP_max=$ac_count
3920 fi
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3923 done
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925 esac
3926
3927
3928 $ac_path_FGREP_found && break 3
3929 done
3930 done
3931
3932 done
3933 IFS=$as_save_IFS
3934
3935
3936 fi
3937
3938 FGREP="$ac_cv_path_FGREP"
3939 if test -z "$FGREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3943 fi
3944
3945 else
3946 ac_cv_path_FGREP=$FGREP
3947 fi
3948
3949
3950 fi
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3953 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3954 FGREP="$ac_cv_path_FGREP"
3955
3956
3957 test -z "$GREP" && GREP=grep
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
38853976
38863977 # Check whether --with-gnu-ld was given.
38873978 if test "${with_gnu_ld+set}" = set; then
39073998 [\\/]* | ?:[\\/]*)
39083999 re_direlt='/[^/][^/]*/\.\./'
39094000 # Canonicalize the pathname of ld
3910 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3911 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3912 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4001 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4002 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4003 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
39134004 done
39144005 test -z "$LD" && LD="$ac_prog"
39154006 ;;
39894080 with_gnu_ld=$lt_cv_prog_gnu_ld
39904081
39914082
3992 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3993 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3994 if test "${lt_cv_ld_reload_flag+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 lt_cv_ld_reload_flag='-r'
3998 fi
3999 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4000 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4001 reload_flag=$lt_cv_ld_reload_flag
4002 case $reload_flag in
4003 "" | " "*) ;;
4004 *) reload_flag=" $reload_flag" ;;
4005 esac
4006 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4007 case $host_os in
4008 darwin*)
4009 if test "$GCC" = yes; then
4010 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4011 else
4012 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4013 fi
4014 ;;
4015 esac
4016
4017 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4018 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4083
4084
4085
4086
4087
4088
4089
4090 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4091 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
40194092 if test "${lt_cv_path_NM+set}" = set; then
40204093 echo $ECHO_N "(cached) $ECHO_C" >&6
40214094 else
40604133 done
40614134 IFS="$lt_save_ifs"
40624135 done
4063 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4136 : ${lt_cv_path_NM=no}
40644137 fi
40654138 fi
40664139 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
40674140 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4068 NM="$lt_cv_path_NM"
4141 if test "$lt_cv_path_NM" != "no"; then
4142 NM="$lt_cv_path_NM"
4143 else
4144 # Didn't find any BSD compatible name lister, look for dumpbin.
4145 if test -n "$ac_tool_prefix"; then
4146 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4147 do
4148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155 if test -n "$DUMPBIN"; then
4156 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4157 else
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4159 for as_dir in $PATH
4160 do
4161 IFS=$as_save_IFS
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4165 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 break 2
4168 fi
4169 done
4170 done
4171 IFS=$as_save_IFS
4172
4173 fi
4174 fi
4175 DUMPBIN=$ac_cv_prog_DUMPBIN
4176 if test -n "$DUMPBIN"; then
4177 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4178 echo "${ECHO_T}$DUMPBIN" >&6; }
4179 else
4180 { echo "$as_me:$LINENO: result: no" >&5
4181 echo "${ECHO_T}no" >&6; }
4182 fi
4183
4184
4185 test -n "$DUMPBIN" && break
4186 done
4187 fi
4188 if test -z "$DUMPBIN"; then
4189 ac_ct_DUMPBIN=$DUMPBIN
4190 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4191 do
4192 # Extract the first word of "$ac_prog", so it can be a program name with args.
4193 set dummy $ac_prog; ac_word=$2
4194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 else
4199 if test -n "$ac_ct_DUMPBIN"; then
4200 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4201 else
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH
4204 do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4211 break 2
4212 fi
4213 done
4214 done
4215 IFS=$as_save_IFS
4216
4217 fi
4218 fi
4219 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4220 if test -n "$ac_ct_DUMPBIN"; then
4221 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4222 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4223 else
4224 { echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6; }
4226 fi
4227
4228
4229 test -n "$ac_ct_DUMPBIN" && break
4230 done
4231
4232 if test "x$ac_ct_DUMPBIN" = x; then
4233 DUMPBIN=":"
4234 else
4235 case $cross_compiling:$ac_tool_warned in
4236 yes:)
4237 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4238 whose name does not start with the host triplet. If you think this
4239 configuration is useful to you, please write to autoconf@gnu.org." >&5
4240 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4241 whose name does not start with the host triplet. If you think this
4242 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4243 ac_tool_warned=yes ;;
4244 esac
4245 DUMPBIN=$ac_ct_DUMPBIN
4246 fi
4247 fi
4248
4249
4250 if test "$DUMPBIN" != ":"; then
4251 NM="$DUMPBIN"
4252 fi
4253 fi
4254 test -z "$NM" && NM=nm
4255
4256
4257
4258
4259
4260
4261 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4262 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4263 if test "${lt_cv_nm_interface+set}" = set; then
4264 echo $ECHO_N "(cached) $ECHO_C" >&6
4265 else
4266 lt_cv_nm_interface="BSD nm"
4267 echo "int some_variable = 0;" > conftest.$ac_ext
4268 (eval echo "\"\$as_me:4269: $ac_compile\"" >&5)
4269 (eval "$ac_compile" 2>conftest.err)
4270 cat conftest.err >&5
4271 (eval echo "\"\$as_me:4272: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4272 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4273 cat conftest.err >&5
4274 (eval echo "\"\$as_me:4275: output\"" >&5)
4275 cat conftest.out >&5
4276 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4277 lt_cv_nm_interface="MS dumpbin"
4278 fi
4279 rm -f conftest*
4280 fi
4281 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4282 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
40694283
40704284 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
40714285 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
40774291 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
40784292 echo "${ECHO_T}no, using $LN_S" >&6; }
40794293 fi
4294
4295 # find the maximum length of command line arguments
4296 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4297 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4298 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301 i=0
4302 teststring="ABCD"
4303
4304 case $build_os in
4305 msdosdjgpp*)
4306 # On DJGPP, this test can blow up pretty badly due to problems in libc
4307 # (any single argument exceeding 2000 bytes causes a buffer overrun
4308 # during glob expansion). Even if it were fixed, the result of this
4309 # check would be larger than it should be.
4310 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4311 ;;
4312
4313 gnu*)
4314 # Under GNU Hurd, this test is not required because there is
4315 # no limit to the length of command line arguments.
4316 # Libtool will interpret -1 as no limit whatsoever
4317 lt_cv_sys_max_cmd_len=-1;
4318 ;;
4319
4320 cygwin* | mingw*)
4321 # On Win9x/ME, this test blows up -- it succeeds, but takes
4322 # about 5 minutes as the teststring grows exponentially.
4323 # Worse, since 9x/ME are not pre-emptively multitasking,
4324 # you end up with a "frozen" computer, even though with patience
4325 # the test eventually succeeds (with a max line length of 256k).
4326 # Instead, let's just punt: use the minimum linelength reported by
4327 # all of the supported platforms: 8192 (on NT/2K/XP).
4328 lt_cv_sys_max_cmd_len=8192;
4329 ;;
4330
4331 amigaos*)
4332 # On AmigaOS with pdksh, this test takes hours, literally.
4333 # So we just punt and use a minimum line length of 8192.
4334 lt_cv_sys_max_cmd_len=8192;
4335 ;;
4336
4337 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4338 # This has been around since 386BSD, at least. Likely further.
4339 if test -x /sbin/sysctl; then
4340 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4341 elif test -x /usr/sbin/sysctl; then
4342 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4343 else
4344 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4345 fi
4346 # And add a safety zone
4347 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4348 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4349 ;;
4350
4351 interix*)
4352 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4353 lt_cv_sys_max_cmd_len=196608
4354 ;;
4355
4356 osf*)
4357 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4358 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4359 # nice to cause kernel panics so lets avoid the loop below.
4360 # First set a reasonable default.
4361 lt_cv_sys_max_cmd_len=16384
4362 #
4363 if test -x /sbin/sysconfig; then
4364 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4365 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4366 esac
4367 fi
4368 ;;
4369 sco3.2v5*)
4370 lt_cv_sys_max_cmd_len=102400
4371 ;;
4372 sysv5* | sco5v6* | sysv4.2uw2*)
4373 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4374 if test -n "$kargmax"; then
4375 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4376 else
4377 lt_cv_sys_max_cmd_len=32768
4378 fi
4379 ;;
4380 *)
4381 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4382 if test -n "$lt_cv_sys_max_cmd_len"; then
4383 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4384 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4385 else
4386 # Make teststring a little bigger before we do anything with it.
4387 # a 1K string should be a reasonable start.
4388 for i in 1 2 3 4 5 6 7 8 ; do
4389 teststring=$teststring$teststring
4390 done
4391 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4392 # If test is not a shell built-in, we'll probably end up computing a
4393 # maximum length that is only half of the actual maximum length, but
4394 # we can't tell.
4395 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4396 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4397 test $i != 17 # 1/2 MB should be enough
4398 do
4399 i=`expr $i + 1`
4400 teststring=$teststring$teststring
4401 done
4402 # Only check the string length outside the loop.
4403 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4404 teststring=
4405 # Add a significant safety factor because C++ compilers can tack on
4406 # massive amounts of additional arguments before passing them to the
4407 # linker. It appears as though 1/2 is a usable value.
4408 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4409 fi
4410 ;;
4411 esac
4412
4413 fi
4414
4415 if test -n $lt_cv_sys_max_cmd_len ; then
4416 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4417 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
4418 else
4419 { echo "$as_me:$LINENO: result: none" >&5
4420 echo "${ECHO_T}none" >&6; }
4421 fi
4422 max_cmd_len=$lt_cv_sys_max_cmd_len
4423
4424
4425
4426
4427
4428
4429 : ${CP="cp -f"}
4430 : ${MV="mv -f"}
4431 : ${RM="rm -f"}
4432
4433 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4434 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
4435 # Try some XSI features
4436 xsi_shell=no
4437 ( _lt_dummy="a/b/c"
4438 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4439 = c,a/b,, \
4440 && eval 'test $(( 1 + 1 )) -eq 2 \
4441 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4442 && xsi_shell=yes
4443 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
4444 echo "${ECHO_T}$xsi_shell" >&6; }
4445
4446
4447 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4448 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
4449 lt_shell_append=no
4450 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4451 >/dev/null 2>&1 \
4452 && lt_shell_append=yes
4453 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4454 echo "${ECHO_T}$lt_shell_append" >&6; }
4455
4456
4457 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4458 lt_unset=unset
4459 else
4460 lt_unset=false
4461 fi
4462
4463
4464
4465
4466
4467 # test EBCDIC or ASCII
4468 case `echo X|tr X '\101'` in
4469 A) # ASCII based system
4470 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4471 lt_SP2NL='tr \040 \012'
4472 lt_NL2SP='tr \015\012 \040\040'
4473 ;;
4474 *) # EBCDIC based system
4475 lt_SP2NL='tr \100 \n'
4476 lt_NL2SP='tr \r\n \100\100'
4477 ;;
4478 esac
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4489 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4490 if test "${lt_cv_ld_reload_flag+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493 lt_cv_ld_reload_flag='-r'
4494 fi
4495 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4496 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4497 reload_flag=$lt_cv_ld_reload_flag
4498 case $reload_flag in
4499 "" | " "*) ;;
4500 *) reload_flag=" $reload_flag" ;;
4501 esac
4502 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4503 case $host_os in
4504 darwin*)
4505 if test "$GCC" = yes; then
4506 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4507 else
4508 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4509 fi
4510 ;;
4511 esac
4512
4513
4514
4515
4516
4517
4518
4519
4520
40804521
40814522 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
40824523 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
41364577 ;;
41374578
41384579 freebsd* | dragonfly*)
4139 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4580 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41404581 case $host_cpu in
41414582 i*86 )
41424583 # Not sure whether the presence of OpenBSD here was a mistake.
41944635 ;;
41954636
41964637 netbsd* | netbsdelf*-gnu)
4197 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4638 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
41984639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
41994640 else
42004641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
42074648 lt_cv_file_magic_test_file=/usr/lib/libnls.so
42084649 ;;
42094650
4210 nto-qnx*)
4211 lt_cv_deplibs_check_method=unknown
4651 *nto* | *qnx*)
4652 lt_cv_deplibs_check_method=pass_all
42124653 ;;
42134654
42144655 openbsd*)
4215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4656 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
42164657 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
42174658 else
42184659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
42284669 ;;
42294670
42304671 solaris*)
4672 lt_cv_deplibs_check_method=pass_all
4673 ;;
4674
4675 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
42314676 lt_cv_deplibs_check_method=pass_all
42324677 ;;
42334678
42584703 esac
42594704 ;;
42604705
4261 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4706 tpf*)
42624707 lt_cv_deplibs_check_method=pass_all
42634708 ;;
42644709 esac
42734718
42744719
42754720
4276 # If no C compiler was specified, use CC.
4277 LTCC=${LTCC-"$CC"}
4278
4279 # If no C compiler flags were specified, use CFLAGS.
4280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4281
4282 # Allow CC to be a program name with arguments.
4283 compiler=$CC
4284
4285
4286 # Check whether --enable-libtool-lock was given.
4287 if test "${enable_libtool_lock+set}" = set; then
4288 enableval=$enable_libtool_lock;
4289 fi
4290
4291 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4292
4293 # Some flags need to be propagated to the compiler or linker for good
4294 # libtool support.
4295 case $host in
4296 ia64-*-hpux*)
4297 # Find out which ABI we are using.
4298 echo 'int i;' > conftest.$ac_ext
4299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4300 (eval $ac_compile) 2>&5
4301 ac_status=$?
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); }; then
4304 case `/usr/bin/file conftest.$ac_objext` in
4305 *ELF-32*)
4306 HPUX_IA64_MODE="32"
4307 ;;
4308 *ELF-64*)
4309 HPUX_IA64_MODE="64"
4310 ;;
4311 esac
4312 fi
4313 rm -rf conftest*
4314 ;;
4315 *-*-irix6*)
4316 # Find out which ABI we are using.
4317 echo '#line 4318 "configure"' > conftest.$ac_ext
4318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4319 (eval $ac_compile) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; then
4323 if test "$lt_cv_prog_gnu_ld" = yes; then
4324 case `/usr/bin/file conftest.$ac_objext` in
4325 *32-bit*)
4326 LD="${LD-ld} -melf32bsmip"
4327 ;;
4328 *N32*)
4329 LD="${LD-ld} -melf32bmipn32"
4330 ;;
4331 *64-bit*)
4332 LD="${LD-ld} -melf64bmip"
4333 ;;
4334 esac
4335 else
4336 case `/usr/bin/file conftest.$ac_objext` in
4337 *32-bit*)
4338 LD="${LD-ld} -32"
4339 ;;
4340 *N32*)
4341 LD="${LD-ld} -n32"
4342 ;;
4343 *64-bit*)
4344 LD="${LD-ld} -64"
4345 ;;
4346 esac
4347 fi
4348 fi
4349 rm -rf conftest*
4350 ;;
4351
4352 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4353 s390*-*linux*|sparc*-*linux*)
4354 # Find out which ABI we are using.
4355 echo 'int i;' > conftest.$ac_ext
4356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4357 (eval $ac_compile) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; then
4361 case `/usr/bin/file conftest.o` in
4362 *32-bit*)
4363 case $host in
4364 x86_64-*kfreebsd*-gnu)
4365 LD="${LD-ld} -m elf_i386_fbsd"
4366 ;;
4367 x86_64-*linux*)
4368 LD="${LD-ld} -m elf_i386"
4369 ;;
4370 ppc64-*linux*|powerpc64-*linux*)
4371 LD="${LD-ld} -m elf32ppclinux"
4372 ;;
4373 s390x-*linux*)
4374 LD="${LD-ld} -m elf_s390"
4375 ;;
4376 sparc64-*linux*)
4377 LD="${LD-ld} -m elf32_sparc"
4378 ;;
4379 esac
4380 ;;
4381 *64-bit*)
4382 case $host in
4383 x86_64-*kfreebsd*-gnu)
4384 LD="${LD-ld} -m elf_x86_64_fbsd"
4385 ;;
4386 x86_64-*linux*)
4387 LD="${LD-ld} -m elf_x86_64"
4388 ;;
4389 ppc*-*linux*|powerpc*-*linux*)
4390 LD="${LD-ld} -m elf64ppc"
4391 ;;
4392 s390*-*linux*)
4393 LD="${LD-ld} -m elf64_s390"
4394 ;;
4395 sparc*-*linux*)
4396 LD="${LD-ld} -m elf64_sparc"
4397 ;;
4398 esac
4399 ;;
4400 esac
4401 fi
4402 rm -rf conftest*
4403 ;;
4404
4405 *-*-sco3.2v5*)
4406 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4407 SAVE_CFLAGS="$CFLAGS"
4408 CFLAGS="$CFLAGS -belf"
4409 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4410 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4411 if test "${lt_cv_cc_needs_belf+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 else
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4419
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4426
4427 int
4428 main ()
4429 {
4430
4431 ;
4432 return 0;
4433 }
4434 _ACEOF
4435 rm -f conftest.$ac_objext conftest$ac_exeext
4436 if { (ac_try="$ac_link"
4437 case "(($ac_try" in
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4440 esac
4441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4442 (eval "$ac_link") 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } && {
4449 test -z "$ac_c_werror_flag" ||
4450 test ! -s conftest.err
4451 } && test -s conftest$ac_exeext &&
4452 $as_test_x conftest$ac_exeext; then
4453 lt_cv_cc_needs_belf=yes
4454 else
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 lt_cv_cc_needs_belf=no
4459 fi
4460
4461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4462 conftest$ac_exeext conftest.$ac_ext
4463 ac_ext=c
4464 ac_cpp='$CPP $CPPFLAGS'
4465 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4466 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4467 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4468
4469 fi
4470 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4471 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4472 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4473 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4474 CFLAGS="$SAVE_CFLAGS"
4475 fi
4476 ;;
4477 sparc*-*solaris*)
4478 # Find out which ABI we are using.
4479 echo 'int i;' > conftest.$ac_ext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481 (eval $ac_compile) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; then
4485 case `/usr/bin/file conftest.o` in
4486 *64-bit*)
4487 case $lt_cv_prog_gnu_ld in
4488 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4489 *)
4490 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4491 LD="${LD-ld} -64"
4492 fi
4493 ;;
4494 esac
4495 ;;
4496 esac
4497 fi
4498 rm -rf conftest*
4499 ;;
4500
4501
4502 esac
4503
4504 need_locks="$enable_libtool_lock"
4505
4506
4507 ac_ext=c
4508 ac_cpp='$CPP $CPPFLAGS'
4509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4512 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4513 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4514 # On Suns, sometimes $CPP names a directory.
4515 if test -n "$CPP" && test -d "$CPP"; then
4516 CPP=
4517 fi
4518 if test -z "$CPP"; then
4519 if test "${ac_cv_prog_CPP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 else
4522 # Double quotes because CPP needs to be expanded
4523 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4524 do
4525 ac_preproc_ok=false
4526 for ac_c_preproc_warn_flag in '' yes
4527 do
4528 # Use a header file that comes with gcc, so configuring glibc
4529 # with a fresh cross-compiler works.
4530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4531 # <limits.h> exists even on freestanding compilers.
4532 # On the NeXT, cc -E runs the code through the compiler's parser,
4533 # not just through cpp. "Syntax error" is here to catch this case.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545 Syntax error
4546 _ACEOF
4547 if { (ac_try="$ac_cpp conftest.$ac_ext"
4548 case "(($ac_try" in
4549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4550 *) ac_try_echo=$ac_try;;
4551 esac
4552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 ac_status=$?
4555 grep -v '^ *+' conftest.er1 >conftest.err
4556 rm -f conftest.er1
4557 cat conftest.err >&5
4558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4559 (exit $ac_status); } >/dev/null && {
4560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4561 test ! -s conftest.err
4562 }; then
4563 :
4564 else
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4567
4568 # Broken: fails on valid input.
4569 continue
4570 fi
4571
4572 rm -f conftest.err conftest.$ac_ext
4573
4574 # OK, works on sane cases. Now check whether nonexistent headers
4575 # can be detected and how.
4576 cat >conftest.$ac_ext <<_ACEOF
4577 /* confdefs.h. */
4578 _ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4582 #include <ac_nonexistent.h>
4583 _ACEOF
4584 if { (ac_try="$ac_cpp conftest.$ac_ext"
4585 case "(($ac_try" in
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4588 esac
4589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4591 ac_status=$?
4592 grep -v '^ *+' conftest.er1 >conftest.err
4593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null && {
4597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 }; then
4600 # Broken: success on invalid input.
4601 continue
4602 else
4603 echo "$as_me: failed program was:" >&5
4604 sed 's/^/| /' conftest.$ac_ext >&5
4605
4606 # Passes both tests.
4607 ac_preproc_ok=:
4608 break
4609 fi
4610
4611 rm -f conftest.err conftest.$ac_ext
4612
4613 done
4614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4615 rm -f conftest.err conftest.$ac_ext
4616 if $ac_preproc_ok; then
4617 break
4618 fi
4619
4620 done
4621 ac_cv_prog_CPP=$CPP
4622
4623 fi
4624 CPP=$ac_cv_prog_CPP
4625 else
4626 ac_cv_prog_CPP=$CPP
4627 fi
4628 { echo "$as_me:$LINENO: result: $CPP" >&5
4629 echo "${ECHO_T}$CPP" >&6; }
4630 ac_preproc_ok=false
4631 for ac_c_preproc_warn_flag in '' yes
4632 do
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4640 /* confdefs.h. */
4641 _ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650 Syntax error
4651 _ACEOF
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4653 case "(($ac_try" in
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4656 esac
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4659 ac_status=$?
4660 grep -v '^ *+' conftest.er1 >conftest.err
4661 rm -f conftest.er1
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4667 }; then
4668 :
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4672
4673 # Broken: fails on valid input.
4674 continue
4675 fi
4676
4677 rm -f conftest.err conftest.$ac_ext
4678
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat >conftest.$ac_ext <<_ACEOF
4682 /* confdefs.h. */
4683 _ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4688 _ACEOF
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4690 case "(($ac_try" in
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4693 esac
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4704 }; then
4705 # Broken: success on invalid input.
4706 continue
4707 else
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4710
4711 # Passes both tests.
4712 ac_preproc_ok=:
4713 break
4714 fi
4715
4716 rm -f conftest.err conftest.$ac_ext
4717
4718 done
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.$ac_ext
4721 if $ac_preproc_ok; then
4722 :
4723 else
4724 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4725 See \`config.log' for more details." >&5
4726 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4727 See \`config.log' for more details." >&2;}
4728 { (exit 1); exit 1; }; }
4729 fi
4730
4731 ac_ext=c
4732 ac_cpp='$CPP $CPPFLAGS'
4733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4736
4737
4738 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4739 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4740 if test "${ac_cv_header_stdc+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4742 else
4743 cat >conftest.$ac_ext <<_ACEOF
4744 /* confdefs.h. */
4745 _ACEOF
4746 cat confdefs.h >>conftest.$ac_ext
4747 cat >>conftest.$ac_ext <<_ACEOF
4748 /* end confdefs.h. */
4749 #include <stdlib.h>
4750 #include <stdarg.h>
4751 #include <string.h>
4752 #include <float.h>
4753
4754 int
4755 main ()
4756 {
4757
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 rm -f conftest.$ac_objext
4763 if { (ac_try="$ac_compile"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_compile") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } && {
4776 test -z "$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 } && test -s conftest.$ac_objext; then
4779 ac_cv_header_stdc=yes
4780 else
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4783
4784 ac_cv_header_stdc=no
4785 fi
4786
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788
4789 if test $ac_cv_header_stdc = yes; then
4790 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4791 cat >conftest.$ac_ext <<_ACEOF
4792 /* confdefs.h. */
4793 _ACEOF
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4797 #include <string.h>
4798
4799 _ACEOF
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "memchr" >/dev/null 2>&1; then
4802 :
4803 else
4804 ac_cv_header_stdc=no
4805 fi
4806 rm -f conftest*
4807
4808 fi
4809
4810 if test $ac_cv_header_stdc = yes; then
4811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 #include <stdlib.h>
4819
4820 _ACEOF
4821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4822 $EGREP "free" >/dev/null 2>&1; then
4823 :
4824 else
4825 ac_cv_header_stdc=no
4826 fi
4827 rm -f conftest*
4828
4829 fi
4830
4831 if test $ac_cv_header_stdc = yes; then
4832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4833 if test "$cross_compiling" = yes; then
4834 :
4835 else
4836 cat >conftest.$ac_ext <<_ACEOF
4837 /* confdefs.h. */
4838 _ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4842 #include <ctype.h>
4843 #include <stdlib.h>
4844 #if ((' ' & 0x0FF) == 0x020)
4845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4847 #else
4848 # define ISLOWER(c) \
4849 (('a' <= (c) && (c) <= 'i') \
4850 || ('j' <= (c) && (c) <= 'r') \
4851 || ('s' <= (c) && (c) <= 'z'))
4852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4853 #endif
4854
4855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4856 int
4857 main ()
4858 {
4859 int i;
4860 for (i = 0; i < 256; i++)
4861 if (XOR (islower (i), ISLOWER (i))
4862 || toupper (i) != TOUPPER (i))
4863 return 2;
4864 return 0;
4865 }
4866 _ACEOF
4867 rm -f conftest$ac_exeext
4868 if { (ac_try="$ac_link"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_link") 2>&5
4875 ac_status=$?
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4878 { (case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881 esac
4882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883 (eval "$ac_try") 2>&5
4884 ac_status=$?
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 :
4888 else
4889 echo "$as_me: program exited with status $ac_status" >&5
4890 echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893 ( exit $ac_status )
4894 ac_cv_header_stdc=no
4895 fi
4896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897 fi
4898
4899
4900 fi
4901 fi
4902 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4903 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4904 if test $ac_cv_header_stdc = yes; then
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define STDC_HEADERS 1
4908 _ACEOF
4909
4910 fi
4911
4912 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4923 inttypes.h stdint.h unistd.h
4924 do
4925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4929 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 else
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 $ac_includes_default
4938
4939 #include <$ac_header>
4940 _ACEOF
4941 rm -f conftest.$ac_objext
4942 if { (ac_try="$ac_compile"
4943 case "(($ac_try" in
4944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945 *) ac_try_echo=$ac_try;;
4946 esac
4947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948 (eval "$ac_compile") 2>conftest.er1
4949 ac_status=$?
4950 grep -v '^ *+' conftest.er1 >conftest.err
4951 rm -f conftest.er1
4952 cat conftest.err >&5
4953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954 (exit $ac_status); } && {
4955 test -z "$ac_c_werror_flag" ||
4956 test ! -s conftest.err
4957 } && test -s conftest.$ac_objext; then
4958 eval "$as_ac_Header=yes"
4959 else
4960 echo "$as_me: failed program was:" >&5
4961 sed 's/^/| /' conftest.$ac_ext >&5
4962
4963 eval "$as_ac_Header=no"
4964 fi
4965
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967 fi
4968 ac_res=`eval echo '${'$as_ac_Header'}'`
4969 { echo "$as_me:$LINENO: result: $ac_res" >&5
4970 echo "${ECHO_T}$ac_res" >&6; }
4971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4972 cat >>confdefs.h <<_ACEOF
4973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4974 _ACEOF
4975
4976 fi
4977
4978 done
4979
4980
4981
4982 for ac_header in dlfcn.h
4983 do
4984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4990 fi
4991 ac_res=`eval echo '${'$as_ac_Header'}'`
4992 { echo "$as_me:$LINENO: result: $ac_res" >&5
4993 echo "${ECHO_T}$ac_res" >&6; }
4994 else
4995 # Is the header compilable?
4996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4998 cat >conftest.$ac_ext <<_ACEOF
4999 /* confdefs.h. */
5000 _ACEOF
5001 cat confdefs.h >>conftest.$ac_ext
5002 cat >>conftest.$ac_ext <<_ACEOF
5003 /* end confdefs.h. */
5004 $ac_includes_default
5005 #include <$ac_header>
5006 _ACEOF
5007 rm -f conftest.$ac_objext
5008 if { (ac_try="$ac_compile"
5009 case "(($ac_try" in
5010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5012 esac
5013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014 (eval "$ac_compile") 2>conftest.er1
5015 ac_status=$?
5016 grep -v '^ *+' conftest.er1 >conftest.err
5017 rm -f conftest.er1
5018 cat conftest.err >&5
5019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020 (exit $ac_status); } && {
5021 test -z "$ac_c_werror_flag" ||
5022 test ! -s conftest.err
5023 } && test -s conftest.$ac_objext; then
5024 ac_header_compiler=yes
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029 ac_header_compiler=no
5030 fi
5031
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034 echo "${ECHO_T}$ac_header_compiler" >&6; }
5035
5036 # Is the header present?
5037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h. */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h. */
5045 #include <$ac_header>
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5054 ac_status=$?
5055 grep -v '^ *+' conftest.er1 >conftest.err
5056 rm -f conftest.er1
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } >/dev/null && {
5060 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 }; then
5063 ac_header_preproc=yes
5064 else
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5067
5068 ac_header_preproc=no
5069 fi
5070
5071 rm -f conftest.err conftest.$ac_ext
5072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5073 echo "${ECHO_T}$ac_header_preproc" >&6; }
5074
5075 # So? What about this header?
5076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5077 yes:no: )
5078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5082 ac_header_preproc=yes
5083 ;;
5084 no:yes:* )
5085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5097 ( cat <<\_ASBOX
5098 ## ----------------------------- ##
5099 ## Report this to handa@m17n.org ##
5100 ## ----------------------------- ##
5101 _ASBOX
5102 ) | sed "s/^/$as_me: WARNING: /" >&2
5103 ;;
5104 esac
5105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 eval "$as_ac_Header=\$ac_header_preproc"
5111 fi
5112 ac_res=`eval echo '${'$as_ac_Header'}'`
5113 { echo "$as_me:$LINENO: result: $ac_res" >&5
5114 echo "${ECHO_T}$ac_res" >&6; }
5115
5116 fi
5117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5118 cat >>confdefs.h <<_ACEOF
5119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5120 _ACEOF
5121
5122 fi
5123
5124 done
5125
5126 ac_ext=cpp
5127 ac_cpp='$CXXCPP $CPPFLAGS'
5128 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5129 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5130 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 if test -z "$CXX"; then
5132 if test -n "$CCC"; then
5133 CXX=$CCC
5134 else
5135 if test -n "$ac_tool_prefix"; then
5136 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5137 do
5138 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5139 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4721
4722
4723
4724
4725
4726
4727
4728
4729 if test -n "$ac_tool_prefix"; then
4730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4731 set dummy ${ac_tool_prefix}ar; ac_word=$2
51404732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51414733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_CXX+set}" = set; then
4734 if test "${ac_cv_prog_AR+set}" = set; then
51434735 echo $ECHO_N "(cached) $ECHO_C" >&6
51444736 else
5145 if test -n "$CXX"; then
5146 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4737 if test -n "$AR"; then
4738 ac_cv_prog_AR="$AR" # Let the user override the test.
51474739 else
51484740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51494741 for as_dir in $PATH
51524744 test -z "$as_dir" && as_dir=.
51534745 for ac_exec_ext in '' $ac_executable_extensions; do
51544746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4747 ac_cv_prog_AR="${ac_tool_prefix}ar"
51564748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51574749 break 2
51584750 fi
51624754
51634755 fi
51644756 fi
5165 CXX=$ac_cv_prog_CXX
5166 if test -n "$CXX"; then
5167 { echo "$as_me:$LINENO: result: $CXX" >&5
5168 echo "${ECHO_T}$CXX" >&6; }
4757 AR=$ac_cv_prog_AR
4758 if test -n "$AR"; then
4759 { echo "$as_me:$LINENO: result: $AR" >&5
4760 echo "${ECHO_T}$AR" >&6; }
51694761 else
51704762 { echo "$as_me:$LINENO: result: no" >&5
51714763 echo "${ECHO_T}no" >&6; }
51724764 fi
51734765
51744766
5175 test -n "$CXX" && break
5176 done
5177 fi
5178 if test -z "$CXX"; then
5179 ac_ct_CXX=$CXX
5180 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5181 do
5182 # Extract the first word of "$ac_prog", so it can be a program name with args.
5183 set dummy $ac_prog; ac_word=$2
4767 fi
4768 if test -z "$ac_cv_prog_AR"; then
4769 ac_ct_AR=$AR
4770 # Extract the first word of "ar", so it can be a program name with args.
4771 set dummy ar; ac_word=$2
51844772 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51854773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4774 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
51874775 echo $ECHO_N "(cached) $ECHO_C" >&6
51884776 else
5189 if test -n "$ac_ct_CXX"; then
5190 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4777 if test -n "$ac_ct_AR"; then
4778 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
51914779 else
51924780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51934781 for as_dir in $PATH
51964784 test -z "$as_dir" && as_dir=.
51974785 for ac_exec_ext in '' $ac_executable_extensions; do
51984786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_prog_ac_ct_CXX="$ac_prog"
4787 ac_cv_prog_ac_ct_AR="ar"
52004788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52014789 break 2
52024790 fi
52064794
52074795 fi
52084796 fi
5209 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5210 if test -n "$ac_ct_CXX"; then
5211 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5212 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4797 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4798 if test -n "$ac_ct_AR"; then
4799 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4800 echo "${ECHO_T}$ac_ct_AR" >&6; }
52134801 else
52144802 { echo "$as_me:$LINENO: result: no" >&5
52154803 echo "${ECHO_T}no" >&6; }
52164804 fi
52174805
5218
5219 test -n "$ac_ct_CXX" && break
5220 done
5221
5222 if test "x$ac_ct_CXX" = x; then
5223 CXX="g++"
4806 if test "x$ac_ct_AR" = x; then
4807 AR="false"
52244808 else
52254809 case $cross_compiling:$ac_tool_warned in
52264810 yes:)
52324816 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52334817 ac_tool_warned=yes ;;
52344818 esac
5235 CXX=$ac_ct_CXX
4819 AR=$ac_ct_AR
52364820 fi
5237 fi
5238
5239 fi
5240 fi
5241 # Provide some information about the compiler.
5242 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5243 ac_compiler=`set X $ac_compile; echo $2`
5244 { (ac_try="$ac_compiler --version >&5"
5245 case "(($ac_try" in
5246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247 *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250 (eval "$ac_compiler --version >&5") 2>&5
5251 ac_status=$?
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254 { (ac_try="$ac_compiler -v >&5"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5260 (eval "$ac_compiler -v >&5") 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5264 { (ac_try="$ac_compiler -V >&5"
5265 case "(($ac_try" in
5266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267 *) ac_try_echo=$ac_try;;
5268 esac
5269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5270 (eval "$ac_compiler -V >&5") 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }
5274
5275 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5276 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5277 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 else
5280 cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h. */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h. */
5286
5287 int
5288 main ()
5289 {
5290 #ifndef __GNUC__
5291 choke me
5292 #endif
5293
5294 ;
5295 return 0;
5296 }
5297 _ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (ac_try="$ac_compile"
5300 case "(($ac_try" in
5301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5302 *) ac_try_echo=$ac_try;;
5303 esac
5304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5305 (eval "$ac_compile") 2>conftest.er1
5306 ac_status=$?
5307 grep -v '^ *+' conftest.er1 >conftest.err
5308 rm -f conftest.er1
5309 cat conftest.err >&5
5310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311 (exit $ac_status); } && {
5312 test -z "$ac_cxx_werror_flag" ||
5313 test ! -s conftest.err
5314 } && test -s conftest.$ac_objext; then
5315 ac_compiler_gnu=yes
5316 else
5317 echo "$as_me: failed program was:" >&5
5318 sed 's/^/| /' conftest.$ac_ext >&5
5319
5320 ac_compiler_gnu=no
5321 fi
5322
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5324 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5325
5326 fi
5327 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5328 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5329 GXX=`test $ac_compiler_gnu = yes && echo yes`
5330 ac_test_CXXFLAGS=${CXXFLAGS+set}
5331 ac_save_CXXFLAGS=$CXXFLAGS
5332 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5333 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5334 if test "${ac_cv_prog_cxx_g+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5338 ac_cxx_werror_flag=yes
5339 ac_cv_prog_cxx_g=no
5340 CXXFLAGS="-g"
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347
5348 int
5349 main ()
5350 {
5351
5352 ;
5353 return 0;
5354 }
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_cxx_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 ac_cv_prog_cxx_g=yes
5374 else
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378 CXXFLAGS=""
5379 cat >conftest.$ac_ext <<_ACEOF
5380 /* confdefs.h. */
5381 _ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385
5386 int
5387 main ()
5388 {
5389
5390 ;
5391 return 0;
5392 }
5393 _ACEOF
5394 rm -f conftest.$ac_objext
5395 if { (ac_try="$ac_compile"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401 (eval "$ac_compile") 2>conftest.er1
5402 ac_status=$?
5403 grep -v '^ *+' conftest.er1 >conftest.err
5404 rm -f conftest.er1
5405 cat conftest.err >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); } && {
5408 test -z "$ac_cxx_werror_flag" ||
5409 test ! -s conftest.err
5410 } && test -s conftest.$ac_objext; then
5411 :
5412 else
5413 echo "$as_me: failed program was:" >&5
5414 sed 's/^/| /' conftest.$ac_ext >&5
5415
5416 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5417 CXXFLAGS="-g"
5418 cat >conftest.$ac_ext <<_ACEOF
5419 /* confdefs.h. */
5420 _ACEOF
5421 cat confdefs.h >>conftest.$ac_ext
5422 cat >>conftest.$ac_ext <<_ACEOF
5423 /* end confdefs.h. */
5424
5425 int
5426 main ()
5427 {
5428
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 rm -f conftest.$ac_objext
5434 if { (ac_try="$ac_compile"
5435 case "(($ac_try" in
5436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5437 *) ac_try_echo=$ac_try;;
5438 esac
5439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5440 (eval "$ac_compile") 2>conftest.er1
5441 ac_status=$?
5442 grep -v '^ *+' conftest.er1 >conftest.err
5443 rm -f conftest.er1
5444 cat conftest.err >&5
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && {
5447 test -z "$ac_cxx_werror_flag" ||
5448 test ! -s conftest.err
5449 } && test -s conftest.$ac_objext; then
5450 ac_cv_prog_cxx_g=yes
5451 else
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5454
5455
5456 fi
5457
5458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5459 fi
5460
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5466 fi
5467 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5468 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5469 if test "$ac_test_CXXFLAGS" = set; then
5470 CXXFLAGS=$ac_save_CXXFLAGS
5471 elif test $ac_cv_prog_cxx_g = yes; then
5472 if test "$GXX" = yes; then
5473 CXXFLAGS="-g -O2"
5474 else
5475 CXXFLAGS="-g"
5476 fi
5477 else
5478 if test "$GXX" = yes; then
5479 CXXFLAGS="-O2"
5480 else
5481 CXXFLAGS=
5482 fi
5483 fi
5484 ac_ext=cpp
5485 ac_cpp='$CXXCPP $CPPFLAGS'
5486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5489
5490 depcc="$CXX" am_compiler_list=
5491
5492 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5493 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5494 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5495 echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5498 # We make a subdir and do the tests there. Otherwise we can end up
5499 # making bogus files that we don't know about and never remove. For
5500 # instance it was reported that on HP-UX the gcc test will end up
5501 # making a dummy file named `D' -- because `-MD' means `put the output
5502 # in D'.
5503 mkdir conftest.dir
5504 # Copy depcomp to subdir because otherwise we won't find it if we're
5505 # using a relative directory.
5506 cp "$am_depcomp" conftest.dir
5507 cd conftest.dir
5508 # We will build objects and dependencies in a subdirectory because
5509 # it helps to detect inapplicable dependency modes. For instance
5510 # both Tru64's cc and ICC support -MD to output dependencies as a
5511 # side effect of compilation, but ICC will put the dependencies in
5512 # the current directory while Tru64 will put them in the object
5513 # directory.
5514 mkdir sub
5515
5516 am_cv_CXX_dependencies_compiler_type=none
5517 if test "$am_compiler_list" = ""; then
5518 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5519 fi
5520 for depmode in $am_compiler_list; do
5521 # Setup a source with many dependencies, because some compilers
5522 # like to wrap large dependency lists on column 80 (with \), and
5523 # we should not choose a depcomp mode which is confused by this.
5524 #
5525 # We need to recreate these files for each test, as the compiler may
5526 # overwrite some of them when testing with obscure command lines.
5527 # This happens at least with the AIX C compiler.
5528 : > sub/conftest.c
5529 for i in 1 2 3 4 5 6; do
5530 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5531 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5532 # Solaris 8's {/usr,}/bin/sh.
5533 touch sub/conftst$i.h
5534 done
5535 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5536
5537 case $depmode in
5538 nosideeffect)
5539 # after this tag, mechanisms are not by side-effect, so they'll
5540 # only be used when explicitly requested
5541 if test "x$enable_dependency_tracking" = xyes; then
5542 continue
5543 else
5544 break
5545 fi
5546 ;;
5547 none) break ;;
5548 esac
5549 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5550 # mode. It turns out that the SunPro C++ compiler does not properly
5551 # handle `-M -o', and we need to detect this.
5552 if depmode=$depmode \
5553 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5554 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5555 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5556 >/dev/null 2>conftest.err &&
5557 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5558 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5559 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5560 # icc doesn't choke on unknown options, it will just issue warnings
5561 # or remarks (even with -Werror). So we grep stderr for any message
5562 # that says an option was ignored or not supported.
5563 # When given -MP, icc 7.0 and 7.1 complain thusly:
5564 # icc: Command line warning: ignoring option '-M'; no argument required
5565 # The diagnosis changed in icc 8.0:
5566 # icc: Command line remark: option '-MP' not supported
5567 if (grep 'ignoring option' conftest.err ||
5568 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5569 am_cv_CXX_dependencies_compiler_type=$depmode
5570 break
5571 fi
5572 fi
5573 done
5574
5575 cd ..
5576 rm -rf conftest.dir
5577 else
5578 am_cv_CXX_dependencies_compiler_type=none
5579 fi
5580
5581 fi
5582 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5583 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5584 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5585
5586
5587
5588 if
5589 test "x$enable_dependency_tracking" != xno \
5590 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5591 am__fastdepCXX_TRUE=
5592 am__fastdepCXX_FALSE='#'
5593 else
5594 am__fastdepCXX_TRUE='#'
5595 am__fastdepCXX_FALSE=
5596 fi
5597
5598
5599
5600
5601 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5602 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5603 (test "X$CXX" != "Xg++"))) ; then
5604 ac_ext=cpp
5605 ac_cpp='$CXXCPP $CPPFLAGS'
5606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5610 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5611 if test -z "$CXXCPP"; then
5612 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615 # Double quotes because CXXCPP needs to be expanded
5616 for CXXCPP in "$CXX -E" "/lib/cpp"
5617 do
5618 ac_preproc_ok=false
5619 for ac_cxx_preproc_warn_flag in '' yes
5620 do
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5624 # <limits.h> exists even on freestanding compilers.
5625 # On the NeXT, cc -E runs the code through the compiler's parser,
5626 # not just through cpp. "Syntax error" is here to catch this case.
5627 cat >conftest.$ac_ext <<_ACEOF
5628 /* confdefs.h. */
5629 _ACEOF
5630 cat confdefs.h >>conftest.$ac_ext
5631 cat >>conftest.$ac_ext <<_ACEOF
5632 /* end confdefs.h. */
5633 #ifdef __STDC__
5634 # include <limits.h>
5635 #else
5636 # include <assert.h>
5637 #endif
5638 Syntax error
5639 _ACEOF
5640 if { (ac_try="$ac_cpp conftest.$ac_ext"
5641 case "(($ac_try" in
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } >/dev/null && {
5653 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5654 test ! -s conftest.err
5655 }; then
5656 :
5657 else
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661 # Broken: fails on valid input.
5662 continue
5663 fi
5664
5665 rm -f conftest.err conftest.$ac_ext
5666
5667 # OK, works on sane cases. Now check whether nonexistent headers
5668 # can be detected and how.
5669 cat >conftest.$ac_ext <<_ACEOF
5670 /* confdefs.h. */
5671 _ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5675 #include <ac_nonexistent.h>
5676 _ACEOF
5677 if { (ac_try="$ac_cpp conftest.$ac_ext"
5678 case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } >/dev/null && {
5690 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5691 test ! -s conftest.err
5692 }; then
5693 # Broken: success on invalid input.
5694 continue
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699 # Passes both tests.
5700 ac_preproc_ok=:
5701 break
5702 fi
5703
5704 rm -f conftest.err conftest.$ac_ext
5705
5706 done
5707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5708 rm -f conftest.err conftest.$ac_ext
5709 if $ac_preproc_ok; then
5710 break
5711 fi
5712
5713 done
5714 ac_cv_prog_CXXCPP=$CXXCPP
5715
5716 fi
5717 CXXCPP=$ac_cv_prog_CXXCPP
5718 else
5719 ac_cv_prog_CXXCPP=$CXXCPP
5720 fi
5721 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5722 echo "${ECHO_T}$CXXCPP" >&6; }
5723 ac_preproc_ok=false
5724 for ac_cxx_preproc_warn_flag in '' yes
5725 do
5726 # Use a header file that comes with gcc, so configuring glibc
5727 # with a fresh cross-compiler works.
5728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5729 # <limits.h> exists even on freestanding compilers.
5730 # On the NeXT, cc -E runs the code through the compiler's parser,
5731 # not just through cpp. "Syntax error" is here to catch this case.
5732 cat >conftest.$ac_ext <<_ACEOF
5733 /* confdefs.h. */
5734 _ACEOF
5735 cat confdefs.h >>conftest.$ac_ext
5736 cat >>conftest.$ac_ext <<_ACEOF
5737 /* end confdefs.h. */
5738 #ifdef __STDC__
5739 # include <limits.h>
5740 #else
5741 # include <assert.h>
5742 #endif
5743 Syntax error
5744 _ACEOF
5745 if { (ac_try="$ac_cpp conftest.$ac_ext"
5746 case "(($ac_try" in
5747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748 *) ac_try_echo=$ac_try;;
5749 esac
5750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5752 ac_status=$?
5753 grep -v '^ *+' conftest.er1 >conftest.err
5754 rm -f conftest.er1
5755 cat conftest.err >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } >/dev/null && {
5758 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5759 test ! -s conftest.err
5760 }; then
5761 :
5762 else
5763 echo "$as_me: failed program was:" >&5
5764 sed 's/^/| /' conftest.$ac_ext >&5
5765
5766 # Broken: fails on valid input.
5767 continue
5768 fi
5769
5770 rm -f conftest.err conftest.$ac_ext
5771
5772 # OK, works on sane cases. Now check whether nonexistent headers
5773 # can be detected and how.
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <ac_nonexistent.h>
5781 _ACEOF
5782 if { (ac_try="$ac_cpp conftest.$ac_ext"
5783 case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); } >/dev/null && {
5795 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5796 test ! -s conftest.err
5797 }; then
5798 # Broken: success on invalid input.
5799 continue
5800 else
5801 echo "$as_me: failed program was:" >&5
5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 # Passes both tests.
5805 ac_preproc_ok=:
5806 break
5807 fi
5808
5809 rm -f conftest.err conftest.$ac_ext
5810
5811 done
5812 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5813 rm -f conftest.err conftest.$ac_ext
5814 if $ac_preproc_ok; then
5815 :
5816 else
5817 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5818 See \`config.log' for more details." >&5
5819 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5820 See \`config.log' for more details." >&2;}
5821 { (exit 1); exit 1; }; }
5822 fi
5823
5824 ac_ext=cpp
5825 ac_cpp='$CXXCPP $CPPFLAGS'
5826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5829
5830 fi
5831
5832
5833 ac_ext=f
5834 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5835 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4821 else
4822 AR="$ac_cv_prog_AR"
4823 fi
4824
4825 test -z "$AR" && AR=ar
4826 test -z "$AR_FLAGS" && AR_FLAGS=cru
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
58374838 if test -n "$ac_tool_prefix"; then
5838 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5839 do
5840 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5841 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4839 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}strip; ac_word=$2
58424841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
58434842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_prog_F77+set}" = set; then
4843 if test "${ac_cv_prog_STRIP+set}" = set; then
58454844 echo $ECHO_N "(cached) $ECHO_C" >&6
58464845 else
5847 if test -n "$F77"; then
5848 ac_cv_prog_F77="$F77" # Let the user override the test.
4846 if test -n "$STRIP"; then
4847 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
58494848 else
58504849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58514850 for as_dir in $PATH
58544853 test -z "$as_dir" && as_dir=.
58554854 for ac_exec_ext in '' $ac_executable_extensions; do
58564855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5857 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4856 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
58584857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
58594858 break 2
58604859 fi
58644863
58654864 fi
58664865 fi
5867 F77=$ac_cv_prog_F77
5868 if test -n "$F77"; then
5869 { echo "$as_me:$LINENO: result: $F77" >&5
5870 echo "${ECHO_T}$F77" >&6; }
4866 STRIP=$ac_cv_prog_STRIP
4867 if test -n "$STRIP"; then
4868 { echo "$as_me:$LINENO: result: $STRIP" >&5
4869 echo "${ECHO_T}$STRIP" >&6; }
58714870 else
58724871 { echo "$as_me:$LINENO: result: no" >&5
58734872 echo "${ECHO_T}no" >&6; }
58744873 fi
58754874
58764875
5877 test -n "$F77" && break
5878 done
5879 fi
5880 if test -z "$F77"; then
5881 ac_ct_F77=$F77
5882 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5883 do
5884 # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
4876 fi
4877 if test -z "$ac_cv_prog_STRIP"; then
4878 ac_ct_STRIP=$STRIP
4879 # Extract the first word of "strip", so it can be a program name with args.
4880 set dummy strip; ac_word=$2
58864881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
58874882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4883 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
58894884 echo $ECHO_N "(cached) $ECHO_C" >&6
58904885 else
5891 if test -n "$ac_ct_F77"; then
5892 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4886 if test -n "$ac_ct_STRIP"; then
4887 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
58934888 else
58944889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
58954890 for as_dir in $PATH
58984893 test -z "$as_dir" && as_dir=.
58994894 for ac_exec_ext in '' $ac_executable_extensions; do
59004895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_prog_ac_ct_F77="$ac_prog"
4896 ac_cv_prog_ac_ct_STRIP="strip"
59024897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
59034898 break 2
59044899 fi
59084903
59094904 fi
59104905 fi
5911 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5912 if test -n "$ac_ct_F77"; then
5913 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5914 echo "${ECHO_T}$ac_ct_F77" >&6; }
4906 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4907 if test -n "$ac_ct_STRIP"; then
4908 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4909 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
59154910 else
59164911 { echo "$as_me:$LINENO: result: no" >&5
59174912 echo "${ECHO_T}no" >&6; }
59184913 fi
59194914
5920
5921 test -n "$ac_ct_F77" && break
5922 done
5923
5924 if test "x$ac_ct_F77" = x; then
5925 F77=""
4915 if test "x$ac_ct_STRIP" = x; then
4916 STRIP=":"
59264917 else
59274918 case $cross_compiling:$ac_tool_warned in
59284919 yes:)
59344925 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
59354926 ac_tool_warned=yes ;;
59364927 esac
5937 F77=$ac_ct_F77
4928 STRIP=$ac_ct_STRIP
59384929 fi
5939 fi
5940
5941
5942 # Provide some information about the compiler.
5943 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5944 ac_compiler=`set X $ac_compile; echo $2`
5945 { (ac_try="$ac_compiler --version >&5"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
4930 else
4931 STRIP="$ac_cv_prog_STRIP"
4932 fi
4933
4934 test -z "$STRIP" && STRIP=:
4935
4936
4937
4938
4939
4940
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4944 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4946 if test "${ac_cv_prog_RANLIB+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949 if test -n "$RANLIB"; then
4950 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 RANLIB=$ac_cv_prog_RANLIB
4970 if test -n "$RANLIB"; then
4971 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4972 echo "${ECHO_T}$RANLIB" >&6; }
4973 else
4974 { echo "$as_me:$LINENO: result: no" >&5
4975 echo "${ECHO_T}no" >&6; }
4976 fi
4977
4978
4979 fi
4980 if test -z "$ac_cv_prog_RANLIB"; then
4981 ac_ct_RANLIB=$RANLIB
4982 # Extract the first word of "ranlib", so it can be a program name with args.
4983 set dummy ranlib; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4987 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989 if test -n "$ac_ct_RANLIB"; then
4990 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_ac_ct_RANLIB="ranlib"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003 done
5004 done
5005 IFS=$as_save_IFS
5006
5007 fi
5008 fi
5009 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5010 if test -n "$ac_ct_RANLIB"; then
5011 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5012 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5013 else
5014 { echo "$as_me:$LINENO: result: no" >&5
5015 echo "${ECHO_T}no" >&6; }
5016 fi
5017
5018 if test "x$ac_ct_RANLIB" = x; then
5019 RANLIB=":"
5020 else
5021 case $cross_compiling:$ac_tool_warned in
5022 yes:)
5023 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5024 whose name does not start with the host triplet. If you think this
5025 configuration is useful to you, please write to autoconf@gnu.org." >&5
5026 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5027 whose name does not start with the host triplet. If you think this
5028 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5029 ac_tool_warned=yes ;;
59495030 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compiler --version >&5") 2>&5
5952 ac_status=$?
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }
5955 { (ac_try="$ac_compiler -v >&5"
5956 case "(($ac_try" in
5957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958 *) ac_try_echo=$ac_try;;
5959 esac
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compiler -v >&5") 2>&5
5962 ac_status=$?
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); }
5965 { (ac_try="$ac_compiler -V >&5"
5966 case "(($ac_try" in
5967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5969 esac
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_compiler -V >&5") 2>&5
5972 ac_status=$?
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); }
5975 rm -f a.out
5976
5977 # If we don't use `.F' as extension, the preprocessor is not run on the
5978 # input file. (Note that this only needs to work for GNU compilers.)
5979 ac_save_ext=$ac_ext
5980 ac_ext=F
5981 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5982 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5983 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 program main
5988 #ifndef __GNUC__
5989 choke me
5990 #endif
5991
5992 end
5993 _ACEOF
5994 rm -f conftest.$ac_objext
5995 if { (ac_try="$ac_compile"
5996 case "(($ac_try" in
5997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5998 *) ac_try_echo=$ac_try;;
5999 esac
6000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6001 (eval "$ac_compile") 2>conftest.er1
6002 ac_status=$?
6003 grep -v '^ *+' conftest.er1 >conftest.err
6004 rm -f conftest.er1
6005 cat conftest.err >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); } && {
6008 test -z "$ac_f77_werror_flag" ||
6009 test ! -s conftest.err
6010 } && test -s conftest.$ac_objext; then
6011 ac_compiler_gnu=yes
6012 else
6013 echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6015
6016 ac_compiler_gnu=no
6017 fi
6018
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6021
6022 fi
6023 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6024 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6025 ac_ext=$ac_save_ext
6026 ac_test_FFLAGS=${FFLAGS+set}
6027 ac_save_FFLAGS=$FFLAGS
6028 FFLAGS=
6029 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6030 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6031 if test "${ac_cv_prog_f77_g+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 FFLAGS=-g
6035 cat >conftest.$ac_ext <<_ACEOF
6036 program main
6037
6038 end
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_f77_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_prog_f77_g=yes
6058 else
6059 echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 ac_cv_prog_f77_g=no
6063 fi
6064
6065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6066
6067 fi
6068 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6069 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6070 if test "$ac_test_FFLAGS" = set; then
6071 FFLAGS=$ac_save_FFLAGS
6072 elif test $ac_cv_prog_f77_g = yes; then
6073 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6074 FFLAGS="-g -O2"
6075 else
6076 FFLAGS="-g"
5031 RANLIB=$ac_ct_RANLIB
60775032 fi
60785033 else
6079 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6080 FFLAGS="-O2"
6081 else
6082 FFLAGS=
6083 fi
6084 fi
6085
6086 G77=`test $ac_compiler_gnu = yes && echo yes`
6087 ac_ext=c
6088 ac_cpp='$CPP $CPPFLAGS'
6089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092
6093
6094
6095 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6096 # find the maximum length of command line arguments
6097 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6098 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6099 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 i=0
6103 teststring="ABCD"
6104
6105 case $build_os in
6106 msdosdjgpp*)
6107 # On DJGPP, this test can blow up pretty badly due to problems in libc
6108 # (any single argument exceeding 2000 bytes causes a buffer overrun
6109 # during glob expansion). Even if it were fixed, the result of this
6110 # check would be larger than it should be.
6111 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6112 ;;
6113
6114 gnu*)
6115 # Under GNU Hurd, this test is not required because there is
6116 # no limit to the length of command line arguments.
6117 # Libtool will interpret -1 as no limit whatsoever
6118 lt_cv_sys_max_cmd_len=-1;
6119 ;;
6120
6121 cygwin* | mingw*)
6122 # On Win9x/ME, this test blows up -- it succeeds, but takes
6123 # about 5 minutes as the teststring grows exponentially.
6124 # Worse, since 9x/ME are not pre-emptively multitasking,
6125 # you end up with a "frozen" computer, even though with patience
6126 # the test eventually succeeds (with a max line length of 256k).
6127 # Instead, let's just punt: use the minimum linelength reported by
6128 # all of the supported platforms: 8192 (on NT/2K/XP).
6129 lt_cv_sys_max_cmd_len=8192;
6130 ;;
6131
6132 amigaos*)
6133 # On AmigaOS with pdksh, this test takes hours, literally.
6134 # So we just punt and use a minimum line length of 8192.
6135 lt_cv_sys_max_cmd_len=8192;
6136 ;;
6137
6138 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6139 # This has been around since 386BSD, at least. Likely further.
6140 if test -x /sbin/sysctl; then
6141 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6142 elif test -x /usr/sbin/sysctl; then
6143 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6144 else
6145 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6146 fi
6147 # And add a safety zone
6148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6150 ;;
6151
6152 interix*)
6153 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6154 lt_cv_sys_max_cmd_len=196608
6155 ;;
6156
6157 osf*)
6158 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6159 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6160 # nice to cause kernel panics so lets avoid the loop below.
6161 # First set a reasonable default.
6162 lt_cv_sys_max_cmd_len=16384
6163 #
6164 if test -x /sbin/sysconfig; then
6165 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6166 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6167 esac
6168 fi
6169 ;;
6170 sco3.2v5*)
6171 lt_cv_sys_max_cmd_len=102400
6172 ;;
6173 sysv5* | sco5v6* | sysv4.2uw2*)
6174 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6175 if test -n "$kargmax"; then
6176 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6177 else
6178 lt_cv_sys_max_cmd_len=32768
6179 fi
5034 RANLIB="$ac_cv_prog_RANLIB"
5035 fi
5036
5037 test -z "$RANLIB" && RANLIB=:
5038
5039
5040
5041
5042
5043
5044 # Determine commands to create old-style static archives.
5045 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5046 old_postinstall_cmds='chmod 644 $oldlib'
5047 old_postuninstall_cmds=
5048
5049 if test -n "$RANLIB"; then
5050 case $host_os in
5051 openbsd*)
5052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
61805053 ;;
61815054 *)
6182 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6183 if test -n "$lt_cv_sys_max_cmd_len"; then
6184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6186 else
6187 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6188 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6189 = "XX$teststring") >/dev/null 2>&1 &&
6190 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6191 lt_cv_sys_max_cmd_len=$new_result &&
6192 test $i != 17 # 1/2 MB should be enough
6193 do
6194 i=`expr $i + 1`
6195 teststring=$teststring$teststring
6196 done
6197 teststring=
6198 # Add a significant safety factor because C++ compilers can tack on massive
6199 # amounts of additional arguments before passing them to the linker.
6200 # It appears as though 1/2 is a usable value.
6201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6202 fi
5055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
62035056 ;;
62045057 esac
6205
6206 fi
6207
6208 if test -n $lt_cv_sys_max_cmd_len ; then
6209 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6210 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6211 else
6212 { echo "$as_me:$LINENO: result: none" >&5
6213 echo "${ECHO_T}none" >&6; }
6214 fi
6215
6216
6217
5058 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5059 fi
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 # If no C compiler was specified, use CC.
5095 LTCC=${LTCC-"$CC"}
5096
5097 # If no C compiler flags were specified, use CFLAGS.
5098 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5099
5100 # Allow CC to be a program name with arguments.
5101 compiler=$CC
62185102
62195103
62205104 # Check for command to grab the raw symbol name followed by C symbol from nm.
62325116
62335117 # Regexp to match symbols that can be accessed directly from C.
62345118 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6235
6236 # Transform an extracted symbol line into a proper C declaration
6237 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6238
6239 # Transform an extracted symbol line into symbol name and symbol address
6240 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
62415119
62425120 # Define system-specific variables.
62435121 case $host_os in
62475125 cygwin* | mingw* | pw32*)
62485126 symcode='[ABCDGISTW]'
62495127 ;;
6250 hpux*) # Its linker distinguishes data from code symbols
5128 hpux*)
62515129 if test "$host_cpu" = ia64; then
62525130 symcode='[ABCDEGRST]'
6253 fi
6254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6255 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6256 ;;
6257 linux* | k*bsd*-gnu)
6258 if test "$host_cpu" = ia64; then
6259 symcode='[ABCDGIRSTW]'
6260 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6261 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
62625131 fi
62635132 ;;
62645133 irix* | nonstopux*)
62845153 ;;
62855154 esac
62865155
6287 # Handle CRLF in mingw tool chain
6288 opt_cr=
6289 case $build_os in
6290 mingw*)
6291 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6292 ;;
6293 esac
6294
62955156 # If we're using GNU nm, then use its standard symbol codes.
62965157 case `$NM -V 2>&1` in
62975158 *GNU* | *'with BFD'*)
62985159 symcode='[ABCDGIRSTW]' ;;
62995160 esac
63005161
6301 # Try without a prefix undercore, then with it.
5162 # Transform an extracted symbol line into a proper C declaration.
5163 # Some systems (esp. on ia64) link data and code symbols differently,
5164 # so use this general approach.
5165 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5166
5167 # Transform an extracted symbol line into symbol name and symbol address
5168 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5169 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'"
5170
5171 # Handle CRLF in mingw tool chain
5172 opt_cr=
5173 case $build_os in
5174 mingw*)
5175 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5176 ;;
5177 esac
5178
5179 # Try without a prefix underscore, then with it.
63025180 for ac_symprfx in "" "_"; do
63035181
63045182 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
63055183 symxfrm="\\1 $ac_symprfx\\2 \\2"
63065184
63075185 # Write the raw and C identifiers.
6308 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5186 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5187 # Fake it for dumpbin and say T for any non-static function
5188 # and D for any global variable.
5189 # Also find C++ and __fastcall symbols from MSVC++,
5190 # which start with @ or ?.
5191 lt_cv_sys_global_symbol_pipe="$AWK '"\
5192 " {last_section=section; section=\$ 3};"\
5193 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5194 " \$ 0!~/External *\|/{next};"\
5195 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5196 " {if(hide[section]) next};"\
5197 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5198 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5199 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5200 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5201 " ' prfx=^$ac_symprfx"
5202 else
5203 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5204 fi
63095205
63105206 # Check to see that the pipe works correctly.
63115207 pipe_works=no
63125208
63135209 rm -f conftest*
6314 cat > conftest.$ac_ext <<EOF
5210 cat > conftest.$ac_ext <<_LT_EOF
63155211 #ifdef __cplusplus
63165212 extern "C" {
63175213 #endif
63185214 char nm_test_var;
6319 void nm_test_func(){}
5215 void nm_test_func(void);
5216 void nm_test_func(void){}
63205217 #ifdef __cplusplus
63215218 }
63225219 #endif
63235220 int main(){nm_test_var='a';nm_test_func();return(0);}
6324 EOF
5221 _LT_EOF
63255222
63265223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
63275224 (eval $ac_compile) 2>&5
63435240 fi
63445241
63455242 # Make sure that we snagged all the symbols we need.
6346 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6347 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6348 cat <<EOF > conftest.$ac_ext
5243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5245 cat <<_LT_EOF > conftest.$ac_ext
63495246 #ifdef __cplusplus
63505247 extern "C" {
63515248 #endif
63525249
6353 EOF
5250 _LT_EOF
63545251 # Now generate the symbol file.
6355 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6356
6357 cat <<EOF >> conftest.$ac_ext
6358 #if defined (__STDC__) && __STDC__
6359 # define lt_ptr_t void *
6360 #else
6361 # define lt_ptr_t char *
6362 # define const
6363 #endif
6364
6365 /* The mapping between symbol names and symbols. */
5252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5253
5254 cat <<_LT_EOF >> conftest.$ac_ext
5255
5256 /* The mapping between symbol names and symbols. */
63665257 const struct {
63675258 const char *name;
6368 lt_ptr_t address;
5259 void *address;
63695260 }
6370 lt_preloaded_symbols[] =
5261 lt__PROGRAM__LTX_preloaded_symbols[] =
63715262 {
6372 EOF
6373 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6374 cat <<\EOF >> conftest.$ac_ext
6375 {0, (lt_ptr_t) 0}
5263 { "@PROGRAM@", (void *) 0 },
5264 _LT_EOF
5265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5266 cat <<\_LT_EOF >> conftest.$ac_ext
5267 {0, (void *) 0}
63765268 };
5269
5270 /* This works around a problem in FreeBSD linker */
5271 #ifdef FREEBSD_WORKAROUND
5272 static const void *lt_preloaded_setup() {
5273 return lt__PROGRAM__LTX_preloaded_symbols;
5274 }
5275 #endif
63775276
63785277 #ifdef __cplusplus
63795278 }
63805279 #endif
6381 EOF
5280 _LT_EOF
63825281 # Now try linking the two files.
63835282 mv conftest.$ac_objext conftstm.$ac_objext
63845283 lt_save_LIBS="$LIBS"
64305329 echo "${ECHO_T}ok" >&6; }
64315330 fi
64325331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354 # Check whether --enable-libtool-lock was given.
5355 if test "${enable_libtool_lock+set}" = set; then
5356 enableval=$enable_libtool_lock;
5357 fi
5358
5359 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5360
5361 # Some flags need to be propagated to the compiler or linker for good
5362 # libtool support.
5363 case $host in
5364 ia64-*-hpux*)
5365 # Find out which ABI we are using.
5366 echo 'int i;' > conftest.$ac_ext
5367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5368 (eval $ac_compile) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; then
5372 case `/usr/bin/file conftest.$ac_objext` in
5373 *ELF-32*)
5374 HPUX_IA64_MODE="32"
5375 ;;
5376 *ELF-64*)
5377 HPUX_IA64_MODE="64"
5378 ;;
5379 esac
5380 fi
5381 rm -rf conftest*
5382 ;;
5383 *-*-irix6*)
5384 # Find out which ABI we are using.
5385 echo '#line 5386 "configure"' > conftest.$ac_ext
5386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5387 (eval $ac_compile) 2>&5
5388 ac_status=$?
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }; then
5391 if test "$lt_cv_prog_gnu_ld" = yes; then
5392 case `/usr/bin/file conftest.$ac_objext` in
5393 *32-bit*)
5394 LD="${LD-ld} -melf32bsmip"
5395 ;;
5396 *N32*)
5397 LD="${LD-ld} -melf32bmipn32"
5398 ;;
5399 *64-bit*)
5400 LD="${LD-ld} -melf64bmip"
5401 ;;
5402 esac
5403 else
5404 case `/usr/bin/file conftest.$ac_objext` in
5405 *32-bit*)
5406 LD="${LD-ld} -32"
5407 ;;
5408 *N32*)
5409 LD="${LD-ld} -n32"
5410 ;;
5411 *64-bit*)
5412 LD="${LD-ld} -64"
5413 ;;
5414 esac
5415 fi
5416 fi
5417 rm -rf conftest*
5418 ;;
5419
5420 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5421 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5422 # Find out which ABI we are using.
5423 echo 'int i;' > conftest.$ac_ext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>&5
5426 ac_status=$?
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); }; then
5429 case `/usr/bin/file conftest.o` in
5430 *32-bit*)
5431 case $host in
5432 x86_64-*kfreebsd*-gnu)
5433 LD="${LD-ld} -m elf_i386_fbsd"
5434 ;;
5435 x86_64-*linux*)
5436 LD="${LD-ld} -m elf_i386"
5437 ;;
5438 ppc64-*linux*|powerpc64-*linux*)
5439 LD="${LD-ld} -m elf32ppclinux"
5440 ;;
5441 s390x-*linux*)
5442 LD="${LD-ld} -m elf_s390"
5443 ;;
5444 sparc64-*linux*)
5445 LD="${LD-ld} -m elf32_sparc"
5446 ;;
5447 esac
5448 ;;
5449 *64-bit*)
5450 case $host in
5451 x86_64-*kfreebsd*-gnu)
5452 LD="${LD-ld} -m elf_x86_64_fbsd"
5453 ;;
5454 x86_64-*linux*)
5455 LD="${LD-ld} -m elf_x86_64"
5456 ;;
5457 ppc*-*linux*|powerpc*-*linux*)
5458 LD="${LD-ld} -m elf64ppc"
5459 ;;
5460 s390*-*linux*|s390*-*tpf*)
5461 LD="${LD-ld} -m elf64_s390"
5462 ;;
5463 sparc*-*linux*)
5464 LD="${LD-ld} -m elf64_sparc"
5465 ;;
5466 esac
5467 ;;
5468 esac
5469 fi
5470 rm -rf conftest*
5471 ;;
5472
5473 *-*-sco3.2v5*)
5474 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5475 SAVE_CFLAGS="$CFLAGS"
5476 CFLAGS="$CFLAGS -belf"
5477 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5478 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5479 if test "${lt_cv_cc_needs_belf+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5481 else
5482 ac_ext=c
5483 ac_cpp='$CPP $CPPFLAGS'
5484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5487
5488 cat >conftest.$ac_ext <<_ACEOF
5489 /* confdefs.h. */
5490 _ACEOF
5491 cat confdefs.h >>conftest.$ac_ext
5492 cat >>conftest.$ac_ext <<_ACEOF
5493 /* end confdefs.h. */
5494
5495 int
5496 main ()
5497 {
5498
5499 ;
5500 return 0;
5501 }
5502 _ACEOF
5503 rm -f conftest.$ac_objext conftest$ac_exeext
5504 if { (ac_try="$ac_link"
5505 case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508 esac
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_link") 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest$ac_exeext &&
5520 $as_test_x conftest$ac_exeext; then
5521 lt_cv_cc_needs_belf=yes
5522 else
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5525
5526 lt_cv_cc_needs_belf=no
5527 fi
5528
5529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5530 conftest$ac_exeext conftest.$ac_ext
5531 ac_ext=c
5532 ac_cpp='$CPP $CPPFLAGS'
5533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5536
5537 fi
5538 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5539 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5542 CFLAGS="$SAVE_CFLAGS"
5543 fi
5544 ;;
5545 sparc*-*solaris*)
5546 # Find out which ABI we are using.
5547 echo 'int i;' > conftest.$ac_ext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; then
5553 case `/usr/bin/file conftest.o` in
5554 *64-bit*)
5555 case $lt_cv_prog_gnu_ld in
5556 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5557 *)
5558 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5559 LD="${LD-ld} -64"
5560 fi
5561 ;;
5562 esac
5563 ;;
5564 esac
5565 fi
5566 rm -rf conftest*
5567 ;;
5568 esac
5569
5570 need_locks="$enable_libtool_lock"
5571
5572
5573 case $host_os in
5574 rhapsody* | darwin*)
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5577 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5580 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5581 echo $ECHO_N "(cached) $ECHO_C" >&6
5582 else
5583 if test -n "$DSYMUTIL"; then
5584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5585 else
5586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587 for as_dir in $PATH
5588 do
5589 IFS=$as_save_IFS
5590 test -z "$as_dir" && as_dir=.
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 break 2
5596 fi
5597 done
5598 done
5599 IFS=$as_save_IFS
5600
5601 fi
5602 fi
5603 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5604 if test -n "$DSYMUTIL"; then
5605 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
5606 echo "${ECHO_T}$DSYMUTIL" >&6; }
5607 else
5608 { echo "$as_me:$LINENO: result: no" >&5
5609 echo "${ECHO_T}no" >&6; }
5610 fi
5611
5612
5613 fi
5614 if test -z "$ac_cv_prog_DSYMUTIL"; then
5615 ac_ct_DSYMUTIL=$DSYMUTIL
5616 # Extract the first word of "dsymutil", so it can be a program name with args.
5617 set dummy dsymutil; ac_word=$2
5618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5620 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 if test -n "$ac_ct_DSYMUTIL"; then
5624 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5625 else
5626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 for as_dir in $PATH
5628 do
5629 IFS=$as_save_IFS
5630 test -z "$as_dir" && as_dir=.
5631 for ac_exec_ext in '' $ac_executable_extensions; do
5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5635 break 2
5636 fi
5637 done
5638 done
5639 IFS=$as_save_IFS
5640
5641 fi
5642 fi
5643 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5644 if test -n "$ac_ct_DSYMUTIL"; then
5645 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
5646 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
5647 else
5648 { echo "$as_me:$LINENO: result: no" >&5
5649 echo "${ECHO_T}no" >&6; }
5650 fi
5651
5652 if test "x$ac_ct_DSYMUTIL" = x; then
5653 DSYMUTIL=":"
5654 else
5655 case $cross_compiling:$ac_tool_warned in
5656 yes:)
5657 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5658 whose name does not start with the host triplet. If you think this
5659 configuration is useful to you, please write to autoconf@gnu.org." >&5
5660 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5661 whose name does not start with the host triplet. If you think this
5662 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5663 ac_tool_warned=yes ;;
5664 esac
5665 DSYMUTIL=$ac_ct_DSYMUTIL
5666 fi
5667 else
5668 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5669 fi
5670
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5673 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5676 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679 if test -n "$NMEDIT"; then
5680 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5681 else
5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5689 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693 done
5694 done
5695 IFS=$as_save_IFS
5696
5697 fi
5698 fi
5699 NMEDIT=$ac_cv_prog_NMEDIT
5700 if test -n "$NMEDIT"; then
5701 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
5702 echo "${ECHO_T}$NMEDIT" >&6; }
5703 else
5704 { echo "$as_me:$LINENO: result: no" >&5
5705 echo "${ECHO_T}no" >&6; }
5706 fi
5707
5708
5709 fi
5710 if test -z "$ac_cv_prog_NMEDIT"; then
5711 ac_ct_NMEDIT=$NMEDIT
5712 # Extract the first word of "nmedit", so it can be a program name with args.
5713 set dummy nmedit; ac_word=$2
5714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5716 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 else
5719 if test -n "$ac_ct_NMEDIT"; then
5720 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5732 fi
5733 done
5734 done
5735 IFS=$as_save_IFS
5736
5737 fi
5738 fi
5739 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5740 if test -n "$ac_ct_NMEDIT"; then
5741 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
5742 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
5743 else
5744 { echo "$as_me:$LINENO: result: no" >&5
5745 echo "${ECHO_T}no" >&6; }
5746 fi
5747
5748 if test "x$ac_ct_NMEDIT" = x; then
5749 NMEDIT=":"
5750 else
5751 case $cross_compiling:$ac_tool_warned in
5752 yes:)
5753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5754 whose name does not start with the host triplet. If you think this
5755 configuration is useful to you, please write to autoconf@gnu.org." >&5
5756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5757 whose name does not start with the host triplet. If you think this
5758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761 NMEDIT=$ac_ct_NMEDIT
5762 fi
5763 else
5764 NMEDIT="$ac_cv_prog_NMEDIT"
5765 fi
5766
5767 if test -n "$ac_tool_prefix"; then
5768 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5772 if test "${ac_cv_prog_LIPO+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775 if test -n "$LIPO"; then
5776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 LIPO=$ac_cv_prog_LIPO
5796 if test -n "$LIPO"; then
5797 { echo "$as_me:$LINENO: result: $LIPO" >&5
5798 echo "${ECHO_T}$LIPO" >&6; }
5799 else
5800 { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5802 fi
5803
5804
5805 fi
5806 if test -z "$ac_cv_prog_LIPO"; then
5807 ac_ct_LIPO=$LIPO
5808 # Extract the first word of "lipo", so it can be a program name with args.
5809 set dummy lipo; ac_word=$2
5810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5812 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5813 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 else
5815 if test -n "$ac_ct_LIPO"; then
5816 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821 IFS=$as_save_IFS
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_prog_ac_ct_LIPO="lipo"
5826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829 done
5830 done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5836 if test -n "$ac_ct_LIPO"; then
5837 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
5838 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
5839 else
5840 { echo "$as_me:$LINENO: result: no" >&5
5841 echo "${ECHO_T}no" >&6; }
5842 fi
5843
5844 if test "x$ac_ct_LIPO" = x; then
5845 LIPO=":"
5846 else
5847 case $cross_compiling:$ac_tool_warned in
5848 yes:)
5849 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5850 whose name does not start with the host triplet. If you think this
5851 configuration is useful to you, please write to autoconf@gnu.org." >&5
5852 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5853 whose name does not start with the host triplet. If you think this
5854 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5855 ac_tool_warned=yes ;;
5856 esac
5857 LIPO=$ac_ct_LIPO
5858 fi
5859 else
5860 LIPO="$ac_cv_prog_LIPO"
5861 fi
5862
5863 if test -n "$ac_tool_prefix"; then
5864 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5865 set dummy ${ac_tool_prefix}otool; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_prog_OTOOL+set}" = set; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871 if test -n "$OTOOL"; then
5872 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5873 else
5874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 for as_dir in $PATH
5876 do
5877 IFS=$as_save_IFS
5878 test -z "$as_dir" && as_dir=.
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5881 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
5882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 OTOOL=$ac_cv_prog_OTOOL
5892 if test -n "$OTOOL"; then
5893 { echo "$as_me:$LINENO: result: $OTOOL" >&5
5894 echo "${ECHO_T}$OTOOL" >&6; }
5895 else
5896 { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5898 fi
5899
5900
5901 fi
5902 if test -z "$ac_cv_prog_OTOOL"; then
5903 ac_ct_OTOOL=$OTOOL
5904 # Extract the first word of "otool", so it can be a program name with args.
5905 set dummy otool; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 else
5911 if test -n "$ac_ct_OTOOL"; then
5912 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5913 else
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5921 ac_cv_prog_ac_ct_OTOOL="otool"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923 break 2
5924 fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929 fi
5930 fi
5931 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5932 if test -n "$ac_ct_OTOOL"; then
5933 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
5934 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
5935 else
5936 { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940 if test "x$ac_ct_OTOOL" = x; then
5941 OTOOL=":"
5942 else
5943 case $cross_compiling:$ac_tool_warned in
5944 yes:)
5945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5946 whose name does not start with the host triplet. If you think this
5947 configuration is useful to you, please write to autoconf@gnu.org." >&5
5948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5949 whose name does not start with the host triplet. If you think this
5950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5951 ac_tool_warned=yes ;;
5952 esac
5953 OTOOL=$ac_ct_OTOOL
5954 fi
5955 else
5956 OTOOL="$ac_cv_prog_OTOOL"
5957 fi
5958
5959 if test -n "$ac_tool_prefix"; then
5960 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5961 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5962 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5964 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5965 echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967 if test -n "$OTOOL64"; then
5968 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
5978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 OTOOL64=$ac_cv_prog_OTOOL64
5988 if test -n "$OTOOL64"; then
5989 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
5990 echo "${ECHO_T}$OTOOL64" >&6; }
5991 else
5992 { echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6; }
5994 fi
5995
5996
5997 fi
5998 if test -z "$ac_cv_prog_OTOOL64"; then
5999 ac_ct_OTOOL64=$OTOOL64
6000 # Extract the first word of "otool64", so it can be a program name with args.
6001 set dummy otool64; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 if test -n "$ac_ct_OTOOL64"; then
6008 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6009 else
6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011 for as_dir in $PATH
6012 do
6013 IFS=$as_save_IFS
6014 test -z "$as_dir" && as_dir=.
6015 for ac_exec_ext in '' $ac_executable_extensions; do
6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017 ac_cv_prog_ac_ct_OTOOL64="otool64"
6018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6019 break 2
6020 fi
6021 done
6022 done
6023 IFS=$as_save_IFS
6024
6025 fi
6026 fi
6027 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6028 if test -n "$ac_ct_OTOOL64"; then
6029 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6030 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6031 else
6032 { echo "$as_me:$LINENO: result: no" >&5
6033 echo "${ECHO_T}no" >&6; }
6034 fi
6035
6036 if test "x$ac_ct_OTOOL64" = x; then
6037 OTOOL64=":"
6038 else
6039 case $cross_compiling:$ac_tool_warned in
6040 yes:)
6041 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6042 whose name does not start with the host triplet. If you think this
6043 configuration is useful to you, please write to autoconf@gnu.org." >&5
6044 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6045 whose name does not start with the host triplet. If you think this
6046 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6047 ac_tool_warned=yes ;;
6048 esac
6049 OTOOL64=$ac_ct_OTOOL64
6050 fi
6051 else
6052 OTOOL64="$ac_cv_prog_OTOOL64"
6053 fi
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6082 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6083 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6085 else
6086 lt_cv_apple_cc_single_mod=no
6087 if test -z "${LT_MULTI_MODULE}"; then
6088 # By default we will add the -single_module flag. You can override
6089 # by either setting the environment variable LT_MULTI_MODULE
6090 # non-empty at configure time, or by adding -multi_module to the
6091 # link flags.
6092 rm -rf libconftest.dylib*
6093 echo "int foo(void){return 1;}" > conftest.c
6094 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6095 -dynamiclib -Wl,-single_module conftest.c" >&5
6096 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6097 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6098 _lt_result=$?
6099 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6100 lt_cv_apple_cc_single_mod=yes
6101 else
6102 cat conftest.err >&5
6103 fi
6104 rm -rf libconftest.dylib*
6105 rm -f conftest.*
6106 fi
6107 fi
6108 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6109 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6110 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6111 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6112 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6114 else
6115 lt_cv_ld_exported_symbols_list=no
6116 save_LDFLAGS=$LDFLAGS
6117 echo "_main" > conftest.sym
6118 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6119 cat >conftest.$ac_ext <<_ACEOF
6120 /* confdefs.h. */
6121 _ACEOF
6122 cat confdefs.h >>conftest.$ac_ext
6123 cat >>conftest.$ac_ext <<_ACEOF
6124 /* end confdefs.h. */
6125
6126 int
6127 main ()
6128 {
6129
6130 ;
6131 return 0;
6132 }
6133 _ACEOF
6134 rm -f conftest.$ac_objext conftest$ac_exeext
6135 if { (ac_try="$ac_link"
6136 case "(($ac_try" in
6137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6138 *) ac_try_echo=$ac_try;;
6139 esac
6140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6141 (eval "$ac_link") 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } && {
6148 test -z "$ac_c_werror_flag" ||
6149 test ! -s conftest.err
6150 } && test -s conftest$ac_exeext &&
6151 $as_test_x conftest$ac_exeext; then
6152 lt_cv_ld_exported_symbols_list=yes
6153 else
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 lt_cv_ld_exported_symbols_list=no
6158 fi
6159
6160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6161 conftest$ac_exeext conftest.$ac_ext
6162 LDFLAGS="$save_LDFLAGS"
6163
6164 fi
6165 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6166 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6167 case $host_os in
6168 rhapsody* | darwin1.[012])
6169 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6170 darwin1.*)
6171 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6172 darwin*) # darwin 5.x on
6173 # if running on 10.5 or later, the deployment target defaults
6174 # to the OS version, if on x86, and 10.4, the deployment
6175 # target defaults to 10.4. Don't you love it?
6176 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6177 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6178 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6179 10.[012]*)
6180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6181 10.*)
6182 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6183 esac
6184 ;;
6185 esac
6186 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6187 _lt_dar_single_mod='$single_module'
6188 fi
6189 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6190 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6191 else
6192 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6193 fi
6194 if test "$DSYMUTIL" != ":"; then
6195 _lt_dsymutil='~$DSYMUTIL $lib || :'
6196 else
6197 _lt_dsymutil=
6198 fi
6199 ;;
6200 esac
6201
6202 ac_ext=c
6203 ac_cpp='$CPP $CPPFLAGS'
6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6209 # On Suns, sometimes $CPP names a directory.
6210 if test -n "$CPP" && test -d "$CPP"; then
6211 CPP=
6212 fi
6213 if test -z "$CPP"; then
6214 if test "${ac_cv_prog_CPP+set}" = set; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 else
6217 # Double quotes because CPP needs to be expanded
6218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6219 do
6220 ac_preproc_ok=false
6221 for ac_c_preproc_warn_flag in '' yes
6222 do
6223 # Use a header file that comes with gcc, so configuring glibc
6224 # with a fresh cross-compiler works.
6225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 # <limits.h> exists even on freestanding compilers.
6227 # On the NeXT, cc -E runs the code through the compiler's parser,
6228 # not just through cpp. "Syntax error" is here to catch this case.
6229 cat >conftest.$ac_ext <<_ACEOF
6230 /* confdefs.h. */
6231 _ACEOF
6232 cat confdefs.h >>conftest.$ac_ext
6233 cat >>conftest.$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #ifdef __STDC__
6236 # include <limits.h>
6237 #else
6238 # include <assert.h>
6239 #endif
6240 Syntax error
6241 _ACEOF
6242 if { (ac_try="$ac_cpp conftest.$ac_ext"
6243 case "(($ac_try" in
6244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6245 *) ac_try_echo=$ac_try;;
6246 esac
6247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6249 ac_status=$?
6250 grep -v '^ *+' conftest.er1 >conftest.err
6251 rm -f conftest.er1
6252 cat conftest.err >&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); } >/dev/null && {
6255 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6256 test ! -s conftest.err
6257 }; then
6258 :
6259 else
6260 echo "$as_me: failed program was:" >&5
6261 sed 's/^/| /' conftest.$ac_ext >&5
6262
6263 # Broken: fails on valid input.
6264 continue
6265 fi
6266
6267 rm -f conftest.err conftest.$ac_ext
6268
6269 # OK, works on sane cases. Now check whether nonexistent headers
6270 # can be detected and how.
6271 cat >conftest.$ac_ext <<_ACEOF
6272 /* confdefs.h. */
6273 _ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <ac_nonexistent.h>
6278 _ACEOF
6279 if { (ac_try="$ac_cpp conftest.$ac_ext"
6280 case "(($ac_try" in
6281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6282 *) ac_try_echo=$ac_try;;
6283 esac
6284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6286 ac_status=$?
6287 grep -v '^ *+' conftest.er1 >conftest.err
6288 rm -f conftest.er1
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } >/dev/null && {
6292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6293 test ! -s conftest.err
6294 }; then
6295 # Broken: success on invalid input.
6296 continue
6297 else
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6300
6301 # Passes both tests.
6302 ac_preproc_ok=:
6303 break
6304 fi
6305
6306 rm -f conftest.err conftest.$ac_ext
6307
6308 done
6309 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6310 rm -f conftest.err conftest.$ac_ext
6311 if $ac_preproc_ok; then
6312 break
6313 fi
6314
6315 done
6316 ac_cv_prog_CPP=$CPP
6317
6318 fi
6319 CPP=$ac_cv_prog_CPP
6320 else
6321 ac_cv_prog_CPP=$CPP
6322 fi
6323 { echo "$as_me:$LINENO: result: $CPP" >&5
6324 echo "${ECHO_T}$CPP" >&6; }
6325 ac_preproc_ok=false
6326 for ac_c_preproc_warn_flag in '' yes
6327 do
6328 # Use a header file that comes with gcc, so configuring glibc
6329 # with a fresh cross-compiler works.
6330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6331 # <limits.h> exists even on freestanding compilers.
6332 # On the NeXT, cc -E runs the code through the compiler's parser,
6333 # not just through cpp. "Syntax error" is here to catch this case.
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #ifdef __STDC__
6341 # include <limits.h>
6342 #else
6343 # include <assert.h>
6344 #endif
6345 Syntax error
6346 _ACEOF
6347 if { (ac_try="$ac_cpp conftest.$ac_ext"
6348 case "(($ac_try" in
6349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6350 *) ac_try_echo=$ac_try;;
6351 esac
6352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } >/dev/null && {
6360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6361 test ! -s conftest.err
6362 }; then
6363 :
6364 else
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.$ac_ext >&5
6367
6368 # Broken: fails on valid input.
6369 continue
6370 fi
6371
6372 rm -f conftest.err conftest.$ac_ext
6373
6374 # OK, works on sane cases. Now check whether nonexistent headers
6375 # can be detected and how.
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <ac_nonexistent.h>
6383 _ACEOF
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6385 case "(($ac_try" in
6386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6387 *) ac_try_echo=$ac_try;;
6388 esac
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6391 ac_status=$?
6392 grep -v '^ *+' conftest.er1 >conftest.err
6393 rm -f conftest.er1
6394 cat conftest.err >&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev/null && {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6399 }; then
6400 # Broken: success on invalid input.
6401 continue
6402 else
6403 echo "$as_me: failed program was:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6405
6406 # Passes both tests.
6407 ac_preproc_ok=:
6408 break
6409 fi
6410
6411 rm -f conftest.err conftest.$ac_ext
6412
6413 done
6414 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6415 rm -f conftest.err conftest.$ac_ext
6416 if $ac_preproc_ok; then
6417 :
6418 else
6419 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6420 See \`config.log' for more details." >&5
6421 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6422 See \`config.log' for more details." >&2;}
6423 { (exit 1); exit 1; }; }
6424 fi
6425
6426 ac_ext=c
6427 ac_cpp='$CPP $CPPFLAGS'
6428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6431
6432
6433 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6434 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6435 if test "${ac_cv_header_stdc+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6437 else
6438 cat >conftest.$ac_ext <<_ACEOF
6439 /* confdefs.h. */
6440 _ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <stdlib.h>
6445 #include <stdarg.h>
6446 #include <string.h>
6447 #include <float.h>
6448
6449 int
6450 main ()
6451 {
6452
6453 ;
6454 return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (ac_try="$ac_compile"
6459 case "(($ac_try" in
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest.$ac_objext; then
6474 ac_cv_header_stdc=yes
6475 else
6476 echo "$as_me: failed program was:" >&5
6477 sed 's/^/| /' conftest.$ac_ext >&5
6478
6479 ac_cv_header_stdc=no
6480 fi
6481
6482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6483
6484 if test $ac_cv_header_stdc = yes; then
6485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6486 cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h. */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6492 #include <string.h>
6493
6494 _ACEOF
6495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6496 $EGREP "memchr" >/dev/null 2>&1; then
6497 :
6498 else
6499 ac_cv_header_stdc=no
6500 fi
6501 rm -f conftest*
6502
6503 fi
6504
6505 if test $ac_cv_header_stdc = yes; then
6506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6507 cat >conftest.$ac_ext <<_ACEOF
6508 /* confdefs.h. */
6509 _ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 #include <stdlib.h>
6514
6515 _ACEOF
6516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6517 $EGREP "free" >/dev/null 2>&1; then
6518 :
6519 else
6520 ac_cv_header_stdc=no
6521 fi
6522 rm -f conftest*
6523
6524 fi
6525
6526 if test $ac_cv_header_stdc = yes; then
6527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6528 if test "$cross_compiling" = yes; then
6529 :
6530 else
6531 cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h. */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6537 #include <ctype.h>
6538 #include <stdlib.h>
6539 #if ((' ' & 0x0FF) == 0x020)
6540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6542 #else
6543 # define ISLOWER(c) \
6544 (('a' <= (c) && (c) <= 'i') \
6545 || ('j' <= (c) && (c) <= 'r') \
6546 || ('s' <= (c) && (c) <= 'z'))
6547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6548 #endif
6549
6550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6551 int
6552 main ()
6553 {
6554 int i;
6555 for (i = 0; i < 256; i++)
6556 if (XOR (islower (i), ISLOWER (i))
6557 || toupper (i) != TOUPPER (i))
6558 return 2;
6559 return 0;
6560 }
6561 _ACEOF
6562 rm -f conftest$ac_exeext
6563 if { (ac_try="$ac_link"
6564 case "(($ac_try" in
6565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6566 *) ac_try_echo=$ac_try;;
6567 esac
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_link") 2>&5
6570 ac_status=$?
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6573 { (case "(($ac_try" in
6574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6575 *) ac_try_echo=$ac_try;;
6576 esac
6577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6578 (eval "$ac_try") 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }; }; then
6582 :
6583 else
6584 echo "$as_me: program exited with status $ac_status" >&5
6585 echo "$as_me: failed program was:" >&5
6586 sed 's/^/| /' conftest.$ac_ext >&5
6587
6588 ( exit $ac_status )
6589 ac_cv_header_stdc=no
6590 fi
6591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6592 fi
6593
6594
6595 fi
6596 fi
6597 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6598 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6599 if test $ac_cv_header_stdc = yes; then
6600
6601 cat >>confdefs.h <<\_ACEOF
6602 #define STDC_HEADERS 1
6603 _ACEOF
6604
6605 fi
6606
6607 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6618 inttypes.h stdint.h unistd.h
6619 do
6620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6624 echo $ECHO_N "(cached) $ECHO_C" >&6
6625 else
6626 cat >conftest.$ac_ext <<_ACEOF
6627 /* confdefs.h. */
6628 _ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6632 $ac_includes_default
6633
6634 #include <$ac_header>
6635 _ACEOF
6636 rm -f conftest.$ac_objext
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6644 ac_status=$?
6645 grep -v '^ *+' conftest.er1 >conftest.err
6646 rm -f conftest.er1
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 eval "$as_ac_Header=yes"
6654 else
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6657
6658 eval "$as_ac_Header=no"
6659 fi
6660
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 fi
6663 ac_res=`eval echo '${'$as_ac_Header'}'`
6664 { echo "$as_me:$LINENO: result: $ac_res" >&5
6665 echo "${ECHO_T}$ac_res" >&6; }
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 _ACEOF
6670
6671 fi
6672
6673 done
6674
6675
6676
6677 for ac_header in dlfcn.h
6678 do
6679 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6683 echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685 cat >conftest.$ac_ext <<_ACEOF
6686 /* confdefs.h. */
6687 _ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6691 $ac_includes_default
6692
6693 #include <$ac_header>
6694 _ACEOF
6695 rm -f conftest.$ac_objext
6696 if { (ac_try="$ac_compile"
6697 case "(($ac_try" in
6698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6699 *) ac_try_echo=$ac_try;;
6700 esac
6701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6702 (eval "$ac_compile") 2>conftest.er1
6703 ac_status=$?
6704 grep -v '^ *+' conftest.er1 >conftest.err
6705 rm -f conftest.er1
6706 cat conftest.err >&5
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && {
6709 test -z "$ac_c_werror_flag" ||
6710 test ! -s conftest.err
6711 } && test -s conftest.$ac_objext; then
6712 eval "$as_ac_Header=yes"
6713 else
6714 echo "$as_me: failed program was:" >&5
6715 sed 's/^/| /' conftest.$ac_ext >&5
6716
6717 eval "$as_ac_Header=no"
6718 fi
6719
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 ac_res=`eval echo '${'$as_ac_Header'}'`
6723 { echo "$as_me:$LINENO: result: $ac_res" >&5
6724 echo "${ECHO_T}$ac_res" >&6; }
6725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6726 cat >>confdefs.h <<_ACEOF
6727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 _ACEOF
6729
6730 fi
6731
6732 done
6733
6734
6735
6736 # Set options
6737
6738
6739
6740 enable_dlopen=no
6741
6742
6743 enable_win32_dll=no
6744
6745
6746 # Check whether --enable-shared was given.
6747 if test "${enable_shared+set}" = set; then
6748 enableval=$enable_shared; p=${PACKAGE-default}
6749 case $enableval in
6750 yes) enable_shared=yes ;;
6751 no) enable_shared=no ;;
6752 *)
6753 enable_shared=no
6754 # Look at the argument we got. We use all the common list separators.
6755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6756 for pkg in $enableval; do
6757 IFS="$lt_save_ifs"
6758 if test "X$pkg" = "X$p"; then
6759 enable_shared=yes
6760 fi
6761 done
6762 IFS="$lt_save_ifs"
6763 ;;
6764 esac
6765 else
6766 enable_shared=yes
6767 fi
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777 # Check whether --enable-static was given.
6778 if test "${enable_static+set}" = set; then
6779 enableval=$enable_static; p=${PACKAGE-default}
6780 case $enableval in
6781 yes) enable_static=yes ;;
6782 no) enable_static=no ;;
6783 *)
6784 enable_static=no
6785 # Look at the argument we got. We use all the common list separators.
6786 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6787 for pkg in $enableval; do
6788 IFS="$lt_save_ifs"
6789 if test "X$pkg" = "X$p"; then
6790 enable_static=yes
6791 fi
6792 done
6793 IFS="$lt_save_ifs"
6794 ;;
6795 esac
6796 else
6797 enable_static=yes
6798 fi
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809 # Check whether --with-pic was given.
6810 if test "${with_pic+set}" = set; then
6811 withval=$with_pic; pic_mode="$withval"
6812 else
6813 pic_mode=default
6814 fi
6815
6816
6817 test -z "$pic_mode" && pic_mode=default
6818
6819
6820
6821
6822
6823
6824
6825 # Check whether --enable-fast-install was given.
6826 if test "${enable_fast_install+set}" = set; then
6827 enableval=$enable_fast_install; p=${PACKAGE-default}
6828 case $enableval in
6829 yes) enable_fast_install=yes ;;
6830 no) enable_fast_install=no ;;
6831 *)
6832 enable_fast_install=no
6833 # Look at the argument we got. We use all the common list separators.
6834 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6835 for pkg in $enableval; do
6836 IFS="$lt_save_ifs"
6837 if test "X$pkg" = "X$p"; then
6838 enable_fast_install=yes
6839 fi
6840 done
6841 IFS="$lt_save_ifs"
6842 ;;
6843 esac
6844 else
6845 enable_fast_install=yes
6846 fi
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 # This can be used to rebuild libtool when needed
6859 LIBTOOL_DEPS="$ltmain"
6860
6861 # Always use our own libtool.
6862 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888 test -z "$LN_S" && LN_S="ln -s"
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903 if test -n "${ZSH_VERSION+set}" ; then
6904 setopt NO_GLOB_SUBST
6905 fi
6906
64336907 { echo "$as_me:$LINENO: checking for objdir" >&5
64346908 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
64356909 if test "${lt_cv_objdir+set}" = set; then
64486922 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
64496923 echo "${ECHO_T}$lt_cv_objdir" >&6; }
64506924 objdir=$lt_cv_objdir
6925
6926
6927
6928
6929
6930 cat >>confdefs.h <<_ACEOF
6931 #define LT_OBJDIR "$lt_cv_objdir/"
6932 _ACEOF
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
64516945
64526946
64536947
64676961
64686962 # Sed substitution that helps us do robust quoting. It backslashifies
64696963 # metacharacters that are still active within double-quoted strings.
6470 Xsed='sed -e 1s/^X//'
6471 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6964 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
64726965
64736966 # Same as above, but do not quote variable references.
6474 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6967 double_quote_subst='s/\(["`\\]\)/\\\1/g'
64756968
64766969 # Sed substitution to delay expansion of an escaped shell variable in a
64776970 # double_quote_subst'ed string.
64786971 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
64796972
6973 # Sed substitution to delay expansion of an escaped single quote.
6974 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6975
64806976 # Sed substitution to avoid accidental globbing in evaled expressions
64816977 no_glob_subst='s/\*/\\\*/g'
64826978
6483 # Constants:
6484 rm="rm -f"
6485
64866979 # Global variables:
6487 default_ofile=libtool
6980 ofile=libtool
64886981 can_build_shared=yes
64896982
64906983 # All known linkers require a `.a' archive for static linking (except MSVC,
64916984 # which needs '.lib').
64926985 libext=a
6493 ltmain="$ac_aux_dir/ltmain.sh"
6494 ofile="$default_ofile"
6986
64956987 with_gnu_ld="$lt_cv_prog_gnu_ld"
6496
6497 if test -n "$ac_tool_prefix"; then
6498 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6499 set dummy ${ac_tool_prefix}ar; ac_word=$2
6500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6502 if test "${ac_cv_prog_AR+set}" = set; then
6503 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 else
6505 if test -n "$AR"; then
6506 ac_cv_prog_AR="$AR" # Let the user override the test.
6507 else
6508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 for as_dir in $PATH
6510 do
6511 IFS=$as_save_IFS
6512 test -z "$as_dir" && as_dir=.
6513 for ac_exec_ext in '' $ac_executable_extensions; do
6514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515 ac_cv_prog_AR="${ac_tool_prefix}ar"
6516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 break 2
6518 fi
6519 done
6520 done
6521 IFS=$as_save_IFS
6522
6523 fi
6524 fi
6525 AR=$ac_cv_prog_AR
6526 if test -n "$AR"; then
6527 { echo "$as_me:$LINENO: result: $AR" >&5
6528 echo "${ECHO_T}$AR" >&6; }
6529 else
6530 { echo "$as_me:$LINENO: result: no" >&5
6531 echo "${ECHO_T}no" >&6; }
6532 fi
6533
6534
6535 fi
6536 if test -z "$ac_cv_prog_AR"; then
6537 ac_ct_AR=$AR
6538 # Extract the first word of "ar", so it can be a program name with args.
6539 set dummy ar; ac_word=$2
6540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6542 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 else
6545 if test -n "$ac_ct_AR"; then
6546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6547 else
6548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 for as_dir in $PATH
6550 do
6551 IFS=$as_save_IFS
6552 test -z "$as_dir" && as_dir=.
6553 for ac_exec_ext in '' $ac_executable_extensions; do
6554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555 ac_cv_prog_ac_ct_AR="ar"
6556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 break 2
6558 fi
6559 done
6560 done
6561 IFS=$as_save_IFS
6562
6563 fi
6564 fi
6565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6566 if test -n "$ac_ct_AR"; then
6567 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6568 echo "${ECHO_T}$ac_ct_AR" >&6; }
6569 else
6570 { echo "$as_me:$LINENO: result: no" >&5
6571 echo "${ECHO_T}no" >&6; }
6572 fi
6573
6574 if test "x$ac_ct_AR" = x; then
6575 AR="false"
6576 else
6577 case $cross_compiling:$ac_tool_warned in
6578 yes:)
6579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6580 whose name does not start with the host triplet. If you think this
6581 configuration is useful to you, please write to autoconf@gnu.org." >&5
6582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6583 whose name does not start with the host triplet. If you think this
6584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6585 ac_tool_warned=yes ;;
6586 esac
6587 AR=$ac_ct_AR
6588 fi
6589 else
6590 AR="$ac_cv_prog_AR"
6591 fi
6592
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6598 if test "${ac_cv_prog_RANLIB+set}" = set; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 else
6601 if test -n "$RANLIB"; then
6602 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6606 do
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6611 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6614 fi
6615 done
6616 done
6617 IFS=$as_save_IFS
6618
6619 fi
6620 fi
6621 RANLIB=$ac_cv_prog_RANLIB
6622 if test -n "$RANLIB"; then
6623 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6624 echo "${ECHO_T}$RANLIB" >&6; }
6625 else
6626 { echo "$as_me:$LINENO: result: no" >&5
6627 echo "${ECHO_T}no" >&6; }
6628 fi
6629
6630
6631 fi
6632 if test -z "$ac_cv_prog_RANLIB"; then
6633 ac_ct_RANLIB=$RANLIB
6634 # Extract the first word of "ranlib", so it can be a program name with args.
6635 set dummy ranlib; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 else
6641 if test -n "$ac_ct_RANLIB"; then
6642 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6646 do
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6651 ac_cv_prog_ac_ct_RANLIB="ranlib"
6652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6654 fi
6655 done
6656 done
6657 IFS=$as_save_IFS
6658
6659 fi
6660 fi
6661 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6662 if test -n "$ac_ct_RANLIB"; then
6663 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6664 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6665 else
6666 { echo "$as_me:$LINENO: result: no" >&5
6667 echo "${ECHO_T}no" >&6; }
6668 fi
6669
6670 if test "x$ac_ct_RANLIB" = x; then
6671 RANLIB=":"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6676 whose name does not start with the host triplet. If you think this
6677 configuration is useful to you, please write to autoconf@gnu.org." >&5
6678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6679 whose name does not start with the host triplet. If you think this
6680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6681 ac_tool_warned=yes ;;
6682 esac
6683 RANLIB=$ac_ct_RANLIB
6684 fi
6685 else
6686 RANLIB="$ac_cv_prog_RANLIB"
6687 fi
6688
6689 if test -n "$ac_tool_prefix"; then
6690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6691 set dummy ${ac_tool_prefix}strip; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_prog_STRIP+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 else
6697 if test -n "$STRIP"; then
6698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6699 else
6700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 for as_dir in $PATH
6702 do
6703 IFS=$as_save_IFS
6704 test -z "$as_dir" && as_dir=.
6705 for ac_exec_ext in '' $ac_executable_extensions; do
6706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6709 break 2
6710 fi
6711 done
6712 done
6713 IFS=$as_save_IFS
6714
6715 fi
6716 fi
6717 STRIP=$ac_cv_prog_STRIP
6718 if test -n "$STRIP"; then
6719 { echo "$as_me:$LINENO: result: $STRIP" >&5
6720 echo "${ECHO_T}$STRIP" >&6; }
6721 else
6722 { echo "$as_me:$LINENO: result: no" >&5
6723 echo "${ECHO_T}no" >&6; }
6724 fi
6725
6726
6727 fi
6728 if test -z "$ac_cv_prog_STRIP"; then
6729 ac_ct_STRIP=$STRIP
6730 # Extract the first word of "strip", so it can be a program name with args.
6731 set dummy strip; ac_word=$2
6732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6734 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 else
6737 if test -n "$ac_ct_STRIP"; then
6738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6739 else
6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 for as_dir in $PATH
6742 do
6743 IFS=$as_save_IFS
6744 test -z "$as_dir" && as_dir=.
6745 for ac_exec_ext in '' $ac_executable_extensions; do
6746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6747 ac_cv_prog_ac_ct_STRIP="strip"
6748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6749 break 2
6750 fi
6751 done
6752 done
6753 IFS=$as_save_IFS
6754
6755 fi
6756 fi
6757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6758 if test -n "$ac_ct_STRIP"; then
6759 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6760 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6761 else
6762 { echo "$as_me:$LINENO: result: no" >&5
6763 echo "${ECHO_T}no" >&6; }
6764 fi
6765
6766 if test "x$ac_ct_STRIP" = x; then
6767 STRIP=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6772 whose name does not start with the host triplet. If you think this
6773 configuration is useful to you, please write to autoconf@gnu.org." >&5
6774 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6775 whose name does not start with the host triplet. If you think this
6776 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6777 ac_tool_warned=yes ;;
6778 esac
6779 STRIP=$ac_ct_STRIP
6780 fi
6781 else
6782 STRIP="$ac_cv_prog_STRIP"
6783 fi
6784
67856988
67866989 old_CC="$CC"
67876990 old_CFLAGS="$CFLAGS"
67886991
67896992 # Set sane defaults for various variables
6790 test -z "$AR" && AR=ar
6791 test -z "$AR_FLAGS" && AR_FLAGS=cru
6792 test -z "$AS" && AS=as
67936993 test -z "$CC" && CC=cc
67946994 test -z "$LTCC" && LTCC=$CC
67956995 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6796 test -z "$DLLTOOL" && DLLTOOL=dlltool
67976996 test -z "$LD" && LD=ld
6798 test -z "$LN_S" && LN_S="ln -s"
6799 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6800 test -z "$NM" && NM=nm
6801 test -z "$SED" && SED=sed
6802 test -z "$OBJDUMP" && OBJDUMP=objdump
6803 test -z "$RANLIB" && RANLIB=:
6804 test -z "$STRIP" && STRIP=:
68056997 test -z "$ac_objext" && ac_objext=o
6806
6807 # Determine commands to create old-style static archives.
6808 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6809 old_postinstall_cmds='chmod 644 $oldlib'
6810 old_postuninstall_cmds=
6811
6812 if test -n "$RANLIB"; then
6813 case $host_os in
6814 openbsd*)
6815 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6816 ;;
6817 *)
6818 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6819 ;;
6820 esac
6821 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6822 fi
68236998
68246999 for cc_temp in $compiler""; do
68257000 case $cc_temp in
68297004 *) break;;
68307005 esac
68317006 done
6832 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7007 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
68337008
68347009
68357010 # Only perform the check for file, if the check method requires it
7011 test -z "$MAGIC_CMD" && MAGIC_CMD=file
68367012 case $deplibs_check_method in
68377013 file_magic*)
68387014 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
68637039 $EGREP "$file_magic_regex" > /dev/null; then
68647040 :
68657041 else
6866 cat <<EOF 1>&2
7042 cat <<_LT_EOF 1>&2
68677043
68687044 *** Warning: the command libtool uses to detect shared libraries,
68697045 *** $file_magic_cmd, produces output that libtool cannot recognize.
68747050 *** may want to report the problem to your system manager and/or to
68757051 *** bug-libtool@gnu.org
68767052
6877 EOF
7053 _LT_EOF
68787054 fi ;;
68797055 esac
68807056 fi
68957071 { echo "$as_me:$LINENO: result: no" >&5
68967072 echo "${ECHO_T}no" >&6; }
68977073 fi
7074
7075
7076
7077
68987078
68997079 if test -z "$lt_cv_path_MAGIC_CMD"; then
69007080 if test -n "$ac_tool_prefix"; then
69257105 $EGREP "$file_magic_regex" > /dev/null; then
69267106 :
69277107 else
6928 cat <<EOF 1>&2
7108 cat <<_LT_EOF 1>&2
69297109
69307110 *** Warning: the command libtool uses to detect shared libraries,
69317111 *** $file_magic_cmd, produces output that libtool cannot recognize.
69367116 *** may want to report the problem to your system manager and/or to
69377117 *** bug-libtool@gnu.org
69387118
6939 EOF
7119 _LT_EOF
69407120 fi ;;
69417121 esac
69427122 fi
69587138 echo "${ECHO_T}no" >&6; }
69597139 fi
69607140
7141
69617142 else
69627143 MAGIC_CMD=:
69637144 fi
69677148 ;;
69687149 esac
69697150
6970
6971 case $host_os in
6972 rhapsody* | darwin*)
6973 if test -n "$ac_tool_prefix"; then
6974 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981 if test -n "$DSYMUTIL"; then
6982 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6994 fi
6995 done
6996 done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7002 if test -n "$DSYMUTIL"; then
7003 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7004 echo "${ECHO_T}$DSYMUTIL" >&6; }
7005 else
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_DSYMUTIL"; then
7013 ac_ct_DSYMUTIL=$DSYMUTIL
7014 # Extract the first word of "dsymutil", so it can be a program name with args.
7015 set dummy dsymutil; ac_word=$2
7016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7018 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7019 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021 if test -n "$ac_ct_DSYMUTIL"; then
7022 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027 IFS=$as_save_IFS
7028 test -z "$as_dir" && as_dir=.
7029 for ac_exec_ext in '' $ac_executable_extensions; do
7030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7031 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7033 break 2
7034 fi
7035 done
7036 done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7042 if test -n "$ac_ct_DSYMUTIL"; then
7043 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7044 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7045 else
7046 { echo "$as_me:$LINENO: result: no" >&5
7047 echo "${ECHO_T}no" >&6; }
7048 fi
7049
7050 if test "x$ac_ct_DSYMUTIL" = x; then
7051 DSYMUTIL=":"
7052 else
7053 case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7056 whose name does not start with the host triplet. If you think this
7057 configuration is useful to you, please write to autoconf@gnu.org." >&5
7058 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7059 whose name does not start with the host triplet. If you think this
7060 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7061 ac_tool_warned=yes ;;
7062 esac
7063 DSYMUTIL=$ac_ct_DSYMUTIL
7064 fi
7065 else
7066 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7067 fi
7068
7069 if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7071 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7074 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 if test -n "$NMEDIT"; then
7078 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7079 else
7080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081 for as_dir in $PATH
7082 do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091 done
7092 done
7093 IFS=$as_save_IFS
7094
7095 fi
7096 fi
7097 NMEDIT=$ac_cv_prog_NMEDIT
7098 if test -n "$NMEDIT"; then
7099 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7100 echo "${ECHO_T}$NMEDIT" >&6; }
7101 else
7102 { echo "$as_me:$LINENO: result: no" >&5
7103 echo "${ECHO_T}no" >&6; }
7104 fi
7105
7106
7107 fi
7108 if test -z "$ac_cv_prog_NMEDIT"; then
7109 ac_ct_NMEDIT=$NMEDIT
7110 # Extract the first word of "nmedit", so it can be a program name with args.
7111 set dummy nmedit; ac_word=$2
7112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7114 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 else
7117 if test -n "$ac_ct_NMEDIT"; then
7118 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131 done
7132 done
7133 IFS=$as_save_IFS
7134
7135 fi
7136 fi
7137 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7138 if test -n "$ac_ct_NMEDIT"; then
7139 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7140 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7141 else
7142 { echo "$as_me:$LINENO: result: no" >&5
7143 echo "${ECHO_T}no" >&6; }
7144 fi
7145
7146 if test "x$ac_ct_NMEDIT" = x; then
7147 NMEDIT=":"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150 yes:)
7151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7152 whose name does not start with the host triplet. If you think this
7153 configuration is useful to you, please write to autoconf@gnu.org." >&5
7154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7155 whose name does not start with the host triplet. If you think this
7156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7157 ac_tool_warned=yes ;;
7158 esac
7159 NMEDIT=$ac_ct_NMEDIT
7160 fi
7161 else
7162 NMEDIT="$ac_cv_prog_NMEDIT"
7163 fi
7164
7165
7166 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7167 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7168 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 lt_cv_apple_cc_single_mod=no
7172 if test -z "${LT_MULTI_MODULE}"; then
7173 # By default we will add the -single_module flag. You can override
7174 # by either setting the environment variable LT_MULTI_MODULE
7175 # non-empty at configure time, or by adding -multi_module to the
7176 # link flags.
7177 echo "int foo(void){return 1;}" > conftest.c
7178 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7179 -dynamiclib ${wl}-single_module conftest.c
7180 if test -f libconftest.dylib; then
7181 lt_cv_apple_cc_single_mod=yes
7182 rm -rf libconftest.dylib*
7183 fi
7184 rm conftest.c
7185 fi
7186 fi
7187 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7188 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7189 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7190 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7191 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193 else
7194 lt_cv_ld_exported_symbols_list=no
7195 save_LDFLAGS=$LDFLAGS
7196 echo "_main" > conftest.sym
7197 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7198 cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h. */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7204
7205 int
7206 main ()
7207 {
7208
7209 ;
7210 return 0;
7211 }
7212 _ACEOF
7213 rm -f conftest.$ac_objext conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7215 case "(($ac_try" in
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7218 esac
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>conftest.er1
7221 ac_status=$?
7222 grep -v '^ *+' conftest.er1 >conftest.err
7223 rm -f conftest.er1
7224 cat conftest.err >&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest$ac_exeext &&
7230 $as_test_x conftest$ac_exeext; then
7231 lt_cv_ld_exported_symbols_list=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7235
7236 lt_cv_ld_exported_symbols_list=no
7237 fi
7238
7239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7240 conftest$ac_exeext conftest.$ac_ext
7241 LDFLAGS="$save_LDFLAGS"
7242
7243 fi
7244 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7245 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7246 case $host_os in
7247 rhapsody* | darwin1.[0123])
7248 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7249 darwin1.*)
7250 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7251 darwin*)
7252 # if running on 10.5 or later, the deployment target defaults
7253 # to the OS version, if on x86, and 10.4, the deployment
7254 # target defaults to 10.4. Don't you love it?
7255 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7256 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7257 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7258 10.[012]*)
7259 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7260 10.*)
7261 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7262 esac
7263 ;;
7264 esac
7265 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7266 _lt_dar_single_mod='$single_module'
7267 fi
7268 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7269 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7270 else
7271 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7272 fi
7273 if test "$DSYMUTIL" != ":"; then
7274 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7275 else
7276 _lt_dsymutil=
7277 fi
7278 ;;
7279 esac
7280
7281
7282 enable_dlopen=no
7283 enable_win32_dll=no
7284
7285 # Check whether --enable-libtool-lock was given.
7286 if test "${enable_libtool_lock+set}" = set; then
7287 enableval=$enable_libtool_lock;
7288 fi
7289
7290 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7291
7292
7293 # Check whether --with-pic was given.
7294 if test "${with_pic+set}" = set; then
7295 withval=$with_pic; pic_mode="$withval"
7296 else
7297 pic_mode=default
7298 fi
7299
7300 test -z "$pic_mode" && pic_mode=default
7301
73027151 # Use C for the default configuration in the libtool script
7303 tagname=
7152
73047153 lt_save_CC="$CC"
73057154 ac_ext=c
73067155 ac_cpp='$CPP $CPPFLAGS'
73237172 lt_simple_link_test_code='int main(){return(0);}'
73247173
73257174
7175
7176
7177
7178
7179
73267180 # If no C compiler was specified, use CC.
73277181 LTCC=${LTCC-"$CC"}
73287182
73327186 # Allow CC to be a program name with arguments.
73337187 compiler=$CC
73347188
7189 # Save the default compiler, since it gets overwritten when the other
7190 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7191 compiler_DEFAULT=$CC
73357192
73367193 # save warnings/boilerplate of simple test code
73377194 ac_outfile=conftest.$ac_objext
73387195 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
73397196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73407197 _lt_compiler_boilerplate=`cat conftest.err`
7341 $rm conftest*
7198 $RM conftest*
73427199
73437200 ac_outfile=conftest.$ac_objext
73447201 echo "$lt_simple_link_test_code" >conftest.$ac_ext
73457202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
73467203 _lt_linker_boilerplate=`cat conftest.err`
7347 $rm -r conftest*
7348
7349
7204 $RM -r conftest*
7205
7206
7207 if test -n "$compiler"; then
73507208
73517209 lt_prog_compiler_no_builtin_flag=
73527210
73537211 if test "$GCC" = yes; then
73547212 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
73557213
7356
7357 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7214 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
73587215 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
73597216 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
73607217 echo $ECHO_N "(cached) $ECHO_C" >&6
73617218 else
73627219 lt_cv_prog_compiler_rtti_exceptions=no
7363 ac_outfile=conftest.$ac_objext
7220 ac_outfile=conftest.$ac_objext
73647221 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
73657222 lt_compiler_flag="-fno-rtti -fno-exceptions"
73667223 # Insert the option either (1) after the last *FLAGS variable, or
73727229 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
73737230 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
73747231 -e 's:$: $lt_compiler_flag:'`
7375 (eval echo "\"\$as_me:7376: $lt_compile\"" >&5)
7232 (eval echo "\"\$as_me:7233: $lt_compile\"" >&5)
73767233 (eval "$lt_compile" 2>conftest.err)
73777234 ac_status=$?
73787235 cat conftest.err >&5
7379 echo "$as_me:7380: \$? = $ac_status" >&5
7236 echo "$as_me:7237: \$? = $ac_status" >&5
73807237 if (exit $ac_status) && test -s "$ac_outfile"; then
73817238 # The compiler can only warn and ignore the option if not recognized
73827239 # So say no if there are warnings other than the usual output.
7383 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7240 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
73847241 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
73857242 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
73867243 lt_cv_prog_compiler_rtti_exceptions=yes
73877244 fi
73887245 fi
7389 $rm conftest*
7246 $RM conftest*
73907247
73917248 fi
73927249 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
74007257
74017258 fi
74027259
7403 lt_prog_compiler_wl=
7260
7261
7262
7263
7264
7265 lt_prog_compiler_wl=
74047266 lt_prog_compiler_pic=
74057267 lt_prog_compiler_static=
74067268
74217283 ;;
74227284
74237285 amigaos*)
7424 # FIXME: we need at least 68020 code to build shared libraries, but
7425 # adding the `-m68020' flag to GCC prevents building anything better,
7426 # like `-m68040'.
7427 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7286 case $host_cpu in
7287 powerpc)
7288 # see comment about AmigaOS4 .so support
7289 lt_prog_compiler_pic='-fPIC'
7290 ;;
7291 m68k)
7292 # FIXME: we need at least 68020 code to build shared libraries, but
7293 # adding the `-m68020' flag to GCC prevents building anything better,
7294 # like `-m68040'.
7295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7296 ;;
7297 esac
74287298 ;;
74297299
74307300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
74437313 # PIC is the default on this platform
74447314 # Common symbols not allowed in MH_DYLIB files
74457315 lt_prog_compiler_pic='-fno-common'
7446 ;;
7447
7448 interix[3-9]*)
7449 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7450 # Instead, we relocate shared libraries at runtime.
7451 ;;
7452
7453 msdosdjgpp*)
7454 # Just because we use GCC doesn't mean we suddenly get shared libraries
7455 # on systems that don't support them.
7456 lt_prog_compiler_can_build_shared=no
7457 enable_shared=no
7458 ;;
7459
7460 sysv4*MP*)
7461 if test -d /usr/nec; then
7462 lt_prog_compiler_pic=-Kconform_pic
7463 fi
74647316 ;;
74657317
74667318 hpux*)
74747326 lt_prog_compiler_pic='-fPIC'
74757327 ;;
74767328 esac
7329 ;;
7330
7331 interix[3-9]*)
7332 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7333 # Instead, we relocate shared libraries at runtime.
7334 ;;
7335
7336 msdosdjgpp*)
7337 # Just because we use GCC doesn't mean we suddenly get shared libraries
7338 # on systems that don't support them.
7339 lt_prog_compiler_can_build_shared=no
7340 enable_shared=no
7341 ;;
7342
7343 *nto* | *qnx*)
7344 # QNX uses GNU C++, but need to define -shared option too, otherwise
7345 # it will coredump.
7346 lt_prog_compiler_pic='-fPIC -shared'
7347 ;;
7348
7349 sysv4*MP*)
7350 if test -d /usr/nec; then
7351 lt_prog_compiler_pic=-Kconform_pic
7352 fi
74777353 ;;
74787354
74797355 *)
74927368 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
74937369 fi
74947370 ;;
7495 darwin*)
7496 # PIC is the default on this platform
7497 # Common symbols not allowed in MH_DYLIB files
7498 case $cc_basename in
7499 xlc*)
7500 lt_prog_compiler_pic='-qnocommon'
7501 lt_prog_compiler_wl='-Wl,'
7502 ;;
7503 esac
7504 ;;
75057371
75067372 mingw* | cygwin* | pw32* | os2*)
75077373 # This hack is so that the source file can tell whether it is being
75317397 lt_prog_compiler_static='-non_shared'
75327398 ;;
75337399
7534 newsos6)
7535 lt_prog_compiler_pic='-KPIC'
7536 lt_prog_compiler_static='-Bstatic'
7537 ;;
7538
75397400 linux* | k*bsd*-gnu)
75407401 case $cc_basename in
7541 icc* | ecc*)
7402 icc* | ecc* | ifort*)
75427403 lt_prog_compiler_wl='-Wl,'
75437404 lt_prog_compiler_pic='-KPIC'
75447405 lt_prog_compiler_static='-static'
75557416 # All Alpha code is PIC.
75567417 lt_prog_compiler_static='-non_shared'
75577418 ;;
7419 xl*)
7420 # IBM XL C 8.0/Fortran 10.1 on PPC
7421 lt_prog_compiler_wl='-Wl,'
7422 lt_prog_compiler_pic='-qpic'
7423 lt_prog_compiler_static='-qstaticlink'
7424 ;;
75587425 *)
7559 case `$CC -V 2>&1 | sed 5q` in
7426 case `$CC -V 2>&1 | sed 5q` in
75607427 *Sun\ C*)
75617428 # Sun C 5.9
75627429 lt_prog_compiler_pic='-KPIC'
75747441 esac
75757442 ;;
75767443
7444 newsos6)
7445 lt_prog_compiler_pic='-KPIC'
7446 lt_prog_compiler_static='-Bstatic'
7447 ;;
7448
7449 *nto* | *qnx*)
7450 # QNX uses GNU C++, but need to define -shared option too, otherwise
7451 # it will coredump.
7452 lt_prog_compiler_pic='-fPIC -shared'
7453 ;;
7454
75777455 osf3* | osf4* | osf5*)
75787456 lt_prog_compiler_wl='-Wl,'
75797457 # All OSF/1 code is PIC.
76367514 esac
76377515 fi
76387516
7517 case $host_os in
7518 # For platforms which do not support PIC, -DPIC is meaningless:
7519 *djgpp*)
7520 lt_prog_compiler_pic=
7521 ;;
7522 *)
7523 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7524 ;;
7525 esac
76397526 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
76407527 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7528
7529
7530
7531
7532
76417533
76427534 #
76437535 # Check to make sure the PIC flag actually works.
76447536 #
76457537 if test -n "$lt_prog_compiler_pic"; then
7646
7647 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7538 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
76487539 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
76497540 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
76507541 echo $ECHO_N "(cached) $ECHO_C" >&6
76517542 else
76527543 lt_cv_prog_compiler_pic_works=no
7653 ac_outfile=conftest.$ac_objext
7544 ac_outfile=conftest.$ac_objext
76547545 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
76557546 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
76567547 # Insert the option either (1) after the last *FLAGS variable, or
76627553 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
76637554 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
76647555 -e 's:$: $lt_compiler_flag:'`
7665 (eval echo "\"\$as_me:7666: $lt_compile\"" >&5)
7556 (eval echo "\"\$as_me:7557: $lt_compile\"" >&5)
76667557 (eval "$lt_compile" 2>conftest.err)
76677558 ac_status=$?
76687559 cat conftest.err >&5
7669 echo "$as_me:7670: \$? = $ac_status" >&5
7560 echo "$as_me:7561: \$? = $ac_status" >&5
76707561 if (exit $ac_status) && test -s "$ac_outfile"; then
76717562 # The compiler can only warn and ignore the option if not recognized
76727563 # So say no if there are warnings other than the usual output.
7673 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7564 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
76747565 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
76757566 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
76767567 lt_cv_prog_compiler_pic_works=yes
76777568 fi
76787569 fi
7679 $rm conftest*
7570 $RM conftest*
76807571
76817572 fi
76827573 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
76937584 fi
76947585
76957586 fi
7696 case $host_os in
7697 # For platforms which do not support PIC, -DPIC is meaningless:
7698 *djgpp*)
7699 lt_prog_compiler_pic=
7700 ;;
7701 *)
7702 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7703 ;;
7704 esac
7587
7588
7589
7590
7591
77057592
77067593 #
77077594 # Check to make sure the static flag actually works.
77227609 if test -s conftest.err; then
77237610 # Append any errors to the config.log.
77247611 cat conftest.err 1>&5
7725 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7612 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
77267613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
77277614 if diff conftest.exp conftest.er2 >/dev/null; then
77287615 lt_cv_prog_compiler_static_works=yes
77317618 lt_cv_prog_compiler_static_works=yes
77327619 fi
77337620 fi
7734 $rm -r conftest*
7621 $RM -r conftest*
77357622 LDFLAGS="$save_LDFLAGS"
77367623
77377624 fi
77457632 fi
77467633
77477634
7748 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7635
7636
7637
7638
7639
7640 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
77497641 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
77507642 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
77517643 echo $ECHO_N "(cached) $ECHO_C" >&6
77527644 else
77537645 lt_cv_prog_compiler_c_o=no
7754 $rm -r conftest 2>/dev/null
7646 $RM -r conftest 2>/dev/null
77557647 mkdir conftest
77567648 cd conftest
77577649 mkdir out
77667658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
77677659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
77687660 -e 's:$: $lt_compiler_flag:'`
7769 (eval echo "\"\$as_me:7770: $lt_compile\"" >&5)
7661 (eval echo "\"\$as_me:7662: $lt_compile\"" >&5)
77707662 (eval "$lt_compile" 2>out/conftest.err)
77717663 ac_status=$?
77727664 cat out/conftest.err >&5
7773 echo "$as_me:7774: \$? = $ac_status" >&5
7665 echo "$as_me:7666: \$? = $ac_status" >&5
77747666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
77757667 then
77767668 # The compiler can only warn and ignore the option if not recognized
77777669 # So say no if there are warnings
7778 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7670 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
77797671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
77807672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
77817673 lt_cv_prog_compiler_c_o=yes
77827674 fi
77837675 fi
77847676 chmod u+w . 2>&5
7785 $rm conftest*
7677 $RM conftest*
77867678 # SGI C++ compiler will create directory out/ii_files/ for
77877679 # template instantiation
7788 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7789 $rm out/* && rmdir out
7680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7681 $RM out/* && rmdir out
77907682 cd ..
7791 rmdir conftest
7792 $rm conftest*
7683 $RM -r conftest
7684 $RM conftest*
77937685
77947686 fi
77957687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
77967688 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7689
7690
7691
7692
7693
7694
7695 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7696 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7697 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7698 echo $ECHO_N "(cached) $ECHO_C" >&6
7699 else
7700 lt_cv_prog_compiler_c_o=no
7701 $RM -r conftest 2>/dev/null
7702 mkdir conftest
7703 cd conftest
7704 mkdir out
7705 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7706
7707 lt_compiler_flag="-o out/conftest2.$ac_objext"
7708 # Insert the option either (1) after the last *FLAGS variable, or
7709 # (2) before a word containing "conftest.", or (3) at the end.
7710 # Note that $ac_compile itself does not contain backslashes and begins
7711 # with a dollar sign (not a hyphen), so the echo should work correctly.
7712 lt_compile=`echo "$ac_compile" | $SED \
7713 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7714 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7715 -e 's:$: $lt_compiler_flag:'`
7716 (eval echo "\"\$as_me:7717: $lt_compile\"" >&5)
7717 (eval "$lt_compile" 2>out/conftest.err)
7718 ac_status=$?
7719 cat out/conftest.err >&5
7720 echo "$as_me:7721: \$? = $ac_status" >&5
7721 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7722 then
7723 # The compiler can only warn and ignore the option if not recognized
7724 # So say no if there are warnings
7725 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7726 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7727 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7728 lt_cv_prog_compiler_c_o=yes
7729 fi
7730 fi
7731 chmod u+w . 2>&5
7732 $RM conftest*
7733 # SGI C++ compiler will create directory out/ii_files/ for
7734 # template instantiation
7735 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7736 $RM out/* && rmdir out
7737 cd ..
7738 $RM -r conftest
7739 $RM conftest*
7740
7741 fi
7742 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7743 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7744
7745
77977746
77987747
77997748 hard_links="nottested"
78027751 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
78037752 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
78047753 hard_links=yes
7805 $rm conftest*
7754 $RM conftest*
78067755 ln conftest.a conftest.b 2>/dev/null && hard_links=no
78077756 touch conftest.a
78087757 ln conftest.a conftest.b 2>&5 || hard_links=no
78187767 need_locks=no
78197768 fi
78207769
7821 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7770
7771
7772
7773
7774
7775 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
78227776 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
78237777
78247778 runpath_var=
78257779 allow_undefined_flag=
7826 enable_shared_with_static_runtimes=no
7780 always_export_symbols=no
78277781 archive_cmds=
78287782 archive_expsym_cmds=
7829 old_archive_From_new_cmds=
7830 old_archive_from_expsyms_cmds=
7783 compiler_needs_object=no
7784 enable_shared_with_static_runtimes=no
78317785 export_dynamic_flag_spec=
7832 whole_archive_flag_spec=
7833 thread_safe_flag_spec=
7786 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7787 hardcode_automatic=no
7788 hardcode_direct=no
7789 hardcode_direct_absolute=no
78347790 hardcode_libdir_flag_spec=
78357791 hardcode_libdir_flag_spec_ld=
78367792 hardcode_libdir_separator=
7837 hardcode_direct=no
78387793 hardcode_minus_L=no
78397794 hardcode_shlibpath_var=unsupported
7795 inherit_rpath=no
78407796 link_all_deplibs=unknown
7841 hardcode_automatic=no
78427797 module_cmds=
78437798 module_expsym_cmds=
7844 always_export_symbols=no
7845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7799 old_archive_from_new_cmds=
7800 old_archive_from_expsyms_cmds=
7801 thread_safe_flag_spec=
7802 whole_archive_flag_spec=
78467803 # include_expsyms should be a list of space-separated symbols to be *always*
78477804 # included in the symbol list
78487805 include_expsyms=
78587815 # preloaded symbol tables.
78597816 # Exclude shared library initialization/finalization symbols.
78607817 extract_expsyms_cmds=
7861 # Just being paranoid about ensuring that cc_basename is set.
7862 for cc_temp in $compiler""; do
7863 case $cc_temp in
7864 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7865 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7866 \-*) ;;
7867 *) break;;
7868 esac
7869 done
7870 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
78717818
78727819 case $host_os in
78737820 cygwin* | mingw* | pw32*)
78967843 # are reset later if shared libraries are not supported. Putting them
78977844 # here allows them to be overridden if necessary.
78987845 runpath_var=LD_RUN_PATH
7899 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
79007847 export_dynamic_flag_spec='${wl}--export-dynamic'
79017848 # ancient GNU ld didn't support --whole-archive et. al.
7902 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7904 else
7905 whole_archive_flag_spec=
7849 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7850 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7851 else
7852 whole_archive_flag_spec=
79067853 fi
79077854 supports_anon_versioning=no
7908 case `$LD -v 2>/dev/null` in
7855 case `$LD -v 2>&1` in
79097856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
79107857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
79117858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
79197866 # On AIX/PPC, the GNU linker is very broken
79207867 if test "$host_cpu" != ia64; then
79217868 ld_shlibs=no
7922 cat <<EOF 1>&2
7869 cat <<_LT_EOF 1>&2
79237870
79247871 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
79257872 *** to be unable to reliably create shared libraries on AIX.
79277874 *** really care for shared libraries, you may want to modify your PATH
79287875 *** so that a non-GNU linker is found, and then restart.
79297876
7930 EOF
7877 _LT_EOF
79317878 fi
79327879 ;;
79337880
79347881 amigaos*)
7935 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7936 hardcode_libdir_flag_spec='-L$libdir'
7937 hardcode_minus_L=yes
7938
7939 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7940 # that the semantics of dynamic libraries on AmigaOS, at least up
7941 # to version 4, is to share data among multiple programs linked
7942 # with the same dynamic library. Since this doesn't match the
7943 # behavior of shared libraries on other platforms, we can't use
7944 # them.
7945 ld_shlibs=no
7882 case $host_cpu in
7883 powerpc)
7884 # see comment about AmigaOS4 .so support
7885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7886 archive_expsym_cmds=''
7887 ;;
7888 m68k)
7889 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7890 hardcode_libdir_flag_spec='-L$libdir'
7891 hardcode_minus_L=yes
7892 ;;
7893 esac
79467894 ;;
79477895
79487896 beos*)
7949 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7897 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
79507898 allow_undefined_flag=unsupported
79517899 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
79527900 # support --undefined. This deserves some investigation. FIXME
79577905 ;;
79587906
79597907 cygwin* | mingw* | pw32*)
7960 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7908 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
79617909 # as there is no search path for DLLs.
79627910 hardcode_libdir_flag_spec='-L$libdir'
79637911 allow_undefined_flag=unsupported
79647912 always_export_symbols=no
79657913 enable_shared_with_static_runtimes=yes
7966 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7967
7968 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7914 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7915
7916 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
79697917 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
79707918 # If the export-symbols file already is a .def file (1st line
79717919 # is EXPORTS), use it as is; otherwise, prepend...
79967944 archive_expsym_cmds='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'
79977945 ;;
79987946
7999 gnu* | linux* | k*bsd*-gnu)
8000 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7947 gnu* | linux* | tpf* | k*bsd*-gnu)
7948 tmp_diet=no
7949 if test "$host_os" = linux-dietlibc; then
7950 case $cc_basename in
7951 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7952 esac
7953 fi
7954 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7955 && test "$tmp_diet" = no
7956 then
80017957 tmp_addflag=
7958 tmp_sharedflag='-shared'
80027959 case $cc_basename,$host_cpu in
8003 pgcc*) # Portland Group C compiler
8004 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7960 pgcc*) # Portland Group C compiler
7961 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
80057962 tmp_addflag=' $pic_flag'
80067963 ;;
80077964 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8008 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7965 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
80097966 tmp_addflag=' $pic_flag -Mnomain' ;;
8010 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7967 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
80117968 tmp_addflag=' -i_dynamic' ;;
80127969 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
80137970 tmp_addflag=' -i_dynamic -nofor_main' ;;
80147971 ifc* | ifort*) # Intel Fortran compiler
80157972 tmp_addflag=' -nofor_main' ;;
7973 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7974 tmp_sharedflag='-qmkshrobj'
7975 tmp_addflag= ;;
80167976 esac
80177977 case `$CC -V 2>&1 | sed 5q` in
80187978 *Sun\ C*) # Sun C 5.9
8019 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7979 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7980 compiler_needs_object=yes
80207981 tmp_sharedflag='-G' ;;
80217982 *Sun\ F*) # Sun Fortran 8.3
80227983 tmp_sharedflag='-G' ;;
8023 *)
8024 tmp_sharedflag='-shared' ;;
80257984 esac
80267985 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
80277986
8028 if test $supports_anon_versioning = yes; then
8029 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8030 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8031 $echo "local: *; };" >> $output_objdir/$libname.ver~
8032 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8033 fi
8034 link_all_deplibs=no
7987 if test "x$supports_anon_versioning" = xyes; then
7988 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7989 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7990 echo "local: *; };" >> $output_objdir/$libname.ver~
7991 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7992 fi
7993
7994 case $cc_basename in
7995 xlf*)
7996 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7997 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7998 hardcode_libdir_flag_spec=
7999 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8000 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8001 if test "x$supports_anon_versioning" = xyes; then
8002 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8003 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8004 echo "local: *; };" >> $output_objdir/$libname.ver~
8005 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8006 fi
8007 ;;
8008 esac
80358009 else
8036 ld_shlibs=no
8010 ld_shlibs=no
80378011 fi
80388012 ;;
80398013
80408014 netbsd* | netbsdelf*-gnu)
8041 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8015 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
80428016 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
80438017 wlarc=
80448018 else
80488022 ;;
80498023
80508024 solaris*)
8051 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8025 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
80528026 ld_shlibs=no
8053 cat <<EOF 1>&2
8027 cat <<_LT_EOF 1>&2
80548028
80558029 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
80568030 *** create shared libraries on Solaris systems. Therefore, libtool
80598033 *** your PATH or compiler configuration so that the native linker is
80608034 *** used, and then restart.
80618035
8062 EOF
8063 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8036 _LT_EOF
8037 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
80648038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
80658039 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
80668040 else
80848058 _LT_EOF
80858059 ;;
80868060 *)
8087 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8088 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8089 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8090 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8061 # For security reasons, it is highly recommended that you always
8062 # use absolute paths for naming shared libraries, and exclude the
8063 # DT_RUNPATH tag from executables and libraries. But doing so
8064 # requires that you compile everything twice, which is a pain.
8065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8068 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
80918069 else
80928070 ld_shlibs=no
80938071 fi
81038081 ;;
81048082
81058083 *)
8106 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8084 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
81078085 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
81088086 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
81098087 else
81458123 else
81468124 # If we're using GNU nm, then we don't want the "-C" option.
81478125 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8149 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8127 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
81508128 else
8151 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8129 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
81528130 fi
81538131 aix_use_runtimelinking=no
81548132
81578135 # need to do runtime linking.
81588136 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
81598137 for ld_flag in $LDFLAGS; do
8160 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8161 aix_use_runtimelinking=yes
8162 break
8163 fi
8138 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8139 aix_use_runtimelinking=yes
8140 break
8141 fi
81648142 done
81658143 ;;
81668144 esac
81778155
81788156 archive_cmds=''
81798157 hardcode_direct=yes
8158 hardcode_direct_absolute=yes
81808159 hardcode_libdir_separator=':'
81818160 link_all_deplibs=yes
8161 file_list_spec='${wl}-f,'
81828162
81838163 if test "$GCC" = yes; then
81848164 case $host_os in aix4.[012]|aix4.[012].*)
81858165 # We only want to do this on AIX 4.2 and lower, the check
81868166 # below for broken collect2 doesn't work under 4.3+
81878167 collect2name=`${CC} -print-prog-name=collect2`
8188 if test -f "$collect2name" && \
8189 strings "$collect2name" | grep resolve_lib_name >/dev/null
8168 if test -f "$collect2name" &&
8169 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
81908170 then
8191 # We have reworked collect2
8192 :
8171 # We have reworked collect2
8172 :
81938173 else
8194 # We have old collect2
8195 hardcode_direct=unsupported
8196 # It fails to find uninstalled libraries when the uninstalled
8197 # path is not listed in the libpath. Setting hardcode_minus_L
8198 # to unsupported forces relinking
8199 hardcode_minus_L=yes
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_libdir_separator=
8174 # We have old collect2
8175 hardcode_direct=unsupported
8176 # It fails to find uninstalled libraries when the uninstalled
8177 # path is not listed in the libpath. Setting hardcode_minus_L
8178 # to unsupported forces relinking
8179 hardcode_minus_L=yes
8180 hardcode_libdir_flag_spec='-L$libdir'
8181 hardcode_libdir_separator=
82028182 fi
82038183 ;;
82048184 esac
82068186 if test "$aix_use_runtimelinking" = yes; then
82078187 shared_flag="$shared_flag "'${wl}-G'
82088188 fi
8189 link_all_deplibs=no
82098190 else
82108191 # not using gcc
82118192 if test "$host_cpu" = ia64; then
8212 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8213 # chokes on -Wl,-G. The following line is correct:
8193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8194 # chokes on -Wl,-G. The following line is correct:
82148195 shared_flag='-G'
82158196 else
82168197 if test "$aix_use_runtimelinking" = yes; then
82288209 # Warning - without using the other runtime loading flags (-brtl),
82298210 # -berok will link without error, but may produce a broken library.
82308211 allow_undefined_flag='-berok'
8231 # Determine the default libpath from the value encoded in an empty executable.
8232 cat >conftest.$ac_ext <<_ACEOF
8212 # Determine the default libpath from the value encoded in an
8213 # empty executable.
8214 cat >conftest.$ac_ext <<_ACEOF
82338215 /* confdefs.h. */
82348216 _ACEOF
82358217 cat confdefs.h >>conftest.$ac_ext
82868268 conftest$ac_exeext conftest.$ac_ext
82878269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
82888270
8289 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8290 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8291 else
8271 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8272 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8273 else
82928274 if test "$host_cpu" = ia64; then
82938275 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
82948276 allow_undefined_flag="-z nodefs"
82958277 archive_expsym_cmds="\$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"
82968278 else
8297 # Determine the default libpath from the value encoded in an empty executable.
8279 # Determine the default libpath from the value encoded in an
8280 # empty executable.
82988281 cat >conftest.$ac_ext <<_ACEOF
82998282 /* confdefs.h. */
83008283 _ACEOF
83678350 ;;
83688351
83698352 amigaos*)
8370 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8371 hardcode_libdir_flag_spec='-L$libdir'
8372 hardcode_minus_L=yes
8373 # see comment about different semantics on the GNU ld section
8374 ld_shlibs=no
8353 case $host_cpu in
8354 powerpc)
8355 # see comment about AmigaOS4 .so support
8356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357 archive_expsym_cmds=''
8358 ;;
8359 m68k)
8360 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8361 hardcode_libdir_flag_spec='-L$libdir'
8362 hardcode_minus_L=yes
8363 ;;
8364 esac
83758365 ;;
83768366
83778367 bsdi[45]*)
83908380 # Tell ltmain to make .dll files, not .so files.
83918381 shrext_cmds=".dll"
83928382 # FIXME: Setting linknames here is a bad hack.
8393 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8383 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
83948384 # The linker will automatically build a .lib file if we build a DLL.
8395 old_archive_From_new_cmds='true'
8385 old_archive_from_new_cmds='true'
83968386 # FIXME: Should let the user specify the lib program.
83978387 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
83988388 fix_srcfile_path='`cygpath -w "$srcfile"`'
84008390 ;;
84018391
84028392 darwin* | rhapsody*)
8403 case $host_os in
8404 rhapsody* | darwin1.[012])
8405 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8406 ;;
8407 *) # Darwin 1.3 on
8408 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8409 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8410 else
8411 case ${MACOSX_DEPLOYMENT_TARGET} in
8412 10.[012])
8413 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8414 ;;
8415 10.*)
8416 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8417 ;;
8418 esac
8419 fi
8420 ;;
8421 esac
8422 archive_cmds_need_lc=no
8423 hardcode_direct=no
8424 hardcode_automatic=yes
8425 hardcode_shlibpath_var=unsupported
8426 whole_archive_flag_spec=''
8427 link_all_deplibs=yes
8428 if test "$GCC" = yes ; then
8429 output_verbose_link_cmd='echo'
8430 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8431 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8432 archive_expsym_cmds="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}"
8433 module_expsym_cmds="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}"
8434 else
8435 case $cc_basename in
8436 xlc*)
8437 output_verbose_link_cmd='echo'
8438 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8439 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8440 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8441 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8442 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8443 ;;
8444 *)
8445 ld_shlibs=no
8446 ;;
8447 esac
8448 fi
8393
8394
8395 archive_cmds_need_lc=no
8396 hardcode_direct=no
8397 hardcode_automatic=yes
8398 hardcode_shlibpath_var=unsupported
8399 whole_archive_flag_spec=''
8400 link_all_deplibs=yes
8401 allow_undefined_flag="$_lt_dar_allow_undefined"
8402 if test "$GCC" = "yes"; then
8403 output_verbose_link_cmd=echo
8404 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8405 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8406 archive_expsym_cmds="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}"
8407 module_expsym_cmds="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}"
8408
8409 else
8410 ld_shlibs=no
8411 fi
8412
84498413 ;;
84508414
84518415 dgux*)
84878451
84888452 hpux9*)
84898453 if test "$GCC" = yes; then
8490 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8454 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
84918455 else
8492 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8456 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
84938457 fi
84948458 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
84958459 hardcode_libdir_separator=:
85098473 fi
85108474 if test "$with_gnu_ld" = no; then
85118475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8476 hardcode_libdir_flag_spec_ld='+b $libdir'
85128477 hardcode_libdir_separator=:
8513
85148478 hardcode_direct=yes
8479 hardcode_direct_absolute=yes
85158480 export_dynamic_flag_spec='${wl}-E'
8516
85178481 # hardcode_minus_L: Not really in the search PATH,
85188482 # but as the default location of the library.
85198483 hardcode_minus_L=yes
85528516
85538517 case $host_cpu in
85548518 hppa*64*|ia64*)
8555 hardcode_libdir_flag_spec_ld='+b $libdir'
85568519 hardcode_direct=no
85578520 hardcode_shlibpath_var=no
85588521 ;;
85598522 *)
85608523 hardcode_direct=yes
8524 hardcode_direct_absolute=yes
85618525 export_dynamic_flag_spec='${wl}-E'
85628526
85638527 # hardcode_minus_L: Not really in the search PATH,
85708534
85718535 irix5* | irix6* | nonstopux*)
85728536 if test "$GCC" = yes; then
8573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8538 # Try to use the -exported_symbol ld option, if it does not
8539 # work, assume that -exports_file does not work either and
8540 # implicitly export all symbols.
8541 save_LDFLAGS="$LDFLAGS"
8542 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8543 cat >conftest.$ac_ext <<_ACEOF
8544 int foo(void) {}
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (ac_try="$ac_link"
8548 case "(($ac_try" in
8549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550 *) ac_try_echo=$ac_try;;
8551 esac
8552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553 (eval "$ac_link") 2>conftest.er1
8554 ac_status=$?
8555 grep -v '^ *+' conftest.er1 >conftest.err
8556 rm -f conftest.er1
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } && {
8560 test -z "$ac_c_werror_flag" ||
8561 test ! -s conftest.err
8562 } && test -s conftest$ac_exeext &&
8563 $as_test_x conftest$ac_exeext; then
8564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8565
8566 else
8567 echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570
8571 fi
8572
8573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8574 conftest$ac_exeext conftest.$ac_ext
8575 LDFLAGS="$save_LDFLAGS"
85748576 else
8575 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
85778579 fi
8580 archive_cmds_need_lc='no'
85788581 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
85798582 hardcode_libdir_separator=:
8583 inherit_rpath=yes
85808584 link_all_deplibs=yes
85818585 ;;
85828586
85838587 netbsd* | netbsdelf*-gnu)
8584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
85858589 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
85868590 else
85878591 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
85998603 hardcode_shlibpath_var=no
86008604 ;;
86018605
8606 *nto* | *qnx*)
8607 ;;
8608
86028609 openbsd*)
86038610 if test -f /usr/libexec/ld.so; then
86048611 hardcode_direct=yes
86058612 hardcode_shlibpath_var=no
8606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8613 hardcode_direct_absolute=yes
8614 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
86078615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
86088616 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
86098617 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
86198627 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
86208628 ;;
86218629 esac
8622 fi
8630 fi
86238631 else
86248632 ld_shlibs=no
86258633 fi
86298637 hardcode_libdir_flag_spec='-L$libdir'
86308638 hardcode_minus_L=yes
86318639 allow_undefined_flag=unsupported
8632 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8633 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8640 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8641 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
86348642 ;;
86358643
86368644 osf3*)
86378645 if test "$GCC" = yes; then
86388646 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8639 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8647 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
86408648 else
86418649 allow_undefined_flag=' -expect_unresolved \*'
8642 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8650 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
86438651 fi
8652 archive_cmds_need_lc='no'
86448653 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86458654 hardcode_libdir_separator=:
86468655 ;;
86488657 osf4* | osf5*) # as osf3* with the addition of -msym flag
86498658 if test "$GCC" = yes; then
86508659 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8651 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8660 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
86528661 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
86538662 else
86548663 allow_undefined_flag=' -expect_unresolved \*'
8655 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8656 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8657 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8664 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8665 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
8666 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
86588667
86598668 # Both c and cxx compiler support -rpath directly
86608669 hardcode_libdir_flag_spec='-rpath $libdir'
86618670 fi
8671 archive_cmds_need_lc='no'
86628672 hardcode_libdir_separator=:
86638673 ;;
86648674
86658675 solaris*)
8666 no_undefined_flag=' -z text'
8676 no_undefined_flag=' -z defs'
86678677 if test "$GCC" = yes; then
86688678 wlarc='${wl}'
8669 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8670 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8671 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8679 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8681 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
86728682 else
8673 wlarc=''
8674 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8676 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8683 case `$CC -V 2>&1` in
8684 *"Compilers 5.0"*)
8685 wlarc=''
8686 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8687 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8688 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8689 ;;
8690 *)
8691 wlarc='${wl}'
8692 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8693 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8694 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8695 ;;
8696 esac
86778697 fi
86788698 hardcode_libdir_flag_spec='-R$libdir'
86798699 hardcode_shlibpath_var=no
86838703 # The compiler driver will combine and reorder linker options,
86848704 # but understands `-z linker_flag'. GCC discards it without `$wl',
86858705 # but is careful enough not to reorder.
8686 # Supported since Solaris 2.6 (maybe 2.5.1?)
8706 # Supported since Solaris 2.6 (maybe 2.5.1?)
86878707 if test "$GCC" = yes; then
86888708 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
86898709 else
87728792 allow_undefined_flag='${wl}-z,nodefs'
87738793 archive_cmds_need_lc=no
87748794 hardcode_shlibpath_var=no
8775 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8795 hardcode_libdir_flag_spec='${wl}-R,$libdir'
87768796 hardcode_libdir_separator=':'
87778797 link_all_deplibs=yes
87788798 export_dynamic_flag_spec='${wl}-Bexport'
87798799 runpath_var='LD_RUN_PATH'
87808800
87818801 if test "$GCC" = yes; then
8782 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8783 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8802 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8803 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
87848804 else
8785 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8805 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8806 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
87878807 fi
87888808 ;;
87898809
87978817 ld_shlibs=no
87988818 ;;
87998819 esac
8820
8821 if test x$host_vendor = xsni; then
8822 case $host in
8823 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8824 export_dynamic_flag_spec='${wl}-Blargedynsym'
8825 ;;
8826 esac
8827 fi
88008828 fi
88018829
88028830 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
88038831 echo "${ECHO_T}$ld_shlibs" >&6; }
88048832 test "$ld_shlibs" = no && can_build_shared=no
8833
8834 with_gnu_ld=$with_gnu_ld
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
88058849
88068850 #
88078851 # Do we need to explicitly link libc?
88228866 # to ld, don't add -lc before -lgcc.
88238867 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
88248868 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8825 $rm conftest*
8869 $RM conftest*
88268870 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
88278871
88288872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
88438887 libname=conftest
88448888 lt_save_allow_undefined_flag=$allow_undefined_flag
88458889 allow_undefined_flag=
8846 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8847 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8890 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8891 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
88488892 ac_status=$?
88498893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
88508894 (exit $ac_status); }
88578901 else
88588902 cat conftest.err 1>&5
88598903 fi
8860 $rm conftest*
8904 $RM conftest*
88618905 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
88628906 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
88638907 ;;
88668910 ;;
88678911 esac
88688912
8869 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
88709070 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8871 library_names_spec=
8872 libname_spec='lib$name'
8873 soname_spec=
8874 shrext_cmds=".so"
8875 postinstall_cmds=
8876 postuninstall_cmds=
8877 finish_cmds=
8878 finish_eval=
8879 shlibpath_var=
8880 shlibpath_overrides_runpath=unknown
8881 version_type=none
8882 dynamic_linker="$host_os ld.so"
8883 sys_lib_dlsearch_path_spec="/lib /usr/lib"
88849071
88859072 if test "$GCC" = yes; then
88869073 case $host_os in
88889075 *) lt_awk_arg="/^libraries:/" ;;
88899076 esac
88909077 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8891 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9078 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
88929079 # if the path contains ";" then we assume it to be the separator
88939080 # otherwise default to the standard path separator (i.e. ":") - it is
88949081 # assumed that no part of a normal pathname contains ";" but that should
88959082 # okay in the real world where ";" in dirpaths is itself problematic.
8896 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9083 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
88979084 else
8898 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
88999086 fi
89009087 # Ok, now we have the path, separated by spaces, we can step through it
89019088 # and add multilib dir if necessary.
89099096 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
89109097 fi
89119098 done
8912 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9099 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
89139100 BEGIN {RS=" "; FS="/|\n";} {
89149101 lt_foo="";
89159102 lt_count=0;
89299116 if (lt_foo != "") { lt_freq[lt_foo]++; }
89309117 if (lt_freq[lt_foo] == 1) { print lt_foo; }
89319118 }'`
8932 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9119 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
89339120 else
89349121 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
89359122 fi
9123 library_names_spec=
9124 libname_spec='lib$name'
9125 soname_spec=
9126 shrext_cmds=".so"
9127 postinstall_cmds=
9128 postuninstall_cmds=
9129 finish_cmds=
9130 finish_eval=
9131 shlibpath_var=
9132 shlibpath_overrides_runpath=unknown
9133 version_type=none
9134 dynamic_linker="$host_os ld.so"
9135 sys_lib_dlsearch_path_spec="/lib /usr/lib"
89369136 need_lib_prefix=unknown
89379137 hardcode_into_libs=no
89389138
89699169 aix4 | aix4.[01] | aix4.[01].*)
89709170 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
89719171 echo ' yes '
8972 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9172 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
89739173 :
89749174 else
89759175 can_build_shared=no
89959195 ;;
89969196
89979197 amigaos*)
8998 library_names_spec='$libname.ixlibrary $libname.a'
8999 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9000 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9198 case $host_cpu in
9199 powerpc)
9200 # Since July 2007 AmigaOS4 officially supports .so libraries.
9201 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9203 ;;
9204 m68k)
9205 library_names_spec='$libname.ixlibrary $libname.a'
9206 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9207 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9208 ;;
9209 esac
90019210 ;;
90029211
90039212 beos*)
90319240 library_names_spec='$libname.dll.a'
90329241 # DLL is installed to $(libdir)/../bin by postinstall_cmds
90339242 postinstall_cmds='base_file=`basename \${file}`~
9034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9243 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
90359244 dldir=$destdir/`dirname \$dlpath`~
90369245 test -d \$dldir || mkdir -p \$dldir~
90379246 $install_prog $dir/$dlname \$dldir/$dlname~
9038 chmod a+x \$dldir/$dlname'
9247 chmod a+x \$dldir/$dlname~
9248 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9249 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9250 fi'
90399251 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
90409252 dlpath=$dir/\$dldll~
9041 $rm \$dlpath'
9253 $RM \$dlpath'
90429254 shlibpath_overrides_runpath=yes
90439255
90449256 case $host_os in
90509262 mingw*)
90519263 # MinGW DLLs use traditional 'lib' prefix
90529264 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9053 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9054 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9265 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9266 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
90559267 # It is most probably a Windows format PATH printed by
90569268 # mingw gcc, but we are running on Cygwin. Gcc prints its search
90579269 # path with ; separators, and with drive letters. We can handle the
90589270 # drive letters (cygwin fileutils understands them), so leave them,
90599271 # especially as we might pass files found there to a mingw objdump,
90609272 # which wouldn't understand a cygwinified path. Ahh.
9061 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9273 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
90629274 else
9063 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9275 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
90649276 fi
90659277 ;;
90669278 pw32*)
90849296 version_type=darwin
90859297 need_lib_prefix=no
90869298 need_version=no
9087 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9299 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
90889300 soname_spec='${libname}${release}${major}$shared_ext'
90899301 shlibpath_overrides_runpath=yes
90909302 shlibpath_var=DYLD_LIBRARY_PATH
91839395 fi
91849396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
91859397 ;;
9186 hppa*64*)
9187 shrext_cmds='.sl'
9188 hardcode_into_libs=yes
9189 dynamic_linker="$host_os dld.sl"
9190 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9191 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9193 soname_spec='${libname}${release}${shared_ext}$major'
9194 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9195 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9196 ;;
9197 *)
9398 hppa*64*)
9399 shrext_cmds='.sl'
9400 hardcode_into_libs=yes
9401 dynamic_linker="$host_os dld.sl"
9402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9405 soname_spec='${libname}${release}${shared_ext}$major'
9406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9408 ;;
9409 *)
91989410 shrext_cmds='.sl'
91999411 dynamic_linker="$host_os dld.sl"
92009412 shlibpath_var=SHLIB_PATH
92719483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
92729484 shlibpath_var=LD_LIBRARY_PATH
92739485 shlibpath_overrides_runpath=no
9486 # Some binutils ld are patched to set DT_RUNPATH
9487 save_LDFLAGS=$LDFLAGS
9488 save_libdir=$libdir
9489 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9490 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9491 cat >conftest.$ac_ext <<_ACEOF
9492 /* confdefs.h. */
9493 _ACEOF
9494 cat confdefs.h >>conftest.$ac_ext
9495 cat >>conftest.$ac_ext <<_ACEOF
9496 /* end confdefs.h. */
9497
9498 int
9499 main ()
9500 {
9501
9502 ;
9503 return 0;
9504 }
9505 _ACEOF
9506 rm -f conftest.$ac_objext conftest$ac_exeext
9507 if { (ac_try="$ac_link"
9508 case "(($ac_try" in
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9511 esac
9512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9513 (eval "$ac_link") 2>conftest.er1
9514 ac_status=$?
9515 grep -v '^ *+' conftest.er1 >conftest.err
9516 rm -f conftest.er1
9517 cat conftest.err >&5
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); } && {
9520 test -z "$ac_c_werror_flag" ||
9521 test ! -s conftest.err
9522 } && test -s conftest$ac_exeext &&
9523 $as_test_x conftest$ac_exeext; then
9524 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
9525 shlibpath_overrides_runpath=yes
9526 fi
9527
9528 else
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9531
9532
9533 fi
9534
9535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LDFLAGS=$save_LDFLAGS
9538 libdir=$save_libdir
9539
92749540 # This implies no fast_install, which is unacceptable.
92759541 # Some rework will be needed to allow for fast_install
92769542 # before this can be enabled.
92789544
92799545 # Append ld.so.conf contents to the search path
92809546 if test -f /etc/ld.so.conf; then
9281 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9547 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
92829548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
92839549 fi
92849550
93079573 version_type=sunos
93089574 need_lib_prefix=no
93099575 need_version=no
9310 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
93119577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
93129578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
93139579 dynamic_linker='NetBSD (a.out) ld.so'
93289594 shlibpath_overrides_runpath=yes
93299595 ;;
93309596
9331 nto-qnx*)
9332 version_type=linux
9597 *nto* | *qnx*)
9598 version_type=qnx
93339599 need_lib_prefix=no
93349600 need_version=no
93359601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
93369602 soname_spec='${libname}${release}${shared_ext}$major'
93379603 shlibpath_var=LD_LIBRARY_PATH
9338 shlibpath_overrides_runpath=yes
9604 shlibpath_overrides_runpath=no
9605 hardcode_into_libs=yes
9606 dynamic_linker='ldqnx.so'
93399607 ;;
93409608
93419609 openbsd*)
93449612 need_lib_prefix=no
93459613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
93469614 case $host_os in
9347 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9348 *) need_version=no ;;
9615 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9616 *) need_version=no ;;
93499617 esac
93509618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
93519619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
93529620 shlibpath_var=LD_LIBRARY_PATH
9353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
93549622 case $host_os in
93559623 openbsd2.[89] | openbsd2.[89].*)
93569624 shlibpath_overrides_runpath=no
94229690 sni)
94239691 shlibpath_overrides_runpath=no
94249692 need_lib_prefix=no
9425 export_dynamic_flag_spec='${wl}-Blargedynsym'
94269693 runpath_var=LD_RUN_PATH
94279694 ;;
94289695 siemens)
94539720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
94549721 soname_spec='${libname}${release}${shared_ext}$major'
94559722 shlibpath_var=LD_LIBRARY_PATH
9723 shlibpath_overrides_runpath=yes
94569724 hardcode_into_libs=yes
94579725 if test "$with_gnu_ld" = yes; then
94589726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9459 shlibpath_overrides_runpath=no
94609727 else
94619728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9462 shlibpath_overrides_runpath=yes
94639729 case $host_os in
94649730 sco3.2v5*)
94659731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
94699735 sys_lib_dlsearch_path_spec='/usr/lib'
94709736 ;;
94719737
9738 tpf*)
9739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9740 version_type=linux
9741 need_lib_prefix=no
9742 need_version=no
9743 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9744 shlibpath_var=LD_LIBRARY_PATH
9745 shlibpath_overrides_runpath=no
9746 hardcode_into_libs=yes
9747 ;;
9748
94729749 uts4*)
94739750 version_type=linux
94749751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
94849761 echo "${ECHO_T}$dynamic_linker" >&6; }
94859762 test "$dynamic_linker" = no && can_build_shared=no
94869763
9487 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9491 fi
9492
9493 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9494 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9498 fi
9499
9500 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9501
95029764 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
95039765 if test "$GCC" = yes; then
95049766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
95059767 fi
95069768
9507 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9769 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9770 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9771 fi
9772 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9774 fi
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
95089863 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
95099864 hardcode_action=
9510 if test -n "$hardcode_libdir_flag_spec" || \
9511 test -n "$runpath_var" || \
9865 if test -n "$hardcode_libdir_flag_spec" ||
9866 test -n "$runpath_var" ||
95129867 test "X$hardcode_automatic" = "Xyes" ; then
95139868
9514 # We can hardcode non-existant directories.
9869 # We can hardcode non-existent directories.
95159870 if test "$hardcode_direct" != no &&
95169871 # If the only mechanism to avoid hardcoding is shlibpath_var, we
95179872 # have to relink, otherwise we might link with an installed library
95189873 # when we should be linking with a yet-to-be-installed one
9519 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9874 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
95209875 test "$hardcode_minus_L" != no; then
95219876 # Linking always hardcodes the temporary library directory.
95229877 hardcode_action=relink
95329887 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
95339888 echo "${ECHO_T}$hardcode_action" >&6; }
95349889
9535 if test "$hardcode_action" = relink; then
9890 if test "$hardcode_action" = relink ||
9891 test "$inherit_rpath" = yes; then
95369892 # Fast installation is not supported
95379893 enable_fast_install=no
95389894 elif test "$shlibpath_overrides_runpath" = yes ||
95419897 enable_fast_install=needless
95429898 fi
95439899
9544 striplib=
9545 old_striplib=
9546 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9547 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9548 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9549 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9550 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9551 { echo "$as_me:$LINENO: result: yes" >&5
9552 echo "${ECHO_T}yes" >&6; }
9553 else
9554 # FIXME - insert some real tests, host_os isn't really good enough
9555 case $host_os in
9556 darwin*)
9557 if test -n "$STRIP" ; then
9558 striplib="$STRIP -x"
9559 old_striplib="$STRIP -S"
9560 { echo "$as_me:$LINENO: result: yes" >&5
9561 echo "${ECHO_T}yes" >&6; }
9562 else
9563 { echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6; }
9565 fi
9566 ;;
9567 *)
9568 { echo "$as_me:$LINENO: result: no" >&5
9569 echo "${ECHO_T}no" >&6; }
9570 ;;
9571 esac
9572 fi
9573
9574 if test "x$enable_dlopen" != xyes; then
9900
9901
9902
9903
9904
9905 if test "x$enable_dlopen" != xyes; then
95759906 enable_dlopen=unknown
95769907 enable_dlopen_self=unknown
95779908 enable_dlopen_self_static=unknown
95899920 mingw* | pw32*)
95909921 lt_cv_dlopen="LoadLibrary"
95919922 lt_cv_dlopen_libs=
9592 ;;
9923 ;;
95939924
95949925 cygwin*)
95959926 lt_cv_dlopen="dlopen"
95969927 lt_cv_dlopen_libs=
9597 ;;
9928 ;;
95989929
95999930 darwin*)
96009931 # if libdl is installed we need to link against it
966910000
967010001 fi
967110002
9672 ;;
10003 ;;
967310004
967410005 *)
967510006 { echo "$as_me:$LINENO: checking for shl_load" >&5
1014210473 else
1014310474 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1014410475 lt_status=$lt_dlunknown
10145 cat > conftest.$ac_ext <<EOF
10146 #line 10147 "configure"
10476 cat > conftest.$ac_ext <<_LT_EOF
10477 #line 10478 "configure"
1014710478 #include "confdefs.h"
1014810479
1014910480 #if HAVE_DLFCN_H
1020510536
1020610537 exit (status);
1020710538 }
10208 EOF
10539 _LT_EOF
1020910540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1021010541 (eval $ac_link) 2>&5
1021110542 ac_status=$?
1024210573 else
1024310574 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1024410575 lt_status=$lt_dlunknown
10245 cat > conftest.$ac_ext <<EOF
10246 #line 10247 "configure"
10576 cat > conftest.$ac_ext <<_LT_EOF
10577 #line 10578 "configure"
1024710578 #include "confdefs.h"
1024810579
1024910580 #if HAVE_DLFCN_H
1030510636
1030610637 exit (status);
1030710638 }
10308 EOF
10639 _LT_EOF
1030910640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1031010641 (eval $ac_link) 2>&5
1031110642 ac_status=$?
1034910680 fi
1035010681
1035110682
10352 # Report which library types will actually be built
10353 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10354 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10355 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10356 echo "${ECHO_T}$can_build_shared" >&6; }
10357
10358 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10359 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10360 test "$can_build_shared" = "no" && enable_shared=no
10361
10362 # On AIX, shared libraries and static libraries use the same namespace, and
10363 # are all built from PIC.
10364 case $host_os in
10365 aix3*)
10366 test "$enable_shared" = yes && enable_static=no
10367 if test -n "$RANLIB"; then
10368 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10369 postinstall_cmds='$RANLIB $lib'
10370 fi
10371 ;;
10372
10373 aix[4-9]*)
10374 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10375 test "$enable_shared" = yes && enable_static=no
10376 fi
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698 striplib=
10699 old_striplib=
10700 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10701 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10702 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10703 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10704 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10705 { echo "$as_me:$LINENO: result: yes" >&5
10706 echo "${ECHO_T}yes" >&6; }
10707 else
10708 # FIXME - insert some real tests, host_os isn't really good enough
10709 case $host_os in
10710 darwin*)
10711 if test -n "$STRIP" ; then
10712 striplib="$STRIP -x"
10713 old_striplib="$STRIP -S"
10714 { echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6; }
10716 else
10717 { echo "$as_me:$LINENO: result: no" >&5
10718 echo "${ECHO_T}no" >&6; }
10719 fi
1037710720 ;;
10378 esac
10379 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10380 echo "${ECHO_T}$enable_shared" >&6; }
10381
10382 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10383 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10384 # Make sure either enable_shared or enable_static is yes.
10385 test "$enable_shared" = yes || enable_static=yes
10386 { echo "$as_me:$LINENO: result: $enable_static" >&5
10387 echo "${ECHO_T}$enable_static" >&6; }
10388
10389 # The else clause should only fire when bootstrapping the
10390 # libtool distribution, otherwise you forgot to ship ltmain.sh
10391 # with your package, and you will get complaints that there are
10392 # no rules to generate ltmain.sh.
10393 if test -f "$ltmain"; then
10394 # See if we are running on zsh, and set the options which allow our commands through
10395 # without removal of \ escapes.
10396 if test -n "${ZSH_VERSION+set}" ; then
10397 setopt NO_GLOB_SUBST
10398 fi
10399 # Now quote all the things that may contain metacharacters while being
10400 # careful not to overquote the AC_SUBSTed values. We take copies of the
10401 # variables and quote the copies for generation of the libtool script.
10402 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10403 SED SHELL STRIP \
10404 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10405 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10406 deplibs_check_method reload_flag reload_cmds need_locks \
10407 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10408 lt_cv_sys_global_symbol_to_c_name_address \
10409 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10410 old_postinstall_cmds old_postuninstall_cmds \
10411 compiler \
10412 CC \
10413 LD \
10414 lt_prog_compiler_wl \
10415 lt_prog_compiler_pic \
10416 lt_prog_compiler_static \
10417 lt_prog_compiler_no_builtin_flag \
10418 export_dynamic_flag_spec \
10419 thread_safe_flag_spec \
10420 whole_archive_flag_spec \
10421 enable_shared_with_static_runtimes \
10422 old_archive_cmds \
10423 old_archive_from_new_cmds \
10424 predep_objects \
10425 postdep_objects \
10426 predeps \
10427 postdeps \
10428 compiler_lib_search_path \
10429 compiler_lib_search_dirs \
10430 archive_cmds \
10431 archive_expsym_cmds \
10432 postinstall_cmds \
10433 postuninstall_cmds \
10434 old_archive_from_expsyms_cmds \
10435 allow_undefined_flag \
10436 no_undefined_flag \
10437 export_symbols_cmds \
10438 hardcode_libdir_flag_spec \
10439 hardcode_libdir_flag_spec_ld \
10440 hardcode_libdir_separator \
10441 hardcode_automatic \
10442 module_cmds \
10443 module_expsym_cmds \
10444 lt_cv_prog_compiler_c_o \
10445 fix_srcfile_path \
10446 exclude_expsyms \
10447 include_expsyms; do
10448
10449 case $var in
10450 old_archive_cmds | \
10451 old_archive_from_new_cmds | \
10452 archive_cmds | \
10453 archive_expsym_cmds | \
10454 module_cmds | \
10455 module_expsym_cmds | \
10456 old_archive_from_expsyms_cmds | \
10457 export_symbols_cmds | \
10458 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10459 postinstall_cmds | postuninstall_cmds | \
10460 old_postinstall_cmds | old_postuninstall_cmds | \
10461 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10462 # Double-quote double-evaled strings.
10463 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10464 ;;
10465 *)
10466 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10467 ;;
10468 esac
10469 done
10470
10471 case $lt_echo in
10472 *'\$0 --fallback-echo"')
10473 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10721 *)
10722 { echo "$as_me:$LINENO: result: no" >&5
10723 echo "${ECHO_T}no" >&6; }
1047410724 ;;
1047510725 esac
10476
10477 cfgfile="${ofile}T"
10478 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10479 $rm -f "$cfgfile"
10480 { echo "$as_me:$LINENO: creating $ofile" >&5
10481 echo "$as_me: creating $ofile" >&6;}
10482
10483 cat <<__EOF__ >> "$cfgfile"
10484 #! $SHELL
10485
10486 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10487 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10488 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10489 #
10490 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10491 # Free Software Foundation, Inc.
10492 #
10493 # This file is part of GNU Libtool:
10494 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10495 #
10496 # This program is free software; you can redistribute it and/or modify
10497 # it under the terms of the GNU General Public License as published by
10498 # the Free Software Foundation; either version 2 of the License, or
10499 # (at your option) any later version.
10500 #
10501 # This program is distributed in the hope that it will be useful, but
10502 # WITHOUT ANY WARRANTY; without even the implied warranty of
10503 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10504 # General Public License for more details.
10505 #
10506 # You should have received a copy of the GNU General Public License
10507 # along with this program; if not, write to the Free Software
10508 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10509 #
10510 # As a special exception to the GNU General Public License, if you
10511 # distribute this file as part of a program that contains a
10512 # configuration script generated by Autoconf, you may include it under
10513 # the same distribution terms that you use for the rest of that program.
10514
10515 # A sed program that does not truncate output.
10516 SED=$lt_SED
10517
10518 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10519 Xsed="$SED -e 1s/^X//"
10520
10521 # The HP-UX ksh and POSIX shell print the target directory to stdout
10522 # if CDPATH is set.
10523 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10524
10525 # The names of the tagged configurations supported by this script.
10526 available_tags=
10527
10528 # ### BEGIN LIBTOOL CONFIG
10529
10530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10531
10532 # Shell to use when invoking shell scripts.
10533 SHELL=$lt_SHELL
10534
10535 # Whether or not to build shared libraries.
10536 build_libtool_libs=$enable_shared
10537
10538 # Whether or not to build static libraries.
10539 build_old_libs=$enable_static
10540
10541 # Whether or not to add -lc for building shared libraries.
10542 build_libtool_need_lc=$archive_cmds_need_lc
10543
10544 # Whether or not to disallow shared libs when runtime libs are static
10545 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10546
10547 # Whether or not to optimize for fast installation.
10548 fast_install=$enable_fast_install
10549
10550 # The host system.
10551 host_alias=$host_alias
10552 host=$host
10553 host_os=$host_os
10554
10555 # The build system.
10556 build_alias=$build_alias
10557 build=$build
10558 build_os=$build_os
10559
10560 # An echo program that does not interpret backslashes.
10561 echo=$lt_echo
10562
10563 # The archiver.
10564 AR=$lt_AR
10565 AR_FLAGS=$lt_AR_FLAGS
10566
10567 # A C compiler.
10568 LTCC=$lt_LTCC
10569
10570 # LTCC compiler flags.
10571 LTCFLAGS=$lt_LTCFLAGS
10572
10573 # A language-specific compiler.
10574 CC=$lt_compiler
10575
10576 # Is the compiler the GNU C compiler?
10577 with_gcc=$GCC
10578
10579 # An ERE matcher.
10580 EGREP=$lt_EGREP
10581
10582 # The linker used to build libraries.
10583 LD=$lt_LD
10584
10585 # Whether we need hard or soft links.
10586 LN_S=$lt_LN_S
10587
10588 # A BSD-compatible nm program.
10589 NM=$lt_NM
10590
10591 # A symbol stripping program
10592 STRIP=$lt_STRIP
10593
10594 # Used to examine libraries when file_magic_cmd begins "file"
10595 MAGIC_CMD=$MAGIC_CMD
10596
10597 # Used on cygwin: DLL creation program.
10598 DLLTOOL="$DLLTOOL"
10599
10600 # Used on cygwin: object dumper.
10601 OBJDUMP="$OBJDUMP"
10602
10603 # Used on cygwin: assembler.
10604 AS="$AS"
10605
10606 # The name of the directory that contains temporary libtool files.
10607 objdir=$objdir
10608
10609 # How to create reloadable object files.
10610 reload_flag=$lt_reload_flag
10611 reload_cmds=$lt_reload_cmds
10612
10613 # How to pass a linker flag through the compiler.
10614 wl=$lt_lt_prog_compiler_wl
10615
10616 # Object file suffix (normally "o").
10617 objext="$ac_objext"
10618
10619 # Old archive suffix (normally "a").
10620 libext="$libext"
10621
10622 # Shared library suffix (normally ".so").
10623 shrext_cmds='$shrext_cmds'
10624
10625 # Executable file suffix (normally "").
10626 exeext="$exeext"
10627
10628 # Additional compiler flags for building library objects.
10629 pic_flag=$lt_lt_prog_compiler_pic
10630 pic_mode=$pic_mode
10631
10632 # What is the maximum length of a command?
10633 max_cmd_len=$lt_cv_sys_max_cmd_len
10634
10635 # Does compiler simultaneously support -c and -o options?
10636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10637
10638 # Must we lock files when doing compilation?
10639 need_locks=$lt_need_locks
10640
10641 # Do we need the lib prefix for modules?
10642 need_lib_prefix=$need_lib_prefix
10643
10644 # Do we need a version for libraries?
10645 need_version=$need_version
10646
10647 # Whether dlopen is supported.
10648 dlopen_support=$enable_dlopen
10649
10650 # Whether dlopen of programs is supported.
10651 dlopen_self=$enable_dlopen_self
10652
10653 # Whether dlopen of statically linked programs is supported.
10654 dlopen_self_static=$enable_dlopen_self_static
10655
10656 # Compiler flag to prevent dynamic linking.
10657 link_static_flag=$lt_lt_prog_compiler_static
10658
10659 # Compiler flag to turn off builtin functions.
10660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10661
10662 # Compiler flag to allow reflexive dlopens.
10663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10664
10665 # Compiler flag to generate shared objects directly from archives.
10666 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10667
10668 # Compiler flag to generate thread-safe objects.
10669 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10670
10671 # Library versioning type.
10672 version_type=$version_type
10673
10674 # Format of library name prefix.
10675 libname_spec=$lt_libname_spec
10676
10677 # List of archive names. First name is the real one, the rest are links.
10678 # The last name is the one that the linker finds with -lNAME.
10679 library_names_spec=$lt_library_names_spec
10680
10681 # The coded name of the library, if different from the real name.
10682 soname_spec=$lt_soname_spec
10683
10684 # Commands used to build and install an old-style archive.
10685 RANLIB=$lt_RANLIB
10686 old_archive_cmds=$lt_old_archive_cmds
10687 old_postinstall_cmds=$lt_old_postinstall_cmds
10688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10689
10690 # Create an old-style archive from a shared archive.
10691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10692
10693 # Create a temporary old-style archive to link instead of a shared archive.
10694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10695
10696 # Commands used to build and install a shared archive.
10697 archive_cmds=$lt_archive_cmds
10698 archive_expsym_cmds=$lt_archive_expsym_cmds
10699 postinstall_cmds=$lt_postinstall_cmds
10700 postuninstall_cmds=$lt_postuninstall_cmds
10701
10702 # Commands used to build a loadable module (assumed same as above if empty)
10703 module_cmds=$lt_module_cmds
10704 module_expsym_cmds=$lt_module_expsym_cmds
10705
10706 # Commands to strip libraries.
10707 old_striplib=$lt_old_striplib
10708 striplib=$lt_striplib
10709
10710 # Dependencies to place before the objects being linked to create a
10711 # shared library.
10712 predep_objects=$lt_predep_objects
10713
10714 # Dependencies to place after the objects being linked to create a
10715 # shared library.
10716 postdep_objects=$lt_postdep_objects
10717
10718 # Dependencies to place before the objects being linked to create a
10719 # shared library.
10720 predeps=$lt_predeps
10721
10722 # Dependencies to place after the objects being linked to create a
10723 # shared library.
10724 postdeps=$lt_postdeps
10725
10726 # The directories searched by this compiler when creating a shared
10727 # library
10728 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10729
10730 # The library search path used internally by the compiler when linking
10731 # a shared library.
10732 compiler_lib_search_path=$lt_compiler_lib_search_path
10733
10734 # Method to check whether dependent libraries are shared objects.
10735 deplibs_check_method=$lt_deplibs_check_method
10736
10737 # Command to use when deplibs_check_method == file_magic.
10738 file_magic_cmd=$lt_file_magic_cmd
10739
10740 # Flag that allows shared libraries with undefined symbols to be built.
10741 allow_undefined_flag=$lt_allow_undefined_flag
10742
10743 # Flag that forces no undefined symbols.
10744 no_undefined_flag=$lt_no_undefined_flag
10745
10746 # Commands used to finish a libtool library installation in a directory.
10747 finish_cmds=$lt_finish_cmds
10748
10749 # Same as above, but a single script fragment to be evaled but not shown.
10750 finish_eval=$lt_finish_eval
10751
10752 # Take the output of nm and produce a listing of raw symbols and C names.
10753 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10754
10755 # Transform the output of nm in a proper C declaration
10756 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10757
10758 # Transform the output of nm in a C name address pair
10759 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10760
10761 # This is the shared library runtime path variable.
10762 runpath_var=$runpath_var
10763
10764 # This is the shared library path variable.
10765 shlibpath_var=$shlibpath_var
10766
10767 # Is shlibpath searched before the hard-coded library search path?
10768 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10769
10770 # How to hardcode a shared library path into an executable.
10771 hardcode_action=$hardcode_action
10772
10773 # Whether we should hardcode library paths into libraries.
10774 hardcode_into_libs=$hardcode_into_libs
10775
10776 # Flag to hardcode \$libdir into a binary during linking.
10777 # This must work even if \$libdir does not exist.
10778 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10779
10780 # If ld is used when linking, flag to hardcode \$libdir into
10781 # a binary during linking. This must work even if \$libdir does
10782 # not exist.
10783 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10784
10785 # Whether we need a single -rpath flag with a separated argument.
10786 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10787
10788 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10789 # resulting binary.
10790 hardcode_direct=$hardcode_direct
10791
10792 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10793 # resulting binary.
10794 hardcode_minus_L=$hardcode_minus_L
10795
10796 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10797 # the resulting binary.
10798 hardcode_shlibpath_var=$hardcode_shlibpath_var
10799
10800 # Set to yes if building a shared library automatically hardcodes DIR into the library
10801 # and all subsequent libraries and executables linked against it.
10802 hardcode_automatic=$hardcode_automatic
10803
10804 # Variables whose values should be saved in libtool wrapper scripts and
10805 # restored at relink time.
10806 variables_saved_for_relink="$variables_saved_for_relink"
10807
10808 # Whether libtool must link a program against all its dependency libraries.
10809 link_all_deplibs=$link_all_deplibs
10810
10811 # Compile-time system search path for libraries
10812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10813
10814 # Run-time system search path for libraries
10815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10816
10817 # Fix the shell variable \$srcfile for the compiler.
10818 fix_srcfile_path=$lt_fix_srcfile_path
10819
10820 # Set to yes if exported symbols are required.
10821 always_export_symbols=$always_export_symbols
10822
10823 # The commands to list exported symbols.
10824 export_symbols_cmds=$lt_export_symbols_cmds
10825
10826 # The commands to extract the exported symbol list from a shared archive.
10827 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10828
10829 # Symbols that should not be listed in the preloaded symbols.
10830 exclude_expsyms=$lt_exclude_expsyms
10831
10832 # Symbols that must always be exported.
10833 include_expsyms=$lt_include_expsyms
10834
10835 # ### END LIBTOOL CONFIG
10836
10837 __EOF__
10838
10839
10726 fi
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739 # Report which library types will actually be built
10740 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10741 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10742 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10743 echo "${ECHO_T}$can_build_shared" >&6; }
10744
10745 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10746 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10747 test "$can_build_shared" = "no" && enable_shared=no
10748
10749 # On AIX, shared libraries and static libraries use the same namespace, and
10750 # are all built from PIC.
1084010751 case $host_os in
1084110752 aix3*)
10842 cat <<\EOF >> "$cfgfile"
10843
10844 # AIX sometimes has problems with the GCC collect2 program. For some
10845 # reason, if we set the COLLECT_NAMES environment variable, the problems
10846 # vanish in a puff of smoke.
10847 if test "X${COLLECT_NAMES+set}" != Xset; then
10848 COLLECT_NAMES=
10849 export COLLECT_NAMES
10850 fi
10851 EOF
10753 test "$enable_shared" = yes && enable_static=no
10754 if test -n "$RANLIB"; then
10755 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10756 postinstall_cmds='$RANLIB $lib'
10757 fi
10758 ;;
10759
10760 aix[4-9]*)
10761 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10762 test "$enable_shared" = yes && enable_static=no
10763 fi
1085210764 ;;
1085310765 esac
10854
10855 # We use sed instead of cat because bash on DJGPP gets confused if
10856 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10857 # text mode, it properly converts lines to CR/LF. This bash problem
10858 # is reportedly fixed, but why not run on old versions too?
10859 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10860
10861 mv -f "$cfgfile" "$ofile" || \
10862 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10863 chmod +x "$ofile"
10864
10865 else
10866 # If there is no Makefile yet, we rely on a make rule to execute
10867 # `config.status --recheck' to rerun these tests and create the
10868 # libtool script then.
10869 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10870 if test -f "$ltmain_in"; then
10871 test -f Makefile && make "$ltmain"
10872 fi
10873 fi
10874
10875
10766 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10767 echo "${ECHO_T}$enable_shared" >&6; }
10768
10769 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10770 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10771 # Make sure either enable_shared or enable_static is yes.
10772 test "$enable_shared" = yes || enable_static=yes
10773 { echo "$as_me:$LINENO: result: $enable_static" >&5
10774 echo "${ECHO_T}$enable_static" >&6; }
10775
10776
10777
10778
10779 fi
1087610780 ac_ext=c
1087710781 ac_cpp='$CPP $CPPFLAGS'
1087810782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1088210786 CC="$lt_save_CC"
1088310787
1088410788
10885 # Check whether --with-tags was given.
10886 if test "${with_tags+set}" = set; then
10887 withval=$with_tags; tagnames="$withval"
10888 fi
10889
10890
10891 if test -f "$ltmain" && test -n "$tagnames"; then
10892 if test ! -f "${ofile}"; then
10893 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10894 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10895 fi
10896
10897 if test -z "$LTCC"; then
10898 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10899 if test -z "$LTCC"; then
10900 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10901 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10902 else
10903 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10904 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10905 fi
10906 fi
10907 if test -z "$LTCFLAGS"; then
10908 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10909 fi
10910
10911 # Extract list of available tagged configurations in $ofile.
10912 # Note that this assumes the entire list is on one line.
10913 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10914
10915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10916 for tagname in $tagnames; do
10917 IFS="$lt_save_ifs"
10918 # Check whether tagname contains only valid characters
10919 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10920 "") ;;
10921 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10922 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10923 { (exit 1); exit 1; }; }
10924 ;;
10925 esac
10926
10927 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10928 then
10929 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10930 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10931 { (exit 1); exit 1; }; }
10932 fi
10933
10934 # Update the list of available tags.
10935 if test -n "$tagname"; then
10936 echo appending configuration tag \"$tagname\" to $ofile
10937
10938 case $tagname in
10939 CXX)
10940 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10941 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10942 (test "X$CXX" != "Xg++"))) ; then
10943 ac_ext=cpp
10944 ac_cpp='$CXXCPP $CPPFLAGS'
10945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10948
10949
10950
10951
10952 archive_cmds_need_lc_CXX=no
10953 allow_undefined_flag_CXX=
10954 always_export_symbols_CXX=no
10955 archive_expsym_cmds_CXX=
10956 export_dynamic_flag_spec_CXX=
10957 hardcode_direct_CXX=no
10958 hardcode_libdir_flag_spec_CXX=
10959 hardcode_libdir_flag_spec_ld_CXX=
10960 hardcode_libdir_separator_CXX=
10961 hardcode_minus_L_CXX=no
10962 hardcode_shlibpath_var_CXX=unsupported
10963 hardcode_automatic_CXX=no
10964 module_cmds_CXX=
10965 module_expsym_cmds_CXX=
10966 link_all_deplibs_CXX=unknown
10967 old_archive_cmds_CXX=$old_archive_cmds
10968 no_undefined_flag_CXX=
10969 whole_archive_flag_spec_CXX=
10970 enable_shared_with_static_runtimes_CXX=no
10971
10972 # Dependencies to place before and after the object being linked:
10973 predep_objects_CXX=
10974 postdep_objects_CXX=
10975 predeps_CXX=
10976 postdeps_CXX=
10977 compiler_lib_search_path_CXX=
10978 compiler_lib_search_dirs_CXX=
10979
10980 # Source file extension for C++ test sources.
10981 ac_ext=cpp
10982
10983 # Object file extension for compiled C++ test sources.
10984 objext=o
10985 objext_CXX=$objext
10986
10987 # Code to be used in simple compile tests
10988 lt_simple_compile_test_code="int some_variable = 0;"
10989
10990 # Code to be used in simple link tests
10991 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10992
10993 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10994
10995 # If no C compiler was specified, use CC.
10996 LTCC=${LTCC-"$CC"}
10997
10998 # If no C compiler flags were specified, use CFLAGS.
10999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11000
11001 # Allow CC to be a program name with arguments.
11002 compiler=$CC
11003
11004
11005 # save warnings/boilerplate of simple test code
11006 ac_outfile=conftest.$ac_objext
11007 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11009 _lt_compiler_boilerplate=`cat conftest.err`
11010 $rm conftest*
11011
11012 ac_outfile=conftest.$ac_objext
11013 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11015 _lt_linker_boilerplate=`cat conftest.err`
11016 $rm -r conftest*
11017
11018
11019 # Allow CC to be a program name with arguments.
11020 lt_save_CC=$CC
11021 lt_save_LD=$LD
11022 lt_save_GCC=$GCC
11023 GCC=$GXX
11024 lt_save_with_gnu_ld=$with_gnu_ld
11025 lt_save_path_LD=$lt_cv_path_LD
11026 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11027 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11028 else
11029 $as_unset lt_cv_prog_gnu_ld
11030 fi
11031 if test -n "${lt_cv_path_LDCXX+set}"; then
11032 lt_cv_path_LD=$lt_cv_path_LDCXX
11033 else
11034 $as_unset lt_cv_path_LD
11035 fi
11036 test -z "${LDCXX+set}" || LD=$LDCXX
11037 CC=${CXX-"c++"}
11038 compiler=$CC
11039 compiler_CXX=$CC
11040 for cc_temp in $compiler""; do
11041 case $cc_temp in
11042 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11043 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11044 \-*) ;;
11045 *) break;;
11046 esac
11047 done
11048 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11049
11050
11051 # We don't want -fno-exception wen compiling C++ code, so set the
11052 # no_builtin_flag separately
11053 if test "$GXX" = yes; then
11054 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11055 else
11056 lt_prog_compiler_no_builtin_flag_CXX=
11057 fi
11058
11059 if test "$GXX" = yes; then
11060 # Set up default GNU C++ configuration
11061
11062
11063 # Check whether --with-gnu-ld was given.
11064 if test "${with_gnu_ld+set}" = set; then
11065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11066 else
11067 with_gnu_ld=no
11068 fi
11069
11070 ac_prog=ld
11071 if test "$GCC" = yes; then
11072 # Check if gcc -print-prog-name=ld gives a path.
11073 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11074 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11075 case $host in
11076 *-*-mingw*)
11077 # gcc leaves a trailing carriage return which upsets mingw
11078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11079 *)
11080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11081 esac
11082 case $ac_prog in
11083 # Accept absolute paths.
11084 [\\/]* | ?:[\\/]*)
11085 re_direlt='/[^/][^/]*/\.\./'
11086 # Canonicalize the pathname of ld
11087 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11088 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11089 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11090 done
11091 test -z "$LD" && LD="$ac_prog"
11092 ;;
11093 "")
11094 # If it fails, then pretend we aren't using GCC.
11095 ac_prog=ld
11096 ;;
11097 *)
11098 # If it is relative, then search for the first ld in PATH.
11099 with_gnu_ld=unknown
11100 ;;
11101 esac
11102 elif test "$with_gnu_ld" = yes; then
11103 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11104 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11105 else
11106 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11107 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11108 fi
11109 if test "${lt_cv_path_LD+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11111 else
11112 if test -z "$LD"; then
11113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11114 for ac_dir in $PATH; do
11115 IFS="$lt_save_ifs"
11116 test -z "$ac_dir" && ac_dir=.
11117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11118 lt_cv_path_LD="$ac_dir/$ac_prog"
11119 # Check to see if the program is GNU ld. I'd rather use --version,
11120 # but apparently some variants of GNU ld only accept -v.
11121 # Break only if it was the GNU/non-GNU ld that we prefer.
11122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11123 *GNU* | *'with BFD'*)
11124 test "$with_gnu_ld" != no && break
11125 ;;
11126 *)
11127 test "$with_gnu_ld" != yes && break
11128 ;;
11129 esac
11130 fi
11131 done
11132 IFS="$lt_save_ifs"
11133 else
11134 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11135 fi
11136 fi
11137
11138 LD="$lt_cv_path_LD"
11139 if test -n "$LD"; then
11140 { echo "$as_me:$LINENO: result: $LD" >&5
11141 echo "${ECHO_T}$LD" >&6; }
11142 else
11143 { echo "$as_me:$LINENO: result: no" >&5
11144 echo "${ECHO_T}no" >&6; }
11145 fi
11146 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11147 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11148 { (exit 1); exit 1; }; }
11149 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11150 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11151 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 else
11154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11155 case `$LD -v 2>&1 </dev/null` in
11156 *GNU* | *'with BFD'*)
11157 lt_cv_prog_gnu_ld=yes
11158 ;;
11159 *)
11160 lt_cv_prog_gnu_ld=no
11161 ;;
11162 esac
11163 fi
11164 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11165 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11166 with_gnu_ld=$lt_cv_prog_gnu_ld
11167
11168
11169
11170 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11171 # archiving commands below assume that GNU ld is being used.
11172 if test "$with_gnu_ld" = yes; then
11173 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11174 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11175
11176 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11177 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11178
11179 # If archive_cmds runs LD, not CC, wlarc should be empty
11180 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11181 # investigate it a little bit more. (MM)
11182 wlarc='${wl}'
11183
11184 # ancient GNU ld didn't support --whole-archive et. al.
11185 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11186 grep 'no-whole-archive' > /dev/null; then
11187 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11188 else
11189 whole_archive_flag_spec_CXX=
11190 fi
11191 else
11192 with_gnu_ld=no
11193 wlarc=
11194
11195 # A generic and very simple default shared library creation
11196 # command for GNU C++ for the case where it uses the native
11197 # linker, instead of GNU ld. If possible, this setting should
11198 # overridden to take advantage of the native linker features on
11199 # the platform it is being used on.
11200 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11201 fi
11202
11203 # Commands to make compiler produce verbose output that lists
11204 # what "hidden" libraries, object files and flags are used when
11205 # linking a shared library.
11206 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207
11208 else
11209 GXX=no
11210 with_gnu_ld=no
11211 wlarc=
11212 fi
11213
11214 # PORTME: fill in a description of your system's C++ link characteristics
11215 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11216 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11217 ld_shlibs_CXX=yes
11218 case $host_os in
11219 aix3*)
11220 # FIXME: insert proper C++ library support
11221 ld_shlibs_CXX=no
11222 ;;
11223 aix[4-9]*)
11224 if test "$host_cpu" = ia64; then
11225 # On IA64, the linker does run time linking by default, so we don't
11226 # have to do anything special.
11227 aix_use_runtimelinking=no
11228 exp_sym_flag='-Bexport'
11229 no_entry_flag=""
11230 else
11231 aix_use_runtimelinking=no
11232
11233 # Test if we are trying to use run time linking or normal
11234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11235 # need to do runtime linking.
11236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11237 for ld_flag in $LDFLAGS; do
11238 case $ld_flag in
11239 *-brtl*)
11240 aix_use_runtimelinking=yes
11241 break
11242 ;;
11243 esac
11244 done
11245 ;;
11246 esac
11247
11248 exp_sym_flag='-bexport'
11249 no_entry_flag='-bnoentry'
11250 fi
11251
11252 # When large executables or shared objects are built, AIX ld can
11253 # have problems creating the table of contents. If linking a library
11254 # or program results in "error TOC overflow" add -mminimal-toc to
11255 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11256 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11257
11258 archive_cmds_CXX=''
11259 hardcode_direct_CXX=yes
11260 hardcode_libdir_separator_CXX=':'
11261 link_all_deplibs_CXX=yes
11262
11263 if test "$GXX" = yes; then
11264 case $host_os in aix4.[012]|aix4.[012].*)
11265 # We only want to do this on AIX 4.2 and lower, the check
11266 # below for broken collect2 doesn't work under 4.3+
11267 collect2name=`${CC} -print-prog-name=collect2`
11268 if test -f "$collect2name" && \
11269 strings "$collect2name" | grep resolve_lib_name >/dev/null
11270 then
11271 # We have reworked collect2
11272 :
11273 else
11274 # We have old collect2
11275 hardcode_direct_CXX=unsupported
11276 # It fails to find uninstalled libraries when the uninstalled
11277 # path is not listed in the libpath. Setting hardcode_minus_L
11278 # to unsupported forces relinking
11279 hardcode_minus_L_CXX=yes
11280 hardcode_libdir_flag_spec_CXX='-L$libdir'
11281 hardcode_libdir_separator_CXX=
11282 fi
11283 ;;
11284 esac
11285 shared_flag='-shared'
11286 if test "$aix_use_runtimelinking" = yes; then
11287 shared_flag="$shared_flag "'${wl}-G'
11288 fi
11289 else
11290 # not using gcc
11291 if test "$host_cpu" = ia64; then
11292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11293 # chokes on -Wl,-G. The following line is correct:
11294 shared_flag='-G'
11295 else
11296 if test "$aix_use_runtimelinking" = yes; then
11297 shared_flag='${wl}-G'
11298 else
11299 shared_flag='${wl}-bM:SRE'
11300 fi
11301 fi
11302 fi
11303
11304 # It seems that -bexpall does not export symbols beginning with
11305 # underscore (_), so it is better to generate a list of symbols to export.
11306 always_export_symbols_CXX=yes
11307 if test "$aix_use_runtimelinking" = yes; then
11308 # Warning - without using the other runtime loading flags (-brtl),
11309 # -berok will link without error, but may produce a broken library.
11310 allow_undefined_flag_CXX='-berok'
11311 # Determine the default libpath from the value encoded in an empty executable.
11312 cat >conftest.$ac_ext <<_ACEOF
11313 /* confdefs.h. */
11314 _ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318
11319 int
11320 main ()
11321 {
11322
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11332 esac
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11335 ac_status=$?
11336 grep -v '^ *+' conftest.er1 >conftest.err
11337 rm -f conftest.er1
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_cxx_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345
11346 lt_aix_libpath_sed='
11347 /Import File Strings/,/^$/ {
11348 /^0/ {
11349 s/^0 *\(.*\)$/\1/
11350 p
11351 }
11352 }'
11353 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11354 # Check for a 64-bit object if we didn't find anything.
11355 if test -z "$aix_libpath"; then
11356 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11357 fi
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366 conftest$ac_exeext conftest.$ac_ext
11367 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11368
11369 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11370
11371 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11372 else
11373 if test "$host_cpu" = ia64; then
11374 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11375 allow_undefined_flag_CXX="-z nodefs"
11376 archive_expsym_cmds_CXX="\$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"
11377 else
11378 # Determine the default libpath from the value encoded in an empty executable.
11379 cat >conftest.$ac_ext <<_ACEOF
11380 /* confdefs.h. */
11381 _ACEOF
11382 cat confdefs.h >>conftest.$ac_ext
11383 cat >>conftest.$ac_ext <<_ACEOF
11384 /* end confdefs.h. */
11385
11386 int
11387 main ()
11388 {
11389
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (ac_try="$ac_link"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_link") 2>conftest.er1
11402 ac_status=$?
11403 grep -v '^ *+' conftest.er1 >conftest.err
11404 rm -f conftest.er1
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } && {
11408 test -z "$ac_cxx_werror_flag" ||
11409 test ! -s conftest.err
11410 } && test -s conftest$ac_exeext &&
11411 $as_test_x conftest$ac_exeext; then
11412
11413 lt_aix_libpath_sed='
11414 /Import File Strings/,/^$/ {
11415 /^0/ {
11416 s/^0 *\(.*\)$/\1/
11417 p
11418 }
11419 }'
11420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11421 # Check for a 64-bit object if we didn't find anything.
11422 if test -z "$aix_libpath"; then
11423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11424 fi
11425 else
11426 echo "$as_me: failed program was:" >&5
11427 sed 's/^/| /' conftest.$ac_ext >&5
11428
11429
11430 fi
11431
11432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11433 conftest$ac_exeext conftest.$ac_ext
11434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11435
11436 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11437 # Warning - without using the other run time loading flags,
11438 # -berok will link without error, but may produce a broken library.
11439 no_undefined_flag_CXX=' ${wl}-bernotok'
11440 allow_undefined_flag_CXX=' ${wl}-berok'
11441 # Exported symbols can be pulled into shared objects from archives
11442 whole_archive_flag_spec_CXX='$convenience'
11443 archive_cmds_need_lc_CXX=yes
11444 # This is similar to how AIX traditionally builds its shared libraries.
11445 archive_expsym_cmds_CXX="\$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'
11446 fi
11447 fi
11448 ;;
11449
11450 beos*)
11451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11452 allow_undefined_flag_CXX=unsupported
11453 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11454 # support --undefined. This deserves some investigation. FIXME
11455 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11456 else
11457 ld_shlibs_CXX=no
11458 fi
11459 ;;
11460
11461 chorus*)
11462 case $cc_basename in
11463 *)
11464 # FIXME: insert proper C++ library support
11465 ld_shlibs_CXX=no
11466 ;;
11467 esac
11468 ;;
11469
11470 cygwin* | mingw* | pw32*)
11471 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11472 # as there is no search path for DLLs.
11473 hardcode_libdir_flag_spec_CXX='-L$libdir'
11474 allow_undefined_flag_CXX=unsupported
11475 always_export_symbols_CXX=no
11476 enable_shared_with_static_runtimes_CXX=yes
11477
11478 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11479 archive_cmds_CXX='$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'
11480 # If the export-symbols file already is a .def file (1st line
11481 # is EXPORTS), use it as is; otherwise, prepend...
11482 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11483 cp $export_symbols $output_objdir/$soname.def;
11484 else
11485 echo EXPORTS > $output_objdir/$soname.def;
11486 cat $export_symbols >> $output_objdir/$soname.def;
11487 fi~
11488 $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'
11489 else
11490 ld_shlibs_CXX=no
11491 fi
11492 ;;
11493 darwin* | rhapsody*)
11494 archive_cmds_need_lc_CXX=no
11495 hardcode_direct_CXX=no
11496 hardcode_automatic_CXX=yes
11497 hardcode_shlibpath_var_CXX=unsupported
11498 whole_archive_flag_spec_CXX=''
11499 link_all_deplibs_CXX=yes
11500 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11501 if test "$GXX" = yes ; then
11502 output_verbose_link_cmd='echo'
11503 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11504 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11505 archive_expsym_cmds_CXX="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}"
11506 module_expsym_cmds_CXX="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}"
11507 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11508 archive_cmds_CXX="\$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}"
11509 archive_expsym_cmds_CXX="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}"
11510 fi
11511 else
11512 case $cc_basename in
11513 xlc*)
11514 output_verbose_link_cmd='echo'
11515 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11516 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11517 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11518 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11519 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11520 ;;
11521 *)
11522 ld_shlibs_CXX=no
11523 ;;
11524 esac
11525 fi
11526 ;;
11527
11528 dgux*)
11529 case $cc_basename in
11530 ec++*)
11531 # FIXME: insert proper C++ library support
11532 ld_shlibs_CXX=no
11533 ;;
11534 ghcx*)
11535 # Green Hills C++ Compiler
11536 # FIXME: insert proper C++ library support
11537 ld_shlibs_CXX=no
11538 ;;
11539 *)
11540 # FIXME: insert proper C++ library support
11541 ld_shlibs_CXX=no
11542 ;;
11543 esac
11544 ;;
11545 freebsd[12]*)
11546 # C++ shared libraries reported to be fairly broken before switch to ELF
11547 ld_shlibs_CXX=no
11548 ;;
11549 freebsd-elf*)
11550 archive_cmds_need_lc_CXX=no
11551 ;;
11552 freebsd* | dragonfly*)
11553 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11554 # conventions
11555 ld_shlibs_CXX=yes
11556 ;;
11557 gnu*)
11558 ;;
11559 hpux9*)
11560 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11561 hardcode_libdir_separator_CXX=:
11562 export_dynamic_flag_spec_CXX='${wl}-E'
11563 hardcode_direct_CXX=yes
11564 hardcode_minus_L_CXX=yes # Not in the search PATH,
11565 # but as the default
11566 # location of the library.
11567
11568 case $cc_basename in
11569 CC*)
11570 # FIXME: insert proper C++ library support
11571 ld_shlibs_CXX=no
11572 ;;
11573 aCC*)
11574 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11575 # Commands to make compiler produce verbose output that lists
11576 # what "hidden" libraries, object files and flags are used when
11577 # linking a shared library.
11578 #
11579 # There doesn't appear to be a way to prevent this compiler from
11580 # explicitly linking system object files so we need to strip them
11581 # from the output so that they don't get included in the library
11582 # dependencies.
11583 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11584 ;;
11585 *)
11586 if test "$GXX" = yes; then
11587 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11588 else
11589 # FIXME: insert proper C++ library support
11590 ld_shlibs_CXX=no
11591 fi
11592 ;;
11593 esac
11594 ;;
11595 hpux10*|hpux11*)
11596 if test $with_gnu_ld = no; then
11597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11598 hardcode_libdir_separator_CXX=:
11599
11600 case $host_cpu in
11601 hppa*64*|ia64*) ;;
11602 *)
11603 export_dynamic_flag_spec_CXX='${wl}-E'
11604 ;;
11605 esac
11606 fi
11607 case $host_cpu in
11608 hppa*64*|ia64*)
11609 hardcode_direct_CXX=no
11610 hardcode_shlibpath_var_CXX=no
11611 ;;
11612 *)
11613 hardcode_direct_CXX=yes
11614 hardcode_minus_L_CXX=yes # Not in the search PATH,
11615 # but as the default
11616 # location of the library.
11617 ;;
11618 esac
11619
11620 case $cc_basename in
11621 CC*)
11622 # FIXME: insert proper C++ library support
11623 ld_shlibs_CXX=no
11624 ;;
11625 aCC*)
11626 case $host_cpu in
11627 hppa*64*)
11628 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11629 ;;
11630 ia64*)
11631 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11632 ;;
11633 *)
11634 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11635 ;;
11636 esac
11637 # Commands to make compiler produce verbose output that lists
11638 # what "hidden" libraries, object files and flags are used when
11639 # linking a shared library.
11640 #
11641 # There doesn't appear to be a way to prevent this compiler from
11642 # explicitly linking system object files so we need to strip them
11643 # from the output so that they don't get included in the library
11644 # dependencies.
11645 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11646 ;;
11647 *)
11648 if test "$GXX" = yes; then
11649 if test $with_gnu_ld = no; then
11650 case $host_cpu in
11651 hppa*64*)
11652 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11653 ;;
11654 ia64*)
11655 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11656 ;;
11657 *)
11658 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11659 ;;
11660 esac
11661 fi
11662 else
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 fi
11666 ;;
11667 esac
11668 ;;
11669 interix[3-9]*)
11670 hardcode_direct_CXX=no
11671 hardcode_shlibpath_var_CXX=no
11672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11673 export_dynamic_flag_spec_CXX='${wl}-E'
11674 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11675 # Instead, shared libraries are loaded at an image base (0x10000000 by
11676 # default) and relocated if they conflict, which is a slow very memory
11677 # consuming and fragmenting process. To avoid this, we pick a random,
11678 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11679 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11680 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11681 archive_expsym_cmds_CXX='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'
11682 ;;
11683 irix5* | irix6*)
11684 case $cc_basename in
11685 CC*)
11686 # SGI C++
11687 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11688
11689 # Archives containing C++ object files must be created using
11690 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11691 # necessary to make sure instantiated templates are included
11692 # in the archive.
11693 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11694 ;;
11695 *)
11696 if test "$GXX" = yes; then
11697 if test "$with_gnu_ld" = no; then
11698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11699 else
11700 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11701 fi
11702 fi
11703 link_all_deplibs_CXX=yes
11704 ;;
11705 esac
11706 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11707 hardcode_libdir_separator_CXX=:
11708 ;;
11709 linux* | k*bsd*-gnu)
11710 case $cc_basename in
11711 KCC*)
11712 # Kuck and Associates, Inc. (KAI) C++ Compiler
11713
11714 # KCC will only create a shared library if the output file
11715 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11716 # to its proper name (with version) after linking.
11717 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11718 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11719 # Commands to make compiler produce verbose output that lists
11720 # what "hidden" libraries, object files and flags are used when
11721 # linking a shared library.
11722 #
11723 # There doesn't appear to be a way to prevent this compiler from
11724 # explicitly linking system object files so we need to strip them
11725 # from the output so that they don't get included in the library
11726 # dependencies.
11727 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11728
11729 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11730 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11731
11732 # Archives containing C++ object files must be created using
11733 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11734 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11735 ;;
11736 icpc*)
11737 # Intel C++
11738 with_gnu_ld=yes
11739 # version 8.0 and above of icpc choke on multiply defined symbols
11740 # if we add $predep_objects and $postdep_objects, however 7.1 and
11741 # earlier do not add the objects themselves.
11742 case `$CC -V 2>&1` in
11743 *"Version 7."*)
11744 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11745 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11746 ;;
11747 *) # Version 8.0 or newer
11748 tmp_idyn=
11749 case $host_cpu in
11750 ia64*) tmp_idyn=' -i_dynamic';;
11751 esac
11752 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11753 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11754 ;;
11755 esac
11756 archive_cmds_need_lc_CXX=no
11757 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11759 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11760 ;;
11761 pgCC* | pgcpp*)
11762 # Portland Group C++ compiler
11763 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11764 archive_expsym_cmds_CXX='$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'
11765
11766 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11767 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11768 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11769 ;;
11770 cxx*)
11771 # Compaq C++
11772 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11773 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11774
11775 runpath_var=LD_RUN_PATH
11776 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11777 hardcode_libdir_separator_CXX=:
11778
11779 # Commands to make compiler produce verbose output that lists
11780 # what "hidden" libraries, object files and flags are used when
11781 # linking a shared library.
11782 #
11783 # There doesn't appear to be a way to prevent this compiler from
11784 # explicitly linking system object files so we need to strip them
11785 # from the output so that they don't get included in the library
11786 # dependencies.
11787 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11788 ;;
11789 *)
11790 case `$CC -V 2>&1 | sed 5q` in
11791 *Sun\ C*)
11792 # Sun C++ 5.9
11793 no_undefined_flag_CXX=' -zdefs'
11794 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11796 hardcode_libdir_flag_spec_CXX='-R$libdir'
11797 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11798
11799 # Not sure whether something based on
11800 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11801 # would be better.
11802 output_verbose_link_cmd='echo'
11803
11804 # Archives containing C++ object files must be created using
11805 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11806 # necessary to make sure instantiated templates are included
11807 # in the archive.
11808 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11809 ;;
11810 esac
11811 ;;
11812 esac
11813 ;;
11814 lynxos*)
11815 # FIXME: insert proper C++ library support
11816 ld_shlibs_CXX=no
11817 ;;
11818 m88k*)
11819 # FIXME: insert proper C++ library support
11820 ld_shlibs_CXX=no
11821 ;;
11822 mvs*)
11823 case $cc_basename in
11824 cxx*)
11825 # FIXME: insert proper C++ library support
11826 ld_shlibs_CXX=no
11827 ;;
11828 *)
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 ;;
11832 esac
11833 ;;
11834 netbsd* | netbsdelf*-gnu)
11835 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11836 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11837 wlarc=
11838 hardcode_libdir_flag_spec_CXX='-R$libdir'
11839 hardcode_direct_CXX=yes
11840 hardcode_shlibpath_var_CXX=no
11841 fi
11842 # Workaround some broken pre-1.5 toolchains
11843 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11844 ;;
11845 openbsd2*)
11846 # C++ shared libraries are fairly broken
11847 ld_shlibs_CXX=no
11848 ;;
11849 openbsd*)
11850 if test -f /usr/libexec/ld.so; then
11851 hardcode_direct_CXX=yes
11852 hardcode_shlibpath_var_CXX=no
11853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11854 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11855 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11856 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11857 export_dynamic_flag_spec_CXX='${wl}-E'
11858 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11859 fi
11860 output_verbose_link_cmd='echo'
11861 else
11862 ld_shlibs_CXX=no
11863 fi
11864 ;;
11865 osf3*)
11866 case $cc_basename in
11867 KCC*)
11868 # Kuck and Associates, Inc. (KAI) C++ Compiler
11869
11870 # KCC will only create a shared library if the output file
11871 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11872 # to its proper name (with version) after linking.
11873 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11874
11875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11876 hardcode_libdir_separator_CXX=:
11877
11878 # Archives containing C++ object files must be created using
11879 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11880 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11881
11882 ;;
11883 RCC*)
11884 # Rational C++ 2.4.1
11885 # FIXME: insert proper C++ library support
11886 ld_shlibs_CXX=no
11887 ;;
11888 cxx*)
11889 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11890 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11891
11892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11893 hardcode_libdir_separator_CXX=:
11894
11895 # Commands to make compiler produce verbose output that lists
11896 # what "hidden" libraries, object files and flags are used when
11897 # linking a shared library.
11898 #
11899 # There doesn't appear to be a way to prevent this compiler from
11900 # explicitly linking system object files so we need to strip them
11901 # from the output so that they don't get included in the library
11902 # dependencies.
11903 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11904 ;;
11905 *)
11906 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11907 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11908 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11909
11910 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11911 hardcode_libdir_separator_CXX=:
11912
11913 # Commands to make compiler produce verbose output that lists
11914 # what "hidden" libraries, object files and flags are used when
11915 # linking a shared library.
11916 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11917
11918 else
11919 # FIXME: insert proper C++ library support
11920 ld_shlibs_CXX=no
11921 fi
11922 ;;
11923 esac
11924 ;;
11925 osf4* | osf5*)
11926 case $cc_basename in
11927 KCC*)
11928 # Kuck and Associates, Inc. (KAI) C++ Compiler
11929
11930 # KCC will only create a shared library if the output file
11931 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11932 # to its proper name (with version) after linking.
11933 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11934
11935 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11936 hardcode_libdir_separator_CXX=:
11937
11938 # Archives containing C++ object files must be created using
11939 # the KAI C++ compiler.
11940 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11941 ;;
11942 RCC*)
11943 # Rational C++ 2.4.1
11944 # FIXME: insert proper C++ library support
11945 ld_shlibs_CXX=no
11946 ;;
11947 cxx*)
11948 allow_undefined_flag_CXX=' -expect_unresolved \*'
11949 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11950 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11951 echo "-hidden">> $lib.exp~
11952 $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~
11953 $rm $lib.exp'
11954
11955 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11956 hardcode_libdir_separator_CXX=:
11957
11958 # Commands to make compiler produce verbose output that lists
11959 # what "hidden" libraries, object files and flags are used when
11960 # linking a shared library.
11961 #
11962 # There doesn't appear to be a way to prevent this compiler from
11963 # explicitly linking system object files so we need to strip them
11964 # from the output so that they don't get included in the library
11965 # dependencies.
11966 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11967 ;;
11968 *)
11969 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11970 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11971 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11972
11973 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11974 hardcode_libdir_separator_CXX=:
11975
11976 # Commands to make compiler produce verbose output that lists
11977 # what "hidden" libraries, object files and flags are used when
11978 # linking a shared library.
11979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11980
11981 else
11982 # FIXME: insert proper C++ library support
11983 ld_shlibs_CXX=no
11984 fi
11985 ;;
11986 esac
11987 ;;
11988 psos*)
11989 # FIXME: insert proper C++ library support
11990 ld_shlibs_CXX=no
11991 ;;
11992 sunos4*)
11993 case $cc_basename in
11994 CC*)
11995 # Sun C++ 4.x
11996 # FIXME: insert proper C++ library support
11997 ld_shlibs_CXX=no
11998 ;;
11999 lcc*)
12000 # Lucid
12001 # FIXME: insert proper C++ library support
12002 ld_shlibs_CXX=no
12003 ;;
12004 *)
12005 # FIXME: insert proper C++ library support
12006 ld_shlibs_CXX=no
12007 ;;
12008 esac
12009 ;;
12010 solaris*)
12011 case $cc_basename in
12012 CC*)
12013 # Sun C++ 4.2, 5.x and Centerline C++
12014 archive_cmds_need_lc_CXX=yes
12015 no_undefined_flag_CXX=' -zdefs'
12016 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12017 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12018 $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'
12019
12020 hardcode_libdir_flag_spec_CXX='-R$libdir'
12021 hardcode_shlibpath_var_CXX=no
12022 case $host_os in
12023 solaris2.[0-5] | solaris2.[0-5].*) ;;
12024 *)
12025 # The compiler driver will combine and reorder linker options,
12026 # but understands `-z linker_flag'.
12027 # Supported since Solaris 2.6 (maybe 2.5.1?)
12028 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12029 ;;
12030 esac
12031 link_all_deplibs_CXX=yes
12032
12033 output_verbose_link_cmd='echo'
12034
12035 # Archives containing C++ object files must be created using
12036 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12037 # necessary to make sure instantiated templates are included
12038 # in the archive.
12039 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12040 ;;
12041 gcx*)
12042 # Green Hills C++ Compiler
12043 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12044
12045 # The C++ compiler must be used to create the archive.
12046 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12047 ;;
12048 *)
12049 # GNU C++ compiler with Solaris linker
12050 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12051 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12052 if $CC --version | grep -v '^2\.7' > /dev/null; then
12053 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12054 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12055 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12056
12057 # Commands to make compiler produce verbose output that lists
12058 # what "hidden" libraries, object files and flags are used when
12059 # linking a shared library.
12060 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12061 else
12062 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12063 # platform.
12064 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12065 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12066 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12067
12068 # Commands to make compiler produce verbose output that lists
12069 # what "hidden" libraries, object files and flags are used when
12070 # linking a shared library.
12071 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12072 fi
12073
12074 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12075 case $host_os in
12076 solaris2.[0-5] | solaris2.[0-5].*) ;;
12077 *)
12078 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12079 ;;
12080 esac
12081 fi
12082 ;;
12083 esac
12084 ;;
12085 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12086 no_undefined_flag_CXX='${wl}-z,text'
12087 archive_cmds_need_lc_CXX=no
12088 hardcode_shlibpath_var_CXX=no
12089 runpath_var='LD_RUN_PATH'
12090
12091 case $cc_basename in
12092 CC*)
12093 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12094 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12095 ;;
12096 *)
12097 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12098 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12099 ;;
12100 esac
12101 ;;
12102 sysv5* | sco3.2v5* | sco5v6*)
12103 # Note: We can NOT use -z defs as we might desire, because we do not
12104 # link with -lc, and that would cause any symbols used from libc to
12105 # always be unresolved, which means just about no library would
12106 # ever link correctly. If we're not using GNU ld we use -z text
12107 # though, which does catch some bad symbols but isn't as heavy-handed
12108 # as -z defs.
12109 # For security reasons, it is highly recommended that you always
12110 # use absolute paths for naming shared libraries, and exclude the
12111 # DT_RUNPATH tag from executables and libraries. But doing so
12112 # requires that you compile everything twice, which is a pain.
12113 # So that behaviour is only enabled if SCOABSPATH is set to a
12114 # non-empty value in the environment. Most likely only useful for
12115 # creating official distributions of packages.
12116 # This is a hack until libtool officially supports absolute path
12117 # names for shared libraries.
12118 no_undefined_flag_CXX='${wl}-z,text'
12119 allow_undefined_flag_CXX='${wl}-z,nodefs'
12120 archive_cmds_need_lc_CXX=no
12121 hardcode_shlibpath_var_CXX=no
12122 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12123 hardcode_libdir_separator_CXX=':'
12124 link_all_deplibs_CXX=yes
12125 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12126 runpath_var='LD_RUN_PATH'
12127
12128 case $cc_basename in
12129 CC*)
12130 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12131 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12132 ;;
12133 *)
12134 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12135 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12136 ;;
12137 esac
12138 ;;
12139 tandem*)
12140 case $cc_basename in
12141 NCC*)
12142 # NonStop-UX NCC 3.20
12143 # FIXME: insert proper C++ library support
12144 ld_shlibs_CXX=no
12145 ;;
12146 *)
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12149 ;;
12150 esac
12151 ;;
12152 vxworks*)
12153 # FIXME: insert proper C++ library support
12154 ld_shlibs_CXX=no
12155 ;;
12156 *)
12157 # FIXME: insert proper C++ library support
12158 ld_shlibs_CXX=no
12159 ;;
12160 esac
12161 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12162 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12163 test "$ld_shlibs_CXX" = no && can_build_shared=no
12164
12165 GCC_CXX="$GXX"
12166 LD_CXX="$LD"
12167
12168 cat > conftest.$ac_ext <<EOF
12169 class Foo
12170 {
12171 public:
12172 Foo (void) { a = 0; }
12173 private:
12174 int a;
12175 };
12176 EOF
12177
12178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179 (eval $ac_compile) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; then
12183 # Parse the compiler output and extract the necessary
12184 # objects, libraries and library flags.
12185
12186 # Sentinel used to keep track of whether or not we are before
12187 # the conftest object file.
12188 pre_test_object_deps_done=no
12189
12190 # The `*' in the case matches for architectures that use `case' in
12191 # $output_verbose_cmd can trigger glob expansion during the loop
12192 # eval without this substitution.
12193 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12194
12195 for p in `eval $output_verbose_link_cmd`; do
12196 case $p in
12197
12198 -L* | -R* | -l*)
12199 # Some compilers place space between "-{L,R}" and the path.
12200 # Remove the space.
12201 if test $p = "-L" \
12202 || test $p = "-R"; then
12203 prev=$p
12204 continue
12205 else
12206 prev=
12207 fi
12208
12209 if test "$pre_test_object_deps_done" = no; then
12210 case $p in
12211 -L* | -R*)
12212 # Internal compiler library paths should come after those
12213 # provided the user. The postdeps already come after the
12214 # user supplied libs so there is no need to process them.
12215 if test -z "$compiler_lib_search_path_CXX"; then
12216 compiler_lib_search_path_CXX="${prev}${p}"
12217 else
12218 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12219 fi
12220 ;;
12221 # The "-l" case would never come before the object being
12222 # linked, so don't bother handling this case.
12223 esac
12224 else
12225 if test -z "$postdeps_CXX"; then
12226 postdeps_CXX="${prev}${p}"
12227 else
12228 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12229 fi
12230 fi
12231 ;;
12232
12233 *.$objext)
12234 # This assumes that the test object file only shows up
12235 # once in the compiler output.
12236 if test "$p" = "conftest.$objext"; then
12237 pre_test_object_deps_done=yes
12238 continue
12239 fi
12240
12241 if test "$pre_test_object_deps_done" = no; then
12242 if test -z "$predep_objects_CXX"; then
12243 predep_objects_CXX="$p"
12244 else
12245 predep_objects_CXX="$predep_objects_CXX $p"
12246 fi
12247 else
12248 if test -z "$postdep_objects_CXX"; then
12249 postdep_objects_CXX="$p"
12250 else
12251 postdep_objects_CXX="$postdep_objects_CXX $p"
12252 fi
12253 fi
12254 ;;
12255
12256 *) ;; # Ignore the rest.
12257
12258 esac
12259 done
12260
12261 # Clean up.
12262 rm -f a.out a.exe
12263 else
12264 echo "libtool.m4: error: problem compiling CXX test program"
12265 fi
12266
12267 $rm -f confest.$objext
12268
12269 compiler_lib_search_dirs_CXX=
12270 if test -n "$compiler_lib_search_path_CXX"; then
12271 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12272 fi
12273
12274 # PORTME: override above test on systems where it is broken
12275 case $host_os in
12276 interix[3-9]*)
12277 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12278 # hack all around it, let's just trust "g++" to DTRT.
12279 predep_objects_CXX=
12280 postdep_objects_CXX=
12281 postdeps_CXX=
12282 ;;
12283
12284 linux*)
12285 case `$CC -V 2>&1 | sed 5q` in
12286 *Sun\ C*)
12287 # Sun C++ 5.9
12288 #
12289 # The more standards-conforming stlport4 library is
12290 # incompatible with the Cstd library. Avoid specifying
12291 # it if it's in CXXFLAGS. Ignore libCrun as
12292 # -library=stlport4 depends on it.
12293 case " $CXX $CXXFLAGS " in
12294 *" -library=stlport4 "*)
12295 solaris_use_stlport4=yes
12296 ;;
12297 esac
12298 if test "$solaris_use_stlport4" != yes; then
12299 postdeps_CXX='-library=Cstd -library=Crun'
12300 fi
12301 ;;
12302 esac
12303 ;;
12304
12305 solaris*)
12306 case $cc_basename in
12307 CC*)
12308 # The more standards-conforming stlport4 library is
12309 # incompatible with the Cstd library. Avoid specifying
12310 # it if it's in CXXFLAGS. Ignore libCrun as
12311 # -library=stlport4 depends on it.
12312 case " $CXX $CXXFLAGS " in
12313 *" -library=stlport4 "*)
12314 solaris_use_stlport4=yes
12315 ;;
12316 esac
12317
12318 # Adding this requires a known-good setup of shared libraries for
12319 # Sun compiler versions before 5.6, else PIC objects from an old
12320 # archive will be linked into the output, leading to subtle bugs.
12321 if test "$solaris_use_stlport4" != yes; then
12322 postdeps_CXX='-library=Cstd -library=Crun'
12323 fi
12324 ;;
12325 esac
12326 ;;
12327 esac
12328
12329 case " $postdeps_CXX " in
12330 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12331 esac
12332
12333 lt_prog_compiler_wl_CXX=
12334 lt_prog_compiler_pic_CXX=
12335 lt_prog_compiler_static_CXX=
12336
12337 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12338 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12339
12340 # C++ specific cases for pic, static, wl, etc.
12341 if test "$GXX" = yes; then
12342 lt_prog_compiler_wl_CXX='-Wl,'
12343 lt_prog_compiler_static_CXX='-static'
12344
12345 case $host_os in
12346 aix*)
12347 # All AIX code is PIC.
12348 if test "$host_cpu" = ia64; then
12349 # AIX 5 now supports IA64 processor
12350 lt_prog_compiler_static_CXX='-Bstatic'
12351 fi
12352 ;;
12353 amigaos*)
12354 # FIXME: we need at least 68020 code to build shared libraries, but
12355 # adding the `-m68020' flag to GCC prevents building anything better,
12356 # like `-m68040'.
12357 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12358 ;;
12359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12360 # PIC is the default for these OSes.
12361 ;;
12362 mingw* | cygwin* | os2* | pw32*)
12363 # This hack is so that the source file can tell whether it is being
12364 # built for inclusion in a dll (and should export symbols for example).
12365 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12366 # (--disable-auto-import) libraries
12367 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12368 ;;
12369 darwin* | rhapsody*)
12370 # PIC is the default on this platform
12371 # Common symbols not allowed in MH_DYLIB files
12372 lt_prog_compiler_pic_CXX='-fno-common'
12373 ;;
12374 *djgpp*)
12375 # DJGPP does not support shared libraries at all
12376 lt_prog_compiler_pic_CXX=
12377 ;;
12378 interix[3-9]*)
12379 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12380 # Instead, we relocate shared libraries at runtime.
12381 ;;
12382 sysv4*MP*)
12383 if test -d /usr/nec; then
12384 lt_prog_compiler_pic_CXX=-Kconform_pic
12385 fi
12386 ;;
12387 hpux*)
12388 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12389 # not for PA HP-UX.
12390 case $host_cpu in
12391 hppa*64*|ia64*)
12392 ;;
12393 *)
12394 lt_prog_compiler_pic_CXX='-fPIC'
12395 ;;
12396 esac
12397 ;;
12398 *)
12399 lt_prog_compiler_pic_CXX='-fPIC'
12400 ;;
12401 esac
12402 else
12403 case $host_os in
12404 aix[4-9]*)
12405 # All AIX code is PIC.
12406 if test "$host_cpu" = ia64; then
12407 # AIX 5 now supports IA64 processor
12408 lt_prog_compiler_static_CXX='-Bstatic'
12409 else
12410 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12411 fi
12412 ;;
12413 chorus*)
12414 case $cc_basename in
12415 cxch68*)
12416 # Green Hills C++ Compiler
12417 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
12418 ;;
12419 esac
12420 ;;
12421 darwin*)
12422 # PIC is the default on this platform
12423 # Common symbols not allowed in MH_DYLIB files
12424 case $cc_basename in
12425 xlc*)
12426 lt_prog_compiler_pic_CXX='-qnocommon'
12427 lt_prog_compiler_wl_CXX='-Wl,'
12428 ;;
12429 esac
12430 ;;
12431 dgux*)
12432 case $cc_basename in
12433 ec++*)
12434 lt_prog_compiler_pic_CXX='-KPIC'
12435 ;;
12436 ghcx*)
12437 # Green Hills C++ Compiler
12438 lt_prog_compiler_pic_CXX='-pic'
12439 ;;
12440 *)
12441 ;;
12442 esac
12443 ;;
12444 freebsd* | dragonfly*)
12445 # FreeBSD uses GNU C++
12446 ;;
12447 hpux9* | hpux10* | hpux11*)
12448 case $cc_basename in
12449 CC*)
12450 lt_prog_compiler_wl_CXX='-Wl,'
12451 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12452 if test "$host_cpu" != ia64; then
12453 lt_prog_compiler_pic_CXX='+Z'
12454 fi
12455 ;;
12456 aCC*)
12457 lt_prog_compiler_wl_CXX='-Wl,'
12458 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12459 case $host_cpu in
12460 hppa*64*|ia64*)
12461 # +Z the default
12462 ;;
12463 *)
12464 lt_prog_compiler_pic_CXX='+Z'
12465 ;;
12466 esac
12467 ;;
12468 *)
12469 ;;
12470 esac
12471 ;;
12472 interix*)
12473 # This is c89, which is MS Visual C++ (no shared libs)
12474 # Anyone wants to do a port?
12475 ;;
12476 irix5* | irix6* | nonstopux*)
12477 case $cc_basename in
12478 CC*)
12479 lt_prog_compiler_wl_CXX='-Wl,'
12480 lt_prog_compiler_static_CXX='-non_shared'
12481 # CC pic flag -KPIC is the default.
12482 ;;
12483 *)
12484 ;;
12485 esac
12486 ;;
12487 linux* | k*bsd*-gnu)
12488 case $cc_basename in
12489 KCC*)
12490 # KAI C++ Compiler
12491 lt_prog_compiler_wl_CXX='--backend -Wl,'
12492 lt_prog_compiler_pic_CXX='-fPIC'
12493 ;;
12494 icpc* | ecpc*)
12495 # Intel C++
12496 lt_prog_compiler_wl_CXX='-Wl,'
12497 lt_prog_compiler_pic_CXX='-KPIC'
12498 lt_prog_compiler_static_CXX='-static'
12499 ;;
12500 pgCC* | pgcpp*)
12501 # Portland Group C++ compiler.
12502 lt_prog_compiler_wl_CXX='-Wl,'
12503 lt_prog_compiler_pic_CXX='-fpic'
12504 lt_prog_compiler_static_CXX='-Bstatic'
12505 ;;
12506 cxx*)
12507 # Compaq C++
12508 # Make sure the PIC flag is empty. It appears that all Alpha
12509 # Linux and Compaq Tru64 Unix objects are PIC.
12510 lt_prog_compiler_pic_CXX=
12511 lt_prog_compiler_static_CXX='-non_shared'
12512 ;;
12513 *)
12514 case `$CC -V 2>&1 | sed 5q` in
12515 *Sun\ C*)
12516 # Sun C++ 5.9
12517 lt_prog_compiler_pic_CXX='-KPIC'
12518 lt_prog_compiler_static_CXX='-Bstatic'
12519 lt_prog_compiler_wl_CXX='-Qoption ld '
12520 ;;
12521 esac
12522 ;;
12523 esac
12524 ;;
12525 lynxos*)
12526 ;;
12527 m88k*)
12528 ;;
12529 mvs*)
12530 case $cc_basename in
12531 cxx*)
12532 lt_prog_compiler_pic_CXX='-W c,exportall'
12533 ;;
12534 *)
12535 ;;
12536 esac
12537 ;;
12538 netbsd* | netbsdelf*-gnu)
12539 ;;
12540 osf3* | osf4* | osf5*)
12541 case $cc_basename in
12542 KCC*)
12543 lt_prog_compiler_wl_CXX='--backend -Wl,'
12544 ;;
12545 RCC*)
12546 # Rational C++ 2.4.1
12547 lt_prog_compiler_pic_CXX='-pic'
12548 ;;
12549 cxx*)
12550 # Digital/Compaq C++
12551 lt_prog_compiler_wl_CXX='-Wl,'
12552 # Make sure the PIC flag is empty. It appears that all Alpha
12553 # Linux and Compaq Tru64 Unix objects are PIC.
12554 lt_prog_compiler_pic_CXX=
12555 lt_prog_compiler_static_CXX='-non_shared'
12556 ;;
12557 *)
12558 ;;
12559 esac
12560 ;;
12561 psos*)
12562 ;;
12563 solaris*)
12564 case $cc_basename in
12565 CC*)
12566 # Sun C++ 4.2, 5.x and Centerline C++
12567 lt_prog_compiler_pic_CXX='-KPIC'
12568 lt_prog_compiler_static_CXX='-Bstatic'
12569 lt_prog_compiler_wl_CXX='-Qoption ld '
12570 ;;
12571 gcx*)
12572 # Green Hills C++ Compiler
12573 lt_prog_compiler_pic_CXX='-PIC'
12574 ;;
12575 *)
12576 ;;
12577 esac
12578 ;;
12579 sunos4*)
12580 case $cc_basename in
12581 CC*)
12582 # Sun C++ 4.x
12583 lt_prog_compiler_pic_CXX='-pic'
12584 lt_prog_compiler_static_CXX='-Bstatic'
12585 ;;
12586 lcc*)
12587 # Lucid
12588 lt_prog_compiler_pic_CXX='-pic'
12589 ;;
12590 *)
12591 ;;
12592 esac
12593 ;;
12594 tandem*)
12595 case $cc_basename in
12596 NCC*)
12597 # NonStop-UX NCC 3.20
12598 lt_prog_compiler_pic_CXX='-KPIC'
12599 ;;
12600 *)
12601 ;;
12602 esac
12603 ;;
12604 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12605 case $cc_basename in
12606 CC*)
12607 lt_prog_compiler_wl_CXX='-Wl,'
12608 lt_prog_compiler_pic_CXX='-KPIC'
12609 lt_prog_compiler_static_CXX='-Bstatic'
12610 ;;
12611 esac
12612 ;;
12613 vxworks*)
12614 ;;
12615 *)
12616 lt_prog_compiler_can_build_shared_CXX=no
12617 ;;
12618 esac
12619 fi
12620
12621 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12622 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12623
12624 #
12625 # Check to make sure the PIC flag actually works.
12626 #
12627 if test -n "$lt_prog_compiler_pic_CXX"; then
12628
12629 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12630 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12631 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12633 else
12634 lt_cv_prog_compiler_pic_works_CXX=no
12635 ac_outfile=conftest.$ac_objext
12636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12637 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12638 # Insert the option either (1) after the last *FLAGS variable, or
12639 # (2) before a word containing "conftest.", or (3) at the end.
12640 # Note that $ac_compile itself does not contain backslashes and begins
12641 # with a dollar sign (not a hyphen), so the echo should work correctly.
12642 # The option is referenced via a variable to avoid confusing sed.
12643 lt_compile=`echo "$ac_compile" | $SED \
12644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12646 -e 's:$: $lt_compiler_flag:'`
12647 (eval echo "\"\$as_me:12648: $lt_compile\"" >&5)
12648 (eval "$lt_compile" 2>conftest.err)
12649 ac_status=$?
12650 cat conftest.err >&5
12651 echo "$as_me:12652: \$? = $ac_status" >&5
12652 if (exit $ac_status) && test -s "$ac_outfile"; then
12653 # The compiler can only warn and ignore the option if not recognized
12654 # So say no if there are warnings other than the usual output.
12655 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12657 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12658 lt_cv_prog_compiler_pic_works_CXX=yes
12659 fi
12660 fi
12661 $rm conftest*
12662
12663 fi
12664 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12665 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12666
12667 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12668 case $lt_prog_compiler_pic_CXX in
12669 "" | " "*) ;;
12670 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12671 esac
12672 else
12673 lt_prog_compiler_pic_CXX=
12674 lt_prog_compiler_can_build_shared_CXX=no
12675 fi
12676
12677 fi
12678 case $host_os in
12679 # For platforms which do not support PIC, -DPIC is meaningless:
12680 *djgpp*)
12681 lt_prog_compiler_pic_CXX=
12682 ;;
12683 *)
12684 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12685 ;;
12686 esac
12687
12688 #
12689 # Check to make sure the static flag actually works.
12690 #
12691 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12692 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12693 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12694 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 lt_cv_prog_compiler_static_works_CXX=no
12698 save_LDFLAGS="$LDFLAGS"
12699 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12700 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12701 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12702 # The linker can only warn and ignore the option if not recognized
12703 # So say no if there are warnings
12704 if test -s conftest.err; then
12705 # Append any errors to the config.log.
12706 cat conftest.err 1>&5
12707 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12708 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12709 if diff conftest.exp conftest.er2 >/dev/null; then
12710 lt_cv_prog_compiler_static_works_CXX=yes
12711 fi
12712 else
12713 lt_cv_prog_compiler_static_works_CXX=yes
12714 fi
12715 fi
12716 $rm -r conftest*
12717 LDFLAGS="$save_LDFLAGS"
12718
12719 fi
12720 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12721 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12722
12723 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12724 :
12725 else
12726 lt_prog_compiler_static_CXX=
12727 fi
12728
12729
12730 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12731 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12732 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12733 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 else
12735 lt_cv_prog_compiler_c_o_CXX=no
12736 $rm -r conftest 2>/dev/null
12737 mkdir conftest
12738 cd conftest
12739 mkdir out
12740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12741
12742 lt_compiler_flag="-o out/conftest2.$ac_objext"
12743 # Insert the option either (1) after the last *FLAGS variable, or
12744 # (2) before a word containing "conftest.", or (3) at the end.
12745 # Note that $ac_compile itself does not contain backslashes and begins
12746 # with a dollar sign (not a hyphen), so the echo should work correctly.
12747 lt_compile=`echo "$ac_compile" | $SED \
12748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12750 -e 's:$: $lt_compiler_flag:'`
12751 (eval echo "\"\$as_me:12752: $lt_compile\"" >&5)
12752 (eval "$lt_compile" 2>out/conftest.err)
12753 ac_status=$?
12754 cat out/conftest.err >&5
12755 echo "$as_me:12756: \$? = $ac_status" >&5
12756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12757 then
12758 # The compiler can only warn and ignore the option if not recognized
12759 # So say no if there are warnings
12760 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12763 lt_cv_prog_compiler_c_o_CXX=yes
12764 fi
12765 fi
12766 chmod u+w . 2>&5
12767 $rm conftest*
12768 # SGI C++ compiler will create directory out/ii_files/ for
12769 # template instantiation
12770 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12771 $rm out/* && rmdir out
12772 cd ..
12773 rmdir conftest
12774 $rm conftest*
12775
12776 fi
12777 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12778 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12779
12780
12781 hard_links="nottested"
12782 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12783 # do not overwrite the value of need_locks provided by the user
12784 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12785 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12786 hard_links=yes
12787 $rm conftest*
12788 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12789 touch conftest.a
12790 ln conftest.a conftest.b 2>&5 || hard_links=no
12791 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12792 { echo "$as_me:$LINENO: result: $hard_links" >&5
12793 echo "${ECHO_T}$hard_links" >&6; }
12794 if test "$hard_links" = no; then
12795 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12796 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12797 need_locks=warn
12798 fi
12799 else
12800 need_locks=no
12801 fi
12802
12803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12805
12806 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12807 case $host_os in
12808 aix[4-9]*)
12809 # If we're using GNU nm, then we don't want the "-C" option.
12810 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12811 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12812 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12813 else
12814 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12815 fi
12816 ;;
12817 pw32*)
12818 export_symbols_cmds_CXX="$ltdll_cmds"
12819 ;;
12820 cygwin* | mingw*)
12821 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12822 ;;
12823 linux* | k*bsd*-gnu)
12824 link_all_deplibs_CXX=no
12825 ;;
12826 *)
12827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12828 ;;
12829 esac
12830 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12831
12832 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12833 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12834 test "$ld_shlibs_CXX" = no && can_build_shared=no
12835
12836 #
12837 # Do we need to explicitly link libc?
12838 #
12839 case "x$archive_cmds_need_lc_CXX" in
12840 x|xyes)
12841 # Assume -lc should be added
12842 archive_cmds_need_lc_CXX=yes
12843
12844 if test "$enable_shared" = yes && test "$GCC" = yes; then
12845 case $archive_cmds_CXX in
12846 *'~'*)
12847 # FIXME: we may have to deal with multi-command sequences.
12848 ;;
12849 '$CC '*)
12850 # Test whether the compiler implicitly links with -lc since on some
12851 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12852 # to ld, don't add -lc before -lgcc.
12853 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12854 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12855 $rm conftest*
12856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12857
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>&5
12860 ac_status=$?
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } 2>conftest.err; then
12863 soname=conftest
12864 lib=conftest
12865 libobjs=conftest.$ac_objext
12866 deplibs=
12867 wl=$lt_prog_compiler_wl_CXX
12868 pic_flag=$lt_prog_compiler_pic_CXX
12869 compiler_flags=-v
12870 linker_flags=-v
12871 verstring=
12872 output_objdir=.
12873 libname=conftest
12874 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12875 allow_undefined_flag_CXX=
12876 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12877 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12878 ac_status=$?
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); }
12881 then
12882 archive_cmds_need_lc_CXX=no
12883 else
12884 archive_cmds_need_lc_CXX=yes
12885 fi
12886 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12887 else
12888 cat conftest.err 1>&5
12889 fi
12890 $rm conftest*
12891 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12892 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12893 ;;
12894 esac
12895 fi
12896 ;;
12897 esac
12898
12899 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12900 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12901 library_names_spec=
12902 libname_spec='lib$name'
12903 soname_spec=
12904 shrext_cmds=".so"
12905 postinstall_cmds=
12906 postuninstall_cmds=
12907 finish_cmds=
12908 finish_eval=
12909 shlibpath_var=
12910 shlibpath_overrides_runpath=unknown
12911 version_type=none
12912 dynamic_linker="$host_os ld.so"
12913 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12914
12915 need_lib_prefix=unknown
12916 hardcode_into_libs=no
12917
12918 # when you set need_version to no, make sure it does not cause -set_version
12919 # flags to be left without arguments
12920 need_version=unknown
12921
12922 case $host_os in
12923 aix3*)
12924 version_type=linux
12925 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12926 shlibpath_var=LIBPATH
12927
12928 # AIX 3 has no versioning support, so we append a major version to the name.
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 ;;
12931
12932 aix[4-9]*)
12933 version_type=linux
12934 need_lib_prefix=no
12935 need_version=no
12936 hardcode_into_libs=yes
12937 if test "$host_cpu" = ia64; then
12938 # AIX 5 supports IA64
12939 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 else
12942 # With GCC up to 2.95.x, collect2 would create an import file
12943 # for dependence libraries. The import file would start with
12944 # the line `#! .'. This would cause the generated library to
12945 # depend on `.', always an invalid library. This was fixed in
12946 # development snapshots of GCC prior to 3.0.
12947 case $host_os in
12948 aix4 | aix4.[01] | aix4.[01].*)
12949 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12950 echo ' yes '
12951 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12952 :
12953 else
12954 can_build_shared=no
12955 fi
12956 ;;
12957 esac
12958 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12959 # soname into executable. Probably we can add versioning support to
12960 # collect2, so additional links can be useful in future.
12961 if test "$aix_use_runtimelinking" = yes; then
12962 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12963 # instead of lib<name>.a to let people know that these are not
12964 # typical AIX shared libraries.
12965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12966 else
12967 # We preserve .a as extension for shared libraries through AIX4.2
12968 # and later when we are not doing run time linking.
12969 library_names_spec='${libname}${release}.a $libname.a'
12970 soname_spec='${libname}${release}${shared_ext}$major'
12971 fi
12972 shlibpath_var=LIBPATH
12973 fi
12974 ;;
12975
12976 amigaos*)
12977 library_names_spec='$libname.ixlibrary $libname.a'
12978 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12979 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12980 ;;
12981
12982 beos*)
12983 library_names_spec='${libname}${shared_ext}'
12984 dynamic_linker="$host_os ld.so"
12985 shlibpath_var=LIBRARY_PATH
12986 ;;
12987
12988 bsdi[45]*)
12989 version_type=linux
12990 need_version=no
12991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12992 soname_spec='${libname}${release}${shared_ext}$major'
12993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12994 shlibpath_var=LD_LIBRARY_PATH
12995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12997 # the default ld.so.conf also contains /usr/contrib/lib and
12998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12999 # libtool to hard-code these into programs
13000 ;;
13001
13002 cygwin* | mingw* | pw32*)
13003 version_type=windows
13004 shrext_cmds=".dll"
13005 need_version=no
13006 need_lib_prefix=no
13007
13008 case $GCC,$host_os in
13009 yes,cygwin* | yes,mingw* | yes,pw32*)
13010 library_names_spec='$libname.dll.a'
13011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13012 postinstall_cmds='base_file=`basename \${file}`~
13013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13014 dldir=$destdir/`dirname \$dlpath`~
13015 test -d \$dldir || mkdir -p \$dldir~
13016 $install_prog $dir/$dlname \$dldir/$dlname~
13017 chmod a+x \$dldir/$dlname'
13018 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13019 dlpath=$dir/\$dldll~
13020 $rm \$dlpath'
13021 shlibpath_overrides_runpath=yes
13022
13023 case $host_os in
13024 cygwin*)
13025 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13026 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13027 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13028 ;;
13029 mingw*)
13030 # MinGW DLLs use traditional 'lib' prefix
13031 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13032 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13033 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13034 # It is most probably a Windows format PATH printed by
13035 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13036 # path with ; separators, and with drive letters. We can handle the
13037 # drive letters (cygwin fileutils understands them), so leave them,
13038 # especially as we might pass files found there to a mingw objdump,
13039 # which wouldn't understand a cygwinified path. Ahh.
13040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13041 else
13042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13043 fi
13044 ;;
13045 pw32*)
13046 # pw32 DLLs use 'pw' prefix rather than 'lib'
13047 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13048 ;;
13049 esac
13050 ;;
13051
13052 *)
13053 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13054 ;;
13055 esac
13056 dynamic_linker='Win32 ld.exe'
13057 # FIXME: first we should search . and the directory the executable is in
13058 shlibpath_var=PATH
13059 ;;
13060
13061 darwin* | rhapsody*)
13062 dynamic_linker="$host_os dyld"
13063 version_type=darwin
13064 need_lib_prefix=no
13065 need_version=no
13066 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13067 soname_spec='${libname}${release}${major}$shared_ext'
13068 shlibpath_overrides_runpath=yes
13069 shlibpath_var=DYLD_LIBRARY_PATH
13070 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13071
13072 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13073 ;;
13074
13075 dgux*)
13076 version_type=linux
13077 need_lib_prefix=no
13078 need_version=no
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13080 soname_spec='${libname}${release}${shared_ext}$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 ;;
13083
13084 freebsd1*)
13085 dynamic_linker=no
13086 ;;
13087
13088 freebsd* | dragonfly*)
13089 # DragonFly does not have aout. When/if they implement a new
13090 # versioning mechanism, adjust this.
13091 if test -x /usr/bin/objformat; then
13092 objformat=`/usr/bin/objformat`
13093 else
13094 case $host_os in
13095 freebsd[123]*) objformat=aout ;;
13096 *) objformat=elf ;;
13097 esac
13098 fi
13099 version_type=freebsd-$objformat
13100 case $version_type in
13101 freebsd-elf*)
13102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13103 need_version=no
13104 need_lib_prefix=no
13105 ;;
13106 freebsd-*)
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13108 need_version=yes
13109 ;;
13110 esac
13111 shlibpath_var=LD_LIBRARY_PATH
13112 case $host_os in
13113 freebsd2*)
13114 shlibpath_overrides_runpath=yes
13115 ;;
13116 freebsd3.[01]* | freebsdelf3.[01]*)
13117 shlibpath_overrides_runpath=yes
13118 hardcode_into_libs=yes
13119 ;;
13120 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13121 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13122 shlibpath_overrides_runpath=no
13123 hardcode_into_libs=yes
13124 ;;
13125 *) # from 4.6 on, and DragonFly
13126 shlibpath_overrides_runpath=yes
13127 hardcode_into_libs=yes
13128 ;;
13129 esac
13130 ;;
13131
13132 gnu*)
13133 version_type=linux
13134 need_lib_prefix=no
13135 need_version=no
13136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13137 soname_spec='${libname}${release}${shared_ext}$major'
13138 shlibpath_var=LD_LIBRARY_PATH
13139 hardcode_into_libs=yes
13140 ;;
13141
13142 hpux9* | hpux10* | hpux11*)
13143 # Give a soname corresponding to the major version so that dld.sl refuses to
13144 # link against other versions.
13145 version_type=sunos
13146 need_lib_prefix=no
13147 need_version=no
13148 case $host_cpu in
13149 ia64*)
13150 shrext_cmds='.so'
13151 hardcode_into_libs=yes
13152 dynamic_linker="$host_os dld.so"
13153 shlibpath_var=LD_LIBRARY_PATH
13154 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13156 soname_spec='${libname}${release}${shared_ext}$major'
13157 if test "X$HPUX_IA64_MODE" = X32; then
13158 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13159 else
13160 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13161 fi
13162 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13163 ;;
13164 hppa*64*)
13165 shrext_cmds='.sl'
13166 hardcode_into_libs=yes
13167 dynamic_linker="$host_os dld.sl"
13168 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13169 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13171 soname_spec='${libname}${release}${shared_ext}$major'
13172 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13174 ;;
13175 *)
13176 shrext_cmds='.sl'
13177 dynamic_linker="$host_os dld.sl"
13178 shlibpath_var=SHLIB_PATH
13179 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 ;;
13183 esac
13184 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13185 postinstall_cmds='chmod 555 $lib'
13186 ;;
13187
13188 interix[3-9]*)
13189 version_type=linux
13190 need_lib_prefix=no
13191 need_version=no
13192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13193 soname_spec='${libname}${release}${shared_ext}$major'
13194 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13195 shlibpath_var=LD_LIBRARY_PATH
13196 shlibpath_overrides_runpath=no
13197 hardcode_into_libs=yes
13198 ;;
13199
13200 irix5* | irix6* | nonstopux*)
13201 case $host_os in
13202 nonstopux*) version_type=nonstopux ;;
13203 *)
13204 if test "$lt_cv_prog_gnu_ld" = yes; then
13205 version_type=linux
13206 else
13207 version_type=irix
13208 fi ;;
13209 esac
13210 need_lib_prefix=no
13211 need_version=no
13212 soname_spec='${libname}${release}${shared_ext}$major'
13213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13214 case $host_os in
13215 irix5* | nonstopux*)
13216 libsuff= shlibsuff=
13217 ;;
13218 *)
13219 case $LD in # libtool.m4 will add one of these switches to LD
13220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13221 libsuff= shlibsuff= libmagic=32-bit;;
13222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13223 libsuff=32 shlibsuff=N32 libmagic=N32;;
13224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13225 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13226 *) libsuff= shlibsuff= libmagic=never-match;;
13227 esac
13228 ;;
13229 esac
13230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13231 shlibpath_overrides_runpath=no
13232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13234 hardcode_into_libs=yes
13235 ;;
13236
13237 # No shared lib support for Linux oldld, aout, or coff.
13238 linux*oldld* | linux*aout* | linux*coff*)
13239 dynamic_linker=no
13240 ;;
13241
13242 # This must be Linux ELF.
13243 linux* | k*bsd*-gnu)
13244 version_type=linux
13245 need_lib_prefix=no
13246 need_version=no
13247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13248 soname_spec='${libname}${release}${shared_ext}$major'
13249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13250 shlibpath_var=LD_LIBRARY_PATH
13251 shlibpath_overrides_runpath=no
13252 # This implies no fast_install, which is unacceptable.
13253 # Some rework will be needed to allow for fast_install
13254 # before this can be enabled.
13255 hardcode_into_libs=yes
13256
13257 # Append ld.so.conf contents to the search path
13258 if test -f /etc/ld.so.conf; then
13259 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13261 fi
13262
13263 # We used to test for /lib/ld.so.1 and disable shared libraries on
13264 # powerpc, because MkLinux only supported shared libraries with the
13265 # GNU dynamic linker. Since this was broken with cross compilers,
13266 # most powerpc-linux boxes support dynamic linking these days and
13267 # people can always --disable-shared, the test was removed, and we
13268 # assume the GNU/Linux dynamic linker is in use.
13269 dynamic_linker='GNU/Linux ld.so'
13270 ;;
13271
13272 netbsdelf*-gnu)
13273 version_type=linux
13274 need_lib_prefix=no
13275 need_version=no
13276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13277 soname_spec='${libname}${release}${shared_ext}$major'
13278 shlibpath_var=LD_LIBRARY_PATH
13279 shlibpath_overrides_runpath=no
13280 hardcode_into_libs=yes
13281 dynamic_linker='NetBSD ld.elf_so'
13282 ;;
13283
13284 netbsd*)
13285 version_type=sunos
13286 need_lib_prefix=no
13287 need_version=no
13288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13291 dynamic_linker='NetBSD (a.out) ld.so'
13292 else
13293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13294 soname_spec='${libname}${release}${shared_ext}$major'
13295 dynamic_linker='NetBSD ld.elf_so'
13296 fi
13297 shlibpath_var=LD_LIBRARY_PATH
13298 shlibpath_overrides_runpath=yes
13299 hardcode_into_libs=yes
13300 ;;
13301
13302 newsos6)
13303 version_type=linux
13304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13305 shlibpath_var=LD_LIBRARY_PATH
13306 shlibpath_overrides_runpath=yes
13307 ;;
13308
13309 nto-qnx*)
13310 version_type=linux
13311 need_lib_prefix=no
13312 need_version=no
13313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13314 soname_spec='${libname}${release}${shared_ext}$major'
13315 shlibpath_var=LD_LIBRARY_PATH
13316 shlibpath_overrides_runpath=yes
13317 ;;
13318
13319 openbsd*)
13320 version_type=sunos
13321 sys_lib_dlsearch_path_spec="/usr/lib"
13322 need_lib_prefix=no
13323 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13324 case $host_os in
13325 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13326 *) need_version=no ;;
13327 esac
13328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13330 shlibpath_var=LD_LIBRARY_PATH
13331 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13332 case $host_os in
13333 openbsd2.[89] | openbsd2.[89].*)
13334 shlibpath_overrides_runpath=no
13335 ;;
13336 *)
13337 shlibpath_overrides_runpath=yes
13338 ;;
13339 esac
13340 else
13341 shlibpath_overrides_runpath=yes
13342 fi
13343 ;;
13344
13345 os2*)
13346 libname_spec='$name'
13347 shrext_cmds=".dll"
13348 need_lib_prefix=no
13349 library_names_spec='$libname${shared_ext} $libname.a'
13350 dynamic_linker='OS/2 ld.exe'
13351 shlibpath_var=LIBPATH
13352 ;;
13353
13354 osf3* | osf4* | osf5*)
13355 version_type=osf
13356 need_lib_prefix=no
13357 need_version=no
13358 soname_spec='${libname}${release}${shared_ext}$major'
13359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13360 shlibpath_var=LD_LIBRARY_PATH
13361 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13362 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13363 ;;
13364
13365 rdos*)
13366 dynamic_linker=no
13367 ;;
13368
13369 solaris*)
13370 version_type=linux
13371 need_lib_prefix=no
13372 need_version=no
13373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13374 soname_spec='${libname}${release}${shared_ext}$major'
13375 shlibpath_var=LD_LIBRARY_PATH
13376 shlibpath_overrides_runpath=yes
13377 hardcode_into_libs=yes
13378 # ldd complains unless libraries are executable
13379 postinstall_cmds='chmod +x $lib'
13380 ;;
13381
13382 sunos4*)
13383 version_type=sunos
13384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13385 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=yes
13388 if test "$with_gnu_ld" = yes; then
13389 need_lib_prefix=no
13390 fi
13391 need_version=yes
13392 ;;
13393
13394 sysv4 | sysv4.3*)
13395 version_type=linux
13396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13397 soname_spec='${libname}${release}${shared_ext}$major'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 case $host_vendor in
13400 sni)
13401 shlibpath_overrides_runpath=no
13402 need_lib_prefix=no
13403 export_dynamic_flag_spec='${wl}-Blargedynsym'
13404 runpath_var=LD_RUN_PATH
13405 ;;
13406 siemens)
13407 need_lib_prefix=no
13408 ;;
13409 motorola)
13410 need_lib_prefix=no
13411 need_version=no
13412 shlibpath_overrides_runpath=no
13413 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13414 ;;
13415 esac
13416 ;;
13417
13418 sysv4*MP*)
13419 if test -d /usr/nec ;then
13420 version_type=linux
13421 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13422 soname_spec='$libname${shared_ext}.$major'
13423 shlibpath_var=LD_LIBRARY_PATH
13424 fi
13425 ;;
13426
13427 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13428 version_type=freebsd-elf
13429 need_lib_prefix=no
13430 need_version=no
13431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13432 soname_spec='${libname}${release}${shared_ext}$major'
13433 shlibpath_var=LD_LIBRARY_PATH
13434 hardcode_into_libs=yes
13435 if test "$with_gnu_ld" = yes; then
13436 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13437 shlibpath_overrides_runpath=no
13438 else
13439 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13440 shlibpath_overrides_runpath=yes
13441 case $host_os in
13442 sco3.2v5*)
13443 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13444 ;;
13445 esac
13446 fi
13447 sys_lib_dlsearch_path_spec='/usr/lib'
13448 ;;
13449
13450 uts4*)
13451 version_type=linux
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 ;;
13456
13457 *)
13458 dynamic_linker=no
13459 ;;
13460 esac
13461 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13462 echo "${ECHO_T}$dynamic_linker" >&6; }
13463 test "$dynamic_linker" = no && can_build_shared=no
13464
13465 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13469 fi
13470
13471 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13472 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 else
13475 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13476 fi
13477
13478 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13479
13480 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13481 if test "$GCC" = yes; then
13482 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13483 fi
13484
13485 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13486 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13487 hardcode_action_CXX=
13488 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13489 test -n "$runpath_var_CXX" || \
13490 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13491
13492 # We can hardcode non-existant directories.
13493 if test "$hardcode_direct_CXX" != no &&
13494 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13495 # have to relink, otherwise we might link with an installed library
13496 # when we should be linking with a yet-to-be-installed one
13497 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13498 test "$hardcode_minus_L_CXX" != no; then
13499 # Linking always hardcodes the temporary library directory.
13500 hardcode_action_CXX=relink
13501 else
13502 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13503 hardcode_action_CXX=immediate
13504 fi
13505 else
13506 # We cannot hardcode anything, or else we can only hardcode existing
13507 # directories.
13508 hardcode_action_CXX=unsupported
13509 fi
13510 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13511 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13512
13513 if test "$hardcode_action_CXX" = relink; then
13514 # Fast installation is not supported
13515 enable_fast_install=no
13516 elif test "$shlibpath_overrides_runpath" = yes ||
13517 test "$enable_shared" = no; then
13518 # Fast installation is not necessary
13519 enable_fast_install=needless
13520 fi
13521
13522
13523 # The else clause should only fire when bootstrapping the
13524 # libtool distribution, otherwise you forgot to ship ltmain.sh
13525 # with your package, and you will get complaints that there are
13526 # no rules to generate ltmain.sh.
13527 if test -f "$ltmain"; then
13528 # See if we are running on zsh, and set the options which allow our commands through
13529 # without removal of \ escapes.
13530 if test -n "${ZSH_VERSION+set}" ; then
13531 setopt NO_GLOB_SUBST
13532 fi
13533 # Now quote all the things that may contain metacharacters while being
13534 # careful not to overquote the AC_SUBSTed values. We take copies of the
13535 # variables and quote the copies for generation of the libtool script.
13536 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13537 SED SHELL STRIP \
13538 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13539 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13540 deplibs_check_method reload_flag reload_cmds need_locks \
13541 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13542 lt_cv_sys_global_symbol_to_c_name_address \
13543 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13544 old_postinstall_cmds old_postuninstall_cmds \
13545 compiler_CXX \
13546 CC_CXX \
13547 LD_CXX \
13548 lt_prog_compiler_wl_CXX \
13549 lt_prog_compiler_pic_CXX \
13550 lt_prog_compiler_static_CXX \
13551 lt_prog_compiler_no_builtin_flag_CXX \
13552 export_dynamic_flag_spec_CXX \
13553 thread_safe_flag_spec_CXX \
13554 whole_archive_flag_spec_CXX \
13555 enable_shared_with_static_runtimes_CXX \
13556 old_archive_cmds_CXX \
13557 old_archive_from_new_cmds_CXX \
13558 predep_objects_CXX \
13559 postdep_objects_CXX \
13560 predeps_CXX \
13561 postdeps_CXX \
13562 compiler_lib_search_path_CXX \
13563 compiler_lib_search_dirs_CXX \
13564 archive_cmds_CXX \
13565 archive_expsym_cmds_CXX \
13566 postinstall_cmds_CXX \
13567 postuninstall_cmds_CXX \
13568 old_archive_from_expsyms_cmds_CXX \
13569 allow_undefined_flag_CXX \
13570 no_undefined_flag_CXX \
13571 export_symbols_cmds_CXX \
13572 hardcode_libdir_flag_spec_CXX \
13573 hardcode_libdir_flag_spec_ld_CXX \
13574 hardcode_libdir_separator_CXX \
13575 hardcode_automatic_CXX \
13576 module_cmds_CXX \
13577 module_expsym_cmds_CXX \
13578 lt_cv_prog_compiler_c_o_CXX \
13579 fix_srcfile_path_CXX \
13580 exclude_expsyms_CXX \
13581 include_expsyms_CXX; do
13582
13583 case $var in
13584 old_archive_cmds_CXX | \
13585 old_archive_from_new_cmds_CXX | \
13586 archive_cmds_CXX | \
13587 archive_expsym_cmds_CXX | \
13588 module_cmds_CXX | \
13589 module_expsym_cmds_CXX | \
13590 old_archive_from_expsyms_cmds_CXX | \
13591 export_symbols_cmds_CXX | \
13592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13593 postinstall_cmds | postuninstall_cmds | \
13594 old_postinstall_cmds | old_postuninstall_cmds | \
13595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13596 # Double-quote double-evaled strings.
13597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13598 ;;
13599 *)
13600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13601 ;;
13602 esac
13603 done
13604
13605 case $lt_echo in
13606 *'\$0 --fallback-echo"')
13607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13608 ;;
13609 esac
13610
13611 cfgfile="$ofile"
13612
13613 cat <<__EOF__ >> "$cfgfile"
13614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13615
13616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13617
13618 # Shell to use when invoking shell scripts.
13619 SHELL=$lt_SHELL
13620
13621 # Whether or not to build shared libraries.
13622 build_libtool_libs=$enable_shared
13623
13624 # Whether or not to build static libraries.
13625 build_old_libs=$enable_static
13626
13627 # Whether or not to add -lc for building shared libraries.
13628 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13629
13630 # Whether or not to disallow shared libs when runtime libs are static
13631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13632
13633 # Whether or not to optimize for fast installation.
13634 fast_install=$enable_fast_install
13635
13636 # The host system.
13637 host_alias=$host_alias
13638 host=$host
13639 host_os=$host_os
13640
13641 # The build system.
13642 build_alias=$build_alias
13643 build=$build
13644 build_os=$build_os
13645
13646 # An echo program that does not interpret backslashes.
13647 echo=$lt_echo
13648
13649 # The archiver.
13650 AR=$lt_AR
13651 AR_FLAGS=$lt_AR_FLAGS
13652
13653 # A C compiler.
13654 LTCC=$lt_LTCC
13655
13656 # LTCC compiler flags.
13657 LTCFLAGS=$lt_LTCFLAGS
13658
13659 # A language-specific compiler.
13660 CC=$lt_compiler_CXX
13661
13662 # Is the compiler the GNU C compiler?
13663 with_gcc=$GCC_CXX
13664
13665 # An ERE matcher.
13666 EGREP=$lt_EGREP
13667
13668 # The linker used to build libraries.
13669 LD=$lt_LD_CXX
13670
13671 # Whether we need hard or soft links.
13672 LN_S=$lt_LN_S
13673
13674 # A BSD-compatible nm program.
13675 NM=$lt_NM
13676
13677 # A symbol stripping program
13678 STRIP=$lt_STRIP
13679
13680 # Used to examine libraries when file_magic_cmd begins "file"
13681 MAGIC_CMD=$MAGIC_CMD
13682
13683 # Used on cygwin: DLL creation program.
13684 DLLTOOL="$DLLTOOL"
13685
13686 # Used on cygwin: object dumper.
13687 OBJDUMP="$OBJDUMP"
13688
13689 # Used on cygwin: assembler.
13690 AS="$AS"
13691
13692 # The name of the directory that contains temporary libtool files.
13693 objdir=$objdir
13694
13695 # How to create reloadable object files.
13696 reload_flag=$lt_reload_flag
13697 reload_cmds=$lt_reload_cmds
13698
13699 # How to pass a linker flag through the compiler.
13700 wl=$lt_lt_prog_compiler_wl_CXX
13701
13702 # Object file suffix (normally "o").
13703 objext="$ac_objext"
13704
13705 # Old archive suffix (normally "a").
13706 libext="$libext"
13707
13708 # Shared library suffix (normally ".so").
13709 shrext_cmds='$shrext_cmds'
13710
13711 # Executable file suffix (normally "").
13712 exeext="$exeext"
13713
13714 # Additional compiler flags for building library objects.
13715 pic_flag=$lt_lt_prog_compiler_pic_CXX
13716 pic_mode=$pic_mode
13717
13718 # What is the maximum length of a command?
13719 max_cmd_len=$lt_cv_sys_max_cmd_len
13720
13721 # Does compiler simultaneously support -c and -o options?
13722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13723
13724 # Must we lock files when doing compilation?
13725 need_locks=$lt_need_locks
13726
13727 # Do we need the lib prefix for modules?
13728 need_lib_prefix=$need_lib_prefix
13729
13730 # Do we need a version for libraries?
13731 need_version=$need_version
13732
13733 # Whether dlopen is supported.
13734 dlopen_support=$enable_dlopen
13735
13736 # Whether dlopen of programs is supported.
13737 dlopen_self=$enable_dlopen_self
13738
13739 # Whether dlopen of statically linked programs is supported.
13740 dlopen_self_static=$enable_dlopen_self_static
13741
13742 # Compiler flag to prevent dynamic linking.
13743 link_static_flag=$lt_lt_prog_compiler_static_CXX
13744
13745 # Compiler flag to turn off builtin functions.
13746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13747
13748 # Compiler flag to allow reflexive dlopens.
13749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13750
13751 # Compiler flag to generate shared objects directly from archives.
13752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13753
13754 # Compiler flag to generate thread-safe objects.
13755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13756
13757 # Library versioning type.
13758 version_type=$version_type
13759
13760 # Format of library name prefix.
13761 libname_spec=$lt_libname_spec
13762
13763 # List of archive names. First name is the real one, the rest are links.
13764 # The last name is the one that the linker finds with -lNAME.
13765 library_names_spec=$lt_library_names_spec
13766
13767 # The coded name of the library, if different from the real name.
13768 soname_spec=$lt_soname_spec
13769
13770 # Commands used to build and install an old-style archive.
13771 RANLIB=$lt_RANLIB
13772 old_archive_cmds=$lt_old_archive_cmds_CXX
13773 old_postinstall_cmds=$lt_old_postinstall_cmds
13774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13775
13776 # Create an old-style archive from a shared archive.
13777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13778
13779 # Create a temporary old-style archive to link instead of a shared archive.
13780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13781
13782 # Commands used to build and install a shared archive.
13783 archive_cmds=$lt_archive_cmds_CXX
13784 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13785 postinstall_cmds=$lt_postinstall_cmds
13786 postuninstall_cmds=$lt_postuninstall_cmds
13787
13788 # Commands used to build a loadable module (assumed same as above if empty)
13789 module_cmds=$lt_module_cmds_CXX
13790 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13791
13792 # Commands to strip libraries.
13793 old_striplib=$lt_old_striplib
13794 striplib=$lt_striplib
13795
13796 # Dependencies to place before the objects being linked to create a
13797 # shared library.
13798 predep_objects=$lt_predep_objects_CXX
13799
13800 # Dependencies to place after the objects being linked to create a
13801 # shared library.
13802 postdep_objects=$lt_postdep_objects_CXX
13803
13804 # Dependencies to place before the objects being linked to create a
13805 # shared library.
13806 predeps=$lt_predeps_CXX
13807
13808 # Dependencies to place after the objects being linked to create a
13809 # shared library.
13810 postdeps=$lt_postdeps_CXX
13811
13812 # The directories searched by this compiler when creating a shared
13813 # library
13814 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13815
13816 # The library search path used internally by the compiler when linking
13817 # a shared library.
13818 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13819
13820 # Method to check whether dependent libraries are shared objects.
13821 deplibs_check_method=$lt_deplibs_check_method
13822
13823 # Command to use when deplibs_check_method == file_magic.
13824 file_magic_cmd=$lt_file_magic_cmd
13825
13826 # Flag that allows shared libraries with undefined symbols to be built.
13827 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13828
13829 # Flag that forces no undefined symbols.
13830 no_undefined_flag=$lt_no_undefined_flag_CXX
13831
13832 # Commands used to finish a libtool library installation in a directory.
13833 finish_cmds=$lt_finish_cmds
13834
13835 # Same as above, but a single script fragment to be evaled but not shown.
13836 finish_eval=$lt_finish_eval
13837
13838 # Take the output of nm and produce a listing of raw symbols and C names.
13839 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13840
13841 # Transform the output of nm in a proper C declaration
13842 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13843
13844 # Transform the output of nm in a C name address pair
13845 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13846
13847 # This is the shared library runtime path variable.
13848 runpath_var=$runpath_var
13849
13850 # This is the shared library path variable.
13851 shlibpath_var=$shlibpath_var
13852
13853 # Is shlibpath searched before the hard-coded library search path?
13854 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13855
13856 # How to hardcode a shared library path into an executable.
13857 hardcode_action=$hardcode_action_CXX
13858
13859 # Whether we should hardcode library paths into libraries.
13860 hardcode_into_libs=$hardcode_into_libs
13861
13862 # Flag to hardcode \$libdir into a binary during linking.
13863 # This must work even if \$libdir does not exist.
13864 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13865
13866 # If ld is used when linking, flag to hardcode \$libdir into
13867 # a binary during linking. This must work even if \$libdir does
13868 # not exist.
13869 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13870
13871 # Whether we need a single -rpath flag with a separated argument.
13872 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13873
13874 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13875 # resulting binary.
13876 hardcode_direct=$hardcode_direct_CXX
13877
13878 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13879 # resulting binary.
13880 hardcode_minus_L=$hardcode_minus_L_CXX
13881
13882 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13883 # the resulting binary.
13884 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13885
13886 # Set to yes if building a shared library automatically hardcodes DIR into the library
13887 # and all subsequent libraries and executables linked against it.
13888 hardcode_automatic=$hardcode_automatic_CXX
13889
13890 # Variables whose values should be saved in libtool wrapper scripts and
13891 # restored at relink time.
13892 variables_saved_for_relink="$variables_saved_for_relink"
13893
13894 # Whether libtool must link a program against all its dependency libraries.
13895 link_all_deplibs=$link_all_deplibs_CXX
13896
13897 # Compile-time system search path for libraries
13898 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13899
13900 # Run-time system search path for libraries
13901 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13902
13903 # Fix the shell variable \$srcfile for the compiler.
13904 fix_srcfile_path=$lt_fix_srcfile_path
13905
13906 # Set to yes if exported symbols are required.
13907 always_export_symbols=$always_export_symbols_CXX
13908
13909 # The commands to list exported symbols.
13910 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13911
13912 # The commands to extract the exported symbol list from a shared archive.
13913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13914
13915 # Symbols that should not be listed in the preloaded symbols.
13916 exclude_expsyms=$lt_exclude_expsyms_CXX
13917
13918 # Symbols that must always be exported.
13919 include_expsyms=$lt_include_expsyms_CXX
13920
13921 # ### END LIBTOOL TAG CONFIG: $tagname
13922
13923 __EOF__
13924
13925
13926 else
13927 # If there is no Makefile yet, we rely on a make rule to execute
13928 # `config.status --recheck' to rerun these tests and create the
13929 # libtool script then.
13930 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13931 if test -f "$ltmain_in"; then
13932 test -f Makefile && make "$ltmain"
13933 fi
13934 fi
13935
13936
13937 ac_ext=c
13938 ac_cpp='$CPP $CPPFLAGS'
13939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13942
13943 CC=$lt_save_CC
13944 LDCXX=$LD
13945 LD=$lt_save_LD
13946 GCC=$lt_save_GCC
13947 with_gnu_ldcxx=$with_gnu_ld
13948 with_gnu_ld=$lt_save_with_gnu_ld
13949 lt_cv_path_LDCXX=$lt_cv_path_LD
13950 lt_cv_path_LD=$lt_save_path_LD
13951 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13952 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13953
13954 else
13955 tagname=""
13956 fi
13957 ;;
13958
13959 F77)
13960 if test -n "$F77" && test "X$F77" != "Xno"; then
13961
13962 ac_ext=f
13963 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13964 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13965 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13966
13967
13968 archive_cmds_need_lc_F77=no
13969 allow_undefined_flag_F77=
13970 always_export_symbols_F77=no
13971 archive_expsym_cmds_F77=
13972 export_dynamic_flag_spec_F77=
13973 hardcode_direct_F77=no
13974 hardcode_libdir_flag_spec_F77=
13975 hardcode_libdir_flag_spec_ld_F77=
13976 hardcode_libdir_separator_F77=
13977 hardcode_minus_L_F77=no
13978 hardcode_automatic_F77=no
13979 module_cmds_F77=
13980 module_expsym_cmds_F77=
13981 link_all_deplibs_F77=unknown
13982 old_archive_cmds_F77=$old_archive_cmds
13983 no_undefined_flag_F77=
13984 whole_archive_flag_spec_F77=
13985 enable_shared_with_static_runtimes_F77=no
13986
13987 # Source file extension for f77 test sources.
13988 ac_ext=f
13989
13990 # Object file extension for compiled f77 test sources.
13991 objext=o
13992 objext_F77=$objext
13993
13994 # Code to be used in simple compile tests
13995 lt_simple_compile_test_code="\
13996 subroutine t
13997 return
13998 end
13999 "
14000
14001 # Code to be used in simple link tests
14002 lt_simple_link_test_code="\
14003 program t
14004 end
14005 "
14006
14007 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14008
14009 # If no C compiler was specified, use CC.
14010 LTCC=${LTCC-"$CC"}
14011
14012 # If no C compiler flags were specified, use CFLAGS.
14013 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14014
14015 # Allow CC to be a program name with arguments.
14016 compiler=$CC
14017
14018
14019 # save warnings/boilerplate of simple test code
14020 ac_outfile=conftest.$ac_objext
14021 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14022 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14023 _lt_compiler_boilerplate=`cat conftest.err`
14024 $rm conftest*
14025
14026 ac_outfile=conftest.$ac_objext
14027 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14028 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14029 _lt_linker_boilerplate=`cat conftest.err`
14030 $rm -r conftest*
14031
14032
14033 # Allow CC to be a program name with arguments.
14034 lt_save_CC="$CC"
14035 CC=${F77-"f77"}
14036 compiler=$CC
14037 compiler_F77=$CC
14038 for cc_temp in $compiler""; do
14039 case $cc_temp in
14040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14042 \-*) ;;
14043 *) break;;
14044 esac
14045 done
14046 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14047
14048
14049 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14050 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14051 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14052 echo "${ECHO_T}$can_build_shared" >&6; }
14053
14054 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14055 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14056 test "$can_build_shared" = "no" && enable_shared=no
14057
14058 # On AIX, shared libraries and static libraries use the same namespace, and
14059 # are all built from PIC.
14060 case $host_os in
14061 aix3*)
14062 test "$enable_shared" = yes && enable_static=no
14063 if test -n "$RANLIB"; then
14064 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14065 postinstall_cmds='$RANLIB $lib'
14066 fi
14067 ;;
14068 aix[4-9]*)
14069 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14070 test "$enable_shared" = yes && enable_static=no
14071 fi
14072 ;;
14073 esac
14074 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14075 echo "${ECHO_T}$enable_shared" >&6; }
14076
14077 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14078 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14079 # Make sure either enable_shared or enable_static is yes.
14080 test "$enable_shared" = yes || enable_static=yes
14081 { echo "$as_me:$LINENO: result: $enable_static" >&5
14082 echo "${ECHO_T}$enable_static" >&6; }
14083
14084 GCC_F77="$G77"
14085 LD_F77="$LD"
14086
14087 lt_prog_compiler_wl_F77=
14088 lt_prog_compiler_pic_F77=
14089 lt_prog_compiler_static_F77=
14090
14091 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14092 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14093
14094 if test "$GCC" = yes; then
14095 lt_prog_compiler_wl_F77='-Wl,'
14096 lt_prog_compiler_static_F77='-static'
14097
14098 case $host_os in
14099 aix*)
14100 # All AIX code is PIC.
14101 if test "$host_cpu" = ia64; then
14102 # AIX 5 now supports IA64 processor
14103 lt_prog_compiler_static_F77='-Bstatic'
14104 fi
14105 ;;
14106
14107 amigaos*)
14108 # FIXME: we need at least 68020 code to build shared libraries, but
14109 # adding the `-m68020' flag to GCC prevents building anything better,
14110 # like `-m68040'.
14111 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14112 ;;
14113
14114 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14115 # PIC is the default for these OSes.
14116 ;;
14117
14118 mingw* | cygwin* | pw32* | os2*)
14119 # This hack is so that the source file can tell whether it is being
14120 # built for inclusion in a dll (and should export symbols for example).
14121 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14122 # (--disable-auto-import) libraries
14123 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14124 ;;
14125
14126 darwin* | rhapsody*)
14127 # PIC is the default on this platform
14128 # Common symbols not allowed in MH_DYLIB files
14129 lt_prog_compiler_pic_F77='-fno-common'
14130 ;;
14131
14132 interix[3-9]*)
14133 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14134 # Instead, we relocate shared libraries at runtime.
14135 ;;
14136
14137 msdosdjgpp*)
14138 # Just because we use GCC doesn't mean we suddenly get shared libraries
14139 # on systems that don't support them.
14140 lt_prog_compiler_can_build_shared_F77=no
14141 enable_shared=no
14142 ;;
14143
14144 sysv4*MP*)
14145 if test -d /usr/nec; then
14146 lt_prog_compiler_pic_F77=-Kconform_pic
14147 fi
14148 ;;
14149
14150 hpux*)
14151 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14152 # not for PA HP-UX.
14153 case $host_cpu in
14154 hppa*64*|ia64*)
14155 # +Z the default
14156 ;;
14157 *)
14158 lt_prog_compiler_pic_F77='-fPIC'
14159 ;;
14160 esac
14161 ;;
14162
14163 *)
14164 lt_prog_compiler_pic_F77='-fPIC'
14165 ;;
14166 esac
14167 else
14168 # PORTME Check for flag to pass linker flags through the system compiler.
14169 case $host_os in
14170 aix*)
14171 lt_prog_compiler_wl_F77='-Wl,'
14172 if test "$host_cpu" = ia64; then
14173 # AIX 5 now supports IA64 processor
14174 lt_prog_compiler_static_F77='-Bstatic'
14175 else
14176 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14177 fi
14178 ;;
14179 darwin*)
14180 # PIC is the default on this platform
14181 # Common symbols not allowed in MH_DYLIB files
14182 case $cc_basename in
14183 xlc*)
14184 lt_prog_compiler_pic_F77='-qnocommon'
14185 lt_prog_compiler_wl_F77='-Wl,'
14186 ;;
14187 esac
14188 ;;
14189
14190 mingw* | cygwin* | pw32* | os2*)
14191 # This hack is so that the source file can tell whether it is being
14192 # built for inclusion in a dll (and should export symbols for example).
14193 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14194 ;;
14195
14196 hpux9* | hpux10* | hpux11*)
14197 lt_prog_compiler_wl_F77='-Wl,'
14198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14199 # not for PA HP-UX.
14200 case $host_cpu in
14201 hppa*64*|ia64*)
14202 # +Z the default
14203 ;;
14204 *)
14205 lt_prog_compiler_pic_F77='+Z'
14206 ;;
14207 esac
14208 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14209 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14210 ;;
14211
14212 irix5* | irix6* | nonstopux*)
14213 lt_prog_compiler_wl_F77='-Wl,'
14214 # PIC (with -KPIC) is the default.
14215 lt_prog_compiler_static_F77='-non_shared'
14216 ;;
14217
14218 newsos6)
14219 lt_prog_compiler_pic_F77='-KPIC'
14220 lt_prog_compiler_static_F77='-Bstatic'
14221 ;;
14222
14223 linux* | k*bsd*-gnu)
14224 case $cc_basename in
14225 icc* | ecc*)
14226 lt_prog_compiler_wl_F77='-Wl,'
14227 lt_prog_compiler_pic_F77='-KPIC'
14228 lt_prog_compiler_static_F77='-static'
14229 ;;
14230 pgcc* | pgf77* | pgf90* | pgf95*)
14231 # Portland Group compilers (*not* the Pentium gcc compiler,
14232 # which looks to be a dead project)
14233 lt_prog_compiler_wl_F77='-Wl,'
14234 lt_prog_compiler_pic_F77='-fpic'
14235 lt_prog_compiler_static_F77='-Bstatic'
14236 ;;
14237 ccc*)
14238 lt_prog_compiler_wl_F77='-Wl,'
14239 # All Alpha code is PIC.
14240 lt_prog_compiler_static_F77='-non_shared'
14241 ;;
14242 *)
14243 case `$CC -V 2>&1 | sed 5q` in
14244 *Sun\ C*)
14245 # Sun C 5.9
14246 lt_prog_compiler_pic_F77='-KPIC'
14247 lt_prog_compiler_static_F77='-Bstatic'
14248 lt_prog_compiler_wl_F77='-Wl,'
14249 ;;
14250 *Sun\ F*)
14251 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14252 lt_prog_compiler_pic_F77='-KPIC'
14253 lt_prog_compiler_static_F77='-Bstatic'
14254 lt_prog_compiler_wl_F77=''
14255 ;;
14256 esac
14257 ;;
14258 esac
14259 ;;
14260
14261 osf3* | osf4* | osf5*)
14262 lt_prog_compiler_wl_F77='-Wl,'
14263 # All OSF/1 code is PIC.
14264 lt_prog_compiler_static_F77='-non_shared'
14265 ;;
14266
14267 rdos*)
14268 lt_prog_compiler_static_F77='-non_shared'
14269 ;;
14270
14271 solaris*)
14272 lt_prog_compiler_pic_F77='-KPIC'
14273 lt_prog_compiler_static_F77='-Bstatic'
14274 case $cc_basename in
14275 f77* | f90* | f95*)
14276 lt_prog_compiler_wl_F77='-Qoption ld ';;
14277 *)
14278 lt_prog_compiler_wl_F77='-Wl,';;
14279 esac
14280 ;;
14281
14282 sunos4*)
14283 lt_prog_compiler_wl_F77='-Qoption ld '
14284 lt_prog_compiler_pic_F77='-PIC'
14285 lt_prog_compiler_static_F77='-Bstatic'
14286 ;;
14287
14288 sysv4 | sysv4.2uw2* | sysv4.3*)
14289 lt_prog_compiler_wl_F77='-Wl,'
14290 lt_prog_compiler_pic_F77='-KPIC'
14291 lt_prog_compiler_static_F77='-Bstatic'
14292 ;;
14293
14294 sysv4*MP*)
14295 if test -d /usr/nec ;then
14296 lt_prog_compiler_pic_F77='-Kconform_pic'
14297 lt_prog_compiler_static_F77='-Bstatic'
14298 fi
14299 ;;
14300
14301 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14302 lt_prog_compiler_wl_F77='-Wl,'
14303 lt_prog_compiler_pic_F77='-KPIC'
14304 lt_prog_compiler_static_F77='-Bstatic'
14305 ;;
14306
14307 unicos*)
14308 lt_prog_compiler_wl_F77='-Wl,'
14309 lt_prog_compiler_can_build_shared_F77=no
14310 ;;
14311
14312 uts4*)
14313 lt_prog_compiler_pic_F77='-pic'
14314 lt_prog_compiler_static_F77='-Bstatic'
14315 ;;
14316
14317 *)
14318 lt_prog_compiler_can_build_shared_F77=no
14319 ;;
14320 esac
14321 fi
14322
14323 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14324 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14325
14326 #
14327 # Check to make sure the PIC flag actually works.
14328 #
14329 if test -n "$lt_prog_compiler_pic_F77"; then
14330
14331 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14332 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14333 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14335 else
14336 lt_cv_prog_compiler_pic_works_F77=no
14337 ac_outfile=conftest.$ac_objext
14338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14339 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14340 # Insert the option either (1) after the last *FLAGS variable, or
14341 # (2) before a word containing "conftest.", or (3) at the end.
14342 # Note that $ac_compile itself does not contain backslashes and begins
14343 # with a dollar sign (not a hyphen), so the echo should work correctly.
14344 # The option is referenced via a variable to avoid confusing sed.
14345 lt_compile=`echo "$ac_compile" | $SED \
14346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14348 -e 's:$: $lt_compiler_flag:'`
14349 (eval echo "\"\$as_me:14350: $lt_compile\"" >&5)
14350 (eval "$lt_compile" 2>conftest.err)
14351 ac_status=$?
14352 cat conftest.err >&5
14353 echo "$as_me:14354: \$? = $ac_status" >&5
14354 if (exit $ac_status) && test -s "$ac_outfile"; then
14355 # The compiler can only warn and ignore the option if not recognized
14356 # So say no if there are warnings other than the usual output.
14357 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14360 lt_cv_prog_compiler_pic_works_F77=yes
14361 fi
14362 fi
14363 $rm conftest*
14364
14365 fi
14366 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14367 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14368
14369 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14370 case $lt_prog_compiler_pic_F77 in
14371 "" | " "*) ;;
14372 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14373 esac
14374 else
14375 lt_prog_compiler_pic_F77=
14376 lt_prog_compiler_can_build_shared_F77=no
14377 fi
14378
14379 fi
14380 case $host_os in
14381 # For platforms which do not support PIC, -DPIC is meaningless:
14382 *djgpp*)
14383 lt_prog_compiler_pic_F77=
14384 ;;
14385 *)
14386 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14387 ;;
14388 esac
14389
14390 #
14391 # Check to make sure the static flag actually works.
14392 #
14393 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14394 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14395 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14396 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14398 else
14399 lt_cv_prog_compiler_static_works_F77=no
14400 save_LDFLAGS="$LDFLAGS"
14401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14404 # The linker can only warn and ignore the option if not recognized
14405 # So say no if there are warnings
14406 if test -s conftest.err; then
14407 # Append any errors to the config.log.
14408 cat conftest.err 1>&5
14409 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14411 if diff conftest.exp conftest.er2 >/dev/null; then
14412 lt_cv_prog_compiler_static_works_F77=yes
14413 fi
14414 else
14415 lt_cv_prog_compiler_static_works_F77=yes
14416 fi
14417 fi
14418 $rm -r conftest*
14419 LDFLAGS="$save_LDFLAGS"
14420
14421 fi
14422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14423 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14424
14425 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14426 :
14427 else
14428 lt_prog_compiler_static_F77=
14429 fi
14430
14431
14432 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14433 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14434 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 lt_cv_prog_compiler_c_o_F77=no
14438 $rm -r conftest 2>/dev/null
14439 mkdir conftest
14440 cd conftest
14441 mkdir out
14442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14443
14444 lt_compiler_flag="-o out/conftest2.$ac_objext"
14445 # Insert the option either (1) after the last *FLAGS variable, or
14446 # (2) before a word containing "conftest.", or (3) at the end.
14447 # Note that $ac_compile itself does not contain backslashes and begins
14448 # with a dollar sign (not a hyphen), so the echo should work correctly.
14449 lt_compile=`echo "$ac_compile" | $SED \
14450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14452 -e 's:$: $lt_compiler_flag:'`
14453 (eval echo "\"\$as_me:14454: $lt_compile\"" >&5)
14454 (eval "$lt_compile" 2>out/conftest.err)
14455 ac_status=$?
14456 cat out/conftest.err >&5
14457 echo "$as_me:14458: \$? = $ac_status" >&5
14458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14459 then
14460 # The compiler can only warn and ignore the option if not recognized
14461 # So say no if there are warnings
14462 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14465 lt_cv_prog_compiler_c_o_F77=yes
14466 fi
14467 fi
14468 chmod u+w . 2>&5
14469 $rm conftest*
14470 # SGI C++ compiler will create directory out/ii_files/ for
14471 # template instantiation
14472 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14473 $rm out/* && rmdir out
14474 cd ..
14475 rmdir conftest
14476 $rm conftest*
14477
14478 fi
14479 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14480 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14481
14482
14483 hard_links="nottested"
14484 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14485 # do not overwrite the value of need_locks provided by the user
14486 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14487 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14488 hard_links=yes
14489 $rm conftest*
14490 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14491 touch conftest.a
14492 ln conftest.a conftest.b 2>&5 || hard_links=no
14493 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14494 { echo "$as_me:$LINENO: result: $hard_links" >&5
14495 echo "${ECHO_T}$hard_links" >&6; }
14496 if test "$hard_links" = no; then
14497 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14498 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14499 need_locks=warn
14500 fi
14501 else
14502 need_locks=no
14503 fi
14504
14505 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14506 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14507
14508 runpath_var=
14509 allow_undefined_flag_F77=
14510 enable_shared_with_static_runtimes_F77=no
14511 archive_cmds_F77=
14512 archive_expsym_cmds_F77=
14513 old_archive_From_new_cmds_F77=
14514 old_archive_from_expsyms_cmds_F77=
14515 export_dynamic_flag_spec_F77=
14516 whole_archive_flag_spec_F77=
14517 thread_safe_flag_spec_F77=
14518 hardcode_libdir_flag_spec_F77=
14519 hardcode_libdir_flag_spec_ld_F77=
14520 hardcode_libdir_separator_F77=
14521 hardcode_direct_F77=no
14522 hardcode_minus_L_F77=no
14523 hardcode_shlibpath_var_F77=unsupported
14524 link_all_deplibs_F77=unknown
14525 hardcode_automatic_F77=no
14526 module_cmds_F77=
14527 module_expsym_cmds_F77=
14528 always_export_symbols_F77=no
14529 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14530 # include_expsyms should be a list of space-separated symbols to be *always*
14531 # included in the symbol list
14532 include_expsyms_F77=
14533 # exclude_expsyms can be an extended regexp of symbols to exclude
14534 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14535 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14536 # as well as any symbol that contains `d'.
14537 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14538 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14539 # platforms (ab)use it in PIC code, but their linkers get confused if
14540 # the symbol is explicitly referenced. Since portable code cannot
14541 # rely on this symbol name, it's probably fine to never include it in
14542 # preloaded symbol tables.
14543 # Exclude shared library initialization/finalization symbols.
14544 extract_expsyms_cmds=
14545 # Just being paranoid about ensuring that cc_basename is set.
14546 for cc_temp in $compiler""; do
14547 case $cc_temp in
14548 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14549 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14550 \-*) ;;
14551 *) break;;
14552 esac
14553 done
14554 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14555
14556 case $host_os in
14557 cygwin* | mingw* | pw32*)
14558 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14559 # When not using gcc, we currently assume that we are using
14560 # Microsoft Visual C++.
14561 if test "$GCC" != yes; then
14562 with_gnu_ld=no
14563 fi
14564 ;;
14565 interix*)
14566 # we just hope/assume this is gcc and not c89 (= MSVC++)
14567 with_gnu_ld=yes
14568 ;;
14569 openbsd*)
14570 with_gnu_ld=no
14571 ;;
14572 esac
14573
14574 ld_shlibs_F77=yes
14575 if test "$with_gnu_ld" = yes; then
14576 # If archive_cmds runs LD, not CC, wlarc should be empty
14577 wlarc='${wl}'
14578
14579 # Set some defaults for GNU ld with shared library support. These
14580 # are reset later if shared libraries are not supported. Putting them
14581 # here allows them to be overridden if necessary.
14582 runpath_var=LD_RUN_PATH
14583 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14584 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14585 # ancient GNU ld didn't support --whole-archive et. al.
14586 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14587 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14588 else
14589 whole_archive_flag_spec_F77=
14590 fi
14591 supports_anon_versioning=no
14592 case `$LD -v 2>/dev/null` in
14593 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14594 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14595 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14596 *\ 2.11.*) ;; # other 2.11 versions
14597 *) supports_anon_versioning=yes ;;
14598 esac
14599
14600 # See if GNU ld supports shared libraries.
14601 case $host_os in
14602 aix[3-9]*)
14603 # On AIX/PPC, the GNU linker is very broken
14604 if test "$host_cpu" != ia64; then
14605 ld_shlibs_F77=no
14606 cat <<EOF 1>&2
14607
14608 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14609 *** to be unable to reliably create shared libraries on AIX.
14610 *** Therefore, libtool is disabling shared libraries support. If you
14611 *** really care for shared libraries, you may want to modify your PATH
14612 *** so that a non-GNU linker is found, and then restart.
14613
14614 EOF
14615 fi
14616 ;;
14617
14618 amigaos*)
14619 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14620 hardcode_libdir_flag_spec_F77='-L$libdir'
14621 hardcode_minus_L_F77=yes
14622
14623 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14624 # that the semantics of dynamic libraries on AmigaOS, at least up
14625 # to version 4, is to share data among multiple programs linked
14626 # with the same dynamic library. Since this doesn't match the
14627 # behavior of shared libraries on other platforms, we can't use
14628 # them.
14629 ld_shlibs_F77=no
14630 ;;
14631
14632 beos*)
14633 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14634 allow_undefined_flag_F77=unsupported
14635 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14636 # support --undefined. This deserves some investigation. FIXME
14637 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14638 else
14639 ld_shlibs_F77=no
14640 fi
14641 ;;
14642
14643 cygwin* | mingw* | pw32*)
14644 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14645 # as there is no search path for DLLs.
14646 hardcode_libdir_flag_spec_F77='-L$libdir'
14647 allow_undefined_flag_F77=unsupported
14648 always_export_symbols_F77=no
14649 enable_shared_with_static_runtimes_F77=yes
14650 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14651
14652 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14653 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14654 # If the export-symbols file already is a .def file (1st line
14655 # is EXPORTS), use it as is; otherwise, prepend...
14656 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14657 cp $export_symbols $output_objdir/$soname.def;
14658 else
14659 echo EXPORTS > $output_objdir/$soname.def;
14660 cat $export_symbols >> $output_objdir/$soname.def;
14661 fi~
14662 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14663 else
14664 ld_shlibs_F77=no
14665 fi
14666 ;;
14667
14668 interix[3-9]*)
14669 hardcode_direct_F77=no
14670 hardcode_shlibpath_var_F77=no
14671 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14672 export_dynamic_flag_spec_F77='${wl}-E'
14673 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14674 # Instead, shared libraries are loaded at an image base (0x10000000 by
14675 # default) and relocated if they conflict, which is a slow very memory
14676 # consuming and fragmenting process. To avoid this, we pick a random,
14677 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14678 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14679 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14680 archive_expsym_cmds_F77='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'
14681 ;;
14682
14683 gnu* | linux* | k*bsd*-gnu)
14684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14685 tmp_addflag=
14686 case $cc_basename,$host_cpu in
14687 pgcc*) # Portland Group C compiler
14688 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14689 tmp_addflag=' $pic_flag'
14690 ;;
14691 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14692 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14693 tmp_addflag=' $pic_flag -Mnomain' ;;
14694 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14695 tmp_addflag=' -i_dynamic' ;;
14696 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14697 tmp_addflag=' -i_dynamic -nofor_main' ;;
14698 ifc* | ifort*) # Intel Fortran compiler
14699 tmp_addflag=' -nofor_main' ;;
14700 esac
14701 case `$CC -V 2>&1 | sed 5q` in
14702 *Sun\ C*) # Sun C 5.9
14703 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14704 tmp_sharedflag='-G' ;;
14705 *Sun\ F*) # Sun Fortran 8.3
14706 tmp_sharedflag='-G' ;;
14707 *)
14708 tmp_sharedflag='-shared' ;;
14709 esac
14710 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14711
14712 if test $supports_anon_versioning = yes; then
14713 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14714 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14715 $echo "local: *; };" >> $output_objdir/$libname.ver~
14716 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14717 fi
14718 link_all_deplibs_F77=no
14719 else
14720 ld_shlibs_F77=no
14721 fi
14722 ;;
14723
14724 netbsd* | netbsdelf*-gnu)
14725 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14726 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14727 wlarc=
14728 else
14729 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14730 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14731 fi
14732 ;;
14733
14734 solaris*)
14735 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14736 ld_shlibs_F77=no
14737 cat <<EOF 1>&2
14738
14739 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14740 *** create shared libraries on Solaris systems. Therefore, libtool
14741 *** is disabling shared libraries support. We urge you to upgrade GNU
14742 *** binutils to release 2.9.1 or newer. Another option is to modify
14743 *** your PATH or compiler configuration so that the native linker is
14744 *** used, and then restart.
14745
14746 EOF
14747 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14748 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14749 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14750 else
14751 ld_shlibs_F77=no
14752 fi
14753 ;;
14754
14755 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14756 case `$LD -v 2>&1` in
14757 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14758 ld_shlibs_F77=no
14759 cat <<_LT_EOF 1>&2
14760
14761 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14762 *** reliably create shared libraries on SCO systems. Therefore, libtool
14763 *** is disabling shared libraries support. We urge you to upgrade GNU
14764 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14765 *** your PATH or compiler configuration so that the native linker is
14766 *** used, and then restart.
14767
14768 _LT_EOF
14769 ;;
14770 *)
14771 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14772 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14773 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14774 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14775 else
14776 ld_shlibs_F77=no
14777 fi
14778 ;;
14779 esac
14780 ;;
14781
14782 sunos4*)
14783 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14784 wlarc=
14785 hardcode_direct_F77=yes
14786 hardcode_shlibpath_var_F77=no
14787 ;;
14788
14789 *)
14790 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14791 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14792 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14793 else
14794 ld_shlibs_F77=no
14795 fi
14796 ;;
14797 esac
14798
14799 if test "$ld_shlibs_F77" = no; then
14800 runpath_var=
14801 hardcode_libdir_flag_spec_F77=
14802 export_dynamic_flag_spec_F77=
14803 whole_archive_flag_spec_F77=
14804 fi
14805 else
14806 # PORTME fill in a description of your system's linker (not GNU ld)
14807 case $host_os in
14808 aix3*)
14809 allow_undefined_flag_F77=unsupported
14810 always_export_symbols_F77=yes
14811 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14812 # Note: this linker hardcodes the directories in LIBPATH if there
14813 # are no directories specified by -L.
14814 hardcode_minus_L_F77=yes
14815 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14816 # Neither direct hardcoding nor static linking is supported with a
14817 # broken collect2.
14818 hardcode_direct_F77=unsupported
14819 fi
14820 ;;
14821
14822 aix[4-9]*)
14823 if test "$host_cpu" = ia64; then
14824 # On IA64, the linker does run time linking by default, so we don't
14825 # have to do anything special.
14826 aix_use_runtimelinking=no
14827 exp_sym_flag='-Bexport'
14828 no_entry_flag=""
14829 else
14830 # If we're using GNU nm, then we don't want the "-C" option.
14831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14833 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14834 else
14835 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14836 fi
14837 aix_use_runtimelinking=no
14838
14839 # Test if we are trying to use run time linking or normal
14840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14841 # need to do runtime linking.
14842 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14843 for ld_flag in $LDFLAGS; do
14844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14845 aix_use_runtimelinking=yes
14846 break
14847 fi
14848 done
14849 ;;
14850 esac
14851
14852 exp_sym_flag='-bexport'
14853 no_entry_flag='-bnoentry'
14854 fi
14855
14856 # When large executables or shared objects are built, AIX ld can
14857 # have problems creating the table of contents. If linking a library
14858 # or program results in "error TOC overflow" add -mminimal-toc to
14859 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14860 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14861
14862 archive_cmds_F77=''
14863 hardcode_direct_F77=yes
14864 hardcode_libdir_separator_F77=':'
14865 link_all_deplibs_F77=yes
14866
14867 if test "$GCC" = yes; then
14868 case $host_os in aix4.[012]|aix4.[012].*)
14869 # We only want to do this on AIX 4.2 and lower, the check
14870 # below for broken collect2 doesn't work under 4.3+
14871 collect2name=`${CC} -print-prog-name=collect2`
14872 if test -f "$collect2name" && \
14873 strings "$collect2name" | grep resolve_lib_name >/dev/null
14874 then
14875 # We have reworked collect2
14876 :
14877 else
14878 # We have old collect2
14879 hardcode_direct_F77=unsupported
14880 # It fails to find uninstalled libraries when the uninstalled
14881 # path is not listed in the libpath. Setting hardcode_minus_L
14882 # to unsupported forces relinking
14883 hardcode_minus_L_F77=yes
14884 hardcode_libdir_flag_spec_F77='-L$libdir'
14885 hardcode_libdir_separator_F77=
14886 fi
14887 ;;
14888 esac
14889 shared_flag='-shared'
14890 if test "$aix_use_runtimelinking" = yes; then
14891 shared_flag="$shared_flag "'${wl}-G'
14892 fi
14893 else
14894 # not using gcc
14895 if test "$host_cpu" = ia64; then
14896 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14897 # chokes on -Wl,-G. The following line is correct:
14898 shared_flag='-G'
14899 else
14900 if test "$aix_use_runtimelinking" = yes; then
14901 shared_flag='${wl}-G'
14902 else
14903 shared_flag='${wl}-bM:SRE'
14904 fi
14905 fi
14906 fi
14907
14908 # It seems that -bexpall does not export symbols beginning with
14909 # underscore (_), so it is better to generate a list of symbols to export.
14910 always_export_symbols_F77=yes
14911 if test "$aix_use_runtimelinking" = yes; then
14912 # Warning - without using the other runtime loading flags (-brtl),
14913 # -berok will link without error, but may produce a broken library.
14914 allow_undefined_flag_F77='-berok'
14915 # Determine the default libpath from the value encoded in an empty executable.
14916 cat >conftest.$ac_ext <<_ACEOF
14917 program main
14918
14919 end
14920 _ACEOF
14921 rm -f conftest.$ac_objext conftest$ac_exeext
14922 if { (ac_try="$ac_link"
14923 case "(($ac_try" in
14924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14925 *) ac_try_echo=$ac_try;;
14926 esac
14927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14928 (eval "$ac_link") 2>conftest.er1
14929 ac_status=$?
14930 grep -v '^ *+' conftest.er1 >conftest.err
14931 rm -f conftest.er1
14932 cat conftest.err >&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); } && {
14935 test -z "$ac_f77_werror_flag" ||
14936 test ! -s conftest.err
14937 } && test -s conftest$ac_exeext &&
14938 $as_test_x conftest$ac_exeext; then
14939
14940 lt_aix_libpath_sed='
14941 /Import File Strings/,/^$/ {
14942 /^0/ {
14943 s/^0 *\(.*\)$/\1/
14944 p
14945 }
14946 }'
14947 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14948 # Check for a 64-bit object if we didn't find anything.
14949 if test -z "$aix_libpath"; then
14950 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14951 fi
14952 else
14953 echo "$as_me: failed program was:" >&5
14954 sed 's/^/| /' conftest.$ac_ext >&5
14955
14956
14957 fi
14958
14959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14960 conftest$ac_exeext conftest.$ac_ext
14961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14962
14963 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14964 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14965 else
14966 if test "$host_cpu" = ia64; then
14967 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14968 allow_undefined_flag_F77="-z nodefs"
14969 archive_expsym_cmds_F77="\$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"
14970 else
14971 # Determine the default libpath from the value encoded in an empty executable.
14972 cat >conftest.$ac_ext <<_ACEOF
14973 program main
14974
14975 end
14976 _ACEOF
14977 rm -f conftest.$ac_objext conftest$ac_exeext
14978 if { (ac_try="$ac_link"
14979 case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982 esac
14983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14984 (eval "$ac_link") 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } && {
14991 test -z "$ac_f77_werror_flag" ||
14992 test ! -s conftest.err
14993 } && test -s conftest$ac_exeext &&
14994 $as_test_x conftest$ac_exeext; then
14995
14996 lt_aix_libpath_sed='
14997 /Import File Strings/,/^$/ {
14998 /^0/ {
14999 s/^0 *\(.*\)$/\1/
15000 p
15001 }
15002 }'
15003 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15004 # Check for a 64-bit object if we didn't find anything.
15005 if test -z "$aix_libpath"; then
15006 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15007 fi
15008 else
15009 echo "$as_me: failed program was:" >&5
15010 sed 's/^/| /' conftest.$ac_ext >&5
15011
15012
15013 fi
15014
15015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15016 conftest$ac_exeext conftest.$ac_ext
15017 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15018
15019 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15020 # Warning - without using the other run time loading flags,
15021 # -berok will link without error, but may produce a broken library.
15022 no_undefined_flag_F77=' ${wl}-bernotok'
15023 allow_undefined_flag_F77=' ${wl}-berok'
15024 # Exported symbols can be pulled into shared objects from archives
15025 whole_archive_flag_spec_F77='$convenience'
15026 archive_cmds_need_lc_F77=yes
15027 # This is similar to how AIX traditionally builds its shared libraries.
15028 archive_expsym_cmds_F77="\$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'
15029 fi
15030 fi
15031 ;;
15032
15033 amigaos*)
15034 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15035 hardcode_libdir_flag_spec_F77='-L$libdir'
15036 hardcode_minus_L_F77=yes
15037 # see comment about different semantics on the GNU ld section
15038 ld_shlibs_F77=no
15039 ;;
15040
15041 bsdi[45]*)
15042 export_dynamic_flag_spec_F77=-rdynamic
15043 ;;
15044
15045 cygwin* | mingw* | pw32*)
15046 # When not using gcc, we currently assume that we are using
15047 # Microsoft Visual C++.
15048 # hardcode_libdir_flag_spec is actually meaningless, as there is
15049 # no search path for DLLs.
15050 hardcode_libdir_flag_spec_F77=' '
15051 allow_undefined_flag_F77=unsupported
15052 # Tell ltmain to make .lib files, not .a files.
15053 libext=lib
15054 # Tell ltmain to make .dll files, not .so files.
15055 shrext_cmds=".dll"
15056 # FIXME: Setting linknames here is a bad hack.
15057 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15058 # The linker will automatically build a .lib file if we build a DLL.
15059 old_archive_From_new_cmds_F77='true'
15060 # FIXME: Should let the user specify the lib program.
15061 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15062 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15063 enable_shared_with_static_runtimes_F77=yes
15064 ;;
15065
15066 darwin* | rhapsody*)
15067 case $host_os in
15068 rhapsody* | darwin1.[012])
15069 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15070 ;;
15071 *) # Darwin 1.3 on
15072 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15073 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15074 else
15075 case ${MACOSX_DEPLOYMENT_TARGET} in
15076 10.[012])
15077 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15078 ;;
15079 10.*)
15080 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15081 ;;
15082 esac
15083 fi
15084 ;;
15085 esac
15086 archive_cmds_need_lc_F77=no
15087 hardcode_direct_F77=no
15088 hardcode_automatic_F77=yes
15089 hardcode_shlibpath_var_F77=unsupported
15090 whole_archive_flag_spec_F77=''
15091 link_all_deplibs_F77=yes
15092 if test "$GCC" = yes ; then
15093 output_verbose_link_cmd='echo'
15094 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15095 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15096 archive_expsym_cmds_F77="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}"
15097 module_expsym_cmds_F77="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}"
15098 else
15099 case $cc_basename in
15100 xlc*)
15101 output_verbose_link_cmd='echo'
15102 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15103 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15104 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15105 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15106 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15107 ;;
15108 *)
15109 ld_shlibs_F77=no
15110 ;;
15111 esac
15112 fi
15113 ;;
15114
15115 dgux*)
15116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15117 hardcode_libdir_flag_spec_F77='-L$libdir'
15118 hardcode_shlibpath_var_F77=no
15119 ;;
15120
15121 freebsd1*)
15122 ld_shlibs_F77=no
15123 ;;
15124
15125 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15126 # support. Future versions do this automatically, but an explicit c++rt0.o
15127 # does not break anything, and helps significantly (at the cost of a little
15128 # extra space).
15129 freebsd2.2*)
15130 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15131 hardcode_libdir_flag_spec_F77='-R$libdir'
15132 hardcode_direct_F77=yes
15133 hardcode_shlibpath_var_F77=no
15134 ;;
15135
15136 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15137 freebsd2*)
15138 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15139 hardcode_direct_F77=yes
15140 hardcode_minus_L_F77=yes
15141 hardcode_shlibpath_var_F77=no
15142 ;;
15143
15144 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15145 freebsd* | dragonfly*)
15146 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15147 hardcode_libdir_flag_spec_F77='-R$libdir'
15148 hardcode_direct_F77=yes
15149 hardcode_shlibpath_var_F77=no
15150 ;;
15151
15152 hpux9*)
15153 if test "$GCC" = yes; then
15154 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15155 else
15156 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15157 fi
15158 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15159 hardcode_libdir_separator_F77=:
15160 hardcode_direct_F77=yes
15161
15162 # hardcode_minus_L: Not really in the search PATH,
15163 # but as the default location of the library.
15164 hardcode_minus_L_F77=yes
15165 export_dynamic_flag_spec_F77='${wl}-E'
15166 ;;
15167
15168 hpux10*)
15169 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15170 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15171 else
15172 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15173 fi
15174 if test "$with_gnu_ld" = no; then
15175 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15176 hardcode_libdir_separator_F77=:
15177
15178 hardcode_direct_F77=yes
15179 export_dynamic_flag_spec_F77='${wl}-E'
15180
15181 # hardcode_minus_L: Not really in the search PATH,
15182 # but as the default location of the library.
15183 hardcode_minus_L_F77=yes
15184 fi
15185 ;;
15186
15187 hpux11*)
15188 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15189 case $host_cpu in
15190 hppa*64*)
15191 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 ;;
15193 ia64*)
15194 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15195 ;;
15196 *)
15197 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15198 ;;
15199 esac
15200 else
15201 case $host_cpu in
15202 hppa*64*)
15203 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15204 ;;
15205 ia64*)
15206 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15207 ;;
15208 *)
15209 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15210 ;;
15211 esac
15212 fi
15213 if test "$with_gnu_ld" = no; then
15214 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15215 hardcode_libdir_separator_F77=:
15216
15217 case $host_cpu in
15218 hppa*64*|ia64*)
15219 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15220 hardcode_direct_F77=no
15221 hardcode_shlibpath_var_F77=no
15222 ;;
15223 *)
15224 hardcode_direct_F77=yes
15225 export_dynamic_flag_spec_F77='${wl}-E'
15226
15227 # hardcode_minus_L: Not really in the search PATH,
15228 # but as the default location of the library.
15229 hardcode_minus_L_F77=yes
15230 ;;
15231 esac
15232 fi
15233 ;;
15234
15235 irix5* | irix6* | nonstopux*)
15236 if test "$GCC" = yes; then
15237 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15238 else
15239 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15240 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15241 fi
15242 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15243 hardcode_libdir_separator_F77=:
15244 link_all_deplibs_F77=yes
15245 ;;
15246
15247 netbsd* | netbsdelf*-gnu)
15248 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15249 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15250 else
15251 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15252 fi
15253 hardcode_libdir_flag_spec_F77='-R$libdir'
15254 hardcode_direct_F77=yes
15255 hardcode_shlibpath_var_F77=no
15256 ;;
15257
15258 newsos6)
15259 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15260 hardcode_direct_F77=yes
15261 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15262 hardcode_libdir_separator_F77=:
15263 hardcode_shlibpath_var_F77=no
15264 ;;
15265
15266 openbsd*)
15267 if test -f /usr/libexec/ld.so; then
15268 hardcode_direct_F77=yes
15269 hardcode_shlibpath_var_F77=no
15270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15271 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15272 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15273 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15274 export_dynamic_flag_spec_F77='${wl}-E'
15275 else
15276 case $host_os in
15277 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15278 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15279 hardcode_libdir_flag_spec_F77='-R$libdir'
15280 ;;
15281 *)
15282 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15283 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15284 ;;
15285 esac
15286 fi
15287 else
15288 ld_shlibs_F77=no
15289 fi
15290 ;;
15291
15292 os2*)
15293 hardcode_libdir_flag_spec_F77='-L$libdir'
15294 hardcode_minus_L_F77=yes
15295 allow_undefined_flag_F77=unsupported
15296 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15297 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15298 ;;
15299
15300 osf3*)
15301 if test "$GCC" = yes; then
15302 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15303 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15304 else
15305 allow_undefined_flag_F77=' -expect_unresolved \*'
15306 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15307 fi
15308 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15309 hardcode_libdir_separator_F77=:
15310 ;;
15311
15312 osf4* | osf5*) # as osf3* with the addition of -msym flag
15313 if test "$GCC" = yes; then
15314 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15315 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15316 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15317 else
15318 allow_undefined_flag_F77=' -expect_unresolved \*'
15319 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15320 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15321 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15322
15323 # Both c and cxx compiler support -rpath directly
15324 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15325 fi
15326 hardcode_libdir_separator_F77=:
15327 ;;
15328
15329 solaris*)
15330 no_undefined_flag_F77=' -z text'
15331 if test "$GCC" = yes; then
15332 wlarc='${wl}'
15333 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15334 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15335 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15336 else
15337 wlarc=''
15338 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15339 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15340 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15341 fi
15342 hardcode_libdir_flag_spec_F77='-R$libdir'
15343 hardcode_shlibpath_var_F77=no
15344 case $host_os in
15345 solaris2.[0-5] | solaris2.[0-5].*) ;;
15346 *)
15347 # The compiler driver will combine and reorder linker options,
15348 # but understands `-z linker_flag'. GCC discards it without `$wl',
15349 # but is careful enough not to reorder.
15350 # Supported since Solaris 2.6 (maybe 2.5.1?)
15351 if test "$GCC" = yes; then
15352 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15353 else
15354 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15355 fi
15356 ;;
15357 esac
15358 link_all_deplibs_F77=yes
15359 ;;
15360
15361 sunos4*)
15362 if test "x$host_vendor" = xsequent; then
15363 # Use $CC to link under sequent, because it throws in some extra .o
15364 # files that make .init and .fini sections work.
15365 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15366 else
15367 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15368 fi
15369 hardcode_libdir_flag_spec_F77='-L$libdir'
15370 hardcode_direct_F77=yes
15371 hardcode_minus_L_F77=yes
15372 hardcode_shlibpath_var_F77=no
15373 ;;
15374
15375 sysv4)
15376 case $host_vendor in
15377 sni)
15378 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15379 hardcode_direct_F77=yes # is this really true???
15380 ;;
15381 siemens)
15382 ## LD is ld it makes a PLAMLIB
15383 ## CC just makes a GrossModule.
15384 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15385 reload_cmds_F77='$CC -r -o $output$reload_objs'
15386 hardcode_direct_F77=no
15387 ;;
15388 motorola)
15389 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15390 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15391 ;;
15392 esac
15393 runpath_var='LD_RUN_PATH'
15394 hardcode_shlibpath_var_F77=no
15395 ;;
15396
15397 sysv4.3*)
15398 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15399 hardcode_shlibpath_var_F77=no
15400 export_dynamic_flag_spec_F77='-Bexport'
15401 ;;
15402
15403 sysv4*MP*)
15404 if test -d /usr/nec; then
15405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_shlibpath_var_F77=no
15407 runpath_var=LD_RUN_PATH
15408 hardcode_runpath_var=yes
15409 ld_shlibs_F77=yes
15410 fi
15411 ;;
15412
15413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15414 no_undefined_flag_F77='${wl}-z,text'
15415 archive_cmds_need_lc_F77=no
15416 hardcode_shlibpath_var_F77=no
15417 runpath_var='LD_RUN_PATH'
15418
15419 if test "$GCC" = yes; then
15420 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15421 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15422 else
15423 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15424 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15425 fi
15426 ;;
15427
15428 sysv5* | sco3.2v5* | sco5v6*)
15429 # Note: We can NOT use -z defs as we might desire, because we do not
15430 # link with -lc, and that would cause any symbols used from libc to
15431 # always be unresolved, which means just about no library would
15432 # ever link correctly. If we're not using GNU ld we use -z text
15433 # though, which does catch some bad symbols but isn't as heavy-handed
15434 # as -z defs.
15435 no_undefined_flag_F77='${wl}-z,text'
15436 allow_undefined_flag_F77='${wl}-z,nodefs'
15437 archive_cmds_need_lc_F77=no
15438 hardcode_shlibpath_var_F77=no
15439 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15440 hardcode_libdir_separator_F77=':'
15441 link_all_deplibs_F77=yes
15442 export_dynamic_flag_spec_F77='${wl}-Bexport'
15443 runpath_var='LD_RUN_PATH'
15444
15445 if test "$GCC" = yes; then
15446 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15447 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15448 else
15449 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15451 fi
15452 ;;
15453
15454 uts4*)
15455 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15456 hardcode_libdir_flag_spec_F77='-L$libdir'
15457 hardcode_shlibpath_var_F77=no
15458 ;;
15459
15460 *)
15461 ld_shlibs_F77=no
15462 ;;
15463 esac
15464 fi
15465
15466 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15467 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15468 test "$ld_shlibs_F77" = no && can_build_shared=no
15469
15470 #
15471 # Do we need to explicitly link libc?
15472 #
15473 case "x$archive_cmds_need_lc_F77" in
15474 x|xyes)
15475 # Assume -lc should be added
15476 archive_cmds_need_lc_F77=yes
15477
15478 if test "$enable_shared" = yes && test "$GCC" = yes; then
15479 case $archive_cmds_F77 in
15480 *'~'*)
15481 # FIXME: we may have to deal with multi-command sequences.
15482 ;;
15483 '$CC '*)
15484 # Test whether the compiler implicitly links with -lc since on some
15485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15486 # to ld, don't add -lc before -lgcc.
15487 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15488 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15489 $rm conftest*
15490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15491
15492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15493 (eval $ac_compile) 2>&5
15494 ac_status=$?
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } 2>conftest.err; then
15497 soname=conftest
15498 lib=conftest
15499 libobjs=conftest.$ac_objext
15500 deplibs=
15501 wl=$lt_prog_compiler_wl_F77
15502 pic_flag=$lt_prog_compiler_pic_F77
15503 compiler_flags=-v
15504 linker_flags=-v
15505 verstring=
15506 output_objdir=.
15507 libname=conftest
15508 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15509 allow_undefined_flag_F77=
15510 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15511 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }
15515 then
15516 archive_cmds_need_lc_F77=no
15517 else
15518 archive_cmds_need_lc_F77=yes
15519 fi
15520 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15521 else
15522 cat conftest.err 1>&5
15523 fi
15524 $rm conftest*
15525 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15526 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15527 ;;
15528 esac
15529 fi
15530 ;;
15531 esac
15532
15533 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15534 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15535 library_names_spec=
15536 libname_spec='lib$name'
15537 soname_spec=
15538 shrext_cmds=".so"
15539 postinstall_cmds=
15540 postuninstall_cmds=
15541 finish_cmds=
15542 finish_eval=
15543 shlibpath_var=
15544 shlibpath_overrides_runpath=unknown
15545 version_type=none
15546 dynamic_linker="$host_os ld.so"
15547 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15548
15549 need_lib_prefix=unknown
15550 hardcode_into_libs=no
15551
15552 # when you set need_version to no, make sure it does not cause -set_version
15553 # flags to be left without arguments
15554 need_version=unknown
15555
15556 case $host_os in
15557 aix3*)
15558 version_type=linux
15559 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15560 shlibpath_var=LIBPATH
15561
15562 # AIX 3 has no versioning support, so we append a major version to the name.
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 ;;
15565
15566 aix[4-9]*)
15567 version_type=linux
15568 need_lib_prefix=no
15569 need_version=no
15570 hardcode_into_libs=yes
15571 if test "$host_cpu" = ia64; then
15572 # AIX 5 supports IA64
15573 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15574 shlibpath_var=LD_LIBRARY_PATH
15575 else
15576 # With GCC up to 2.95.x, collect2 would create an import file
15577 # for dependence libraries. The import file would start with
15578 # the line `#! .'. This would cause the generated library to
15579 # depend on `.', always an invalid library. This was fixed in
15580 # development snapshots of GCC prior to 3.0.
15581 case $host_os in
15582 aix4 | aix4.[01] | aix4.[01].*)
15583 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15584 echo ' yes '
15585 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15586 :
15587 else
15588 can_build_shared=no
15589 fi
15590 ;;
15591 esac
15592 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15593 # soname into executable. Probably we can add versioning support to
15594 # collect2, so additional links can be useful in future.
15595 if test "$aix_use_runtimelinking" = yes; then
15596 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15597 # instead of lib<name>.a to let people know that these are not
15598 # typical AIX shared libraries.
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 else
15601 # We preserve .a as extension for shared libraries through AIX4.2
15602 # and later when we are not doing run time linking.
15603 library_names_spec='${libname}${release}.a $libname.a'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 fi
15606 shlibpath_var=LIBPATH
15607 fi
15608 ;;
15609
15610 amigaos*)
15611 library_names_spec='$libname.ixlibrary $libname.a'
15612 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15613 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15614 ;;
15615
15616 beos*)
15617 library_names_spec='${libname}${shared_ext}'
15618 dynamic_linker="$host_os ld.so"
15619 shlibpath_var=LIBRARY_PATH
15620 ;;
15621
15622 bsdi[45]*)
15623 version_type=linux
15624 need_version=no
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15626 soname_spec='${libname}${release}${shared_ext}$major'
15627 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15630 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15631 # the default ld.so.conf also contains /usr/contrib/lib and
15632 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15633 # libtool to hard-code these into programs
15634 ;;
15635
15636 cygwin* | mingw* | pw32*)
15637 version_type=windows
15638 shrext_cmds=".dll"
15639 need_version=no
15640 need_lib_prefix=no
15641
15642 case $GCC,$host_os in
15643 yes,cygwin* | yes,mingw* | yes,pw32*)
15644 library_names_spec='$libname.dll.a'
15645 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15646 postinstall_cmds='base_file=`basename \${file}`~
15647 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15648 dldir=$destdir/`dirname \$dlpath`~
15649 test -d \$dldir || mkdir -p \$dldir~
15650 $install_prog $dir/$dlname \$dldir/$dlname~
15651 chmod a+x \$dldir/$dlname'
15652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15653 dlpath=$dir/\$dldll~
15654 $rm \$dlpath'
15655 shlibpath_overrides_runpath=yes
15656
15657 case $host_os in
15658 cygwin*)
15659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15662 ;;
15663 mingw*)
15664 # MinGW DLLs use traditional 'lib' prefix
15665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15668 # It is most probably a Windows format PATH printed by
15669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15670 # path with ; separators, and with drive letters. We can handle the
15671 # drive letters (cygwin fileutils understands them), so leave them,
15672 # especially as we might pass files found there to a mingw objdump,
15673 # which wouldn't understand a cygwinified path. Ahh.
15674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15675 else
15676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15677 fi
15678 ;;
15679 pw32*)
15680 # pw32 DLLs use 'pw' prefix rather than 'lib'
15681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15682 ;;
15683 esac
15684 ;;
15685
15686 *)
15687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15688 ;;
15689 esac
15690 dynamic_linker='Win32 ld.exe'
15691 # FIXME: first we should search . and the directory the executable is in
15692 shlibpath_var=PATH
15693 ;;
15694
15695 darwin* | rhapsody*)
15696 dynamic_linker="$host_os dyld"
15697 version_type=darwin
15698 need_lib_prefix=no
15699 need_version=no
15700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15701 soname_spec='${libname}${release}${major}$shared_ext'
15702 shlibpath_overrides_runpath=yes
15703 shlibpath_var=DYLD_LIBRARY_PATH
15704 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15705
15706 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15707 ;;
15708
15709 dgux*)
15710 version_type=linux
15711 need_lib_prefix=no
15712 need_version=no
15713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15714 soname_spec='${libname}${release}${shared_ext}$major'
15715 shlibpath_var=LD_LIBRARY_PATH
15716 ;;
15717
15718 freebsd1*)
15719 dynamic_linker=no
15720 ;;
15721
15722 freebsd* | dragonfly*)
15723 # DragonFly does not have aout. When/if they implement a new
15724 # versioning mechanism, adjust this.
15725 if test -x /usr/bin/objformat; then
15726 objformat=`/usr/bin/objformat`
15727 else
15728 case $host_os in
15729 freebsd[123]*) objformat=aout ;;
15730 *) objformat=elf ;;
15731 esac
15732 fi
15733 version_type=freebsd-$objformat
15734 case $version_type in
15735 freebsd-elf*)
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15737 need_version=no
15738 need_lib_prefix=no
15739 ;;
15740 freebsd-*)
15741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15742 need_version=yes
15743 ;;
15744 esac
15745 shlibpath_var=LD_LIBRARY_PATH
15746 case $host_os in
15747 freebsd2*)
15748 shlibpath_overrides_runpath=yes
15749 ;;
15750 freebsd3.[01]* | freebsdelf3.[01]*)
15751 shlibpath_overrides_runpath=yes
15752 hardcode_into_libs=yes
15753 ;;
15754 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15755 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15756 shlibpath_overrides_runpath=no
15757 hardcode_into_libs=yes
15758 ;;
15759 *) # from 4.6 on, and DragonFly
15760 shlibpath_overrides_runpath=yes
15761 hardcode_into_libs=yes
15762 ;;
15763 esac
15764 ;;
15765
15766 gnu*)
15767 version_type=linux
15768 need_lib_prefix=no
15769 need_version=no
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15771 soname_spec='${libname}${release}${shared_ext}$major'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 hardcode_into_libs=yes
15774 ;;
15775
15776 hpux9* | hpux10* | hpux11*)
15777 # Give a soname corresponding to the major version so that dld.sl refuses to
15778 # link against other versions.
15779 version_type=sunos
15780 need_lib_prefix=no
15781 need_version=no
15782 case $host_cpu in
15783 ia64*)
15784 shrext_cmds='.so'
15785 hardcode_into_libs=yes
15786 dynamic_linker="$host_os dld.so"
15787 shlibpath_var=LD_LIBRARY_PATH
15788 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 if test "X$HPUX_IA64_MODE" = X32; then
15792 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15793 else
15794 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15795 fi
15796 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15797 ;;
15798 hppa*64*)
15799 shrext_cmds='.sl'
15800 hardcode_into_libs=yes
15801 dynamic_linker="$host_os dld.sl"
15802 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15805 soname_spec='${libname}${release}${shared_ext}$major'
15806 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15807 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15808 ;;
15809 *)
15810 shrext_cmds='.sl'
15811 dynamic_linker="$host_os dld.sl"
15812 shlibpath_var=SHLIB_PATH
15813 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15815 soname_spec='${libname}${release}${shared_ext}$major'
15816 ;;
15817 esac
15818 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15819 postinstall_cmds='chmod 555 $lib'
15820 ;;
15821
15822 interix[3-9]*)
15823 version_type=linux
15824 need_lib_prefix=no
15825 need_version=no
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15827 soname_spec='${libname}${release}${shared_ext}$major'
15828 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 shlibpath_overrides_runpath=no
15831 hardcode_into_libs=yes
15832 ;;
15833
15834 irix5* | irix6* | nonstopux*)
15835 case $host_os in
15836 nonstopux*) version_type=nonstopux ;;
15837 *)
15838 if test "$lt_cv_prog_gnu_ld" = yes; then
15839 version_type=linux
15840 else
15841 version_type=irix
15842 fi ;;
15843 esac
15844 need_lib_prefix=no
15845 need_version=no
15846 soname_spec='${libname}${release}${shared_ext}$major'
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15848 case $host_os in
15849 irix5* | nonstopux*)
15850 libsuff= shlibsuff=
15851 ;;
15852 *)
15853 case $LD in # libtool.m4 will add one of these switches to LD
15854 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15855 libsuff= shlibsuff= libmagic=32-bit;;
15856 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15857 libsuff=32 shlibsuff=N32 libmagic=N32;;
15858 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15859 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15860 *) libsuff= shlibsuff= libmagic=never-match;;
15861 esac
15862 ;;
15863 esac
15864 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15865 shlibpath_overrides_runpath=no
15866 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15867 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15868 hardcode_into_libs=yes
15869 ;;
15870
15871 # No shared lib support for Linux oldld, aout, or coff.
15872 linux*oldld* | linux*aout* | linux*coff*)
15873 dynamic_linker=no
15874 ;;
15875
15876 # This must be Linux ELF.
15877 linux* | k*bsd*-gnu)
15878 version_type=linux
15879 need_lib_prefix=no
15880 need_version=no
15881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 shlibpath_overrides_runpath=no
15886 # This implies no fast_install, which is unacceptable.
15887 # Some rework will be needed to allow for fast_install
15888 # before this can be enabled.
15889 hardcode_into_libs=yes
15890
15891 # Append ld.so.conf contents to the search path
15892 if test -f /etc/ld.so.conf; then
15893 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15894 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15895 fi
15896
15897 # We used to test for /lib/ld.so.1 and disable shared libraries on
15898 # powerpc, because MkLinux only supported shared libraries with the
15899 # GNU dynamic linker. Since this was broken with cross compilers,
15900 # most powerpc-linux boxes support dynamic linking these days and
15901 # people can always --disable-shared, the test was removed, and we
15902 # assume the GNU/Linux dynamic linker is in use.
15903 dynamic_linker='GNU/Linux ld.so'
15904 ;;
15905
15906 netbsdelf*-gnu)
15907 version_type=linux
15908 need_lib_prefix=no
15909 need_version=no
15910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15911 soname_spec='${libname}${release}${shared_ext}$major'
15912 shlibpath_var=LD_LIBRARY_PATH
15913 shlibpath_overrides_runpath=no
15914 hardcode_into_libs=yes
15915 dynamic_linker='NetBSD ld.elf_so'
15916 ;;
15917
15918 netbsd*)
15919 version_type=sunos
15920 need_lib_prefix=no
15921 need_version=no
15922 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15924 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15925 dynamic_linker='NetBSD (a.out) ld.so'
15926 else
15927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15928 soname_spec='${libname}${release}${shared_ext}$major'
15929 dynamic_linker='NetBSD ld.elf_so'
15930 fi
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes
15933 hardcode_into_libs=yes
15934 ;;
15935
15936 newsos6)
15937 version_type=linux
15938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15939 shlibpath_var=LD_LIBRARY_PATH
15940 shlibpath_overrides_runpath=yes
15941 ;;
15942
15943 nto-qnx*)
15944 version_type=linux
15945 need_lib_prefix=no
15946 need_version=no
15947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15948 soname_spec='${libname}${release}${shared_ext}$major'
15949 shlibpath_var=LD_LIBRARY_PATH
15950 shlibpath_overrides_runpath=yes
15951 ;;
15952
15953 openbsd*)
15954 version_type=sunos
15955 sys_lib_dlsearch_path_spec="/usr/lib"
15956 need_lib_prefix=no
15957 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15958 case $host_os in
15959 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15960 *) need_version=no ;;
15961 esac
15962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15964 shlibpath_var=LD_LIBRARY_PATH
15965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15966 case $host_os in
15967 openbsd2.[89] | openbsd2.[89].*)
15968 shlibpath_overrides_runpath=no
15969 ;;
15970 *)
15971 shlibpath_overrides_runpath=yes
15972 ;;
15973 esac
15974 else
15975 shlibpath_overrides_runpath=yes
15976 fi
15977 ;;
15978
15979 os2*)
15980 libname_spec='$name'
15981 shrext_cmds=".dll"
15982 need_lib_prefix=no
15983 library_names_spec='$libname${shared_ext} $libname.a'
15984 dynamic_linker='OS/2 ld.exe'
15985 shlibpath_var=LIBPATH
15986 ;;
15987
15988 osf3* | osf4* | osf5*)
15989 version_type=osf
15990 need_lib_prefix=no
15991 need_version=no
15992 soname_spec='${libname}${release}${shared_ext}$major'
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15994 shlibpath_var=LD_LIBRARY_PATH
15995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15997 ;;
15998
15999 rdos*)
16000 dynamic_linker=no
16001 ;;
16002
16003 solaris*)
16004 version_type=linux
16005 need_lib_prefix=no
16006 need_version=no
16007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16008 soname_spec='${libname}${release}${shared_ext}$major'
16009 shlibpath_var=LD_LIBRARY_PATH
16010 shlibpath_overrides_runpath=yes
16011 hardcode_into_libs=yes
16012 # ldd complains unless libraries are executable
16013 postinstall_cmds='chmod +x $lib'
16014 ;;
16015
16016 sunos4*)
16017 version_type=sunos
16018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16019 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16020 shlibpath_var=LD_LIBRARY_PATH
16021 shlibpath_overrides_runpath=yes
16022 if test "$with_gnu_ld" = yes; then
16023 need_lib_prefix=no
16024 fi
16025 need_version=yes
16026 ;;
16027
16028 sysv4 | sysv4.3*)
16029 version_type=linux
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 case $host_vendor in
16034 sni)
16035 shlibpath_overrides_runpath=no
16036 need_lib_prefix=no
16037 export_dynamic_flag_spec='${wl}-Blargedynsym'
16038 runpath_var=LD_RUN_PATH
16039 ;;
16040 siemens)
16041 need_lib_prefix=no
16042 ;;
16043 motorola)
16044 need_lib_prefix=no
16045 need_version=no
16046 shlibpath_overrides_runpath=no
16047 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16048 ;;
16049 esac
16050 ;;
16051
16052 sysv4*MP*)
16053 if test -d /usr/nec ;then
16054 version_type=linux
16055 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16056 soname_spec='$libname${shared_ext}.$major'
16057 shlibpath_var=LD_LIBRARY_PATH
16058 fi
16059 ;;
16060
16061 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16062 version_type=freebsd-elf
16063 need_lib_prefix=no
16064 need_version=no
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 shlibpath_var=LD_LIBRARY_PATH
16068 hardcode_into_libs=yes
16069 if test "$with_gnu_ld" = yes; then
16070 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16071 shlibpath_overrides_runpath=no
16072 else
16073 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16074 shlibpath_overrides_runpath=yes
16075 case $host_os in
16076 sco3.2v5*)
16077 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16078 ;;
16079 esac
16080 fi
16081 sys_lib_dlsearch_path_spec='/usr/lib'
16082 ;;
16083
16084 uts4*)
16085 version_type=linux
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 ;;
16090
16091 *)
16092 dynamic_linker=no
16093 ;;
16094 esac
16095 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16096 echo "${ECHO_T}$dynamic_linker" >&6; }
16097 test "$dynamic_linker" = no && can_build_shared=no
16098
16099 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16103 fi
16104
16105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16106 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16108 else
16109 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16110 fi
16111
16112 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16113
16114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16115 if test "$GCC" = yes; then
16116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16117 fi
16118
16119 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16120 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16121 hardcode_action_F77=
16122 if test -n "$hardcode_libdir_flag_spec_F77" || \
16123 test -n "$runpath_var_F77" || \
16124 test "X$hardcode_automatic_F77" = "Xyes" ; then
16125
16126 # We can hardcode non-existant directories.
16127 if test "$hardcode_direct_F77" != no &&
16128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16129 # have to relink, otherwise we might link with an installed library
16130 # when we should be linking with a yet-to-be-installed one
16131 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16132 test "$hardcode_minus_L_F77" != no; then
16133 # Linking always hardcodes the temporary library directory.
16134 hardcode_action_F77=relink
16135 else
16136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16137 hardcode_action_F77=immediate
16138 fi
16139 else
16140 # We cannot hardcode anything, or else we can only hardcode existing
16141 # directories.
16142 hardcode_action_F77=unsupported
16143 fi
16144 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16145 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16146
16147 if test "$hardcode_action_F77" = relink; then
16148 # Fast installation is not supported
16149 enable_fast_install=no
16150 elif test "$shlibpath_overrides_runpath" = yes ||
16151 test "$enable_shared" = no; then
16152 # Fast installation is not necessary
16153 enable_fast_install=needless
16154 fi
16155
16156
16157 # The else clause should only fire when bootstrapping the
16158 # libtool distribution, otherwise you forgot to ship ltmain.sh
16159 # with your package, and you will get complaints that there are
16160 # no rules to generate ltmain.sh.
16161 if test -f "$ltmain"; then
16162 # See if we are running on zsh, and set the options which allow our commands through
16163 # without removal of \ escapes.
16164 if test -n "${ZSH_VERSION+set}" ; then
16165 setopt NO_GLOB_SUBST
16166 fi
16167 # Now quote all the things that may contain metacharacters while being
16168 # careful not to overquote the AC_SUBSTed values. We take copies of the
16169 # variables and quote the copies for generation of the libtool script.
16170 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16171 SED SHELL STRIP \
16172 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16173 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16174 deplibs_check_method reload_flag reload_cmds need_locks \
16175 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16176 lt_cv_sys_global_symbol_to_c_name_address \
16177 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16178 old_postinstall_cmds old_postuninstall_cmds \
16179 compiler_F77 \
16180 CC_F77 \
16181 LD_F77 \
16182 lt_prog_compiler_wl_F77 \
16183 lt_prog_compiler_pic_F77 \
16184 lt_prog_compiler_static_F77 \
16185 lt_prog_compiler_no_builtin_flag_F77 \
16186 export_dynamic_flag_spec_F77 \
16187 thread_safe_flag_spec_F77 \
16188 whole_archive_flag_spec_F77 \
16189 enable_shared_with_static_runtimes_F77 \
16190 old_archive_cmds_F77 \
16191 old_archive_from_new_cmds_F77 \
16192 predep_objects_F77 \
16193 postdep_objects_F77 \
16194 predeps_F77 \
16195 postdeps_F77 \
16196 compiler_lib_search_path_F77 \
16197 compiler_lib_search_dirs_F77 \
16198 archive_cmds_F77 \
16199 archive_expsym_cmds_F77 \
16200 postinstall_cmds_F77 \
16201 postuninstall_cmds_F77 \
16202 old_archive_from_expsyms_cmds_F77 \
16203 allow_undefined_flag_F77 \
16204 no_undefined_flag_F77 \
16205 export_symbols_cmds_F77 \
16206 hardcode_libdir_flag_spec_F77 \
16207 hardcode_libdir_flag_spec_ld_F77 \
16208 hardcode_libdir_separator_F77 \
16209 hardcode_automatic_F77 \
16210 module_cmds_F77 \
16211 module_expsym_cmds_F77 \
16212 lt_cv_prog_compiler_c_o_F77 \
16213 fix_srcfile_path_F77 \
16214 exclude_expsyms_F77 \
16215 include_expsyms_F77; do
16216
16217 case $var in
16218 old_archive_cmds_F77 | \
16219 old_archive_from_new_cmds_F77 | \
16220 archive_cmds_F77 | \
16221 archive_expsym_cmds_F77 | \
16222 module_cmds_F77 | \
16223 module_expsym_cmds_F77 | \
16224 old_archive_from_expsyms_cmds_F77 | \
16225 export_symbols_cmds_F77 | \
16226 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16227 postinstall_cmds | postuninstall_cmds | \
16228 old_postinstall_cmds | old_postuninstall_cmds | \
16229 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16230 # Double-quote double-evaled strings.
16231 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16232 ;;
16233 *)
16234 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16235 ;;
16236 esac
16237 done
16238
16239 case $lt_echo in
16240 *'\$0 --fallback-echo"')
16241 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16242 ;;
16243 esac
16244
16245 cfgfile="$ofile"
16246
16247 cat <<__EOF__ >> "$cfgfile"
16248 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16249
16250 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16251
16252 # Shell to use when invoking shell scripts.
16253 SHELL=$lt_SHELL
16254
16255 # Whether or not to build shared libraries.
16256 build_libtool_libs=$enable_shared
16257
16258 # Whether or not to build static libraries.
16259 build_old_libs=$enable_static
16260
16261 # Whether or not to add -lc for building shared libraries.
16262 build_libtool_need_lc=$archive_cmds_need_lc_F77
16263
16264 # Whether or not to disallow shared libs when runtime libs are static
16265 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16266
16267 # Whether or not to optimize for fast installation.
16268 fast_install=$enable_fast_install
16269
16270 # The host system.
16271 host_alias=$host_alias
16272 host=$host
16273 host_os=$host_os
16274
16275 # The build system.
16276 build_alias=$build_alias
16277 build=$build
16278 build_os=$build_os
16279
16280 # An echo program that does not interpret backslashes.
16281 echo=$lt_echo
16282
16283 # The archiver.
16284 AR=$lt_AR
16285 AR_FLAGS=$lt_AR_FLAGS
16286
16287 # A C compiler.
16288 LTCC=$lt_LTCC
16289
16290 # LTCC compiler flags.
16291 LTCFLAGS=$lt_LTCFLAGS
16292
16293 # A language-specific compiler.
16294 CC=$lt_compiler_F77
16295
16296 # Is the compiler the GNU C compiler?
16297 with_gcc=$GCC_F77
16298
16299 # An ERE matcher.
16300 EGREP=$lt_EGREP
16301
16302 # The linker used to build libraries.
16303 LD=$lt_LD_F77
16304
16305 # Whether we need hard or soft links.
16306 LN_S=$lt_LN_S
16307
16308 # A BSD-compatible nm program.
16309 NM=$lt_NM
16310
16311 # A symbol stripping program
16312 STRIP=$lt_STRIP
16313
16314 # Used to examine libraries when file_magic_cmd begins "file"
16315 MAGIC_CMD=$MAGIC_CMD
16316
16317 # Used on cygwin: DLL creation program.
16318 DLLTOOL="$DLLTOOL"
16319
16320 # Used on cygwin: object dumper.
16321 OBJDUMP="$OBJDUMP"
16322
16323 # Used on cygwin: assembler.
16324 AS="$AS"
16325
16326 # The name of the directory that contains temporary libtool files.
16327 objdir=$objdir
16328
16329 # How to create reloadable object files.
16330 reload_flag=$lt_reload_flag
16331 reload_cmds=$lt_reload_cmds
16332
16333 # How to pass a linker flag through the compiler.
16334 wl=$lt_lt_prog_compiler_wl_F77
16335
16336 # Object file suffix (normally "o").
16337 objext="$ac_objext"
16338
16339 # Old archive suffix (normally "a").
16340 libext="$libext"
16341
16342 # Shared library suffix (normally ".so").
16343 shrext_cmds='$shrext_cmds'
16344
16345 # Executable file suffix (normally "").
16346 exeext="$exeext"
16347
16348 # Additional compiler flags for building library objects.
16349 pic_flag=$lt_lt_prog_compiler_pic_F77
16350 pic_mode=$pic_mode
16351
16352 # What is the maximum length of a command?
16353 max_cmd_len=$lt_cv_sys_max_cmd_len
16354
16355 # Does compiler simultaneously support -c and -o options?
16356 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16357
16358 # Must we lock files when doing compilation?
16359 need_locks=$lt_need_locks
16360
16361 # Do we need the lib prefix for modules?
16362 need_lib_prefix=$need_lib_prefix
16363
16364 # Do we need a version for libraries?
16365 need_version=$need_version
16366
16367 # Whether dlopen is supported.
16368 dlopen_support=$enable_dlopen
16369
16370 # Whether dlopen of programs is supported.
16371 dlopen_self=$enable_dlopen_self
16372
16373 # Whether dlopen of statically linked programs is supported.
16374 dlopen_self_static=$enable_dlopen_self_static
16375
16376 # Compiler flag to prevent dynamic linking.
16377 link_static_flag=$lt_lt_prog_compiler_static_F77
16378
16379 # Compiler flag to turn off builtin functions.
16380 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16381
16382 # Compiler flag to allow reflexive dlopens.
16383 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16384
16385 # Compiler flag to generate shared objects directly from archives.
16386 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16387
16388 # Compiler flag to generate thread-safe objects.
16389 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16390
16391 # Library versioning type.
16392 version_type=$version_type
16393
16394 # Format of library name prefix.
16395 libname_spec=$lt_libname_spec
16396
16397 # List of archive names. First name is the real one, the rest are links.
16398 # The last name is the one that the linker finds with -lNAME.
16399 library_names_spec=$lt_library_names_spec
16400
16401 # The coded name of the library, if different from the real name.
16402 soname_spec=$lt_soname_spec
16403
16404 # Commands used to build and install an old-style archive.
16405 RANLIB=$lt_RANLIB
16406 old_archive_cmds=$lt_old_archive_cmds_F77
16407 old_postinstall_cmds=$lt_old_postinstall_cmds
16408 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16409
16410 # Create an old-style archive from a shared archive.
16411 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16412
16413 # Create a temporary old-style archive to link instead of a shared archive.
16414 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16415
16416 # Commands used to build and install a shared archive.
16417 archive_cmds=$lt_archive_cmds_F77
16418 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16419 postinstall_cmds=$lt_postinstall_cmds
16420 postuninstall_cmds=$lt_postuninstall_cmds
16421
16422 # Commands used to build a loadable module (assumed same as above if empty)
16423 module_cmds=$lt_module_cmds_F77
16424 module_expsym_cmds=$lt_module_expsym_cmds_F77
16425
16426 # Commands to strip libraries.
16427 old_striplib=$lt_old_striplib
16428 striplib=$lt_striplib
16429
16430 # Dependencies to place before the objects being linked to create a
16431 # shared library.
16432 predep_objects=$lt_predep_objects_F77
16433
16434 # Dependencies to place after the objects being linked to create a
16435 # shared library.
16436 postdep_objects=$lt_postdep_objects_F77
16437
16438 # Dependencies to place before the objects being linked to create a
16439 # shared library.
16440 predeps=$lt_predeps_F77
16441
16442 # Dependencies to place after the objects being linked to create a
16443 # shared library.
16444 postdeps=$lt_postdeps_F77
16445
16446 # The directories searched by this compiler when creating a shared
16447 # library
16448 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16449
16450 # The library search path used internally by the compiler when linking
16451 # a shared library.
16452 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16453
16454 # Method to check whether dependent libraries are shared objects.
16455 deplibs_check_method=$lt_deplibs_check_method
16456
16457 # Command to use when deplibs_check_method == file_magic.
16458 file_magic_cmd=$lt_file_magic_cmd
16459
16460 # Flag that allows shared libraries with undefined symbols to be built.
16461 allow_undefined_flag=$lt_allow_undefined_flag_F77
16462
16463 # Flag that forces no undefined symbols.
16464 no_undefined_flag=$lt_no_undefined_flag_F77
16465
16466 # Commands used to finish a libtool library installation in a directory.
16467 finish_cmds=$lt_finish_cmds
16468
16469 # Same as above, but a single script fragment to be evaled but not shown.
16470 finish_eval=$lt_finish_eval
16471
16472 # Take the output of nm and produce a listing of raw symbols and C names.
16473 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16474
16475 # Transform the output of nm in a proper C declaration
16476 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16477
16478 # Transform the output of nm in a C name address pair
16479 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16480
16481 # This is the shared library runtime path variable.
16482 runpath_var=$runpath_var
16483
16484 # This is the shared library path variable.
16485 shlibpath_var=$shlibpath_var
16486
16487 # Is shlibpath searched before the hard-coded library search path?
16488 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16489
16490 # How to hardcode a shared library path into an executable.
16491 hardcode_action=$hardcode_action_F77
16492
16493 # Whether we should hardcode library paths into libraries.
16494 hardcode_into_libs=$hardcode_into_libs
16495
16496 # Flag to hardcode \$libdir into a binary during linking.
16497 # This must work even if \$libdir does not exist.
16498 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16499
16500 # If ld is used when linking, flag to hardcode \$libdir into
16501 # a binary during linking. This must work even if \$libdir does
16502 # not exist.
16503 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16504
16505 # Whether we need a single -rpath flag with a separated argument.
16506 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16507
16508 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16509 # resulting binary.
16510 hardcode_direct=$hardcode_direct_F77
16511
16512 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16513 # resulting binary.
16514 hardcode_minus_L=$hardcode_minus_L_F77
16515
16516 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16517 # the resulting binary.
16518 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16519
16520 # Set to yes if building a shared library automatically hardcodes DIR into the library
16521 # and all subsequent libraries and executables linked against it.
16522 hardcode_automatic=$hardcode_automatic_F77
16523
16524 # Variables whose values should be saved in libtool wrapper scripts and
16525 # restored at relink time.
16526 variables_saved_for_relink="$variables_saved_for_relink"
16527
16528 # Whether libtool must link a program against all its dependency libraries.
16529 link_all_deplibs=$link_all_deplibs_F77
16530
16531 # Compile-time system search path for libraries
16532 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16533
16534 # Run-time system search path for libraries
16535 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16536
16537 # Fix the shell variable \$srcfile for the compiler.
16538 fix_srcfile_path=$lt_fix_srcfile_path
16539
16540 # Set to yes if exported symbols are required.
16541 always_export_symbols=$always_export_symbols_F77
16542
16543 # The commands to list exported symbols.
16544 export_symbols_cmds=$lt_export_symbols_cmds_F77
16545
16546 # The commands to extract the exported symbol list from a shared archive.
16547 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16548
16549 # Symbols that should not be listed in the preloaded symbols.
16550 exclude_expsyms=$lt_exclude_expsyms_F77
16551
16552 # Symbols that must always be exported.
16553 include_expsyms=$lt_include_expsyms_F77
16554
16555 # ### END LIBTOOL TAG CONFIG: $tagname
16556
16557 __EOF__
16558
16559
16560 else
16561 # If there is no Makefile yet, we rely on a make rule to execute
16562 # `config.status --recheck' to rerun these tests and create the
16563 # libtool script then.
16564 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16565 if test -f "$ltmain_in"; then
16566 test -f Makefile && make "$ltmain"
16567 fi
16568 fi
16569
16570
16571 ac_ext=c
16572 ac_cpp='$CPP $CPPFLAGS'
16573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16576
16577 CC="$lt_save_CC"
16578
16579 else
16580 tagname=""
16581 fi
16582 ;;
16583
16584 GCJ)
16585 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16586
16587
16588 # Source file extension for Java test sources.
16589 ac_ext=java
16590
16591 # Object file extension for compiled Java test sources.
16592 objext=o
16593 objext_GCJ=$objext
16594
16595 # Code to be used in simple compile tests
16596 lt_simple_compile_test_code="class foo {}"
16597
16598 # Code to be used in simple link tests
16599 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16600
16601 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16602
16603 # If no C compiler was specified, use CC.
16604 LTCC=${LTCC-"$CC"}
16605
16606 # If no C compiler flags were specified, use CFLAGS.
16607 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16608
16609 # Allow CC to be a program name with arguments.
16610 compiler=$CC
16611
16612
16613 # save warnings/boilerplate of simple test code
16614 ac_outfile=conftest.$ac_objext
16615 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16616 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16617 _lt_compiler_boilerplate=`cat conftest.err`
16618 $rm conftest*
16619
16620 ac_outfile=conftest.$ac_objext
16621 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16622 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16623 _lt_linker_boilerplate=`cat conftest.err`
16624 $rm -r conftest*
16625
16626
16627 # Allow CC to be a program name with arguments.
16628 lt_save_CC="$CC"
16629 CC=${GCJ-"gcj"}
16630 compiler=$CC
16631 compiler_GCJ=$CC
16632 for cc_temp in $compiler""; do
16633 case $cc_temp in
16634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16636 \-*) ;;
16637 *) break;;
16638 esac
16639 done
16640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16641
16642
16643 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16644 archive_cmds_need_lc_GCJ=no
16645
16646 old_archive_cmds_GCJ=$old_archive_cmds
16647
16648
16649 lt_prog_compiler_no_builtin_flag_GCJ=
16650
16651 if test "$GCC" = yes; then
16652 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16653
16654
16655 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16656 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16657 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16658 echo $ECHO_N "(cached) $ECHO_C" >&6
16659 else
16660 lt_cv_prog_compiler_rtti_exceptions=no
16661 ac_outfile=conftest.$ac_objext
16662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16663 lt_compiler_flag="-fno-rtti -fno-exceptions"
16664 # Insert the option either (1) after the last *FLAGS variable, or
16665 # (2) before a word containing "conftest.", or (3) at the end.
16666 # Note that $ac_compile itself does not contain backslashes and begins
16667 # with a dollar sign (not a hyphen), so the echo should work correctly.
16668 # The option is referenced via a variable to avoid confusing sed.
16669 lt_compile=`echo "$ac_compile" | $SED \
16670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16672 -e 's:$: $lt_compiler_flag:'`
16673 (eval echo "\"\$as_me:16674: $lt_compile\"" >&5)
16674 (eval "$lt_compile" 2>conftest.err)
16675 ac_status=$?
16676 cat conftest.err >&5
16677 echo "$as_me:16678: \$? = $ac_status" >&5
16678 if (exit $ac_status) && test -s "$ac_outfile"; then
16679 # The compiler can only warn and ignore the option if not recognized
16680 # So say no if there are warnings other than the usual output.
16681 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16684 lt_cv_prog_compiler_rtti_exceptions=yes
16685 fi
16686 fi
16687 $rm conftest*
16688
16689 fi
16690 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16691 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16692
16693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16694 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16695 else
16696 :
16697 fi
16698
16699 fi
16700
16701 lt_prog_compiler_wl_GCJ=
16702 lt_prog_compiler_pic_GCJ=
16703 lt_prog_compiler_static_GCJ=
16704
16705 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16706 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16707
16708 if test "$GCC" = yes; then
16709 lt_prog_compiler_wl_GCJ='-Wl,'
16710 lt_prog_compiler_static_GCJ='-static'
16711
16712 case $host_os in
16713 aix*)
16714 # All AIX code is PIC.
16715 if test "$host_cpu" = ia64; then
16716 # AIX 5 now supports IA64 processor
16717 lt_prog_compiler_static_GCJ='-Bstatic'
16718 fi
16719 ;;
16720
16721 amigaos*)
16722 # FIXME: we need at least 68020 code to build shared libraries, but
16723 # adding the `-m68020' flag to GCC prevents building anything better,
16724 # like `-m68040'.
16725 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16726 ;;
16727
16728 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16729 # PIC is the default for these OSes.
16730 ;;
16731
16732 mingw* | cygwin* | pw32* | os2*)
16733 # This hack is so that the source file can tell whether it is being
16734 # built for inclusion in a dll (and should export symbols for example).
16735 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16736 # (--disable-auto-import) libraries
16737
16738 ;;
16739
16740 darwin* | rhapsody*)
16741 # PIC is the default on this platform
16742 # Common symbols not allowed in MH_DYLIB files
16743 lt_prog_compiler_pic_GCJ='-fno-common'
16744 ;;
16745
16746 interix[3-9]*)
16747 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16748 # Instead, we relocate shared libraries at runtime.
16749 ;;
16750
16751 msdosdjgpp*)
16752 # Just because we use GCC doesn't mean we suddenly get shared libraries
16753 # on systems that don't support them.
16754 lt_prog_compiler_can_build_shared_GCJ=no
16755 enable_shared=no
16756 ;;
16757
16758 sysv4*MP*)
16759 if test -d /usr/nec; then
16760 lt_prog_compiler_pic_GCJ=-Kconform_pic
16761 fi
16762 ;;
16763
16764 hpux*)
16765 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16766 # not for PA HP-UX.
16767 case $host_cpu in
16768 hppa*64*|ia64*)
16769 # +Z the default
16770 ;;
16771 *)
16772 lt_prog_compiler_pic_GCJ='-fPIC'
16773 ;;
16774 esac
16775 ;;
16776
16777 *)
16778 lt_prog_compiler_pic_GCJ='-fPIC'
16779 ;;
16780 esac
16781 else
16782 # PORTME Check for flag to pass linker flags through the system compiler.
16783 case $host_os in
16784 aix*)
16785 lt_prog_compiler_wl_GCJ='-Wl,'
16786 if test "$host_cpu" = ia64; then
16787 # AIX 5 now supports IA64 processor
16788 lt_prog_compiler_static_GCJ='-Bstatic'
16789 else
16790 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16791 fi
16792 ;;
16793 darwin*)
16794 # PIC is the default on this platform
16795 # Common symbols not allowed in MH_DYLIB files
16796 case $cc_basename in
16797 xlc*)
16798 lt_prog_compiler_pic_GCJ='-qnocommon'
16799 lt_prog_compiler_wl_GCJ='-Wl,'
16800 ;;
16801 esac
16802 ;;
16803
16804 mingw* | cygwin* | pw32* | os2*)
16805 # This hack is so that the source file can tell whether it is being
16806 # built for inclusion in a dll (and should export symbols for example).
16807
16808 ;;
16809
16810 hpux9* | hpux10* | hpux11*)
16811 lt_prog_compiler_wl_GCJ='-Wl,'
16812 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16813 # not for PA HP-UX.
16814 case $host_cpu in
16815 hppa*64*|ia64*)
16816 # +Z the default
16817 ;;
16818 *)
16819 lt_prog_compiler_pic_GCJ='+Z'
16820 ;;
16821 esac
16822 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16823 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16824 ;;
16825
16826 irix5* | irix6* | nonstopux*)
16827 lt_prog_compiler_wl_GCJ='-Wl,'
16828 # PIC (with -KPIC) is the default.
16829 lt_prog_compiler_static_GCJ='-non_shared'
16830 ;;
16831
16832 newsos6)
16833 lt_prog_compiler_pic_GCJ='-KPIC'
16834 lt_prog_compiler_static_GCJ='-Bstatic'
16835 ;;
16836
16837 linux* | k*bsd*-gnu)
16838 case $cc_basename in
16839 icc* | ecc*)
16840 lt_prog_compiler_wl_GCJ='-Wl,'
16841 lt_prog_compiler_pic_GCJ='-KPIC'
16842 lt_prog_compiler_static_GCJ='-static'
16843 ;;
16844 pgcc* | pgf77* | pgf90* | pgf95*)
16845 # Portland Group compilers (*not* the Pentium gcc compiler,
16846 # which looks to be a dead project)
16847 lt_prog_compiler_wl_GCJ='-Wl,'
16848 lt_prog_compiler_pic_GCJ='-fpic'
16849 lt_prog_compiler_static_GCJ='-Bstatic'
16850 ;;
16851 ccc*)
16852 lt_prog_compiler_wl_GCJ='-Wl,'
16853 # All Alpha code is PIC.
16854 lt_prog_compiler_static_GCJ='-non_shared'
16855 ;;
16856 *)
16857 case `$CC -V 2>&1 | sed 5q` in
16858 *Sun\ C*)
16859 # Sun C 5.9
16860 lt_prog_compiler_pic_GCJ='-KPIC'
16861 lt_prog_compiler_static_GCJ='-Bstatic'
16862 lt_prog_compiler_wl_GCJ='-Wl,'
16863 ;;
16864 *Sun\ F*)
16865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16866 lt_prog_compiler_pic_GCJ='-KPIC'
16867 lt_prog_compiler_static_GCJ='-Bstatic'
16868 lt_prog_compiler_wl_GCJ=''
16869 ;;
16870 esac
16871 ;;
16872 esac
16873 ;;
16874
16875 osf3* | osf4* | osf5*)
16876 lt_prog_compiler_wl_GCJ='-Wl,'
16877 # All OSF/1 code is PIC.
16878 lt_prog_compiler_static_GCJ='-non_shared'
16879 ;;
16880
16881 rdos*)
16882 lt_prog_compiler_static_GCJ='-non_shared'
16883 ;;
16884
16885 solaris*)
16886 lt_prog_compiler_pic_GCJ='-KPIC'
16887 lt_prog_compiler_static_GCJ='-Bstatic'
16888 case $cc_basename in
16889 f77* | f90* | f95*)
16890 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16891 *)
16892 lt_prog_compiler_wl_GCJ='-Wl,';;
16893 esac
16894 ;;
16895
16896 sunos4*)
16897 lt_prog_compiler_wl_GCJ='-Qoption ld '
16898 lt_prog_compiler_pic_GCJ='-PIC'
16899 lt_prog_compiler_static_GCJ='-Bstatic'
16900 ;;
16901
16902 sysv4 | sysv4.2uw2* | sysv4.3*)
16903 lt_prog_compiler_wl_GCJ='-Wl,'
16904 lt_prog_compiler_pic_GCJ='-KPIC'
16905 lt_prog_compiler_static_GCJ='-Bstatic'
16906 ;;
16907
16908 sysv4*MP*)
16909 if test -d /usr/nec ;then
16910 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16911 lt_prog_compiler_static_GCJ='-Bstatic'
16912 fi
16913 ;;
16914
16915 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16916 lt_prog_compiler_wl_GCJ='-Wl,'
16917 lt_prog_compiler_pic_GCJ='-KPIC'
16918 lt_prog_compiler_static_GCJ='-Bstatic'
16919 ;;
16920
16921 unicos*)
16922 lt_prog_compiler_wl_GCJ='-Wl,'
16923 lt_prog_compiler_can_build_shared_GCJ=no
16924 ;;
16925
16926 uts4*)
16927 lt_prog_compiler_pic_GCJ='-pic'
16928 lt_prog_compiler_static_GCJ='-Bstatic'
16929 ;;
16930
16931 *)
16932 lt_prog_compiler_can_build_shared_GCJ=no
16933 ;;
16934 esac
16935 fi
16936
16937 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16938 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16939
16940 #
16941 # Check to make sure the PIC flag actually works.
16942 #
16943 if test -n "$lt_prog_compiler_pic_GCJ"; then
16944
16945 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16946 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16947 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16949 else
16950 lt_cv_prog_compiler_pic_works_GCJ=no
16951 ac_outfile=conftest.$ac_objext
16952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16953 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16954 # Insert the option either (1) after the last *FLAGS variable, or
16955 # (2) before a word containing "conftest.", or (3) at the end.
16956 # Note that $ac_compile itself does not contain backslashes and begins
16957 # with a dollar sign (not a hyphen), so the echo should work correctly.
16958 # The option is referenced via a variable to avoid confusing sed.
16959 lt_compile=`echo "$ac_compile" | $SED \
16960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16962 -e 's:$: $lt_compiler_flag:'`
16963 (eval echo "\"\$as_me:16964: $lt_compile\"" >&5)
16964 (eval "$lt_compile" 2>conftest.err)
16965 ac_status=$?
16966 cat conftest.err >&5
16967 echo "$as_me:16968: \$? = $ac_status" >&5
16968 if (exit $ac_status) && test -s "$ac_outfile"; then
16969 # The compiler can only warn and ignore the option if not recognized
16970 # So say no if there are warnings other than the usual output.
16971 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16974 lt_cv_prog_compiler_pic_works_GCJ=yes
16975 fi
16976 fi
16977 $rm conftest*
16978
16979 fi
16980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16981 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
16982
16983 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16984 case $lt_prog_compiler_pic_GCJ in
16985 "" | " "*) ;;
16986 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16987 esac
16988 else
16989 lt_prog_compiler_pic_GCJ=
16990 lt_prog_compiler_can_build_shared_GCJ=no
16991 fi
16992
16993 fi
16994 case $host_os in
16995 # For platforms which do not support PIC, -DPIC is meaningless:
16996 *djgpp*)
16997 lt_prog_compiler_pic_GCJ=
16998 ;;
16999 *)
17000 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17001 ;;
17002 esac
17003
17004 #
17005 # Check to make sure the static flag actually works.
17006 #
17007 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17008 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17009 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17010 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17011 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 else
17013 lt_cv_prog_compiler_static_works_GCJ=no
17014 save_LDFLAGS="$LDFLAGS"
17015 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17016 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17017 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17018 # The linker can only warn and ignore the option if not recognized
17019 # So say no if there are warnings
17020 if test -s conftest.err; then
17021 # Append any errors to the config.log.
17022 cat conftest.err 1>&5
17023 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17024 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17025 if diff conftest.exp conftest.er2 >/dev/null; then
17026 lt_cv_prog_compiler_static_works_GCJ=yes
17027 fi
17028 else
17029 lt_cv_prog_compiler_static_works_GCJ=yes
17030 fi
17031 fi
17032 $rm -r conftest*
17033 LDFLAGS="$save_LDFLAGS"
17034
17035 fi
17036 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17037 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17038
17039 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17040 :
17041 else
17042 lt_prog_compiler_static_GCJ=
17043 fi
17044
17045
17046 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17047 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17048 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17050 else
17051 lt_cv_prog_compiler_c_o_GCJ=no
17052 $rm -r conftest 2>/dev/null
17053 mkdir conftest
17054 cd conftest
17055 mkdir out
17056 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17057
17058 lt_compiler_flag="-o out/conftest2.$ac_objext"
17059 # Insert the option either (1) after the last *FLAGS variable, or
17060 # (2) before a word containing "conftest.", or (3) at the end.
17061 # Note that $ac_compile itself does not contain backslashes and begins
17062 # with a dollar sign (not a hyphen), so the echo should work correctly.
17063 lt_compile=`echo "$ac_compile" | $SED \
17064 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17065 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17066 -e 's:$: $lt_compiler_flag:'`
17067 (eval echo "\"\$as_me:17068: $lt_compile\"" >&5)
17068 (eval "$lt_compile" 2>out/conftest.err)
17069 ac_status=$?
17070 cat out/conftest.err >&5
17071 echo "$as_me:17072: \$? = $ac_status" >&5
17072 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17073 then
17074 # The compiler can only warn and ignore the option if not recognized
17075 # So say no if there are warnings
17076 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17077 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17078 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17079 lt_cv_prog_compiler_c_o_GCJ=yes
17080 fi
17081 fi
17082 chmod u+w . 2>&5
17083 $rm conftest*
17084 # SGI C++ compiler will create directory out/ii_files/ for
17085 # template instantiation
17086 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17087 $rm out/* && rmdir out
17088 cd ..
17089 rmdir conftest
17090 $rm conftest*
17091
17092 fi
17093 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17095
17096
17097 hard_links="nottested"
17098 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17099 # do not overwrite the value of need_locks provided by the user
17100 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17102 hard_links=yes
17103 $rm conftest*
17104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17105 touch conftest.a
17106 ln conftest.a conftest.b 2>&5 || hard_links=no
17107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17108 { echo "$as_me:$LINENO: result: $hard_links" >&5
17109 echo "${ECHO_T}$hard_links" >&6; }
17110 if test "$hard_links" = no; then
17111 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17113 need_locks=warn
17114 fi
17115 else
17116 need_locks=no
17117 fi
17118
17119 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17121
17122 runpath_var=
17123 allow_undefined_flag_GCJ=
17124 enable_shared_with_static_runtimes_GCJ=no
17125 archive_cmds_GCJ=
17126 archive_expsym_cmds_GCJ=
17127 old_archive_From_new_cmds_GCJ=
17128 old_archive_from_expsyms_cmds_GCJ=
17129 export_dynamic_flag_spec_GCJ=
17130 whole_archive_flag_spec_GCJ=
17131 thread_safe_flag_spec_GCJ=
17132 hardcode_libdir_flag_spec_GCJ=
17133 hardcode_libdir_flag_spec_ld_GCJ=
17134 hardcode_libdir_separator_GCJ=
17135 hardcode_direct_GCJ=no
17136 hardcode_minus_L_GCJ=no
17137 hardcode_shlibpath_var_GCJ=unsupported
17138 link_all_deplibs_GCJ=unknown
17139 hardcode_automatic_GCJ=no
17140 module_cmds_GCJ=
17141 module_expsym_cmds_GCJ=
17142 always_export_symbols_GCJ=no
17143 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17144 # include_expsyms should be a list of space-separated symbols to be *always*
17145 # included in the symbol list
17146 include_expsyms_GCJ=
17147 # exclude_expsyms can be an extended regexp of symbols to exclude
17148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17150 # as well as any symbol that contains `d'.
17151 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17153 # platforms (ab)use it in PIC code, but their linkers get confused if
17154 # the symbol is explicitly referenced. Since portable code cannot
17155 # rely on this symbol name, it's probably fine to never include it in
17156 # preloaded symbol tables.
17157 # Exclude shared library initialization/finalization symbols.
17158 extract_expsyms_cmds=
17159 # Just being paranoid about ensuring that cc_basename is set.
17160 for cc_temp in $compiler""; do
17161 case $cc_temp in
17162 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17163 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17164 \-*) ;;
17165 *) break;;
17166 esac
17167 done
17168 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17169
17170 case $host_os in
17171 cygwin* | mingw* | pw32*)
17172 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17173 # When not using gcc, we currently assume that we are using
17174 # Microsoft Visual C++.
17175 if test "$GCC" != yes; then
17176 with_gnu_ld=no
17177 fi
17178 ;;
17179 interix*)
17180 # we just hope/assume this is gcc and not c89 (= MSVC++)
17181 with_gnu_ld=yes
17182 ;;
17183 openbsd*)
17184 with_gnu_ld=no
17185 ;;
17186 esac
17187
17188 ld_shlibs_GCJ=yes
17189 if test "$with_gnu_ld" = yes; then
17190 # If archive_cmds runs LD, not CC, wlarc should be empty
17191 wlarc='${wl}'
17192
17193 # Set some defaults for GNU ld with shared library support. These
17194 # are reset later if shared libraries are not supported. Putting them
17195 # here allows them to be overridden if necessary.
17196 runpath_var=LD_RUN_PATH
17197 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17198 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17199 # ancient GNU ld didn't support --whole-archive et. al.
17200 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17201 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17202 else
17203 whole_archive_flag_spec_GCJ=
17204 fi
17205 supports_anon_versioning=no
17206 case `$LD -v 2>/dev/null` in
17207 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17208 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17209 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17210 *\ 2.11.*) ;; # other 2.11 versions
17211 *) supports_anon_versioning=yes ;;
17212 esac
17213
17214 # See if GNU ld supports shared libraries.
17215 case $host_os in
17216 aix[3-9]*)
17217 # On AIX/PPC, the GNU linker is very broken
17218 if test "$host_cpu" != ia64; then
17219 ld_shlibs_GCJ=no
17220 cat <<EOF 1>&2
17221
17222 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17223 *** to be unable to reliably create shared libraries on AIX.
17224 *** Therefore, libtool is disabling shared libraries support. If you
17225 *** really care for shared libraries, you may want to modify your PATH
17226 *** so that a non-GNU linker is found, and then restart.
17227
17228 EOF
17229 fi
17230 ;;
17231
17232 amigaos*)
17233 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17235 hardcode_minus_L_GCJ=yes
17236
17237 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17238 # that the semantics of dynamic libraries on AmigaOS, at least up
17239 # to version 4, is to share data among multiple programs linked
17240 # with the same dynamic library. Since this doesn't match the
17241 # behavior of shared libraries on other platforms, we can't use
17242 # them.
17243 ld_shlibs_GCJ=no
17244 ;;
17245
17246 beos*)
17247 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17248 allow_undefined_flag_GCJ=unsupported
17249 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17250 # support --undefined. This deserves some investigation. FIXME
17251 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17252 else
17253 ld_shlibs_GCJ=no
17254 fi
17255 ;;
17256
17257 cygwin* | mingw* | pw32*)
17258 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17259 # as there is no search path for DLLs.
17260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261 allow_undefined_flag_GCJ=unsupported
17262 always_export_symbols_GCJ=no
17263 enable_shared_with_static_runtimes_GCJ=yes
17264 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17265
17266 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17268 # If the export-symbols file already is a .def file (1st line
17269 # is EXPORTS), use it as is; otherwise, prepend...
17270 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17271 cp $export_symbols $output_objdir/$soname.def;
17272 else
17273 echo EXPORTS > $output_objdir/$soname.def;
17274 cat $export_symbols >> $output_objdir/$soname.def;
17275 fi~
17276 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17277 else
17278 ld_shlibs_GCJ=no
17279 fi
17280 ;;
17281
17282 interix[3-9]*)
17283 hardcode_direct_GCJ=no
17284 hardcode_shlibpath_var_GCJ=no
17285 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17286 export_dynamic_flag_spec_GCJ='${wl}-E'
17287 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17288 # Instead, shared libraries are loaded at an image base (0x10000000 by
17289 # default) and relocated if they conflict, which is a slow very memory
17290 # consuming and fragmenting process. To avoid this, we pick a random,
17291 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17292 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17293 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17294 archive_expsym_cmds_GCJ='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'
17295 ;;
17296
17297 gnu* | linux* | k*bsd*-gnu)
17298 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17299 tmp_addflag=
17300 case $cc_basename,$host_cpu in
17301 pgcc*) # Portland Group C compiler
17302 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17303 tmp_addflag=' $pic_flag'
17304 ;;
17305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17306 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17307 tmp_addflag=' $pic_flag -Mnomain' ;;
17308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17309 tmp_addflag=' -i_dynamic' ;;
17310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17311 tmp_addflag=' -i_dynamic -nofor_main' ;;
17312 ifc* | ifort*) # Intel Fortran compiler
17313 tmp_addflag=' -nofor_main' ;;
17314 esac
17315 case `$CC -V 2>&1 | sed 5q` in
17316 *Sun\ C*) # Sun C 5.9
17317 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17318 tmp_sharedflag='-G' ;;
17319 *Sun\ F*) # Sun Fortran 8.3
17320 tmp_sharedflag='-G' ;;
17321 *)
17322 tmp_sharedflag='-shared' ;;
17323 esac
17324 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17325
17326 if test $supports_anon_versioning = yes; then
17327 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17328 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17329 $echo "local: *; };" >> $output_objdir/$libname.ver~
17330 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17331 fi
17332 link_all_deplibs_GCJ=no
17333 else
17334 ld_shlibs_GCJ=no
17335 fi
17336 ;;
17337
17338 netbsd* | netbsdelf*-gnu)
17339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17340 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17341 wlarc=
17342 else
17343 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17344 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17345 fi
17346 ;;
17347
17348 solaris*)
17349 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17350 ld_shlibs_GCJ=no
17351 cat <<EOF 1>&2
17352
17353 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17354 *** create shared libraries on Solaris systems. Therefore, libtool
17355 *** is disabling shared libraries support. We urge you to upgrade GNU
17356 *** binutils to release 2.9.1 or newer. Another option is to modify
17357 *** your PATH or compiler configuration so that the native linker is
17358 *** used, and then restart.
17359
17360 EOF
17361 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17362 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17363 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17364 else
17365 ld_shlibs_GCJ=no
17366 fi
17367 ;;
17368
17369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17370 case `$LD -v 2>&1` in
17371 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17372 ld_shlibs_GCJ=no
17373 cat <<_LT_EOF 1>&2
17374
17375 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17376 *** reliably create shared libraries on SCO systems. Therefore, libtool
17377 *** is disabling shared libraries support. We urge you to upgrade GNU
17378 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17379 *** your PATH or compiler configuration so that the native linker is
17380 *** used, and then restart.
17381
17382 _LT_EOF
17383 ;;
17384 *)
17385 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17386 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17387 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17388 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17389 else
17390 ld_shlibs_GCJ=no
17391 fi
17392 ;;
17393 esac
17394 ;;
17395
17396 sunos4*)
17397 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17398 wlarc=
17399 hardcode_direct_GCJ=yes
17400 hardcode_shlibpath_var_GCJ=no
17401 ;;
17402
17403 *)
17404 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17405 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17406 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17407 else
17408 ld_shlibs_GCJ=no
17409 fi
17410 ;;
17411 esac
17412
17413 if test "$ld_shlibs_GCJ" = no; then
17414 runpath_var=
17415 hardcode_libdir_flag_spec_GCJ=
17416 export_dynamic_flag_spec_GCJ=
17417 whole_archive_flag_spec_GCJ=
17418 fi
17419 else
17420 # PORTME fill in a description of your system's linker (not GNU ld)
17421 case $host_os in
17422 aix3*)
17423 allow_undefined_flag_GCJ=unsupported
17424 always_export_symbols_GCJ=yes
17425 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17426 # Note: this linker hardcodes the directories in LIBPATH if there
17427 # are no directories specified by -L.
17428 hardcode_minus_L_GCJ=yes
17429 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17430 # Neither direct hardcoding nor static linking is supported with a
17431 # broken collect2.
17432 hardcode_direct_GCJ=unsupported
17433 fi
17434 ;;
17435
17436 aix[4-9]*)
17437 if test "$host_cpu" = ia64; then
17438 # On IA64, the linker does run time linking by default, so we don't
17439 # have to do anything special.
17440 aix_use_runtimelinking=no
17441 exp_sym_flag='-Bexport'
17442 no_entry_flag=""
17443 else
17444 # If we're using GNU nm, then we don't want the "-C" option.
17445 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17446 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17447 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17448 else
17449 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17450 fi
17451 aix_use_runtimelinking=no
17452
17453 # Test if we are trying to use run time linking or normal
17454 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17455 # need to do runtime linking.
17456 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17457 for ld_flag in $LDFLAGS; do
17458 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17459 aix_use_runtimelinking=yes
17460 break
17461 fi
17462 done
17463 ;;
17464 esac
17465
17466 exp_sym_flag='-bexport'
17467 no_entry_flag='-bnoentry'
17468 fi
17469
17470 # When large executables or shared objects are built, AIX ld can
17471 # have problems creating the table of contents. If linking a library
17472 # or program results in "error TOC overflow" add -mminimal-toc to
17473 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17474 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17475
17476 archive_cmds_GCJ=''
17477 hardcode_direct_GCJ=yes
17478 hardcode_libdir_separator_GCJ=':'
17479 link_all_deplibs_GCJ=yes
17480
17481 if test "$GCC" = yes; then
17482 case $host_os in aix4.[012]|aix4.[012].*)
17483 # We only want to do this on AIX 4.2 and lower, the check
17484 # below for broken collect2 doesn't work under 4.3+
17485 collect2name=`${CC} -print-prog-name=collect2`
17486 if test -f "$collect2name" && \
17487 strings "$collect2name" | grep resolve_lib_name >/dev/null
17488 then
17489 # We have reworked collect2
17490 :
17491 else
17492 # We have old collect2
17493 hardcode_direct_GCJ=unsupported
17494 # It fails to find uninstalled libraries when the uninstalled
17495 # path is not listed in the libpath. Setting hardcode_minus_L
17496 # to unsupported forces relinking
17497 hardcode_minus_L_GCJ=yes
17498 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17499 hardcode_libdir_separator_GCJ=
17500 fi
17501 ;;
17502 esac
17503 shared_flag='-shared'
17504 if test "$aix_use_runtimelinking" = yes; then
17505 shared_flag="$shared_flag "'${wl}-G'
17506 fi
17507 else
17508 # not using gcc
17509 if test "$host_cpu" = ia64; then
17510 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17511 # chokes on -Wl,-G. The following line is correct:
17512 shared_flag='-G'
17513 else
17514 if test "$aix_use_runtimelinking" = yes; then
17515 shared_flag='${wl}-G'
17516 else
17517 shared_flag='${wl}-bM:SRE'
17518 fi
17519 fi
17520 fi
17521
17522 # It seems that -bexpall does not export symbols beginning with
17523 # underscore (_), so it is better to generate a list of symbols to export.
17524 always_export_symbols_GCJ=yes
17525 if test "$aix_use_runtimelinking" = yes; then
17526 # Warning - without using the other runtime loading flags (-brtl),
17527 # -berok will link without error, but may produce a broken library.
17528 allow_undefined_flag_GCJ='-berok'
17529 # Determine the default libpath from the value encoded in an empty executable.
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536
17537 int
17538 main ()
17539 {
17540
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 rm -f conftest.$ac_objext conftest$ac_exeext
17546 if { (ac_try="$ac_link"
17547 case "(($ac_try" in
17548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17549 *) ac_try_echo=$ac_try;;
17550 esac
17551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17552 (eval "$ac_link") 2>conftest.er1
17553 ac_status=$?
17554 grep -v '^ *+' conftest.er1 >conftest.err
17555 rm -f conftest.er1
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } && {
17559 test -z "$ac_c_werror_flag" ||
17560 test ! -s conftest.err
17561 } && test -s conftest$ac_exeext &&
17562 $as_test_x conftest$ac_exeext; then
17563
17564 lt_aix_libpath_sed='
17565 /Import File Strings/,/^$/ {
17566 /^0/ {
17567 s/^0 *\(.*\)$/\1/
17568 p
17569 }
17570 }'
17571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17572 # Check for a 64-bit object if we didn't find anything.
17573 if test -z "$aix_libpath"; then
17574 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17575 fi
17576 else
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17584 conftest$ac_exeext conftest.$ac_ext
17585 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17586
17587 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17588 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17589 else
17590 if test "$host_cpu" = ia64; then
17591 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17592 allow_undefined_flag_GCJ="-z nodefs"
17593 archive_expsym_cmds_GCJ="\$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"
17594 else
17595 # Determine the default libpath from the value encoded in an empty executable.
17596 cat >conftest.$ac_ext <<_ACEOF
17597 /* confdefs.h. */
17598 _ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602
17603 int
17604 main ()
17605 {
17606
17607 ;
17608 return 0;
17609 }
17610 _ACEOF
17611 rm -f conftest.$ac_objext conftest$ac_exeext
17612 if { (ac_try="$ac_link"
17613 case "(($ac_try" in
17614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17615 *) ac_try_echo=$ac_try;;
17616 esac
17617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17618 (eval "$ac_link") 2>conftest.er1
17619 ac_status=$?
17620 grep -v '^ *+' conftest.er1 >conftest.err
17621 rm -f conftest.er1
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && {
17625 test -z "$ac_c_werror_flag" ||
17626 test ! -s conftest.err
17627 } && test -s conftest$ac_exeext &&
17628 $as_test_x conftest$ac_exeext; then
17629
17630 lt_aix_libpath_sed='
17631 /Import File Strings/,/^$/ {
17632 /^0/ {
17633 s/^0 *\(.*\)$/\1/
17634 p
17635 }
17636 }'
17637 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17638 # Check for a 64-bit object if we didn't find anything.
17639 if test -z "$aix_libpath"; then
17640 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17641 fi
17642 else
17643 echo "$as_me: failed program was:" >&5
17644 sed 's/^/| /' conftest.$ac_ext >&5
17645
17646
17647 fi
17648
17649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17650 conftest$ac_exeext conftest.$ac_ext
17651 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17652
17653 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17654 # Warning - without using the other run time loading flags,
17655 # -berok will link without error, but may produce a broken library.
17656 no_undefined_flag_GCJ=' ${wl}-bernotok'
17657 allow_undefined_flag_GCJ=' ${wl}-berok'
17658 # Exported symbols can be pulled into shared objects from archives
17659 whole_archive_flag_spec_GCJ='$convenience'
17660 archive_cmds_need_lc_GCJ=yes
17661 # This is similar to how AIX traditionally builds its shared libraries.
17662 archive_expsym_cmds_GCJ="\$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'
17663 fi
17664 fi
17665 ;;
17666
17667 amigaos*)
17668 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17669 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17670 hardcode_minus_L_GCJ=yes
17671 # see comment about different semantics on the GNU ld section
17672 ld_shlibs_GCJ=no
17673 ;;
17674
17675 bsdi[45]*)
17676 export_dynamic_flag_spec_GCJ=-rdynamic
17677 ;;
17678
17679 cygwin* | mingw* | pw32*)
17680 # When not using gcc, we currently assume that we are using
17681 # Microsoft Visual C++.
17682 # hardcode_libdir_flag_spec is actually meaningless, as there is
17683 # no search path for DLLs.
17684 hardcode_libdir_flag_spec_GCJ=' '
17685 allow_undefined_flag_GCJ=unsupported
17686 # Tell ltmain to make .lib files, not .a files.
17687 libext=lib
17688 # Tell ltmain to make .dll files, not .so files.
17689 shrext_cmds=".dll"
17690 # FIXME: Setting linknames here is a bad hack.
17691 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17692 # The linker will automatically build a .lib file if we build a DLL.
17693 old_archive_From_new_cmds_GCJ='true'
17694 # FIXME: Should let the user specify the lib program.
17695 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17696 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17697 enable_shared_with_static_runtimes_GCJ=yes
17698 ;;
17699
17700 darwin* | rhapsody*)
17701 case $host_os in
17702 rhapsody* | darwin1.[012])
17703 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17704 ;;
17705 *) # Darwin 1.3 on
17706 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17707 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17708 else
17709 case ${MACOSX_DEPLOYMENT_TARGET} in
17710 10.[012])
17711 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17712 ;;
17713 10.*)
17714 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17715 ;;
17716 esac
17717 fi
17718 ;;
17719 esac
17720 archive_cmds_need_lc_GCJ=no
17721 hardcode_direct_GCJ=no
17722 hardcode_automatic_GCJ=yes
17723 hardcode_shlibpath_var_GCJ=unsupported
17724 whole_archive_flag_spec_GCJ=''
17725 link_all_deplibs_GCJ=yes
17726 if test "$GCC" = yes ; then
17727 output_verbose_link_cmd='echo'
17728 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17729 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17730 archive_expsym_cmds_GCJ="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}"
17731 module_expsym_cmds_GCJ="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}"
17732 else
17733 case $cc_basename in
17734 xlc*)
17735 output_verbose_link_cmd='echo'
17736 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17737 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17738 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17739 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17740 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17741 ;;
17742 *)
17743 ld_shlibs_GCJ=no
17744 ;;
17745 esac
17746 fi
17747 ;;
17748
17749 dgux*)
17750 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17752 hardcode_shlibpath_var_GCJ=no
17753 ;;
17754
17755 freebsd1*)
17756 ld_shlibs_GCJ=no
17757 ;;
17758
17759 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17760 # support. Future versions do this automatically, but an explicit c++rt0.o
17761 # does not break anything, and helps significantly (at the cost of a little
17762 # extra space).
17763 freebsd2.2*)
17764 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17765 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17766 hardcode_direct_GCJ=yes
17767 hardcode_shlibpath_var_GCJ=no
17768 ;;
17769
17770 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17771 freebsd2*)
17772 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17773 hardcode_direct_GCJ=yes
17774 hardcode_minus_L_GCJ=yes
17775 hardcode_shlibpath_var_GCJ=no
17776 ;;
17777
17778 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17779 freebsd* | dragonfly*)
17780 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17781 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17782 hardcode_direct_GCJ=yes
17783 hardcode_shlibpath_var_GCJ=no
17784 ;;
17785
17786 hpux9*)
17787 if test "$GCC" = yes; then
17788 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17789 else
17790 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17791 fi
17792 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17793 hardcode_libdir_separator_GCJ=:
17794 hardcode_direct_GCJ=yes
17795
17796 # hardcode_minus_L: Not really in the search PATH,
17797 # but as the default location of the library.
17798 hardcode_minus_L_GCJ=yes
17799 export_dynamic_flag_spec_GCJ='${wl}-E'
17800 ;;
17801
17802 hpux10*)
17803 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17804 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17805 else
17806 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17807 fi
17808 if test "$with_gnu_ld" = no; then
17809 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17810 hardcode_libdir_separator_GCJ=:
17811
17812 hardcode_direct_GCJ=yes
17813 export_dynamic_flag_spec_GCJ='${wl}-E'
17814
17815 # hardcode_minus_L: Not really in the search PATH,
17816 # but as the default location of the library.
17817 hardcode_minus_L_GCJ=yes
17818 fi
17819 ;;
17820
17821 hpux11*)
17822 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17823 case $host_cpu in
17824 hppa*64*)
17825 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17826 ;;
17827 ia64*)
17828 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17829 ;;
17830 *)
17831 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17832 ;;
17833 esac
17834 else
17835 case $host_cpu in
17836 hppa*64*)
17837 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17838 ;;
17839 ia64*)
17840 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17841 ;;
17842 *)
17843 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17844 ;;
17845 esac
17846 fi
17847 if test "$with_gnu_ld" = no; then
17848 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17849 hardcode_libdir_separator_GCJ=:
17850
17851 case $host_cpu in
17852 hppa*64*|ia64*)
17853 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17854 hardcode_direct_GCJ=no
17855 hardcode_shlibpath_var_GCJ=no
17856 ;;
17857 *)
17858 hardcode_direct_GCJ=yes
17859 export_dynamic_flag_spec_GCJ='${wl}-E'
17860
17861 # hardcode_minus_L: Not really in the search PATH,
17862 # but as the default location of the library.
17863 hardcode_minus_L_GCJ=yes
17864 ;;
17865 esac
17866 fi
17867 ;;
17868
17869 irix5* | irix6* | nonstopux*)
17870 if test "$GCC" = yes; then
17871 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17872 else
17873 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17874 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17875 fi
17876 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17877 hardcode_libdir_separator_GCJ=:
17878 link_all_deplibs_GCJ=yes
17879 ;;
17880
17881 netbsd* | netbsdelf*-gnu)
17882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17883 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17884 else
17885 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17886 fi
17887 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17888 hardcode_direct_GCJ=yes
17889 hardcode_shlibpath_var_GCJ=no
17890 ;;
17891
17892 newsos6)
17893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17894 hardcode_direct_GCJ=yes
17895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17896 hardcode_libdir_separator_GCJ=:
17897 hardcode_shlibpath_var_GCJ=no
17898 ;;
17899
17900 openbsd*)
17901 if test -f /usr/libexec/ld.so; then
17902 hardcode_direct_GCJ=yes
17903 hardcode_shlibpath_var_GCJ=no
17904 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17905 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17906 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17907 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17908 export_dynamic_flag_spec_GCJ='${wl}-E'
17909 else
17910 case $host_os in
17911 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17913 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17914 ;;
17915 *)
17916 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17917 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17918 ;;
17919 esac
17920 fi
17921 else
17922 ld_shlibs_GCJ=no
17923 fi
17924 ;;
17925
17926 os2*)
17927 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17928 hardcode_minus_L_GCJ=yes
17929 allow_undefined_flag_GCJ=unsupported
17930 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17931 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17932 ;;
17933
17934 osf3*)
17935 if test "$GCC" = yes; then
17936 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17937 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17938 else
17939 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17940 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17941 fi
17942 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17943 hardcode_libdir_separator_GCJ=:
17944 ;;
17945
17946 osf4* | osf5*) # as osf3* with the addition of -msym flag
17947 if test "$GCC" = yes; then
17948 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17949 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17950 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17951 else
17952 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17953 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17954 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17955 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17956
17957 # Both c and cxx compiler support -rpath directly
17958 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17959 fi
17960 hardcode_libdir_separator_GCJ=:
17961 ;;
17962
17963 solaris*)
17964 no_undefined_flag_GCJ=' -z text'
17965 if test "$GCC" = yes; then
17966 wlarc='${wl}'
17967 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17968 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17969 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17970 else
17971 wlarc=''
17972 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17973 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17975 fi
17976 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17977 hardcode_shlibpath_var_GCJ=no
17978 case $host_os in
17979 solaris2.[0-5] | solaris2.[0-5].*) ;;
17980 *)
17981 # The compiler driver will combine and reorder linker options,
17982 # but understands `-z linker_flag'. GCC discards it without `$wl',
17983 # but is careful enough not to reorder.
17984 # Supported since Solaris 2.6 (maybe 2.5.1?)
17985 if test "$GCC" = yes; then
17986 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17987 else
17988 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17989 fi
17990 ;;
17991 esac
17992 link_all_deplibs_GCJ=yes
17993 ;;
17994
17995 sunos4*)
17996 if test "x$host_vendor" = xsequent; then
17997 # Use $CC to link under sequent, because it throws in some extra .o
17998 # files that make .init and .fini sections work.
17999 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18000 else
18001 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18002 fi
18003 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18004 hardcode_direct_GCJ=yes
18005 hardcode_minus_L_GCJ=yes
18006 hardcode_shlibpath_var_GCJ=no
18007 ;;
18008
18009 sysv4)
18010 case $host_vendor in
18011 sni)
18012 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18013 hardcode_direct_GCJ=yes # is this really true???
18014 ;;
18015 siemens)
18016 ## LD is ld it makes a PLAMLIB
18017 ## CC just makes a GrossModule.
18018 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18019 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18020 hardcode_direct_GCJ=no
18021 ;;
18022 motorola)
18023 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18024 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18025 ;;
18026 esac
18027 runpath_var='LD_RUN_PATH'
18028 hardcode_shlibpath_var_GCJ=no
18029 ;;
18030
18031 sysv4.3*)
18032 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18033 hardcode_shlibpath_var_GCJ=no
18034 export_dynamic_flag_spec_GCJ='-Bexport'
18035 ;;
18036
18037 sysv4*MP*)
18038 if test -d /usr/nec; then
18039 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18040 hardcode_shlibpath_var_GCJ=no
18041 runpath_var=LD_RUN_PATH
18042 hardcode_runpath_var=yes
18043 ld_shlibs_GCJ=yes
18044 fi
18045 ;;
18046
18047 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18048 no_undefined_flag_GCJ='${wl}-z,text'
18049 archive_cmds_need_lc_GCJ=no
18050 hardcode_shlibpath_var_GCJ=no
18051 runpath_var='LD_RUN_PATH'
18052
18053 if test "$GCC" = yes; then
18054 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18055 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18056 else
18057 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18059 fi
18060 ;;
18061
18062 sysv5* | sco3.2v5* | sco5v6*)
18063 # Note: We can NOT use -z defs as we might desire, because we do not
18064 # link with -lc, and that would cause any symbols used from libc to
18065 # always be unresolved, which means just about no library would
18066 # ever link correctly. If we're not using GNU ld we use -z text
18067 # though, which does catch some bad symbols but isn't as heavy-handed
18068 # as -z defs.
18069 no_undefined_flag_GCJ='${wl}-z,text'
18070 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18071 archive_cmds_need_lc_GCJ=no
18072 hardcode_shlibpath_var_GCJ=no
18073 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18074 hardcode_libdir_separator_GCJ=':'
18075 link_all_deplibs_GCJ=yes
18076 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18077 runpath_var='LD_RUN_PATH'
18078
18079 if test "$GCC" = yes; then
18080 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18081 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18082 else
18083 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18084 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18085 fi
18086 ;;
18087
18088 uts4*)
18089 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18090 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18091 hardcode_shlibpath_var_GCJ=no
18092 ;;
18093
18094 *)
18095 ld_shlibs_GCJ=no
18096 ;;
18097 esac
18098 fi
18099
18100 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18101 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18102 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18103
18104 #
18105 # Do we need to explicitly link libc?
18106 #
18107 case "x$archive_cmds_need_lc_GCJ" in
18108 x|xyes)
18109 # Assume -lc should be added
18110 archive_cmds_need_lc_GCJ=yes
18111
18112 if test "$enable_shared" = yes && test "$GCC" = yes; then
18113 case $archive_cmds_GCJ in
18114 *'~'*)
18115 # FIXME: we may have to deal with multi-command sequences.
18116 ;;
18117 '$CC '*)
18118 # Test whether the compiler implicitly links with -lc since on some
18119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18120 # to ld, don't add -lc before -lgcc.
18121 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18122 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18123 $rm conftest*
18124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18125
18126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127 (eval $ac_compile) 2>&5
18128 ac_status=$?
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); } 2>conftest.err; then
18131 soname=conftest
18132 lib=conftest
18133 libobjs=conftest.$ac_objext
18134 deplibs=
18135 wl=$lt_prog_compiler_wl_GCJ
18136 pic_flag=$lt_prog_compiler_pic_GCJ
18137 compiler_flags=-v
18138 linker_flags=-v
18139 verstring=
18140 output_objdir=.
18141 libname=conftest
18142 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18143 allow_undefined_flag_GCJ=
18144 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18145 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18146 ac_status=$?
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }
18149 then
18150 archive_cmds_need_lc_GCJ=no
18151 else
18152 archive_cmds_need_lc_GCJ=yes
18153 fi
18154 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18155 else
18156 cat conftest.err 1>&5
18157 fi
18158 $rm conftest*
18159 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18160 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18161 ;;
18162 esac
18163 fi
18164 ;;
18165 esac
18166
18167 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18168 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18169 library_names_spec=
18170 libname_spec='lib$name'
18171 soname_spec=
18172 shrext_cmds=".so"
18173 postinstall_cmds=
18174 postuninstall_cmds=
18175 finish_cmds=
18176 finish_eval=
18177 shlibpath_var=
18178 shlibpath_overrides_runpath=unknown
18179 version_type=none
18180 dynamic_linker="$host_os ld.so"
18181 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18182
18183 need_lib_prefix=unknown
18184 hardcode_into_libs=no
18185
18186 # when you set need_version to no, make sure it does not cause -set_version
18187 # flags to be left without arguments
18188 need_version=unknown
18189
18190 case $host_os in
18191 aix3*)
18192 version_type=linux
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18194 shlibpath_var=LIBPATH
18195
18196 # AIX 3 has no versioning support, so we append a major version to the name.
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 ;;
18199
18200 aix[4-9]*)
18201 version_type=linux
18202 need_lib_prefix=no
18203 need_version=no
18204 hardcode_into_libs=yes
18205 if test "$host_cpu" = ia64; then
18206 # AIX 5 supports IA64
18207 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 else
18210 # With GCC up to 2.95.x, collect2 would create an import file
18211 # for dependence libraries. The import file would start with
18212 # the line `#! .'. This would cause the generated library to
18213 # depend on `.', always an invalid library. This was fixed in
18214 # development snapshots of GCC prior to 3.0.
18215 case $host_os in
18216 aix4 | aix4.[01] | aix4.[01].*)
18217 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18218 echo ' yes '
18219 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18220 :
18221 else
18222 can_build_shared=no
18223 fi
18224 ;;
18225 esac
18226 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18227 # soname into executable. Probably we can add versioning support to
18228 # collect2, so additional links can be useful in future.
18229 if test "$aix_use_runtimelinking" = yes; then
18230 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18231 # instead of lib<name>.a to let people know that these are not
18232 # typical AIX shared libraries.
18233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18234 else
18235 # We preserve .a as extension for shared libraries through AIX4.2
18236 # and later when we are not doing run time linking.
18237 library_names_spec='${libname}${release}.a $libname.a'
18238 soname_spec='${libname}${release}${shared_ext}$major'
18239 fi
18240 shlibpath_var=LIBPATH
18241 fi
18242 ;;
18243
18244 amigaos*)
18245 library_names_spec='$libname.ixlibrary $libname.a'
18246 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18247 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18248 ;;
18249
18250 beos*)
18251 library_names_spec='${libname}${shared_ext}'
18252 dynamic_linker="$host_os ld.so"
18253 shlibpath_var=LIBRARY_PATH
18254 ;;
18255
18256 bsdi[45]*)
18257 version_type=linux
18258 need_version=no
18259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18260 soname_spec='${libname}${release}${shared_ext}$major'
18261 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18262 shlibpath_var=LD_LIBRARY_PATH
18263 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18264 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18265 # the default ld.so.conf also contains /usr/contrib/lib and
18266 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18267 # libtool to hard-code these into programs
18268 ;;
18269
18270 cygwin* | mingw* | pw32*)
18271 version_type=windows
18272 shrext_cmds=".dll"
18273 need_version=no
18274 need_lib_prefix=no
18275
18276 case $GCC,$host_os in
18277 yes,cygwin* | yes,mingw* | yes,pw32*)
18278 library_names_spec='$libname.dll.a'
18279 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18280 postinstall_cmds='base_file=`basename \${file}`~
18281 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18282 dldir=$destdir/`dirname \$dlpath`~
18283 test -d \$dldir || mkdir -p \$dldir~
18284 $install_prog $dir/$dlname \$dldir/$dlname~
18285 chmod a+x \$dldir/$dlname'
18286 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18287 dlpath=$dir/\$dldll~
18288 $rm \$dlpath'
18289 shlibpath_overrides_runpath=yes
18290
18291 case $host_os in
18292 cygwin*)
18293 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18294 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18295 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18296 ;;
18297 mingw*)
18298 # MinGW DLLs use traditional 'lib' prefix
18299 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18300 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18301 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18302 # It is most probably a Windows format PATH printed by
18303 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18304 # path with ; separators, and with drive letters. We can handle the
18305 # drive letters (cygwin fileutils understands them), so leave them,
18306 # especially as we might pass files found there to a mingw objdump,
18307 # which wouldn't understand a cygwinified path. Ahh.
18308 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18309 else
18310 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18311 fi
18312 ;;
18313 pw32*)
18314 # pw32 DLLs use 'pw' prefix rather than 'lib'
18315 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18316 ;;
18317 esac
18318 ;;
18319
18320 *)
18321 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18322 ;;
18323 esac
18324 dynamic_linker='Win32 ld.exe'
18325 # FIXME: first we should search . and the directory the executable is in
18326 shlibpath_var=PATH
18327 ;;
18328
18329 darwin* | rhapsody*)
18330 dynamic_linker="$host_os dyld"
18331 version_type=darwin
18332 need_lib_prefix=no
18333 need_version=no
18334 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18335 soname_spec='${libname}${release}${major}$shared_ext'
18336 shlibpath_overrides_runpath=yes
18337 shlibpath_var=DYLD_LIBRARY_PATH
18338 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18339
18340 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18341 ;;
18342
18343 dgux*)
18344 version_type=linux
18345 need_lib_prefix=no
18346 need_version=no
18347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18348 soname_spec='${libname}${release}${shared_ext}$major'
18349 shlibpath_var=LD_LIBRARY_PATH
18350 ;;
18351
18352 freebsd1*)
18353 dynamic_linker=no
18354 ;;
18355
18356 freebsd* | dragonfly*)
18357 # DragonFly does not have aout. When/if they implement a new
18358 # versioning mechanism, adjust this.
18359 if test -x /usr/bin/objformat; then
18360 objformat=`/usr/bin/objformat`
18361 else
18362 case $host_os in
18363 freebsd[123]*) objformat=aout ;;
18364 *) objformat=elf ;;
18365 esac
18366 fi
18367 version_type=freebsd-$objformat
18368 case $version_type in
18369 freebsd-elf*)
18370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18371 need_version=no
18372 need_lib_prefix=no
18373 ;;
18374 freebsd-*)
18375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18376 need_version=yes
18377 ;;
18378 esac
18379 shlibpath_var=LD_LIBRARY_PATH
18380 case $host_os in
18381 freebsd2*)
18382 shlibpath_overrides_runpath=yes
18383 ;;
18384 freebsd3.[01]* | freebsdelf3.[01]*)
18385 shlibpath_overrides_runpath=yes
18386 hardcode_into_libs=yes
18387 ;;
18388 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18389 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18390 shlibpath_overrides_runpath=no
18391 hardcode_into_libs=yes
18392 ;;
18393 *) # from 4.6 on, and DragonFly
18394 shlibpath_overrides_runpath=yes
18395 hardcode_into_libs=yes
18396 ;;
18397 esac
18398 ;;
18399
18400 gnu*)
18401 version_type=linux
18402 need_lib_prefix=no
18403 need_version=no
18404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18405 soname_spec='${libname}${release}${shared_ext}$major'
18406 shlibpath_var=LD_LIBRARY_PATH
18407 hardcode_into_libs=yes
18408 ;;
18409
18410 hpux9* | hpux10* | hpux11*)
18411 # Give a soname corresponding to the major version so that dld.sl refuses to
18412 # link against other versions.
18413 version_type=sunos
18414 need_lib_prefix=no
18415 need_version=no
18416 case $host_cpu in
18417 ia64*)
18418 shrext_cmds='.so'
18419 hardcode_into_libs=yes
18420 dynamic_linker="$host_os dld.so"
18421 shlibpath_var=LD_LIBRARY_PATH
18422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18424 soname_spec='${libname}${release}${shared_ext}$major'
18425 if test "X$HPUX_IA64_MODE" = X32; then
18426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18427 else
18428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18429 fi
18430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18431 ;;
18432 hppa*64*)
18433 shrext_cmds='.sl'
18434 hardcode_into_libs=yes
18435 dynamic_linker="$host_os dld.sl"
18436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18439 soname_spec='${libname}${release}${shared_ext}$major'
18440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18442 ;;
18443 *)
18444 shrext_cmds='.sl'
18445 dynamic_linker="$host_os dld.sl"
18446 shlibpath_var=SHLIB_PATH
18447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18449 soname_spec='${libname}${release}${shared_ext}$major'
18450 ;;
18451 esac
18452 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18453 postinstall_cmds='chmod 555 $lib'
18454 ;;
18455
18456 interix[3-9]*)
18457 version_type=linux
18458 need_lib_prefix=no
18459 need_version=no
18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18461 soname_spec='${libname}${release}${shared_ext}$major'
18462 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18463 shlibpath_var=LD_LIBRARY_PATH
18464 shlibpath_overrides_runpath=no
18465 hardcode_into_libs=yes
18466 ;;
18467
18468 irix5* | irix6* | nonstopux*)
18469 case $host_os in
18470 nonstopux*) version_type=nonstopux ;;
18471 *)
18472 if test "$lt_cv_prog_gnu_ld" = yes; then
18473 version_type=linux
18474 else
18475 version_type=irix
18476 fi ;;
18477 esac
18478 need_lib_prefix=no
18479 need_version=no
18480 soname_spec='${libname}${release}${shared_ext}$major'
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18482 case $host_os in
18483 irix5* | nonstopux*)
18484 libsuff= shlibsuff=
18485 ;;
18486 *)
18487 case $LD in # libtool.m4 will add one of these switches to LD
18488 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18489 libsuff= shlibsuff= libmagic=32-bit;;
18490 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18491 libsuff=32 shlibsuff=N32 libmagic=N32;;
18492 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18493 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18494 *) libsuff= shlibsuff= libmagic=never-match;;
18495 esac
18496 ;;
18497 esac
18498 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18499 shlibpath_overrides_runpath=no
18500 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18501 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18502 hardcode_into_libs=yes
18503 ;;
18504
18505 # No shared lib support for Linux oldld, aout, or coff.
18506 linux*oldld* | linux*aout* | linux*coff*)
18507 dynamic_linker=no
18508 ;;
18509
18510 # This must be Linux ELF.
18511 linux* | k*bsd*-gnu)
18512 version_type=linux
18513 need_lib_prefix=no
18514 need_version=no
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18516 soname_spec='${libname}${release}${shared_ext}$major'
18517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18518 shlibpath_var=LD_LIBRARY_PATH
18519 shlibpath_overrides_runpath=no
18520 # This implies no fast_install, which is unacceptable.
18521 # Some rework will be needed to allow for fast_install
18522 # before this can be enabled.
18523 hardcode_into_libs=yes
18524
18525 # Append ld.so.conf contents to the search path
18526 if test -f /etc/ld.so.conf; then
18527 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18528 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18529 fi
18530
18531 # We used to test for /lib/ld.so.1 and disable shared libraries on
18532 # powerpc, because MkLinux only supported shared libraries with the
18533 # GNU dynamic linker. Since this was broken with cross compilers,
18534 # most powerpc-linux boxes support dynamic linking these days and
18535 # people can always --disable-shared, the test was removed, and we
18536 # assume the GNU/Linux dynamic linker is in use.
18537 dynamic_linker='GNU/Linux ld.so'
18538 ;;
18539
18540 netbsdelf*-gnu)
18541 version_type=linux
18542 need_lib_prefix=no
18543 need_version=no
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=no
18548 hardcode_into_libs=yes
18549 dynamic_linker='NetBSD ld.elf_so'
18550 ;;
18551
18552 netbsd*)
18553 version_type=sunos
18554 need_lib_prefix=no
18555 need_version=no
18556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18559 dynamic_linker='NetBSD (a.out) ld.so'
18560 else
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18562 soname_spec='${libname}${release}${shared_ext}$major'
18563 dynamic_linker='NetBSD ld.elf_so'
18564 fi
18565 shlibpath_var=LD_LIBRARY_PATH
18566 shlibpath_overrides_runpath=yes
18567 hardcode_into_libs=yes
18568 ;;
18569
18570 newsos6)
18571 version_type=linux
18572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18573 shlibpath_var=LD_LIBRARY_PATH
18574 shlibpath_overrides_runpath=yes
18575 ;;
18576
18577 nto-qnx*)
18578 version_type=linux
18579 need_lib_prefix=no
18580 need_version=no
18581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18582 soname_spec='${libname}${release}${shared_ext}$major'
18583 shlibpath_var=LD_LIBRARY_PATH
18584 shlibpath_overrides_runpath=yes
18585 ;;
18586
18587 openbsd*)
18588 version_type=sunos
18589 sys_lib_dlsearch_path_spec="/usr/lib"
18590 need_lib_prefix=no
18591 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18592 case $host_os in
18593 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18594 *) need_version=no ;;
18595 esac
18596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18598 shlibpath_var=LD_LIBRARY_PATH
18599 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18600 case $host_os in
18601 openbsd2.[89] | openbsd2.[89].*)
18602 shlibpath_overrides_runpath=no
18603 ;;
18604 *)
18605 shlibpath_overrides_runpath=yes
18606 ;;
18607 esac
18608 else
18609 shlibpath_overrides_runpath=yes
18610 fi
18611 ;;
18612
18613 os2*)
18614 libname_spec='$name'
18615 shrext_cmds=".dll"
18616 need_lib_prefix=no
18617 library_names_spec='$libname${shared_ext} $libname.a'
18618 dynamic_linker='OS/2 ld.exe'
18619 shlibpath_var=LIBPATH
18620 ;;
18621
18622 osf3* | osf4* | osf5*)
18623 version_type=osf
18624 need_lib_prefix=no
18625 need_version=no
18626 soname_spec='${libname}${release}${shared_ext}$major'
18627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628 shlibpath_var=LD_LIBRARY_PATH
18629 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18630 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18631 ;;
18632
18633 rdos*)
18634 dynamic_linker=no
18635 ;;
18636
18637 solaris*)
18638 version_type=linux
18639 need_lib_prefix=no
18640 need_version=no
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642 soname_spec='${libname}${release}${shared_ext}$major'
18643 shlibpath_var=LD_LIBRARY_PATH
18644 shlibpath_overrides_runpath=yes
18645 hardcode_into_libs=yes
18646 # ldd complains unless libraries are executable
18647 postinstall_cmds='chmod +x $lib'
18648 ;;
18649
18650 sunos4*)
18651 version_type=sunos
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18653 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18654 shlibpath_var=LD_LIBRARY_PATH
18655 shlibpath_overrides_runpath=yes
18656 if test "$with_gnu_ld" = yes; then
18657 need_lib_prefix=no
18658 fi
18659 need_version=yes
18660 ;;
18661
18662 sysv4 | sysv4.3*)
18663 version_type=linux
18664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18665 soname_spec='${libname}${release}${shared_ext}$major'
18666 shlibpath_var=LD_LIBRARY_PATH
18667 case $host_vendor in
18668 sni)
18669 shlibpath_overrides_runpath=no
18670 need_lib_prefix=no
18671 export_dynamic_flag_spec='${wl}-Blargedynsym'
18672 runpath_var=LD_RUN_PATH
18673 ;;
18674 siemens)
18675 need_lib_prefix=no
18676 ;;
18677 motorola)
18678 need_lib_prefix=no
18679 need_version=no
18680 shlibpath_overrides_runpath=no
18681 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18682 ;;
18683 esac
18684 ;;
18685
18686 sysv4*MP*)
18687 if test -d /usr/nec ;then
18688 version_type=linux
18689 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18690 soname_spec='$libname${shared_ext}.$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18692 fi
18693 ;;
18694
18695 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18696 version_type=freebsd-elf
18697 need_lib_prefix=no
18698 need_version=no
18699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18700 soname_spec='${libname}${release}${shared_ext}$major'
18701 shlibpath_var=LD_LIBRARY_PATH
18702 hardcode_into_libs=yes
18703 if test "$with_gnu_ld" = yes; then
18704 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18705 shlibpath_overrides_runpath=no
18706 else
18707 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18708 shlibpath_overrides_runpath=yes
18709 case $host_os in
18710 sco3.2v5*)
18711 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18712 ;;
18713 esac
18714 fi
18715 sys_lib_dlsearch_path_spec='/usr/lib'
18716 ;;
18717
18718 uts4*)
18719 version_type=linux
18720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18721 soname_spec='${libname}${release}${shared_ext}$major'
18722 shlibpath_var=LD_LIBRARY_PATH
18723 ;;
18724
18725 *)
18726 dynamic_linker=no
18727 ;;
18728 esac
18729 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18730 echo "${ECHO_T}$dynamic_linker" >&6; }
18731 test "$dynamic_linker" = no && can_build_shared=no
18732
18733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18734 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 else
18736 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18737 fi
18738
18739 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18740 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 else
18743 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18744 fi
18745
18746 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18747
18748 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18749 if test "$GCC" = yes; then
18750 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18751 fi
18752
18753 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18754 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18755 hardcode_action_GCJ=
18756 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18757 test -n "$runpath_var_GCJ" || \
18758 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18759
18760 # We can hardcode non-existant directories.
18761 if test "$hardcode_direct_GCJ" != no &&
18762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18763 # have to relink, otherwise we might link with an installed library
18764 # when we should be linking with a yet-to-be-installed one
18765 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18766 test "$hardcode_minus_L_GCJ" != no; then
18767 # Linking always hardcodes the temporary library directory.
18768 hardcode_action_GCJ=relink
18769 else
18770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18771 hardcode_action_GCJ=immediate
18772 fi
18773 else
18774 # We cannot hardcode anything, or else we can only hardcode existing
18775 # directories.
18776 hardcode_action_GCJ=unsupported
18777 fi
18778 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18779 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18780
18781 if test "$hardcode_action_GCJ" = relink; then
18782 # Fast installation is not supported
18783 enable_fast_install=no
18784 elif test "$shlibpath_overrides_runpath" = yes ||
18785 test "$enable_shared" = no; then
18786 # Fast installation is not necessary
18787 enable_fast_install=needless
18788 fi
18789
18790
18791 # The else clause should only fire when bootstrapping the
18792 # libtool distribution, otherwise you forgot to ship ltmain.sh
18793 # with your package, and you will get complaints that there are
18794 # no rules to generate ltmain.sh.
18795 if test -f "$ltmain"; then
18796 # See if we are running on zsh, and set the options which allow our commands through
18797 # without removal of \ escapes.
18798 if test -n "${ZSH_VERSION+set}" ; then
18799 setopt NO_GLOB_SUBST
18800 fi
18801 # Now quote all the things that may contain metacharacters while being
18802 # careful not to overquote the AC_SUBSTed values. We take copies of the
18803 # variables and quote the copies for generation of the libtool script.
18804 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18805 SED SHELL STRIP \
18806 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18807 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18808 deplibs_check_method reload_flag reload_cmds need_locks \
18809 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18810 lt_cv_sys_global_symbol_to_c_name_address \
18811 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18812 old_postinstall_cmds old_postuninstall_cmds \
18813 compiler_GCJ \
18814 CC_GCJ \
18815 LD_GCJ \
18816 lt_prog_compiler_wl_GCJ \
18817 lt_prog_compiler_pic_GCJ \
18818 lt_prog_compiler_static_GCJ \
18819 lt_prog_compiler_no_builtin_flag_GCJ \
18820 export_dynamic_flag_spec_GCJ \
18821 thread_safe_flag_spec_GCJ \
18822 whole_archive_flag_spec_GCJ \
18823 enable_shared_with_static_runtimes_GCJ \
18824 old_archive_cmds_GCJ \
18825 old_archive_from_new_cmds_GCJ \
18826 predep_objects_GCJ \
18827 postdep_objects_GCJ \
18828 predeps_GCJ \
18829 postdeps_GCJ \
18830 compiler_lib_search_path_GCJ \
18831 compiler_lib_search_dirs_GCJ \
18832 archive_cmds_GCJ \
18833 archive_expsym_cmds_GCJ \
18834 postinstall_cmds_GCJ \
18835 postuninstall_cmds_GCJ \
18836 old_archive_from_expsyms_cmds_GCJ \
18837 allow_undefined_flag_GCJ \
18838 no_undefined_flag_GCJ \
18839 export_symbols_cmds_GCJ \
18840 hardcode_libdir_flag_spec_GCJ \
18841 hardcode_libdir_flag_spec_ld_GCJ \
18842 hardcode_libdir_separator_GCJ \
18843 hardcode_automatic_GCJ \
18844 module_cmds_GCJ \
18845 module_expsym_cmds_GCJ \
18846 lt_cv_prog_compiler_c_o_GCJ \
18847 fix_srcfile_path_GCJ \
18848 exclude_expsyms_GCJ \
18849 include_expsyms_GCJ; do
18850
18851 case $var in
18852 old_archive_cmds_GCJ | \
18853 old_archive_from_new_cmds_GCJ | \
18854 archive_cmds_GCJ | \
18855 archive_expsym_cmds_GCJ | \
18856 module_cmds_GCJ | \
18857 module_expsym_cmds_GCJ | \
18858 old_archive_from_expsyms_cmds_GCJ | \
18859 export_symbols_cmds_GCJ | \
18860 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18861 postinstall_cmds | postuninstall_cmds | \
18862 old_postinstall_cmds | old_postuninstall_cmds | \
18863 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18864 # Double-quote double-evaled strings.
18865 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18866 ;;
18867 *)
18868 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18869 ;;
18870 esac
18871 done
18872
18873 case $lt_echo in
18874 *'\$0 --fallback-echo"')
18875 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18876 ;;
18877 esac
18878
18879 cfgfile="$ofile"
18880
18881 cat <<__EOF__ >> "$cfgfile"
18882 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18883
18884 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18885
18886 # Shell to use when invoking shell scripts.
18887 SHELL=$lt_SHELL
18888
18889 # Whether or not to build shared libraries.
18890 build_libtool_libs=$enable_shared
18891
18892 # Whether or not to build static libraries.
18893 build_old_libs=$enable_static
18894
18895 # Whether or not to add -lc for building shared libraries.
18896 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18897
18898 # Whether or not to disallow shared libs when runtime libs are static
18899 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18900
18901 # Whether or not to optimize for fast installation.
18902 fast_install=$enable_fast_install
18903
18904 # The host system.
18905 host_alias=$host_alias
18906 host=$host
18907 host_os=$host_os
18908
18909 # The build system.
18910 build_alias=$build_alias
18911 build=$build
18912 build_os=$build_os
18913
18914 # An echo program that does not interpret backslashes.
18915 echo=$lt_echo
18916
18917 # The archiver.
18918 AR=$lt_AR
18919 AR_FLAGS=$lt_AR_FLAGS
18920
18921 # A C compiler.
18922 LTCC=$lt_LTCC
18923
18924 # LTCC compiler flags.
18925 LTCFLAGS=$lt_LTCFLAGS
18926
18927 # A language-specific compiler.
18928 CC=$lt_compiler_GCJ
18929
18930 # Is the compiler the GNU C compiler?
18931 with_gcc=$GCC_GCJ
18932
18933 # An ERE matcher.
18934 EGREP=$lt_EGREP
18935
18936 # The linker used to build libraries.
18937 LD=$lt_LD_GCJ
18938
18939 # Whether we need hard or soft links.
18940 LN_S=$lt_LN_S
18941
18942 # A BSD-compatible nm program.
18943 NM=$lt_NM
18944
18945 # A symbol stripping program
18946 STRIP=$lt_STRIP
18947
18948 # Used to examine libraries when file_magic_cmd begins "file"
18949 MAGIC_CMD=$MAGIC_CMD
18950
18951 # Used on cygwin: DLL creation program.
18952 DLLTOOL="$DLLTOOL"
18953
18954 # Used on cygwin: object dumper.
18955 OBJDUMP="$OBJDUMP"
18956
18957 # Used on cygwin: assembler.
18958 AS="$AS"
18959
18960 # The name of the directory that contains temporary libtool files.
18961 objdir=$objdir
18962
18963 # How to create reloadable object files.
18964 reload_flag=$lt_reload_flag
18965 reload_cmds=$lt_reload_cmds
18966
18967 # How to pass a linker flag through the compiler.
18968 wl=$lt_lt_prog_compiler_wl_GCJ
18969
18970 # Object file suffix (normally "o").
18971 objext="$ac_objext"
18972
18973 # Old archive suffix (normally "a").
18974 libext="$libext"
18975
18976 # Shared library suffix (normally ".so").
18977 shrext_cmds='$shrext_cmds'
18978
18979 # Executable file suffix (normally "").
18980 exeext="$exeext"
18981
18982 # Additional compiler flags for building library objects.
18983 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18984 pic_mode=$pic_mode
18985
18986 # What is the maximum length of a command?
18987 max_cmd_len=$lt_cv_sys_max_cmd_len
18988
18989 # Does compiler simultaneously support -c and -o options?
18990 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18991
18992 # Must we lock files when doing compilation?
18993 need_locks=$lt_need_locks
18994
18995 # Do we need the lib prefix for modules?
18996 need_lib_prefix=$need_lib_prefix
18997
18998 # Do we need a version for libraries?
18999 need_version=$need_version
19000
19001 # Whether dlopen is supported.
19002 dlopen_support=$enable_dlopen
19003
19004 # Whether dlopen of programs is supported.
19005 dlopen_self=$enable_dlopen_self
19006
19007 # Whether dlopen of statically linked programs is supported.
19008 dlopen_self_static=$enable_dlopen_self_static
19009
19010 # Compiler flag to prevent dynamic linking.
19011 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19012
19013 # Compiler flag to turn off builtin functions.
19014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19015
19016 # Compiler flag to allow reflexive dlopens.
19017 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19018
19019 # Compiler flag to generate shared objects directly from archives.
19020 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19021
19022 # Compiler flag to generate thread-safe objects.
19023 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19024
19025 # Library versioning type.
19026 version_type=$version_type
19027
19028 # Format of library name prefix.
19029 libname_spec=$lt_libname_spec
19030
19031 # List of archive names. First name is the real one, the rest are links.
19032 # The last name is the one that the linker finds with -lNAME.
19033 library_names_spec=$lt_library_names_spec
19034
19035 # The coded name of the library, if different from the real name.
19036 soname_spec=$lt_soname_spec
19037
19038 # Commands used to build and install an old-style archive.
19039 RANLIB=$lt_RANLIB
19040 old_archive_cmds=$lt_old_archive_cmds_GCJ
19041 old_postinstall_cmds=$lt_old_postinstall_cmds
19042 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19043
19044 # Create an old-style archive from a shared archive.
19045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19046
19047 # Create a temporary old-style archive to link instead of a shared archive.
19048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19049
19050 # Commands used to build and install a shared archive.
19051 archive_cmds=$lt_archive_cmds_GCJ
19052 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19053 postinstall_cmds=$lt_postinstall_cmds
19054 postuninstall_cmds=$lt_postuninstall_cmds
19055
19056 # Commands used to build a loadable module (assumed same as above if empty)
19057 module_cmds=$lt_module_cmds_GCJ
19058 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19059
19060 # Commands to strip libraries.
19061 old_striplib=$lt_old_striplib
19062 striplib=$lt_striplib
19063
19064 # Dependencies to place before the objects being linked to create a
19065 # shared library.
19066 predep_objects=$lt_predep_objects_GCJ
19067
19068 # Dependencies to place after the objects being linked to create a
19069 # shared library.
19070 postdep_objects=$lt_postdep_objects_GCJ
19071
19072 # Dependencies to place before the objects being linked to create a
19073 # shared library.
19074 predeps=$lt_predeps_GCJ
19075
19076 # Dependencies to place after the objects being linked to create a
19077 # shared library.
19078 postdeps=$lt_postdeps_GCJ
19079
19080 # The directories searched by this compiler when creating a shared
19081 # library
19082 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19083
19084 # The library search path used internally by the compiler when linking
19085 # a shared library.
19086 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19087
19088 # Method to check whether dependent libraries are shared objects.
19089 deplibs_check_method=$lt_deplibs_check_method
19090
19091 # Command to use when deplibs_check_method == file_magic.
19092 file_magic_cmd=$lt_file_magic_cmd
19093
19094 # Flag that allows shared libraries with undefined symbols to be built.
19095 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19096
19097 # Flag that forces no undefined symbols.
19098 no_undefined_flag=$lt_no_undefined_flag_GCJ
19099
19100 # Commands used to finish a libtool library installation in a directory.
19101 finish_cmds=$lt_finish_cmds
19102
19103 # Same as above, but a single script fragment to be evaled but not shown.
19104 finish_eval=$lt_finish_eval
19105
19106 # Take the output of nm and produce a listing of raw symbols and C names.
19107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19108
19109 # Transform the output of nm in a proper C declaration
19110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19111
19112 # Transform the output of nm in a C name address pair
19113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19114
19115 # This is the shared library runtime path variable.
19116 runpath_var=$runpath_var
19117
19118 # This is the shared library path variable.
19119 shlibpath_var=$shlibpath_var
19120
19121 # Is shlibpath searched before the hard-coded library search path?
19122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19123
19124 # How to hardcode a shared library path into an executable.
19125 hardcode_action=$hardcode_action_GCJ
19126
19127 # Whether we should hardcode library paths into libraries.
19128 hardcode_into_libs=$hardcode_into_libs
19129
19130 # Flag to hardcode \$libdir into a binary during linking.
19131 # This must work even if \$libdir does not exist.
19132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19133
19134 # If ld is used when linking, flag to hardcode \$libdir into
19135 # a binary during linking. This must work even if \$libdir does
19136 # not exist.
19137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19138
19139 # Whether we need a single -rpath flag with a separated argument.
19140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19141
19142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_direct=$hardcode_direct_GCJ
19145
19146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_minus_L=$hardcode_minus_L_GCJ
19149
19150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19151 # the resulting binary.
19152 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19153
19154 # Set to yes if building a shared library automatically hardcodes DIR into the library
19155 # and all subsequent libraries and executables linked against it.
19156 hardcode_automatic=$hardcode_automatic_GCJ
19157
19158 # Variables whose values should be saved in libtool wrapper scripts and
19159 # restored at relink time.
19160 variables_saved_for_relink="$variables_saved_for_relink"
19161
19162 # Whether libtool must link a program against all its dependency libraries.
19163 link_all_deplibs=$link_all_deplibs_GCJ
19164
19165 # Compile-time system search path for libraries
19166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19167
19168 # Run-time system search path for libraries
19169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19170
19171 # Fix the shell variable \$srcfile for the compiler.
19172 fix_srcfile_path=$lt_fix_srcfile_path
19173
19174 # Set to yes if exported symbols are required.
19175 always_export_symbols=$always_export_symbols_GCJ
19176
19177 # The commands to list exported symbols.
19178 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19179
19180 # The commands to extract the exported symbol list from a shared archive.
19181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19182
19183 # Symbols that should not be listed in the preloaded symbols.
19184 exclude_expsyms=$lt_exclude_expsyms_GCJ
19185
19186 # Symbols that must always be exported.
19187 include_expsyms=$lt_include_expsyms_GCJ
19188
19189 # ### END LIBTOOL TAG CONFIG: $tagname
19190
19191 __EOF__
19192
19193
19194 else
19195 # If there is no Makefile yet, we rely on a make rule to execute
19196 # `config.status --recheck' to rerun these tests and create the
19197 # libtool script then.
19198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19199 if test -f "$ltmain_in"; then
19200 test -f Makefile && make "$ltmain"
19201 fi
19202 fi
19203
19204
19205 ac_ext=c
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19210
19211 CC="$lt_save_CC"
19212
19213 else
19214 tagname=""
19215 fi
19216 ;;
19217
19218 RC)
19219
19220
19221 # Source file extension for RC test sources.
19222 ac_ext=rc
19223
19224 # Object file extension for compiled RC test sources.
19225 objext=o
19226 objext_RC=$objext
19227
19228 # Code to be used in simple compile tests
19229 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19230
19231 # Code to be used in simple link tests
19232 lt_simple_link_test_code="$lt_simple_compile_test_code"
19233
19234 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19235
19236 # If no C compiler was specified, use CC.
19237 LTCC=${LTCC-"$CC"}
19238
19239 # If no C compiler flags were specified, use CFLAGS.
19240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19241
19242 # Allow CC to be a program name with arguments.
19243 compiler=$CC
19244
19245
19246 # save warnings/boilerplate of simple test code
19247 ac_outfile=conftest.$ac_objext
19248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19250 _lt_compiler_boilerplate=`cat conftest.err`
19251 $rm conftest*
19252
19253 ac_outfile=conftest.$ac_objext
19254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19256 _lt_linker_boilerplate=`cat conftest.err`
19257 $rm -r conftest*
19258
19259
19260 # Allow CC to be a program name with arguments.
19261 lt_save_CC="$CC"
19262 CC=${RC-"windres"}
19263 compiler=$CC
19264 compiler_RC=$CC
19265 for cc_temp in $compiler""; do
19266 case $cc_temp in
19267 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19268 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19269 \-*) ;;
19270 *) break;;
19271 esac
19272 done
19273 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19274
19275 lt_cv_prog_compiler_c_o_RC=yes
19276
19277 # The else clause should only fire when bootstrapping the
19278 # libtool distribution, otherwise you forgot to ship ltmain.sh
19279 # with your package, and you will get complaints that there are
19280 # no rules to generate ltmain.sh.
19281 if test -f "$ltmain"; then
19282 # See if we are running on zsh, and set the options which allow our commands through
19283 # without removal of \ escapes.
19284 if test -n "${ZSH_VERSION+set}" ; then
19285 setopt NO_GLOB_SUBST
19286 fi
19287 # Now quote all the things that may contain metacharacters while being
19288 # careful not to overquote the AC_SUBSTed values. We take copies of the
19289 # variables and quote the copies for generation of the libtool script.
19290 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19291 SED SHELL STRIP \
19292 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19293 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19294 deplibs_check_method reload_flag reload_cmds need_locks \
19295 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19296 lt_cv_sys_global_symbol_to_c_name_address \
19297 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19298 old_postinstall_cmds old_postuninstall_cmds \
19299 compiler_RC \
19300 CC_RC \
19301 LD_RC \
19302 lt_prog_compiler_wl_RC \
19303 lt_prog_compiler_pic_RC \
19304 lt_prog_compiler_static_RC \
19305 lt_prog_compiler_no_builtin_flag_RC \
19306 export_dynamic_flag_spec_RC \
19307 thread_safe_flag_spec_RC \
19308 whole_archive_flag_spec_RC \
19309 enable_shared_with_static_runtimes_RC \
19310 old_archive_cmds_RC \
19311 old_archive_from_new_cmds_RC \
19312 predep_objects_RC \
19313 postdep_objects_RC \
19314 predeps_RC \
19315 postdeps_RC \
19316 compiler_lib_search_path_RC \
19317 compiler_lib_search_dirs_RC \
19318 archive_cmds_RC \
19319 archive_expsym_cmds_RC \
19320 postinstall_cmds_RC \
19321 postuninstall_cmds_RC \
19322 old_archive_from_expsyms_cmds_RC \
19323 allow_undefined_flag_RC \
19324 no_undefined_flag_RC \
19325 export_symbols_cmds_RC \
19326 hardcode_libdir_flag_spec_RC \
19327 hardcode_libdir_flag_spec_ld_RC \
19328 hardcode_libdir_separator_RC \
19329 hardcode_automatic_RC \
19330 module_cmds_RC \
19331 module_expsym_cmds_RC \
19332 lt_cv_prog_compiler_c_o_RC \
19333 fix_srcfile_path_RC \
19334 exclude_expsyms_RC \
19335 include_expsyms_RC; do
19336
19337 case $var in
19338 old_archive_cmds_RC | \
19339 old_archive_from_new_cmds_RC | \
19340 archive_cmds_RC | \
19341 archive_expsym_cmds_RC | \
19342 module_cmds_RC | \
19343 module_expsym_cmds_RC | \
19344 old_archive_from_expsyms_cmds_RC | \
19345 export_symbols_cmds_RC | \
19346 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19347 postinstall_cmds | postuninstall_cmds | \
19348 old_postinstall_cmds | old_postuninstall_cmds | \
19349 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19350 # Double-quote double-evaled strings.
19351 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19352 ;;
19353 *)
19354 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19355 ;;
19356 esac
19357 done
19358
19359 case $lt_echo in
19360 *'\$0 --fallback-echo"')
19361 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19362 ;;
19363 esac
19364
19365 cfgfile="$ofile"
19366
19367 cat <<__EOF__ >> "$cfgfile"
19368 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19369
19370 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19371
19372 # Shell to use when invoking shell scripts.
19373 SHELL=$lt_SHELL
19374
19375 # Whether or not to build shared libraries.
19376 build_libtool_libs=$enable_shared
19377
19378 # Whether or not to build static libraries.
19379 build_old_libs=$enable_static
19380
19381 # Whether or not to add -lc for building shared libraries.
19382 build_libtool_need_lc=$archive_cmds_need_lc_RC
19383
19384 # Whether or not to disallow shared libs when runtime libs are static
19385 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19386
19387 # Whether or not to optimize for fast installation.
19388 fast_install=$enable_fast_install
19389
19390 # The host system.
19391 host_alias=$host_alias
19392 host=$host
19393 host_os=$host_os
19394
19395 # The build system.
19396 build_alias=$build_alias
19397 build=$build
19398 build_os=$build_os
19399
19400 # An echo program that does not interpret backslashes.
19401 echo=$lt_echo
19402
19403 # The archiver.
19404 AR=$lt_AR
19405 AR_FLAGS=$lt_AR_FLAGS
19406
19407 # A C compiler.
19408 LTCC=$lt_LTCC
19409
19410 # LTCC compiler flags.
19411 LTCFLAGS=$lt_LTCFLAGS
19412
19413 # A language-specific compiler.
19414 CC=$lt_compiler_RC
19415
19416 # Is the compiler the GNU C compiler?
19417 with_gcc=$GCC_RC
19418
19419 # An ERE matcher.
19420 EGREP=$lt_EGREP
19421
19422 # The linker used to build libraries.
19423 LD=$lt_LD_RC
19424
19425 # Whether we need hard or soft links.
19426 LN_S=$lt_LN_S
19427
19428 # A BSD-compatible nm program.
19429 NM=$lt_NM
19430
19431 # A symbol stripping program
19432 STRIP=$lt_STRIP
19433
19434 # Used to examine libraries when file_magic_cmd begins "file"
19435 MAGIC_CMD=$MAGIC_CMD
19436
19437 # Used on cygwin: DLL creation program.
19438 DLLTOOL="$DLLTOOL"
19439
19440 # Used on cygwin: object dumper.
19441 OBJDUMP="$OBJDUMP"
19442
19443 # Used on cygwin: assembler.
19444 AS="$AS"
19445
19446 # The name of the directory that contains temporary libtool files.
19447 objdir=$objdir
19448
19449 # How to create reloadable object files.
19450 reload_flag=$lt_reload_flag
19451 reload_cmds=$lt_reload_cmds
19452
19453 # How to pass a linker flag through the compiler.
19454 wl=$lt_lt_prog_compiler_wl_RC
19455
19456 # Object file suffix (normally "o").
19457 objext="$ac_objext"
19458
19459 # Old archive suffix (normally "a").
19460 libext="$libext"
19461
19462 # Shared library suffix (normally ".so").
19463 shrext_cmds='$shrext_cmds'
19464
19465 # Executable file suffix (normally "").
19466 exeext="$exeext"
19467
19468 # Additional compiler flags for building library objects.
19469 pic_flag=$lt_lt_prog_compiler_pic_RC
19470 pic_mode=$pic_mode
19471
19472 # What is the maximum length of a command?
19473 max_cmd_len=$lt_cv_sys_max_cmd_len
19474
19475 # Does compiler simultaneously support -c and -o options?
19476 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19477
19478 # Must we lock files when doing compilation?
19479 need_locks=$lt_need_locks
19480
19481 # Do we need the lib prefix for modules?
19482 need_lib_prefix=$need_lib_prefix
19483
19484 # Do we need a version for libraries?
19485 need_version=$need_version
19486
19487 # Whether dlopen is supported.
19488 dlopen_support=$enable_dlopen
19489
19490 # Whether dlopen of programs is supported.
19491 dlopen_self=$enable_dlopen_self
19492
19493 # Whether dlopen of statically linked programs is supported.
19494 dlopen_self_static=$enable_dlopen_self_static
19495
19496 # Compiler flag to prevent dynamic linking.
19497 link_static_flag=$lt_lt_prog_compiler_static_RC
19498
19499 # Compiler flag to turn off builtin functions.
19500 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19501
19502 # Compiler flag to allow reflexive dlopens.
19503 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19504
19505 # Compiler flag to generate shared objects directly from archives.
19506 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19507
19508 # Compiler flag to generate thread-safe objects.
19509 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19510
19511 # Library versioning type.
19512 version_type=$version_type
19513
19514 # Format of library name prefix.
19515 libname_spec=$lt_libname_spec
19516
19517 # List of archive names. First name is the real one, the rest are links.
19518 # The last name is the one that the linker finds with -lNAME.
19519 library_names_spec=$lt_library_names_spec
19520
19521 # The coded name of the library, if different from the real name.
19522 soname_spec=$lt_soname_spec
19523
19524 # Commands used to build and install an old-style archive.
19525 RANLIB=$lt_RANLIB
19526 old_archive_cmds=$lt_old_archive_cmds_RC
19527 old_postinstall_cmds=$lt_old_postinstall_cmds
19528 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19529
19530 # Create an old-style archive from a shared archive.
19531 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19532
19533 # Create a temporary old-style archive to link instead of a shared archive.
19534 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19535
19536 # Commands used to build and install a shared archive.
19537 archive_cmds=$lt_archive_cmds_RC
19538 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19539 postinstall_cmds=$lt_postinstall_cmds
19540 postuninstall_cmds=$lt_postuninstall_cmds
19541
19542 # Commands used to build a loadable module (assumed same as above if empty)
19543 module_cmds=$lt_module_cmds_RC
19544 module_expsym_cmds=$lt_module_expsym_cmds_RC
19545
19546 # Commands to strip libraries.
19547 old_striplib=$lt_old_striplib
19548 striplib=$lt_striplib
19549
19550 # Dependencies to place before the objects being linked to create a
19551 # shared library.
19552 predep_objects=$lt_predep_objects_RC
19553
19554 # Dependencies to place after the objects being linked to create a
19555 # shared library.
19556 postdep_objects=$lt_postdep_objects_RC
19557
19558 # Dependencies to place before the objects being linked to create a
19559 # shared library.
19560 predeps=$lt_predeps_RC
19561
19562 # Dependencies to place after the objects being linked to create a
19563 # shared library.
19564 postdeps=$lt_postdeps_RC
19565
19566 # The directories searched by this compiler when creating a shared
19567 # library
19568 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19569
19570 # The library search path used internally by the compiler when linking
19571 # a shared library.
19572 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19573
19574 # Method to check whether dependent libraries are shared objects.
19575 deplibs_check_method=$lt_deplibs_check_method
19576
19577 # Command to use when deplibs_check_method == file_magic.
19578 file_magic_cmd=$lt_file_magic_cmd
19579
19580 # Flag that allows shared libraries with undefined symbols to be built.
19581 allow_undefined_flag=$lt_allow_undefined_flag_RC
19582
19583 # Flag that forces no undefined symbols.
19584 no_undefined_flag=$lt_no_undefined_flag_RC
19585
19586 # Commands used to finish a libtool library installation in a directory.
19587 finish_cmds=$lt_finish_cmds
19588
19589 # Same as above, but a single script fragment to be evaled but not shown.
19590 finish_eval=$lt_finish_eval
19591
19592 # Take the output of nm and produce a listing of raw symbols and C names.
19593 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19594
19595 # Transform the output of nm in a proper C declaration
19596 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19597
19598 # Transform the output of nm in a C name address pair
19599 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19600
19601 # This is the shared library runtime path variable.
19602 runpath_var=$runpath_var
19603
19604 # This is the shared library path variable.
19605 shlibpath_var=$shlibpath_var
19606
19607 # Is shlibpath searched before the hard-coded library search path?
19608 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19609
19610 # How to hardcode a shared library path into an executable.
19611 hardcode_action=$hardcode_action_RC
19612
19613 # Whether we should hardcode library paths into libraries.
19614 hardcode_into_libs=$hardcode_into_libs
19615
19616 # Flag to hardcode \$libdir into a binary during linking.
19617 # This must work even if \$libdir does not exist.
19618 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19619
19620 # If ld is used when linking, flag to hardcode \$libdir into
19621 # a binary during linking. This must work even if \$libdir does
19622 # not exist.
19623 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19624
19625 # Whether we need a single -rpath flag with a separated argument.
19626 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19627
19628 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19629 # resulting binary.
19630 hardcode_direct=$hardcode_direct_RC
19631
19632 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19633 # resulting binary.
19634 hardcode_minus_L=$hardcode_minus_L_RC
19635
19636 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19637 # the resulting binary.
19638 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19639
19640 # Set to yes if building a shared library automatically hardcodes DIR into the library
19641 # and all subsequent libraries and executables linked against it.
19642 hardcode_automatic=$hardcode_automatic_RC
19643
19644 # Variables whose values should be saved in libtool wrapper scripts and
19645 # restored at relink time.
19646 variables_saved_for_relink="$variables_saved_for_relink"
19647
19648 # Whether libtool must link a program against all its dependency libraries.
19649 link_all_deplibs=$link_all_deplibs_RC
19650
19651 # Compile-time system search path for libraries
19652 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19653
19654 # Run-time system search path for libraries
19655 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19656
19657 # Fix the shell variable \$srcfile for the compiler.
19658 fix_srcfile_path=$lt_fix_srcfile_path
19659
19660 # Set to yes if exported symbols are required.
19661 always_export_symbols=$always_export_symbols_RC
19662
19663 # The commands to list exported symbols.
19664 export_symbols_cmds=$lt_export_symbols_cmds_RC
19665
19666 # The commands to extract the exported symbol list from a shared archive.
19667 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19668
19669 # Symbols that should not be listed in the preloaded symbols.
19670 exclude_expsyms=$lt_exclude_expsyms_RC
19671
19672 # Symbols that must always be exported.
19673 include_expsyms=$lt_include_expsyms_RC
19674
19675 # ### END LIBTOOL TAG CONFIG: $tagname
19676
19677 __EOF__
19678
19679
19680 else
19681 # If there is no Makefile yet, we rely on a make rule to execute
19682 # `config.status --recheck' to rerun these tests and create the
19683 # libtool script then.
19684 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19685 if test -f "$ltmain_in"; then
19686 test -f Makefile && make "$ltmain"
19687 fi
19688 fi
19689
19690
19691 ac_ext=c
19692 ac_cpp='$CPP $CPPFLAGS'
19693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19696
19697 CC="$lt_save_CC"
19698
19699 ;;
19700
19701 *)
19702 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19703 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19704 { (exit 1); exit 1; }; }
19705 ;;
19706 esac
19707
19708 # Append the new tag name to the list of available tags.
19709 if test -n "$tagname" ; then
19710 available_tags="$available_tags $tagname"
19711 fi
19712 fi
19713 done
19714 IFS="$lt_save_ifs"
19715
19716 # Now substitute the updated list of available tags.
19717 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19718 mv "${ofile}T" "$ofile"
19719 chmod +x "$ofile"
19720 else
19721 rm -f "${ofile}T"
19722 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19723 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19724 { (exit 1); exit 1; }; }
19725 fi
19726 fi
19727
19728
19729
19730 # This can be used to rebuild libtool when needed
19731 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19732
19733 # Always use our own libtool.
19734 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19735
19736 # Prevent multiple expansion
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800 ac_config_commands="$ac_config_commands libtool"
10801
10802
10803
10804
10805 # Only expand once:
1975510806
1975610807
1975710808
2270613757 Usually this means the macro was only invoked conditionally." >&2;}
2270713758 { (exit 1); exit 1; }; }
2270813759 fi
22709 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22710 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22711 Usually this means the macro was only invoked conditionally." >&5
22712 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22713 Usually this means the macro was only invoked conditionally." >&2;}
22714 { (exit 1); exit 1; }; }
22715 fi
2271613760
2271713761 : ${CONFIG_STATUS=./config.status}
2271813762 ac_clean_files_save=$ac_clean_files
2301314057 # report actual input values of CONFIG_FILES etc. instead of their
2301414058 # values after options handling.
2301514059 ac_log="
23016 This file was extended by libotf $as_me 0.9.8, which was
14060 This file was extended by libotf $as_me 0.9.9, which was
2301714061 generated by GNU Autoconf 2.61. Invocation command line was
2301814062
2301914063 CONFIG_FILES = $CONFIG_FILES
2306614110 _ACEOF
2306714111 cat >>$CONFIG_STATUS <<_ACEOF
2306814112 ac_cs_version="\\
23069 libotf config.status 0.9.8
14113 libotf config.status 0.9.9
2307014114 configured by $0, generated by GNU Autoconf 2.61,
2307114115 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
2307214116
2307714121 ac_pwd='$ac_pwd'
2307814122 srcdir='$srcdir'
2307914123 INSTALL='$INSTALL'
14124 MKDIR_P='$MKDIR_P'
2308014125 _ACEOF
2308114126
2308214127 cat >>$CONFIG_STATUS <<\_ACEOF
2317114216 #
2317214217 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
2317314218
14219
14220 # The HP-UX ksh and POSIX shell print the target directory to stdout
14221 # if CDPATH is set.
14222 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14223
14224 sed_quote_subst='$sed_quote_subst'
14225 double_quote_subst='$double_quote_subst'
14226 delay_variable_subst='$delay_variable_subst'
14227 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14228 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14229 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14230 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14231 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14232 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14233 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14234 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14235 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14236 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14237 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14238 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14239 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14240 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14241 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14242 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14243 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14244 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14245 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14246 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14247 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14248 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14249 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14250 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14251 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14252 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14253 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14254 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14255 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14256 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14257 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14258 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14259 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14260 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14261 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14262 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14263 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14264 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14265 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14266 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14267 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14268 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14269 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14270 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14272 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14273 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14274 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14275 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14276 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14277 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14278 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14279 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14280 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14281 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14282 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14283 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14284 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14285 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14286 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14287 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14288 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14289 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14290 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14291 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14292 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14293 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14294 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14295 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14296 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14297 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14298 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14299 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14300 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14301 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14302 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14303 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14304 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14305 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14306 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14307 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14308 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14309 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14310 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14311 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14312 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14313 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14314 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14315 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14316 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14318 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14319 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14320 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14321 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14322 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14323 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14324 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14325 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14326 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14327 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14328 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14329 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14330 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14331 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14332 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14333 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14334 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14335 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14336 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14337 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14338 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14339 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14340 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14341 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14342 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14343 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14344
14345 LTCC='$LTCC'
14346 LTCFLAGS='$LTCFLAGS'
14347 compiler='$compiler_DEFAULT'
14348
14349 # Quote evaled strings.
14350 for var in SED \
14351 GREP \
14352 EGREP \
14353 FGREP \
14354 LD \
14355 NM \
14356 LN_S \
14357 lt_SP2NL \
14358 lt_NL2SP \
14359 reload_flag \
14360 deplibs_check_method \
14361 file_magic_cmd \
14362 AR \
14363 AR_FLAGS \
14364 STRIP \
14365 RANLIB \
14366 CC \
14367 CFLAGS \
14368 compiler \
14369 lt_cv_sys_global_symbol_pipe \
14370 lt_cv_sys_global_symbol_to_cdecl \
14371 lt_cv_sys_global_symbol_to_c_name_address \
14372 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14373 SHELL \
14374 ECHO \
14375 lt_prog_compiler_no_builtin_flag \
14376 lt_prog_compiler_wl \
14377 lt_prog_compiler_pic \
14378 lt_prog_compiler_static \
14379 lt_cv_prog_compiler_c_o \
14380 need_locks \
14381 DSYMUTIL \
14382 NMEDIT \
14383 LIPO \
14384 OTOOL \
14385 OTOOL64 \
14386 shrext_cmds \
14387 export_dynamic_flag_spec \
14388 whole_archive_flag_spec \
14389 compiler_needs_object \
14390 with_gnu_ld \
14391 allow_undefined_flag \
14392 no_undefined_flag \
14393 hardcode_libdir_flag_spec \
14394 hardcode_libdir_flag_spec_ld \
14395 hardcode_libdir_separator \
14396 fix_srcfile_path \
14397 exclude_expsyms \
14398 include_expsyms \
14399 file_list_spec \
14400 variables_saved_for_relink \
14401 libname_spec \
14402 library_names_spec \
14403 soname_spec \
14404 finish_eval \
14405 old_striplib \
14406 striplib; do
14407 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14408 *[\\\\\\\`\\"\\\$]*)
14409 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14410 ;;
14411 *)
14412 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14413 ;;
14414 esac
14415 done
14416
14417 # Double-quote double-evaled strings.
14418 for var in reload_cmds \
14419 old_postinstall_cmds \
14420 old_postuninstall_cmds \
14421 old_archive_cmds \
14422 extract_expsyms_cmds \
14423 old_archive_from_new_cmds \
14424 old_archive_from_expsyms_cmds \
14425 archive_cmds \
14426 archive_expsym_cmds \
14427 module_cmds \
14428 module_expsym_cmds \
14429 export_symbols_cmds \
14430 prelink_cmds \
14431 postinstall_cmds \
14432 postuninstall_cmds \
14433 finish_cmds \
14434 sys_lib_search_path_spec \
14435 sys_lib_dlsearch_path_spec; do
14436 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14437 *[\\\\\\\`\\"\\\$]*)
14438 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14439 ;;
14440 *)
14441 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14442 ;;
14443 esac
14444 done
14445
14446 # Fix-up fallback echo if it was mangled by the above quoting rules.
14447 case \$lt_ECHO in
14448 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14449 ;;
14450 esac
14451
14452 ac_aux_dir='$ac_aux_dir'
14453 xsi_shell='$xsi_shell'
14454 lt_shell_append='$lt_shell_append'
14455
14456 # See if we are running on zsh, and set the options which allow our
14457 # commands through without removal of \ escapes INIT.
14458 if test -n "\${ZSH_VERSION+set}" ; then
14459 setopt NO_GLOB_SUBST
14460 fi
14461
14462
14463 PACKAGE='$PACKAGE'
14464 VERSION='$VERSION'
14465 TIMESTAMP='$TIMESTAMP'
14466 RM='$RM'
14467 ofile='$ofile'
14468
14469
14470
14471
2317414472 _ACEOF
2317514473
2317614474 cat >>$CONFIG_STATUS <<\_ACEOF
2318114479 case $ac_config_target in
2318214480 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
2318314481 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14482 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
2318414483 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
2318514484 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
2318614485 "example/Makefile") CONFIG_FILES="$CONFIG_FILES example/Makefile" ;;
2328814587 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
2328914588 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
2329014589 INSTALL_DATA!$INSTALL_DATA$ac_delim
14590 am__isrc!$am__isrc$ac_delim
2329114591 CYGPATH_W!$CYGPATH_W$ac_delim
2329214592 PACKAGE!$PACKAGE$ac_delim
2329314593 VERSION!$VERSION$ac_delim
2332214622 CCDEPMODE!$CCDEPMODE$ac_delim
2332314623 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
2332414624 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
14625 LIBTOOL!$LIBTOOL$ac_delim
2332514626 build!$build$ac_delim
2332614627 build_cpu!$build_cpu$ac_delim
2332714628 build_vendor!$build_vendor$ac_delim
2333314634 SED!$SED$ac_delim
2333414635 GREP!$GREP$ac_delim
2333514636 EGREP!$EGREP$ac_delim
14637 FGREP!$FGREP$ac_delim
14638 LD!$LD$ac_delim
14639 DUMPBIN!$DUMPBIN$ac_delim
14640 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
14641 NM!$NM$ac_delim
2333614642 LN_S!$LN_S$ac_delim
23337 ECHO!$ECHO$ac_delim
2333814643 AR!$AR$ac_delim
2333914644 RANLIB!$RANLIB$ac_delim
14645 lt_ECHO!$lt_ECHO$ac_delim
2334014646 DSYMUTIL!$DSYMUTIL$ac_delim
23341 NMEDIT!$NMEDIT$ac_delim
23342 CPP!$CPP$ac_delim
23343 CXX!$CXX$ac_delim
23344 CXXFLAGS!$CXXFLAGS$ac_delim
23345 ac_ct_CXX!$ac_ct_CXX$ac_delim
23346 CXXDEPMODE!$CXXDEPMODE$ac_delim
23347 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
2334814647 _ACEOF
2334914648
2335014649 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
2338614685 ac_delim='%!_!# '
2338714686 for ac_last_try in false false false false false :; do
2338814687 cat >conf$$subs.sed <<_ACEOF
23389 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23390 CXXCPP!$CXXCPP$ac_delim
23391 F77!$F77$ac_delim
23392 FFLAGS!$FFLAGS$ac_delim
23393 ac_ct_F77!$ac_ct_F77$ac_delim
23394 LIBTOOL!$LIBTOOL$ac_delim
14688 NMEDIT!$NMEDIT$ac_delim
14689 LIPO!$LIPO$ac_delim
14690 OTOOL!$OTOOL$ac_delim
14691 OTOOL64!$OTOOL64$ac_delim
14692 CPP!$CPP$ac_delim
2339514693 XMKMF!$XMKMF$ac_delim
2339614694 X_CFLAGS!$X_CFLAGS$ac_delim
2339714695 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
2340614704 LTLIBOBJS!$LTLIBOBJS$ac_delim
2340714705 _ACEOF
2340814706
23409 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
14707 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
2341014708 break
2341114709 elif $ac_last_try; then
2341214710 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
2363314931 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
2363414932 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
2363514933 esac
14934 ac_MKDIR_P=$MKDIR_P
14935 case $MKDIR_P in
14936 [\\/$]* | ?:[\\/]* ) ;;
14937 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14938 esac
2363614939 _ACEOF
2363714940
2363814941 cat >>$CONFIG_STATUS <<\_ACEOF
2368614989 s&@abs_builddir@&$ac_abs_builddir&;t t
2368714990 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
2368814991 s&@INSTALL@&$ac_INSTALL&;t t
14992 s&@MKDIR_P@&$ac_MKDIR_P&;t t
2368914993 $ac_datarootdir_hack
2369014994 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
2369114995
2380115105 fi
2380215106 rm -f "$tmp/out12"
2380315107 # Compute $ac_file's index in $config_headers.
15108 _am_arg=$ac_file
2380415109 _am_stamp_count=1
2380515110 for _am_header in $config_headers :; do
2380615111 case $_am_header in
23807 $ac_file | $ac_file:* )
15112 $_am_arg | $_am_arg:* )
2380815113 break ;;
2380915114 * )
2381015115 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
2381115116 esac
2381215117 done
23813 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23814 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815 X$ac_file : 'X\(//\)[^/]' \| \
23816 X$ac_file : 'X\(//\)$' \| \
23817 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23818 echo X$ac_file |
15118 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15119 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15120 X"$_am_arg" : 'X\(//\)[^/]' \| \
15121 X"$_am_arg" : 'X\(//\)$' \| \
15122 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15123 echo X"$_am_arg" |
2381915124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2382015125 s//\1/
2382115126 q
2385015155 # some people rename them; so instead we look at the file content.
2385115156 # Grep'ing the first line is not enough: some people post-process
2385215157 # each Makefile.in and add a new line on top of each file to say so.
23853 # So let's grep whole file.
23854 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15158 # Grep'ing the whole file is not good either: AIX grep has a line
15159 # limit of 2048, but all sed's we know have understand at least 4000.
15160 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
2385515161 dirpart=`$as_dirname -- "$mf" ||
2385615162 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2385715163 X"$mf" : 'X\(//\)[^/]' \| \
2396515271 done
2396615272 done
2396715273 ;;
15274 "libtool":C)
15275
15276 # See if we are running on zsh, and set the options which allow our
15277 # commands through without removal of \ escapes.
15278 if test -n "${ZSH_VERSION+set}" ; then
15279 setopt NO_GLOB_SUBST
15280 fi
15281
15282 cfgfile="${ofile}T"
15283 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15284 $RM "$cfgfile"
15285
15286 cat <<_LT_EOF >> "$cfgfile"
15287 #! $SHELL
15288
15289 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15290 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15292 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15293 #
15294 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15295 # 2006, 2007, 2008 Free Software Foundation, Inc.
15296 # Written by Gordon Matzigkeit, 1996
15297 #
15298 # This file is part of GNU Libtool.
15299 #
15300 # GNU Libtool is free software; you can redistribute it and/or
15301 # modify it under the terms of the GNU General Public License as
15302 # published by the Free Software Foundation; either version 2 of
15303 # the License, or (at your option) any later version.
15304 #
15305 # As a special exception to the GNU General Public License,
15306 # if you distribute this file as part of a program or library that
15307 # is built using GNU Libtool, you may include this file under the
15308 # same distribution terms that you use for the rest of that program.
15309 #
15310 # GNU Libtool is distributed in the hope that it will be useful,
15311 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15312 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15313 # GNU General Public License for more details.
15314 #
15315 # You should have received a copy of the GNU General Public License
15316 # along with GNU Libtool; see the file COPYING. If not, a copy
15317 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15318 # obtained by writing to the Free Software Foundation, Inc.,
15319 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15320
15321
15322 # The names of the tagged configurations supported by this script.
15323 available_tags=""
15324
15325 # ### BEGIN LIBTOOL CONFIG
15326
15327 # Which release of libtool.m4 was used?
15328 macro_version=$macro_version
15329 macro_revision=$macro_revision
15330
15331 # Whether or not to build shared libraries.
15332 build_libtool_libs=$enable_shared
15333
15334 # Whether or not to build static libraries.
15335 build_old_libs=$enable_static
15336
15337 # What type of objects to build.
15338 pic_mode=$pic_mode
15339
15340 # Whether or not to optimize for fast installation.
15341 fast_install=$enable_fast_install
15342
15343 # The host system.
15344 host_alias=$host_alias
15345 host=$host
15346 host_os=$host_os
15347
15348 # The build system.
15349 build_alias=$build_alias
15350 build=$build
15351 build_os=$build_os
15352
15353 # A sed program that does not truncate output.
15354 SED=$lt_SED
15355
15356 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15357 Xsed="\$SED -e 1s/^X//"
15358
15359 # A grep program that handles long lines.
15360 GREP=$lt_GREP
15361
15362 # An ERE matcher.
15363 EGREP=$lt_EGREP
15364
15365 # A literal string matcher.
15366 FGREP=$lt_FGREP
15367
15368 # A BSD- or MS-compatible name lister.
15369 NM=$lt_NM
15370
15371 # Whether we need soft or hard links.
15372 LN_S=$lt_LN_S
15373
15374 # What is the maximum length of a command?
15375 max_cmd_len=$max_cmd_len
15376
15377 # Object file suffix (normally "o").
15378 objext=$ac_objext
15379
15380 # Executable file suffix (normally "").
15381 exeext=$exeext
15382
15383 # whether the shell understands "unset".
15384 lt_unset=$lt_unset
15385
15386 # turn spaces into newlines.
15387 SP2NL=$lt_lt_SP2NL
15388
15389 # turn newlines into spaces.
15390 NL2SP=$lt_lt_NL2SP
15391
15392 # How to create reloadable object files.
15393 reload_flag=$lt_reload_flag
15394 reload_cmds=$lt_reload_cmds
15395
15396 # Method to check whether dependent libraries are shared objects.
15397 deplibs_check_method=$lt_deplibs_check_method
15398
15399 # Command to use when deplibs_check_method == "file_magic".
15400 file_magic_cmd=$lt_file_magic_cmd
15401
15402 # The archiver.
15403 AR=$lt_AR
15404 AR_FLAGS=$lt_AR_FLAGS
15405
15406 # A symbol stripping program.
15407 STRIP=$lt_STRIP
15408
15409 # Commands used to install an old-style archive.
15410 RANLIB=$lt_RANLIB
15411 old_postinstall_cmds=$lt_old_postinstall_cmds
15412 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15413
15414 # A C compiler.
15415 LTCC=$lt_CC
15416
15417 # LTCC compiler flags.
15418 LTCFLAGS=$lt_CFLAGS
15419
15420 # Take the output of nm and produce a listing of raw symbols and C names.
15421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15422
15423 # Transform the output of nm in a proper C declaration.
15424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15425
15426 # Transform the output of nm in a C name address pair.
15427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15428
15429 # Transform the output of nm in a C name address pair when lib prefix is needed.
15430 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15431
15432 # The name of the directory that contains temporary libtool files.
15433 objdir=$objdir
15434
15435 # Shell to use when invoking shell scripts.
15436 SHELL=$lt_SHELL
15437
15438 # An echo program that does not interpret backslashes.
15439 ECHO=$lt_ECHO
15440
15441 # Used to examine libraries when file_magic_cmd begins with "file".
15442 MAGIC_CMD=$MAGIC_CMD
15443
15444 # Must we lock files when doing compilation?
15445 need_locks=$lt_need_locks
15446
15447 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15448 DSYMUTIL=$lt_DSYMUTIL
15449
15450 # Tool to change global to local symbols on Mac OS X.
15451 NMEDIT=$lt_NMEDIT
15452
15453 # Tool to manipulate fat objects and archives on Mac OS X.
15454 LIPO=$lt_LIPO
15455
15456 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15457 OTOOL=$lt_OTOOL
15458
15459 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15460 OTOOL64=$lt_OTOOL64
15461
15462 # Old archive suffix (normally "a").
15463 libext=$libext
15464
15465 # Shared library suffix (normally ".so").
15466 shrext_cmds=$lt_shrext_cmds
15467
15468 # The commands to extract the exported symbol list from a shared archive.
15469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15470
15471 # Variables whose values should be saved in libtool wrapper scripts and
15472 # restored at link time.
15473 variables_saved_for_relink=$lt_variables_saved_for_relink
15474
15475 # Do we need the "lib" prefix for modules?
15476 need_lib_prefix=$need_lib_prefix
15477
15478 # Do we need a version for libraries?
15479 need_version=$need_version
15480
15481 # Library versioning type.
15482 version_type=$version_type
15483
15484 # Shared library runtime path variable.
15485 runpath_var=$runpath_var
15486
15487 # Shared library path variable.
15488 shlibpath_var=$shlibpath_var
15489
15490 # Is shlibpath searched before the hard-coded library search path?
15491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15492
15493 # Format of library name prefix.
15494 libname_spec=$lt_libname_spec
15495
15496 # List of archive names. First name is the real one, the rest are links.
15497 # The last name is the one that the linker finds with -lNAME
15498 library_names_spec=$lt_library_names_spec
15499
15500 # The coded name of the library, if different from the real name.
15501 soname_spec=$lt_soname_spec
15502
15503 # Command to use after installation of a shared archive.
15504 postinstall_cmds=$lt_postinstall_cmds
15505
15506 # Command to use after uninstallation of a shared archive.
15507 postuninstall_cmds=$lt_postuninstall_cmds
15508
15509 # Commands used to finish a libtool library installation in a directory.
15510 finish_cmds=$lt_finish_cmds
15511
15512 # As "finish_cmds", except a single script fragment to be evaled but
15513 # not shown.
15514 finish_eval=$lt_finish_eval
15515
15516 # Whether we should hardcode library paths into libraries.
15517 hardcode_into_libs=$hardcode_into_libs
15518
15519 # Compile-time system search path for libraries.
15520 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15521
15522 # Run-time system search path for libraries.
15523 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15524
15525 # Whether dlopen is supported.
15526 dlopen_support=$enable_dlopen
15527
15528 # Whether dlopen of programs is supported.
15529 dlopen_self=$enable_dlopen_self
15530
15531 # Whether dlopen of statically linked programs is supported.
15532 dlopen_self_static=$enable_dlopen_self_static
15533
15534 # Commands to strip libraries.
15535 old_striplib=$lt_old_striplib
15536 striplib=$lt_striplib
15537
15538
15539 # The linker used to build libraries.
15540 LD=$lt_LD
15541
15542 # Commands used to build an old-style archive.
15543 old_archive_cmds=$lt_old_archive_cmds
15544
15545 # A language specific compiler.
15546 CC=$lt_compiler
15547
15548 # Is the compiler the GNU compiler?
15549 with_gcc=$GCC
15550
15551 # Compiler flag to turn off builtin functions.
15552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15553
15554 # How to pass a linker flag through the compiler.
15555 wl=$lt_lt_prog_compiler_wl
15556
15557 # Additional compiler flags for building library objects.
15558 pic_flag=$lt_lt_prog_compiler_pic
15559
15560 # Compiler flag to prevent dynamic linking.
15561 link_static_flag=$lt_lt_prog_compiler_static
15562
15563 # Does compiler simultaneously support -c and -o options?
15564 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15565
15566 # Whether or not to add -lc for building shared libraries.
15567 build_libtool_need_lc=$archive_cmds_need_lc
15568
15569 # Whether or not to disallow shared libs when runtime libs are static.
15570 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15571
15572 # Compiler flag to allow reflexive dlopens.
15573 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15574
15575 # Compiler flag to generate shared objects directly from archives.
15576 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15577
15578 # Whether the compiler copes with passing no objects directly.
15579 compiler_needs_object=$lt_compiler_needs_object
15580
15581 # Create an old-style archive from a shared archive.
15582 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15583
15584 # Create a temporary old-style archive to link instead of a shared archive.
15585 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15586
15587 # Commands used to build a shared archive.
15588 archive_cmds=$lt_archive_cmds
15589 archive_expsym_cmds=$lt_archive_expsym_cmds
15590
15591 # Commands used to build a loadable module if different from building
15592 # a shared archive.
15593 module_cmds=$lt_module_cmds
15594 module_expsym_cmds=$lt_module_expsym_cmds
15595
15596 # Whether we are building with GNU ld or not.
15597 with_gnu_ld=$lt_with_gnu_ld
15598
15599 # Flag that allows shared libraries with undefined symbols to be built.
15600 allow_undefined_flag=$lt_allow_undefined_flag
15601
15602 # Flag that enforces no undefined symbols.
15603 no_undefined_flag=$lt_no_undefined_flag
15604
15605 # Flag to hardcode \$libdir into a binary during linking.
15606 # This must work even if \$libdir does not exist
15607 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15608
15609 # If ld is used when linking, flag to hardcode \$libdir into a binary
15610 # during linking. This must work even if \$libdir does not exist.
15611 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15612
15613 # Whether we need a single "-rpath" flag with a separated argument.
15614 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15615
15616 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15617 # DIR into the resulting binary.
15618 hardcode_direct=$hardcode_direct
15619
15620 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15621 # DIR into the resulting binary and the resulting library dependency is
15622 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15623 # library is relocated.
15624 hardcode_direct_absolute=$hardcode_direct_absolute
15625
15626 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15627 # into the resulting binary.
15628 hardcode_minus_L=$hardcode_minus_L
15629
15630 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15631 # into the resulting binary.
15632 hardcode_shlibpath_var=$hardcode_shlibpath_var
15633
15634 # Set to "yes" if building a shared library automatically hardcodes DIR
15635 # into the library and all subsequent libraries and executables linked
15636 # against it.
15637 hardcode_automatic=$hardcode_automatic
15638
15639 # Set to yes if linker adds runtime paths of dependent libraries
15640 # to runtime path list.
15641 inherit_rpath=$inherit_rpath
15642
15643 # Whether libtool must link a program against all its dependency libraries.
15644 link_all_deplibs=$link_all_deplibs
15645
15646 # Fix the shell variable \$srcfile for the compiler.
15647 fix_srcfile_path=$lt_fix_srcfile_path
15648
15649 # Set to "yes" if exported symbols are required.
15650 always_export_symbols=$always_export_symbols
15651
15652 # The commands to list exported symbols.
15653 export_symbols_cmds=$lt_export_symbols_cmds
15654
15655 # Symbols that should not be listed in the preloaded symbols.
15656 exclude_expsyms=$lt_exclude_expsyms
15657
15658 # Symbols that must always be exported.
15659 include_expsyms=$lt_include_expsyms
15660
15661 # Commands necessary for linking programs (against libraries) with templates.
15662 prelink_cmds=$lt_prelink_cmds
15663
15664 # Specify filename containing input files.
15665 file_list_spec=$lt_file_list_spec
15666
15667 # How to hardcode a shared library path into an executable.
15668 hardcode_action=$hardcode_action
15669
15670 # ### END LIBTOOL CONFIG
15671
15672 _LT_EOF
15673
15674 case $host_os in
15675 aix3*)
15676 cat <<\_LT_EOF >> "$cfgfile"
15677 # AIX sometimes has problems with the GCC collect2 program. For some
15678 # reason, if we set the COLLECT_NAMES environment variable, the problems
15679 # vanish in a puff of smoke.
15680 if test "X${COLLECT_NAMES+set}" != Xset; then
15681 COLLECT_NAMES=
15682 export COLLECT_NAMES
15683 fi
15684 _LT_EOF
15685 ;;
15686 esac
15687
15688
15689 ltmain="$ac_aux_dir/ltmain.sh"
15690
15691
15692 # We use sed instead of cat because bash on DJGPP gets confused if
15693 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15694 # text mode, it properly converts lines to CR/LF. This bash problem
15695 # is reportedly fixed, but why not run on old versions too?
15696 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15697 || (rm -f "$cfgfile"; exit 1)
15698
15699 case $xsi_shell in
15700 yes)
15701 cat << \_LT_EOF >> "$cfgfile"
15702
15703 # func_dirname file append nondir_replacement
15704 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15705 # otherwise set result to NONDIR_REPLACEMENT.
15706 func_dirname ()
15707 {
15708 case ${1} in
15709 */*) func_dirname_result="${1%/*}${2}" ;;
15710 * ) func_dirname_result="${3}" ;;
15711 esac
15712 }
15713
15714 # func_basename file
15715 func_basename ()
15716 {
15717 func_basename_result="${1##*/}"
15718 }
15719
15720 # func_dirname_and_basename file append nondir_replacement
15721 # perform func_basename and func_dirname in a single function
15722 # call:
15723 # dirname: Compute the dirname of FILE. If nonempty,
15724 # add APPEND to the result, otherwise set result
15725 # to NONDIR_REPLACEMENT.
15726 # value returned in "$func_dirname_result"
15727 # basename: Compute filename of FILE.
15728 # value retuned in "$func_basename_result"
15729 # Implementation must be kept synchronized with func_dirname
15730 # and func_basename. For efficiency, we do not delegate to
15731 # those functions but instead duplicate the functionality here.
15732 func_dirname_and_basename ()
15733 {
15734 case ${1} in
15735 */*) func_dirname_result="${1%/*}${2}" ;;
15736 * ) func_dirname_result="${3}" ;;
15737 esac
15738 func_basename_result="${1##*/}"
15739 }
15740
15741 # func_stripname prefix suffix name
15742 # strip PREFIX and SUFFIX off of NAME.
15743 # PREFIX and SUFFIX must not contain globbing or regex special
15744 # characters, hashes, percent signs, but SUFFIX may contain a leading
15745 # dot (in which case that matches only a dot).
15746 func_stripname ()
15747 {
15748 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15749 # positional parameters, so assign one to ordinary parameter first.
15750 func_stripname_result=${3}
15751 func_stripname_result=${func_stripname_result#"${1}"}
15752 func_stripname_result=${func_stripname_result%"${2}"}
15753 }
15754
15755 # func_opt_split
15756 func_opt_split ()
15757 {
15758 func_opt_split_opt=${1%%=*}
15759 func_opt_split_arg=${1#*=}
15760 }
15761
15762 # func_lo2o object
15763 func_lo2o ()
15764 {
15765 case ${1} in
15766 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15767 *) func_lo2o_result=${1} ;;
15768 esac
15769 }
15770
15771 # func_xform libobj-or-source
15772 func_xform ()
15773 {
15774 func_xform_result=${1%.*}.lo
15775 }
15776
15777 # func_arith arithmetic-term...
15778 func_arith ()
15779 {
15780 func_arith_result=$(( $* ))
15781 }
15782
15783 # func_len string
15784 # STRING may not start with a hyphen.
15785 func_len ()
15786 {
15787 func_len_result=${#1}
15788 }
15789
15790 _LT_EOF
15791 ;;
15792 *) # Bourne compatible functions.
15793 cat << \_LT_EOF >> "$cfgfile"
15794
15795 # func_dirname file append nondir_replacement
15796 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15797 # otherwise set result to NONDIR_REPLACEMENT.
15798 func_dirname ()
15799 {
15800 # Extract subdirectory from the argument.
15801 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15802 if test "X$func_dirname_result" = "X${1}"; then
15803 func_dirname_result="${3}"
15804 else
15805 func_dirname_result="$func_dirname_result${2}"
15806 fi
15807 }
15808
15809 # func_basename file
15810 func_basename ()
15811 {
15812 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15813 }
15814
15815
15816 # func_stripname prefix suffix name
15817 # strip PREFIX and SUFFIX off of NAME.
15818 # PREFIX and SUFFIX must not contain globbing or regex special
15819 # characters, hashes, percent signs, but SUFFIX may contain a leading
15820 # dot (in which case that matches only a dot).
15821 # func_strip_suffix prefix name
15822 func_stripname ()
15823 {
15824 case ${2} in
15825 .*) func_stripname_result=`$ECHO "X${3}" \
15826 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15827 *) func_stripname_result=`$ECHO "X${3}" \
15828 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15829 esac
15830 }
15831
15832 # sed scripts:
15833 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15834 my_sed_long_arg='1s/^-[^=]*=//'
15835
15836 # func_opt_split
15837 func_opt_split ()
15838 {
15839 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15840 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15841 }
15842
15843 # func_lo2o object
15844 func_lo2o ()
15845 {
15846 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15847 }
15848
15849 # func_xform libobj-or-source
15850 func_xform ()
15851 {
15852 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15853 }
15854
15855 # func_arith arithmetic-term...
15856 func_arith ()
15857 {
15858 func_arith_result=`expr "$@"`
15859 }
15860
15861 # func_len string
15862 # STRING may not start with a hyphen.
15863 func_len ()
15864 {
15865 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15866 }
15867
15868 _LT_EOF
15869 esac
15870
15871 case $lt_shell_append in
15872 yes)
15873 cat << \_LT_EOF >> "$cfgfile"
15874
15875 # func_append var value
15876 # Append VALUE to the end of shell variable VAR.
15877 func_append ()
15878 {
15879 eval "$1+=\$2"
15880 }
15881 _LT_EOF
15882 ;;
15883 *)
15884 cat << \_LT_EOF >> "$cfgfile"
15885
15886 # func_append var value
15887 # Append VALUE to the end of shell variable VAR.
15888 func_append ()
15889 {
15890 eval "$1=\$$1\$2"
15891 }
15892
15893 _LT_EOF
15894 ;;
15895 esac
15896
15897
15898 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15899 || (rm -f "$cfgfile"; exit 1)
15900
15901 mv -f "$cfgfile" "$ofile" ||
15902 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15903 chmod +x "$ofile"
15904
15905 ;;
2396815906
2396915907 esac
2397015908 done # for ac_tag
11
22 dnl Process this file with autoconf to produce a configure script.
33
4 dnl Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
4 dnl Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
55 dnl National Institute of Advanced Industrial Science and Technology (AIST)
66 dnl Registration Number H15PRO167
77
2222 dnl write to the Free Software Foundation, Inc., 59 Temple Place, Suite
2323 dnl 330, Boston, MA 02111-1307, USA.
2424
25 AC_INIT(libotf, 0.9.8, handa@m17n.org)
26 AM_INIT_AUTOMAKE(libotf, 0.9.8)
25 AC_INIT(libotf, 0.9.9, handa@m17n.org)
26 AM_INIT_AUTOMAKE(libotf, 0.9.9)
2727 AM_CONFIG_HEADER(src/config.h)
2828
2929 # Checks for programs.
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
3 scriptversion=2007-03-29.01
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software
6 # Foundation, Inc.
67
78 # This program is free software; you can redistribute it and/or modify
89 # it under the terms of the GNU General Public License as published by
9091 ## gcc 3 implements dependency tracking that does exactly what
9192 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
9293 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
95 ## the command line argument order; so add the flags where they
96 ## appear in depend2.am. Note that the slowdown incurred here
97 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
98 for arg
99 do
100 case $arg in
101 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
102 *) set fnord "$@" "$arg" ;;
103 esac
104 shift # fnord
105 shift # $arg
106 done
107 "$@"
94108 stat=$?
95109 if test $stat -eq 0; then :
96110 else
200214 # current directory. Also, the AIX compiler puts `$object:' at the
201215 # start of each line; $object doesn't have directory information.
202216 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
217 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
218 test "x$dir" = "x$object" && dir=
219 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
205220 if test "$libtool" = yes; then
221 tmpdepfile1=$dir$base.u
222 tmpdepfile2=$base.u
223 tmpdepfile3=$dir.libs/$base.u
206224 "$@" -Wc,-M
207225 else
226 tmpdepfile1=$dir$base.u
227 tmpdepfile2=$dir$base.u
228 tmpdepfile3=$dir$base.u
208229 "$@" -M
209230 fi
210231 stat=$?
211232
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218233 if test $stat -eq 0; then :
219234 else
220 rm -f "$tmpdepfile"
235 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
221236 exit $stat
222237 fi
223238
239 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
240 do
241 test -f "$tmpdepfile" && break
242 done
224243 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226244 # Each line is of the form `foo.o: dependent.h'.
227245 # Do two passes, one to just change these to
228246 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
247 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
248 # That's a tab and a space in the [].
249 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
231250 else
232251 # The sourcefile does not contain any dependencies, so just
233252 # store a dummy comment line, to avoid errors with the Makefile
275294 rm -f "$tmpdepfile"
276295 ;;
277296
297 hp2)
298 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
299 # compilers, which have integrated preprocessors. The correct option
300 # to use with these is +Maked; it writes dependencies to a file named
301 # 'foo.d', which lands next to the object file, wherever that
302 # happens to be.
303 # Much of this is similar to the tru64 case; see comments there.
304 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
305 test "x$dir" = "x$object" && dir=
306 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
307 if test "$libtool" = yes; then
308 tmpdepfile1=$dir$base.d
309 tmpdepfile2=$dir.libs/$base.d
310 "$@" -Wc,+Maked
311 else
312 tmpdepfile1=$dir$base.d
313 tmpdepfile2=$dir$base.d
314 "$@" +Maked
315 fi
316 stat=$?
317 if test $stat -eq 0; then :
318 else
319 rm -f "$tmpdepfile1" "$tmpdepfile2"
320 exit $stat
321 fi
322
323 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
324 do
325 test -f "$tmpdepfile" && break
326 done
327 if test -f "$tmpdepfile"; then
328 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
329 # Add `dependent.h:' lines.
330 sed -ne '2,${; s/^ *//; s/ \\*$//; s/$/:/; p;}' "$tmpdepfile" >> "$depfile"
331 else
332 echo "#dummy" > "$depfile"
333 fi
334 rm -f "$tmpdepfile" "$tmpdepfile2"
335 ;;
336
278337 tru64)
279338 # The Tru64 compiler uses -MD to generate dependencies as a side
280339 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
287346
288347 if test "$libtool" = yes; then
289348 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
349 # static library. This mechanism is used in libtool 1.4 series to
291350 # handle both shared and static libraries in a single compilation.
292351 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293352 #
294353 # With libtool 1.5 this exception was removed, and libtool now
295354 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
355 # compilations output dependencies in $dir.libs/$base.o.d and
297356 # in $dir$base.o.d. We have to check for both files, because
298357 # one of the two compilations can be disabled. We should prefer
299358 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
3535 # write to the Free Software Foundation, Inc., 59 Temple Place, Suite
3636 # 330, Boston, MA 02111-1307, USA
3737
38 srcdir = @srcdir@
39 top_srcdir = @top_srcdir@
4038 VPATH = @srcdir@
4139 pkgdatadir = $(datadir)/@PACKAGE@
4240 pkglibdir = $(libdir)/@PACKAGE@
4341 pkgincludedir = $(includedir)/@PACKAGE@
44 top_builddir = ..
4542 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
46 INSTALL = @INSTALL@
4743 install_sh_DATA = $(install_sh) -c -m 644
4844 install_sh_PROGRAM = $(install_sh) -c
4945 install_sh_SCRIPT = $(install_sh) -c
7369 PROGRAMS = $(bin_PROGRAMS)
7470 otfdump_SOURCES = otfdump.c
7571 otfdump_OBJECTS = otfdump.$(OBJEXT)
76 am__DEPENDENCIES_1 = ${top_builddir}/src/libotf.la
77 otfdump_DEPENDENCIES = $(am__DEPENDENCIES_1)
72 otfdump_DEPENDENCIES = $(CommonLDADD)
7873 otflist_SOURCES = otflist.c
7974 otflist_OBJECTS = otflist.$(OBJEXT)
80 otflist_DEPENDENCIES = $(am__DEPENDENCIES_1)
75 otflist_DEPENDENCIES = $(CommonLDADD)
8176 otftobdf_SOURCES = otftobdf.c
8277 otftobdf_OBJECTS = otftobdf.$(OBJEXT)
83 otftobdf_DEPENDENCIES = $(am__DEPENDENCIES_1)
78 otftobdf_DEPENDENCIES = $(CommonLDADD)
8479 otfview_SOURCES = otfview.c
8580 otfview_OBJECTS = otfview.$(OBJEXT)
86 otfview_DEPENDENCIES = $(am__DEPENDENCIES_1)
87 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src
81 otfview_DEPENDENCIES = $(CommonLDADD)
82 otfview_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
83 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(otfview_LDFLAGS) \
84 $(LDFLAGS) -o $@
85 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
8886 depcomp = $(SHELL) $(top_srcdir)/depcomp
8987 am__depfiles_maybe = depfiles
9088 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
9189 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
92 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
93 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
94 $(AM_CFLAGS) $(CFLAGS)
90 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
91 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
92 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9593 CCLD = $(CC)
96 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
97 $(AM_LDFLAGS) $(LDFLAGS) -o $@
94 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
95 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
96 $(LDFLAGS) -o $@
9897 SOURCES = otfdump.c otflist.c otftobdf.c otfview.c
9998 DIST_SOURCES = otfdump.c otflist.c otftobdf.c otfview.c
10099 ETAGS = etags
102101 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
103102 ACLOCAL = @ACLOCAL@
104103 ALLOCA = @ALLOCA@
105 AMDEP_FALSE = @AMDEP_FALSE@
106 AMDEP_TRUE = @AMDEP_TRUE@
107104 AMTAR = @AMTAR@
108105 AR = @AR@
109106 AUTOCONF = @AUTOCONF@
115112 CFLAGS = @CFLAGS@
116113 CPP = @CPP@
117114 CPPFLAGS = @CPPFLAGS@
118 CXX = @CXX@
119 CXXCPP = @CXXCPP@
120 CXXDEPMODE = @CXXDEPMODE@
121 CXXFLAGS = @CXXFLAGS@
122115 CYGPATH_W = @CYGPATH_W@
123116 DEFS = @DEFS@
124117 DEPDIR = @DEPDIR@
125118 DSYMUTIL = @DSYMUTIL@
126 ECHO = @ECHO@
119 DUMPBIN = @DUMPBIN@
127120 ECHO_C = @ECHO_C@
128121 ECHO_N = @ECHO_N@
129122 ECHO_T = @ECHO_T@
130123 EGREP = @EGREP@
131124 EXEEXT = @EXEEXT@
132 F77 = @F77@
133 FFLAGS = @FFLAGS@
125 FGREP = @FGREP@
134126 FREETYPE_INC = @FREETYPE_INC@
135127 FREETYPE_LD_FLAGS = @FREETYPE_LD_FLAGS@
136128 GREP = @GREP@
137129 HAVE_FREETYPE_CONFIG = @HAVE_FREETYPE_CONFIG@
130 INSTALL = @INSTALL@
138131 INSTALL_DATA = @INSTALL_DATA@
139132 INSTALL_PROGRAM = @INSTALL_PROGRAM@
140133 INSTALL_SCRIPT = @INSTALL_SCRIPT@
141134 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
135 LD = @LD@
142136 LDFLAGS = @LDFLAGS@
143137 LIBOBJS = @LIBOBJS@
144138 LIBS = @LIBS@
145139 LIBTOOL = @LIBTOOL@
140 LIPO = @LIPO@
146141 LN_S = @LN_S@
147142 LTLIBOBJS = @LTLIBOBJS@
148143 MAKEINFO = @MAKEINFO@
144 MKDIR_P = @MKDIR_P@
145 NM = @NM@
149146 NMEDIT = @NMEDIT@
150147 OBJEXT = @OBJEXT@
148 OTOOL = @OTOOL@
149 OTOOL64 = @OTOOL64@
151150 PACKAGE = @PACKAGE@
152151 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
153152 PACKAGE_NAME = @PACKAGE_NAME@
167166 X_EXTRA_LIBS = @X_EXTRA_LIBS@
168167 X_LIBS = @X_LIBS@
169168 X_PRE_LIBS = @X_PRE_LIBS@
169 abs_builddir = @abs_builddir@
170 abs_srcdir = @abs_srcdir@
171 abs_top_builddir = @abs_top_builddir@
172 abs_top_srcdir = @abs_top_srcdir@
170173 ac_ct_CC = @ac_ct_CC@
171 ac_ct_CXX = @ac_ct_CXX@
172 ac_ct_F77 = @ac_ct_F77@
173 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
174 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
175 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
176 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
174 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
177175 am__include = @am__include@
178176 am__leading_dot = @am__leading_dot@
179177 am__quote = @am__quote@
185183 build_cpu = @build_cpu@
186184 build_os = @build_os@
187185 build_vendor = @build_vendor@
186 builddir = @builddir@
188187 datadir = @datadir@
189188 datarootdir = @datarootdir@
190189 docdir = @docdir@
203202 libexecdir = @libexecdir@
204203 localedir = @localedir@
205204 localstatedir = @localstatedir@
205 lt_ECHO = @lt_ECHO@
206206 mandir = @mandir@
207207 mkdir_p = @mkdir_p@
208208 oldincludedir = @oldincludedir@
212212 psdir = @psdir@
213213 sbindir = @sbindir@
214214 sharedstatedir = @sharedstatedir@
215 srcdir = @srcdir@
215216 sysconfdir = @sysconfdir@
216217 target_alias = @target_alias@
218 top_builddir = @top_builddir@
219 top_srcdir = @top_srcdir@
217220 CommonLDADD = ${top_builddir}/src/libotf.la
218221 otflist_SOURCE = otflist.c
219222 otflist_LDADD = ${CommonLDADD}
259262 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
260263 install-binPROGRAMS: $(bin_PROGRAMS)
261264 @$(NORMAL_INSTALL)
262 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
265 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
263266 @list='$(bin_PROGRAMS)'; for p in $$list; do \
264267 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
265268 if test -f $$p \
266269 || test -f $$p1 \
267270 ; then \
268271 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
269 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
270 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
272 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
273 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
271274 else :; fi; \
272275 done
273276
287290 done
288291 otfdump$(EXEEXT): $(otfdump_OBJECTS) $(otfdump_DEPENDENCIES)
289292 @rm -f otfdump$(EXEEXT)
290 $(LINK) $(otfdump_LDFLAGS) $(otfdump_OBJECTS) $(otfdump_LDADD) $(LIBS)
293 $(LINK) $(otfdump_OBJECTS) $(otfdump_LDADD) $(LIBS)
291294 otflist$(EXEEXT): $(otflist_OBJECTS) $(otflist_DEPENDENCIES)
292295 @rm -f otflist$(EXEEXT)
293 $(LINK) $(otflist_LDFLAGS) $(otflist_OBJECTS) $(otflist_LDADD) $(LIBS)
296 $(LINK) $(otflist_OBJECTS) $(otflist_LDADD) $(LIBS)
294297 otftobdf$(EXEEXT): $(otftobdf_OBJECTS) $(otftobdf_DEPENDENCIES)
295298 @rm -f otftobdf$(EXEEXT)
296 $(LINK) $(otftobdf_LDFLAGS) $(otftobdf_OBJECTS) $(otftobdf_LDADD) $(LIBS)
299 $(LINK) $(otftobdf_OBJECTS) $(otftobdf_LDADD) $(LIBS)
297300 otfview$(EXEEXT): $(otfview_OBJECTS) $(otfview_DEPENDENCIES)
298301 @rm -f otfview$(EXEEXT)
299 $(LINK) $(otfview_LDFLAGS) $(otfview_OBJECTS) $(otfview_LDADD) $(LIBS)
302 $(otfview_LINK) $(otfview_OBJECTS) $(otfview_LDADD) $(LIBS)
300303
301304 mostlyclean-compile:
302305 -rm -f *.$(OBJEXT)
310313 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/otfview.Po@am__quote@
311314
312315 .c.o:
313 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
314 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
316 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
315318 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
316319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
317320 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
318321
319322 .c.obj:
320 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
321 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
323 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
322325 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
323326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
324327 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
325328
326329 .c.lo:
327 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
328 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
330 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
329332 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
330333 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
331334 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
335338
336339 clean-libtool:
337340 -rm -rf .libs _libs
338
339 distclean-libtool:
340 -rm -f libtool
341 uninstall-info-am:
342341
343342 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
344343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
345344 unique=`for i in $$list; do \
346345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
347346 done | \
348 $(AWK) ' { files[$$0] = 1; } \
349 END { for (i in files) print i; }'`; \
347 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
348 END { if (nonempty) { for (i in files) print i; }; }'`; \
350349 mkid -fID $$unique
351350 tags: TAGS
352351
358357 unique=`for i in $$list; do \
359358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
360359 done | \
361 $(AWK) ' { files[$$0] = 1; } \
362 END { for (i in files) print i; }'`; \
360 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
361 END { if (nonempty) { for (i in files) print i; }; }'`; \
363362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
364363 test -n "$$unique" || unique=$$empty_fix; \
365364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
369368 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
370369 $(TAGS_FILES) $(LISP)
371370 tags=; \
372 here=`pwd`; \
373371 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
374372 unique=`for i in $$list; do \
375373 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
376374 done | \
377 $(AWK) ' { files[$$0] = 1; } \
378 END { for (i in files) print i; }'`; \
375 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
376 END { if (nonempty) { for (i in files) print i; }; }'`; \
379377 test -z "$(CTAGS_ARGS)$$tags$$unique" \
380378 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
381379 $$tags $$unique
389387 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
390388
391389 distdir: $(DISTFILES)
392 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
393 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
394 list='$(DISTFILES)'; for file in $$list; do \
395 case $$file in \
396 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
397 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
398 esac; \
390 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
392 list='$(DISTFILES)'; \
393 dist_files=`for file in $$list; do echo $$file; done | \
394 sed -e "s|^$$srcdirstrip/||;t" \
395 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
396 case $$dist_files in \
397 */*) $(MKDIR_P) `echo "$$dist_files" | \
398 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
399 sort -u` ;; \
400 esac; \
401 for file in $$dist_files; do \
399402 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
400 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
401 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
402 dir="/$$dir"; \
403 $(mkdir_p) "$(distdir)$$dir"; \
404 else \
405 dir=''; \
406 fi; \
407403 if test -d $$d/$$file; then \
404 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
408405 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
409406 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
410407 fi; \
420417 all-am: Makefile $(PROGRAMS)
421418 installdirs:
422419 for dir in "$(DESTDIR)$(bindir)"; do \
423 test -z "$$dir" || $(mkdir_p) "$$dir"; \
420 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
424421 done
425422 install: install-am
426423 install-exec: install-exec-am
454451 -rm -rf ./$(DEPDIR)
455452 -rm -f Makefile
456453 distclean-am: clean-am distclean-compile distclean-generic \
457 distclean-libtool distclean-tags
454 distclean-tags
458455
459456 dvi: dvi-am
460457
468465
469466 install-data-am:
470467
468 install-dvi: install-dvi-am
469
471470 install-exec-am: install-binPROGRAMS
472471
472 install-html: install-html-am
473
473474 install-info: install-info-am
474475
475476 install-man:
477
478 install-pdf: install-pdf-am
479
480 install-ps: install-ps-am
476481
477482 installcheck-am:
478483
494499
495500 ps-am:
496501
497 uninstall-am: uninstall-binPROGRAMS uninstall-info-am
502 uninstall-am: uninstall-binPROGRAMS
503
504 .MAKE: install-am install-strip
498505
499506 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
500507 clean-generic clean-libtool ctags distclean distclean-compile \
501508 distclean-generic distclean-libtool distclean-tags distdir dvi \
502509 dvi-am html html-am info info-am install install-am \
503 install-binPROGRAMS install-data install-data-am install-exec \
504 install-exec-am install-info install-info-am install-man \
510 install-binPROGRAMS install-data install-data-am install-dvi \
511 install-dvi-am install-exec install-exec-am install-html \
512 install-html-am install-info install-info-am install-man \
513 install-pdf install-pdf-am install-ps install-ps-am \
505514 install-strip installcheck installcheck-am installdirs \
506515 maintainer-clean maintainer-clean-generic mostlyclean \
507516 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
508517 pdf pdf-am ps ps-am tags uninstall uninstall-am \
509 uninstall-binPROGRAMS uninstall-info-am
518 uninstall-binPROGRAMS
510519
511520 # Tell versions [3.59,3.63) of GNU make to not export all variables.
512521 # Otherwise a system limit (for SysV at least) may be exceeded.
13761376 sub12->Groups[j].startGlyphID);
13771377 }
13781378 }
1379 break;
1380
1381 case 14:
1382 {
1383 OTF_EncodingSubtable14 *sub14
1384 = cmap->EncodingRecord[i].subtable.f.f14;
1385 unsigned j,k;
1386
1387 IPRINT ("(VariationSelectorRecords %d)",sub14->nRecords);
1388 for (j = 0; j < sub14->nRecords; j++)
1389 {
1390 OTF_VariationSelectorRecord *record = sub14->Records + j;
1391 IPRINT ("(VariationSelectorRecord (varSelector #x%x)",
1392 record->varSelector);
1393 indent += 1;
1394 IPRINT ("(defaultUVSOffset #x%x)",
1395 record->defaultUVSOffset);
1396 if (record->defaultUVSOffset)
1397 {
1398 IPRINT ("(defaultUVS");
1399 indent += 1;
1400 for (k = 0 ; k < record->numUnicodeValueRanges; k++)
1401 {
1402 OTF_UnicodeValueRange *unicodeValueRange
1403 = &record->unicodeValueRanges[k];
1404 IPRINT("(startUnicodeValue #x%x) (additionalCount %d)",
1405 unicodeValueRange->startUnicodeValue,
1406 unicodeValueRange->additionalCount);
1407 }
1408 printf (")");
1409 indent -= 1;
1410 }
1411 IPRINT ("(nonDefaultUVSOffset #x%x)",
1412 record->nonDefaultUVSOffset);
1413 if (record->nonDefaultUVSOffset)
1414 {
1415 IPRINT ("(NonDefaultUVS");
1416 indent += 1;
1417 for (k=0; k < record->numUVSMappings; k++)
1418 {
1419 OTF_UVSMapping *uvsMapping
1420 = &record->uvsMappings[k];
1421 IPRINT("(unicodeValue #x%x) (glyphID %d)",
1422 uvsMapping->unicodeValue,
1423 uvsMapping->glyphID);
1424 }
1425 printf (")");
1426 indent -= 1;
1427 }
1428 printf (")");
1429 indent -= 1;
1430 }
1431 }
13791432 }
13801433
13811434 indent -= 2;
00 /* otfview.c -- View glyphs of OpenType fonts.
11
2 Copyright (C) 2003, 2004, 2005, 2006, 2008
2 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
55
4545 #include FT_FREETYPE_H
4646
4747 #include <otf.h>
48
49 #define CAST_FROM_XTPOINTER(TYPE, DATA, VAR) \
50 do { \
51 long TYPE temp = (long TYPE) (DATA); \
52 (VAR) = temp; \
53 } while (0)
54
55 #define XtAddCallbackWithCast(TYPE, W, PROC, VAR) \
56 do { \
57 long TYPE temp = (long TYPE) (VAR); \
58 XtAddCallback (W, XtNcallback, PROC, (XtPointer) temp); \
59 } while (0)
60
4861
4962 #define DEFAULT_PIXEL_SIZE 30
5063 int pixel_size;
7083 | | ... ... | |
7184 | | idxh[7] glyph[112] ... glyph[127]| |
7285 | | idxl[0] ... idxl[15] | |
86 | +--------------------------------------+ |
87 | +---- uvs_area (box) (optional) -------+ |
88 | | uvs[?].w ... | |
7389 | +--------------------------------------+ |
7490 | +--- render_area (form) ---------------+ |
7591 | | clear del bidi alt_subst | |
87103 Widget command_area, quit, dump, *charmap;
88104 Widget navi_area, FIRST, PREV, prev, range, next, NEXT, LAST;
89105 Widget glyph_area, glyph[128], index_label[8];
106 Widget uvs_area, uvs_label;
90107 Widget render_area, clear, del, bidi, alt_subst, raw, seq;
91108 Widget raw_label, raw_image, seq_label, seq_image;
92109 unsigned long foreground, background;
152169 int glyphs[64];
153170 int codes[64];
154171 } glyph_rec;
172
173 OTF_EncodingSubtable14 *sub14 = NULL;
174
175 struct {
176 Widget w;
177 int c;
178 } uvs[256];
155179
156180 OTF *otf;
157181 char *filename;
241265 XtSetValues (range, arg, 1);
242266 }
243267
268 void
269 update_uvs_area (int c)
270 {
271 OTF_GlyphID code[256];
272 Arg arg[1];
273 int i;
274
275 OTF_get_variation_glyphs (otf, c, code);
276
277 for (i = 0; i < 256; i++)
278 if (uvs[i].w)
279 {
280 if (code[i])
281 XtSetArg (arg[0], XtNsensitive, True);
282 else
283 XtSetArg (arg[0], XtNsensitive, False);
284 XtSetValues (uvs[i].w, arg, 1);
285 }
286 }
287
288
244289 char *
245290 get_features (OTF_FeatureList *list, FeatureRec *rec)
246291 {
312357 gstring.glyphs = malloc (sizeof (OTF_Glyph) * len);
313358 memset (gstring.glyphs, 0, sizeof (OTF_Glyph) * len);
314359 for (i = 0; i < len; i++)
315 gstring.glyphs[i].c = gstring.glyphs[i].glyph_id = glyph_rec.glyphs[i];
360 {
361 gstring.glyphs[i].c = glyph_rec.codes[i];
362 if (charmap_index < 0)
363 gstring.glyphs[i].glyph_id = glyph_rec.glyphs[i];
364 }
316365
317366 XFillRectangle (display, seq_pixmap, gc, 0, 0, render_width, render_height);
318367 XDrawLine (display, seq_pixmap, gc_set, 0, glyph_y, render_width, glyph_y);
321370 char *str;
322371
323372 OTF_drive_gdef (otf, &gstring);
373 OTF_drive_cmap (otf, &gstring);
324374 if (otf->gsub)
325375 {
326376 str = get_features (&otf->gsub->FeatureList, &gsub);
338388 str = get_features (&otf->gpos->FeatureList, &gpos);
339389 if (str)
340390 {
341 OTF_drive_gpos (otf, &gstring, NULL, NULL, str);
391 OTF_drive_gpos2 (otf, &gstring, NULL, NULL, str);
342392 free (str);
343393 }
344394 }
374424 int prev_width;
375425 int advance = bmp->advance;
376426
377 if (! bmp->pixmap)
427 if (gstring.glyphs[i].glyph_id && ! bmp->pixmap)
378428 {
379429 create_pixmap (gstring.glyphs[i].glyph_id);
380430 if (! bmp->pixmap)
381431 continue;
382432 advance = bmp->advance;
383433 }
384 switch (g->positioning_type)
385 {
386 case 0:
387 break;
388
389 case 1: case 2:
390 {
391 int format = g->f.f1.format;
392
393 if (format & OTF_XPlacement)
394 xoff = g->f.f1.value->XPlacement * pixel_size / unitsPerEm;
395 if (format & OTF_XPlaDevice)
396 xoff += DEVICE_DELTA (g->f.f1.value->XPlaDevice, pixel_size);
397 if (format & OTF_YPlacement)
398 yoff = g->f.f1.value->YPlacement * pixel_size / unitsPerEm;
399 if (format & OTF_YPlaDevice)
400 yoff += DEVICE_DELTA (g->f.f1.value->YPlaDevice, pixel_size);
401 if (format & OTF_XAdvance)
402 advance += g->f.f1.value->XAdvance * pixel_size / unitsPerEm;
403 if (format & OTF_XAdvDevice)
404 advance += DEVICE_DELTA (g->f.f1.value->XAdvDevice, pixel_size);
405 }
406 break;
407
408 case 3:
409 /* Not yet supported. */
410 break;
411 case 4: case 5:
412 if (! base)
413 break;
414 prev = base;
415 prev_width = base_width;
416 goto label_adjust_anchor;
417 default: /* i.e. case 6 */
418 if (! mark)
419 break;
420 prev = mark;
421 prev_width = 0;
422 label_adjust_anchor:
423 {
424 int base_x, base_y, mark_x, mark_y;
425
426 base_x = g->f.f4.base_anchor->XCoordinate * pixel_size / unitsPerEm;
427 base_y = g->f.f4.base_anchor->YCoordinate * pixel_size / unitsPerEm;
428 mark_x = g->f.f4.mark_anchor->XCoordinate * pixel_size / unitsPerEm;
429 mark_y = g->f.f4.mark_anchor->YCoordinate * pixel_size / unitsPerEm;
430
431 if (g->f.f4.base_anchor->AnchorFormat != 1)
432 adjust_anchor (g->f.f4.base_anchor, face, prev, &base_x, &base_y);
433 if (g->f.f4.mark_anchor->AnchorFormat != 1)
434 adjust_anchor (g->f.f4.mark_anchor, face, g, &mark_x, &mark_y);
435 xoff = (base_x - prev_width) - mark_x;
436 yoff = base_y - mark_y;
437 }
438 }
439
434 if (g->positioning_type)
435 {
436 while (1)
437 {
438 switch (g->positioning_type)
439 {
440 case 1: case 2:
441 {
442 int format = g->f.f1.format;
443
444 if (format & OTF_XPlacement)
445 xoff = g->f.f1.value->XPlacement * pixel_size / unitsPerEm;
446 if (format & OTF_XPlaDevice)
447 xoff += DEVICE_DELTA (g->f.f1.value->XPlaDevice, pixel_size);
448 if (format & OTF_YPlacement)
449 yoff = g->f.f1.value->YPlacement * pixel_size / unitsPerEm;
450 if (format & OTF_YPlaDevice)
451 yoff += DEVICE_DELTA (g->f.f1.value->YPlaDevice, pixel_size);
452 if (format & OTF_XAdvance)
453 advance += g->f.f1.value->XAdvance * pixel_size / unitsPerEm;
454 if (format & OTF_XAdvDevice)
455 advance += DEVICE_DELTA (g->f.f1.value->XAdvDevice,
456 pixel_size);
457 }
458 break;
459
460 case 3:
461 /* Not yet supported. */
462 break;
463 case 4: case 5:
464 if (! base)
465 break;
466 prev = base;
467 prev_width = base_width;
468 goto label_adjust_anchor;
469 default: /* i.e. case 6 */
470 if (! mark)
471 break;
472 prev = mark;
473 prev_width = 0;
474 label_adjust_anchor:
475 {
476 int base_x, base_y, mark_x, mark_y;
477
478 base_x = g->f.f4.base_anchor->XCoordinate * pixel_size / unitsPerEm;
479 base_y = g->f.f4.base_anchor->YCoordinate * pixel_size / unitsPerEm;
480 mark_x = g->f.f4.mark_anchor->XCoordinate * pixel_size / unitsPerEm;
481 mark_y = g->f.f4.mark_anchor->YCoordinate * pixel_size / unitsPerEm;
482
483 if (g->f.f4.base_anchor->AnchorFormat != 1)
484 adjust_anchor (g->f.f4.base_anchor, face, prev, &base_x, &base_y);
485 if (g->f.f4.mark_anchor->AnchorFormat != 1)
486 adjust_anchor (g->f.f4.mark_anchor, face, g, &mark_x, &mark_y);
487 xoff = (base_x - prev_width) - mark_x;
488 yoff = base_y - mark_y;
489 }
490 }
491 if (i + 1 == gstring.used
492 || gstring.glyphs[i + 1].glyph_id
493 || ! gstring.glyphs[i + 1].positioning_type)
494 break;
495 i++, g++;
496 }
497 }
498
440499 XCopyArea (display, bmp->pixmap, seq_pixmap, gc_or,
441500 glyph_x + bmp->x, glyph_y + bmp->y, bmp->width, bmp->height,
442501 x + bmp->x + xoff, glyph_y + bmp->y - yoff);
466525 XFillRectangle (display, raw_pixmap, gc, 0, 0, render_width, render_height);
467526 for (i = 0, x = glyph_x; i < glyph_rec.n_glyphs; i++)
468527 {
469 BitmapRec *bmp = bitmap + glyph_rec.glyphs[i];
470 char buf[5];
471
472 XCopyArea (display, bmp->pixmap, raw_pixmap, gc,
473 0, 0, glyph_width, glyph_height,
474 (glyph_width + 4) * i + 1, 1);
475 XDrawRectangle (display, raw_pixmap, gc_set,
476 (glyph_width + 4) * i, 0,
477 glyph_width + 1, glyph_height + 1);
478 XDrawLine (display, raw_pixmap, gc_set,
479 (glyph_width + 4) * i + 1 + glyph_x, 1,
480 (glyph_width + 4) * i + 1 + glyph_x, glyph_height + 1);
481 XDrawLine (display, raw_pixmap, gc_set,
482 (glyph_width + 4) * i + 1 + glyph_x + bmp->advance, 1,
483 (glyph_width + 4) * i + 1 + glyph_x + bmp->advance,
484 glyph_height + 1);
485
486 sprintf (buf, "%04X", glyph_rec.codes[i]);
487 XDrawString (display, raw_pixmap, gc_inv,
488 (glyph_width + 1) * i + 1
489 + (glyph_width - XTextWidth (font, buf, 4)) / 2,
490 glyph_height + 2 + FONT_HEIGHT, buf, 4);
528 if (glyph_rec.glyphs[i] >= 0)
529 {
530 BitmapRec *bmp = bitmap + glyph_rec.glyphs[i];
531 char buf[5];
532
533 XCopyArea (display, bmp->pixmap, raw_pixmap, gc,
534 0, 0, glyph_width, glyph_height,
535 (glyph_width + 4) * i + 1, 1);
536 XDrawRectangle (display, raw_pixmap, gc_set,
537 (glyph_width + 4) * i, 0,
538 glyph_width + 1, glyph_height + 1);
539 XDrawLine (display, raw_pixmap, gc_set,
540 (glyph_width + 4) * i + 1 + glyph_x, 1,
541 (glyph_width + 4) * i + 1 + glyph_x, glyph_height + 1);
542 XDrawLine (display, raw_pixmap, gc_set,
543 (glyph_width + 4) * i + 1 + glyph_x + bmp->advance, 1,
544 (glyph_width + 4) * i + 1 + glyph_x + bmp->advance,
545 glyph_height + 1);
546
547 sprintf (buf, "%04X", glyph_rec.codes[i]);
548 XDrawString (display, raw_pixmap, gc_inv,
549 (glyph_width + 4) * i + 1
550 + (glyph_width - XTextWidth (font, buf, 4)) / 2,
551 glyph_height + 2 + FONT_HEIGHT, buf, 4);
552 }
553 else
554 {
555 /* Variation Selector */
556 int idx = - glyph_rec.glyphs[i];
557 char buf[4];
558
559 sprintf (buf, "%03d", idx);
560 XDrawRectangle (display, raw_pixmap, gc_set,
561 (glyph_width + 4) * i, 0,
562 glyph_width + 1, glyph_height + 1);
563 XDrawString (display, raw_pixmap, gc_set,
564 (glyph_width + 4) * i + 1
565 + (glyph_width - XTextWidth (font, "VS", 2)) / 2,
566 1 + glyph_height / 2, "VS", 2);
567 XDrawString (display, raw_pixmap, gc_set,
568 (glyph_width + 4) * i + 1
569 + (glyph_width - XTextWidth (font, buf, 3)) / 2,
570 1 + glyph_height / 2 + FONT_ASCENT, buf, 3);
571 }
491572 }
492573 XtSetArg (arg[0], XtNbitmap, raw_pixmap);
493574 XtSetValues (raw_image, arg, 1);
639720 GlyphProc (Widget w, XtPointer client_data, XtPointer call_data)
640721 {
641722 int old_glyph_index = glyph_index;
642
643 if ((int) client_data == -3 && glyph_index > 0)
723 int data;
724
725 CAST_FROM_XTPOINTER (int, client_data, data);
726
727 if (data == -3 && glyph_index > 0)
644728 glyph_index = 0;
645 else if ((int) client_data == -2 && glyph_index > 0)
729 else if (data == -2 && glyph_index > 0)
646730 glyph_index = (glyph_index - 1) & 0x1FF000;
647 else if ((int) client_data == -1 && glyph_index > 0)
731 else if (data == -1 && glyph_index > 0)
648732 glyph_index -= 0x80;
649 else if ((int) client_data == 1 && glyph_index < 0x10FF80)
733 else if (data == 1 && glyph_index < 0x10FF80)
650734 glyph_index += 0x80;
651 else if ((int) client_data == 2 && glyph_index < 0x10F000)
735 else if (data == 2 && glyph_index < 0x10F000)
652736 glyph_index = (glyph_index + 0x1000) & 0x1FF000;
653 else if ((int) client_data == 3 && glyph_index < 0x10F000)
737 else if (data == 3 && glyph_index < 0x10F000)
654738 glyph_index = 0x10FF80;
655739 if (glyph_index != old_glyph_index)
656740 update_glyph_area ();
659743 void
660744 CharmapProc (Widget w, XtPointer client_data, XtPointer call_data)
661745 {
662 if (charmap_index == (int) client_data)
746 int data;
747
748 CAST_FROM_XTPOINTER (int, client_data, data);
749
750 if (charmap_index == data)
663751 return;
664 charmap_index = (int) client_data;
752 charmap_index = data;
665753 if (charmap_index >= 0)
666754 FT_Set_Charmap (face, face->charmaps[charmap_index]);
667755 update_glyph_area ();
668756 }
669757
670758 void
759 UVSProc (Widget w, XtPointer client_data, XtPointer call_data)
760 {
761 unsigned idx;
762 int selector;
763 OTF_VariationSelectorRecord *record;
764 int i;
765
766 CAST_FROM_XTPOINTER (unsigned, client_data, idx);
767 selector = uvs[idx].c;
768
769 if (glyph_rec.n_glyphs >= 64)
770 return;
771 for (i = 0; i < sub14->nRecords; i++)
772 {
773 record = sub14->Records + i;
774 if (record->varSelector == selector)
775 break;
776 }
777 if (i < sub14->nRecords)
778 {
779 if (glyph_rec.n_glyphs > 0
780 && glyph_rec.glyphs[glyph_rec.n_glyphs - 1] < 0)
781 glyph_rec.n_glyphs--;
782 glyph_rec.codes[glyph_rec.n_glyphs] = selector;
783 glyph_rec.glyphs[glyph_rec.n_glyphs++] = - idx - 1;
784 update_render_area ();
785 }
786 }
787
788 void
671789 RenderProc (Widget w, XtPointer client_data, XtPointer call_data)
672790 {
673 if ((int) client_data < 0)
791 int data;
792
793 CAST_FROM_XTPOINTER (int, client_data, data);
794
795 if (data < 0)
674796 {
675797 if (glyph_rec.n_glyphs > 0)
676798 {
677 if ((int) client_data == -2)
799 if (data == -2)
678800 glyph_rec.n_glyphs--;
679801 else
680802 glyph_rec.n_glyphs = 0;
683805 }
684806 else if (glyph_rec.n_glyphs < 64)
685807 {
686 int index = glyph_index + (int) client_data;
808 int index = glyph_index + data;
687809
688810 if (charmap_index >= 0)
689811 index = FT_Get_Char_Index (face, (FT_ULong) index);
690812 if (bitmap[index].pixmap)
691813 {
692 glyph_rec.codes[glyph_rec.n_glyphs] = glyph_index + (int) client_data;
814 glyph_rec.codes[glyph_rec.n_glyphs] = glyph_index + data;
693815 glyph_rec.glyphs[glyph_rec.n_glyphs++] = index;
816 if (otf)
817 update_uvs_area (glyph_index + data);
694818 update_render_area ();
695819 }
696820 }
11311255 XtSetArg (arg[6], XtNdefaultDistance, 0);
11321256 glyph_area = XtCreateManagedWidget ("glyph-area", formWidgetClass,
11331257 frame, arg, 7);
1258
11341259 XtSetArg (arg[5], XtNfromVert, glyph_area);
1260 if (sub14)
1261 {
1262 Arg arg2[3];
1263
1264 XtSetArg (arg[6], XtNorientation, XtorientHorizontal);
1265 uvs_area = XtCreateManagedWidget ("uvs-area", boxWidgetClass,
1266 frame, arg, 7);
1267 XtSetArg (arg2[0], XtNborderWidth, 0);
1268 XtSetArg (arg2[1], XtNlabel, "Variation Selector: ");
1269 uvs_label = XtCreateManagedWidget ("uvs-label", labelWidgetClass,
1270 uvs_area, arg2, 2);
1271 XtSetArg (arg2[0], XtNborderWidth, 1);
1272 for (i = 0; i < sub14->nRecords; i++)
1273 {
1274 OTF_VariationSelectorRecord *record = sub14->Records + i;
1275 unsigned selector = record->varSelector;
1276 unsigned idx;
1277 char lbl[4];
1278
1279 idx = (selector <= 0xFE0F ? selector - 0xFE00
1280 : selector - 0xE0100 + 16);
1281 if (uvs[idx].c)
1282 continue;
1283 uvs[idx].c = selector;
1284 sprintf (lbl, "%03d", idx + 1);
1285 XtSetArg (arg2[1], XtNlabel, lbl);
1286 XtSetArg (arg2[2], XtNsensitive, False);
1287 uvs[idx].w = XtCreateManagedWidget ("lbl", commandWidgetClass,
1288 uvs_area, arg2, 3);
1289 XtAddCallbackWithCast (unsigned, uvs[idx].w, UVSProc, idx);
1290 }
1291 XtSetArg (arg[5], XtNfromVert, uvs_area);
1292 }
11351293 render_area = XtCreateManagedWidget ("render-area", formWidgetClass,
11361294 frame, arg, 6);
11371295
11591317 charmap[i + 1] = XtCreateManagedWidget (charmap_rec[i + 1].name,
11601318 toggleWidgetClass,
11611319 command_area, arg, 1);
1162 XtAddCallback (charmap[i + 1], XtNcallback, CharmapProc, (XtPointer) i);
1320 XtAddCallbackWithCast (int, charmap[i + 1], CharmapProc, i);
11631321 }
11641322
11651323 XtSetArg (arg[0], XtNlabel, " |< (f)");
12331391 XtSetArg (arg[n], XtNbitmap, none_pixmap), n++;
12341392 glyph[k] = XtCreateManagedWidget ("glyph", commandWidgetClass,
12351393 glyph_area, arg, n);
1236 XtAddCallback (glyph[k], XtNcallback, RenderProc, (XtPointer) k);
1394 XtAddCallbackWithCast (int, glyph[k], RenderProc, k);
12371395 }
12381396 w = head;
12391397 }
14261584 || strstr (filename, ".OTF"))
14271585 {
14281586 otf = OTF_open_ft_face (face);
1429 if (! otf
1430 || OTF_get_table (otf, "head") < 0
1431 || OTF_get_table (otf, "cmap") < 0
1432 || (OTF_check_table (otf, "GSUB") < 0
1433 && OTF_check_table (otf, "GPOS") < 0))
1434 otf = NULL;
1587 if (otf)
1588 {
1589 if (OTF_get_table (otf, "head") < 0
1590 || OTF_get_table (otf, "cmap") < 0
1591 || (OTF_check_table (otf, "GSUB") < 0
1592 && OTF_check_table (otf, "GPOS") < 0))
1593 {
1594 OTF_close (otf);
1595 otf = NULL;
1596 }
1597 }
1598 if (otf)
1599 for (i = 0; i < otf->cmap->numTables; i++)
1600 if (otf->cmap->EncodingRecord[i].subtable.format == 14)
1601 {
1602 sub14 = otf->cmap->EncodingRecord[i].subtable.f.f14;
1603 break;
1604 }
14351605 }
14361606
14371607 {
14701640 XGCValues values;
14711641
14721642 gc = XCreateGC (display, none_pixmap, (unsigned long) 0, NULL);
1643 XSetFont (display, gc, font->fid);
14731644 values.function = GXset;
14741645 values.line_width = 1;
14751646 gc_set = XCreateGC (display, none_pixmap, valuemask, &values);
1647 XSetFont (display, gc_set, font->fid);
14761648 values.function = GXor;
14771649 gc_or = XCreateGC (display, none_pixmap, valuemask, &values);
14781650 values.function = GXcopyInverted;
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2005-05-14.22
3 scriptversion=2006-12-25.00
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
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
41 # from scratch.
42
43 nl='
44 '
45 IFS=" "" $nl"
4346
4447 # set DOITPROG to echo to test this script
4548
4649 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
50 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
56
57 # Put in absolute file names if you don't have them in your path;
58 # or use environment vars.
59
60 chgrpprog=${CHGRPPROG-chgrp}
61 chmodprog=${CHMODPROG-chmod}
62 chownprog=${CHOWNPROG-chown}
63 cmpprog=${CMPPROG-cmp}
64 cpprog=${CPPROG-cp}
65 mkdirprog=${MKDIRPROG-mkdir}
66 mvprog=${MVPROG-mv}
67 rmprog=${RMPROG-rm}
68 stripprog=${STRIPPROG-strip}
69
70 posix_glob='?'
71 initialize_posix_glob='
72 test "$posix_glob" != "?" || {
73 if (set -f) 2>/dev/null; then
74 posix_glob=
75 else
76 posix_glob=:
77 fi
78 }
79 '
80
81 posix_mkdir=
82
83 # Desired mode of installed file.
84 mode=0755
85
86 chgrpcmd=
87 chmodcmd=$chmodprog
6188 chowncmd=
62 chgrpcmd=
89 mvcmd=$mvprog
90 rmcmd="$rmprog -f"
6391 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
92
6693 src=
6794 dst=
6895 dir_arg=
69 dstarg=
96 dst_arg=
97
98 copy_on_change=false
7099 no_target_directory=
71100
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
101 usage="\
102 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73103 or: $0 [OPTION]... SRCFILES... DIRECTORY
74104 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75105 or: $0 [OPTION]... -d DIRECTORIES...
79109 In the 4th, create DIRECTORIES.
80110
81111 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
112 --help display this help and exit.
113 --version display version info and exit.
114
115 -c (ignored)
116 -C install only if different (preserve the last data modification time)
117 -d create directories instead of installing files.
118 -g GROUP $chgrpprog installed files to GROUP.
119 -m MODE $chmodprog installed files to MODE.
120 -o USER $chownprog installed files to USER.
121 -s $stripprog installed files.
122 -t DIRECTORY install into DIRECTORY.
123 -T report an error if DSTFILE is a directory.
92124
93125 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
126 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
127 RMPROG STRIPPROG
95128 "
96129
97 while test -n "$1"; do
130 while test $# -ne 0; do
98131 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
132 -c) ;;
133
134 -C) copy_on_change=true;;
135
136 -d) dir_arg=true;;
105137
106138 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
139 shift;;
110140
111141 --help) echo "$usage"; exit $?;;
112142
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
143 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
117151
118152 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
153 shift;;
154
155 -s) stripcmd=$stripprog;;
156
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
135161
136162 --version) echo "$0 $scriptversion"; exit $?;;
137163
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
164 --) shift
152165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
169
170 *) break;;
153171 esac
172 shift
154173 done
155174
156 if test -z "$1"; then
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 done
189 fi
190
191 if test $# -eq 0; then
157192 if test -z "$dir_arg"; then
158193 echo "$0: no input file specified." >&2
159194 exit 1
163198 exit 0
164199 fi
165200
201 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
203
204 # Set umask so as not to create temps with too-generous modes.
205 # However, 'strip' requires both read and write access to temps.
206 case $mode in
207 # Optimize common cases.
208 *644) cp_umask=133;;
209 *755) cp_umask=22;;
210
211 *[0-7])
212 if test -z "$stripcmd"; then
213 u_plus_rw=
214 else
215 u_plus_rw='% 200'
216 fi
217 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218 *)
219 if test -z "$stripcmd"; then
220 u_plus_rw=
221 else
222 u_plus_rw=,u+rw
223 fi
224 cp_umask=$mode$u_plus_rw;;
225 esac
226 fi
227
166228 for src
167229 do
168230 # Protect names starting with `-'.
169231 case $src in
170 -*) src=./$src ;;
232 -*) src=./$src;;
171233 esac
172234
173235 if test -n "$dir_arg"; then
174236 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
237 dstdir=$dst
238 test -d "$dstdir"
239 dstdir_status=$?
183240 else
241
184242 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185243 # might cause directories to be created, which would be especially bad
186244 # if $src (and thus $dsttmp) contains '*'.
189247 exit 1
190248 fi
191249
192 if test -z "$dstarg"; then
250 if test -z "$dst_arg"; then
193251 echo "$0: no destination specified." >&2
194252 exit 1
195253 fi
196254
197 dst=$dstarg
255 dst=$dst_arg
198256 # Protect names starting with `-'.
199257 case $dst in
200 -*) dst=./$dst ;;
258 -*) dst=./$dst;;
201259 esac
202260
203261 # If destination is a directory, append the input filename; won't work
204262 # if double slashes aren't ignored.
205263 if test -d "$dst"; then
206264 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
265 echo "$0: $dst_arg: Is a directory" >&2
208266 exit 1
209267 fi
210 dst=$dst/`basename "$src"`
268 dstdir=$dst
269 dst=$dstdir/`basename "$src"`
270 dstdir_status=0
271 else
272 # Prefer dirname, but fall back on a substitute if dirname fails.
273 dstdir=`
274 (dirname "$dst") 2>/dev/null ||
275 expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
276 X"$dst" : 'X\(//\)[^/]' \| \
277 X"$dst" : 'X\(//\)$' \| \
278 X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
279 echo X"$dst" |
280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
281 s//\1/
282 q
283 }
284 /^X\(\/\/\)[^/].*/{
285 s//\1/
286 q
287 }
288 /^X\(\/\/\)$/{
289 s//\1/
290 q
291 }
292 /^X\(\/\).*/{
293 s//\1/
294 q
295 }
296 s/.*/./; q'
297 `
298
299 test -d "$dstdir"
300 dstdir_status=$?
211301 fi
212302 fi
213303
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
304 obsolete_mkdir_used=false
305
306 if test $dstdir_status != 0; then
307 case $posix_mkdir in
308 '')
309 # Create intermediate dirs using mode 755 as modified by the umask.
310 # This is like FreeBSD 'install' as of 1997-10-28.
311 umask=`umask`
312 case $stripcmd.$umask in
313 # Optimize common cases.
314 *[2367][2367]) mkdir_umask=$umask;;
315 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
316
317 *[0-7])
318 mkdir_umask=`expr $umask + 22 \
319 - $umask % 100 % 40 + $umask % 20 \
320 - $umask % 10 % 4 + $umask % 2
321 `;;
322 *) mkdir_umask=$umask,go-w;;
323 esac
324
325 # With -d, create the new directory with the user-specified mode.
326 # Otherwise, rely on $mkdir_umask.
327 if test -n "$dir_arg"; then
328 mkdir_mode=-m$mode
329 else
330 mkdir_mode=
331 fi
332
333 posix_mkdir=false
334 case $umask in
335 *[123567][0-7][0-7])
336 # POSIX mkdir -p sets u+wx bits regardless of umask, which
337 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
338 ;;
339 *)
340 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
341 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
342
343 if (umask $mkdir_umask &&
344 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
345 then
346 if test -z "$dir_arg" || {
347 # Check for POSIX incompatibilities with -m.
348 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
349 # other-writeable bit of parent directory when it shouldn't.
350 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
351 ls_ld_tmpdir=`ls -ld "$tmpdir"`
352 case $ls_ld_tmpdir in
353 d????-?r-*) different_mode=700;;
354 d????-?--*) different_mode=755;;
355 *) false;;
356 esac &&
357 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
358 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
359 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
360 }
361 }
362 then posix_mkdir=:
363 fi
364 rmdir "$tmpdir/d" "$tmpdir"
365 else
366 # Remove any dirs left behind by ancient mkdir implementations.
367 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
368 fi
369 trap '' 0;;
370 esac;;
371 esac
372
373 if
374 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377 )
378 then :
379 else
380
381 # The umask is ridiculous, or mkdir does not conform to POSIX,
382 # or it failed possibly due to a race condition. Create the
383 # directory the slow way, step by step, checking for races as we go.
384
385 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
389 esac
390
391 eval "$initialize_posix_glob"
392
393 oIFS=$IFS
394 IFS=/
395 $posix_glob set -f
396 set fnord $dstdir
236397 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
398 $posix_glob set +f
399 IFS=$oIFS
400
401 prefixes=
402
403 for d
404 do
405 test -z "$d" && continue
406
407 prefix=$prefix$d
408 if test -d "$prefix"; then
409 prefixes=
410 else
411 if $posix_mkdir; then
412 (umask=$mkdir_umask &&
413 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
414 # Don't fail if two instances are running concurrently.
415 test -d "$prefix" || exit 1
416 else
417 case $prefix in
418 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
419 *) qprefix=$prefix;;
420 esac
421 prefixes="$prefixes '$qprefix'"
422 fi
423 fi
424 prefix=$prefix/
425 done
426
427 if test -n "$prefixes"; then
428 # Don't fail if two instances are running concurrently.
429 (umask $mkdir_umask &&
430 eval "\$doit_exec \$mkdirprog $prefixes") ||
431 test -d "$dstdir" || exit 1
432 obsolete_mkdir_used=true
243433 fi
244 pathcomp=$pathcomp/
245 done
434 fi
246435 fi
247436
248437 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
438 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
439 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
440 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
441 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
255442 else
256 dstfile=`basename "$dst"`
257443
258444 # Make a couple of temp file names in the proper directory.
259445 dsttmp=$dstdir/_inst.$$_
261447
262448 # Trap to clean up those temp files at exit.
263449 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265450
266451 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
452 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
268453
269454 # and set any options; do chmod last to preserve setuid bits.
270455 #
272457 # ignore errors from any of these, just make sure not to ignore
273458 # errors from the above "$doit $cpprog $src $dsttmp" command.
274459 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
460 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
461 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
462 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
463 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
464
465 # If -C, don't bother to copy if it wouldn't change the file.
466 if $copy_on_change &&
467 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
468 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
469
470 eval "$initialize_posix_glob" &&
471 $posix_glob set -f &&
472 set X $old && old=:$2:$4:$5:$6 &&
473 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
476 test "$old" = "$new" &&
477 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478 then
479 rm -f "$dsttmp"
480 else
481 # Rename the file to the real destination.
482 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
483
484 # The rename failed, perhaps because mv can't rename something else
485 # to itself, or perhaps because mv is so ancient that it does not
486 # support -f.
487 {
488 # Now remove or move aside any old file at destination location.
489 # We try this two ways since rm can't unlink itself on some
490 # systems and the destination file might be busy for other
491 # reasons. In this case, the final cleanup might fail but the new
492 # file should still install successfully.
493 {
494 test ! -f "$dst" ||
495 $doit $rmcmd -f "$dst" 2>/dev/null ||
496 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
497 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
498 } ||
499 { echo "$0: cannot unlink or rename $dst" >&2
500 (exit 1); exit 1
501 }
502 } &&
503
504 # Now rename the file to the real destination.
505 $doit $mvcmd "$dsttmp" "$dst"
506 }
507 fi || exit 1
508
509 trap '' 0
510 fi
310511 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316512
317513 # Local variables:
318514 # eval: (add-hook 'write-file-hooks 'time-stamp)
+4740
-3824
ltmain.sh less more
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
4 # 2007, 2008 Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
0 # Generated from ltmain.m4sh.
1
2 # ltmain.sh (GNU libtool) 2.2.4
3 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4
5 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
6 # This is free software; see the source for copying conditions. There is NO
7 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
8
9 # GNU Libtool is free software; you can redistribute it and/or modify
810 # it under the terms of the GNU General Public License as published by
911 # the Free Software Foundation; either version 2 of the License, or
1012 # (at your option) any later version.
1113 #
12 # This program is distributed in the hope that it will be useful, but
14 # As a special exception to the GNU General Public License,
15 # if you distribute this file as part of a program or library that
16 # is built using GNU Libtool, you may include this file under the
17 # same distribution terms that you use for the rest of that program.
18 #
19 # GNU Libtool is distributed in the hope that it will be useful, but
1320 # WITHOUT ANY WARRANTY; without even the implied warranty of
1421 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1522 # General Public License for more details.
1623 #
1724 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 # along with GNU Libtool; see the file COPYING. If not, a copy
26 # can be downloaded from http://www.gnu.org/licenses/gpl.html,
27 # or obtained by writing to the Free Software Foundation, Inc.,
28 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29
30 # Usage: $progname [OPTION]... [MODE-ARG]...
2031 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # 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 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
32 # Provide generalized library-building support services.
33 #
34 # --config show all configuration variables
35 # --debug enable verbose shell tracing
36 # -n, --dry-run display commands without modifying any files
37 # --features display basic configuration information and exit
38 # --mode=MODE use operation mode MODE
39 # --preserve-dup-deps don't remove duplicate dependency libraries
40 # --quiet, --silent don't print informational messages
41 # --tag=TAG use configuration variables from tag TAG
42 # -v, --verbose print informational messages (default)
43 # --version print version information
44 # -h, --help print short or long help message
45 #
46 # MODE must be one of the following:
47 #
48 # clean remove files from the build directory
49 # compile compile a source file into a libtool object
50 # execute automatically set library path, then run a program
51 # finish complete the installation of libtool libraries
52 # install install libraries or executables
53 # link create a library or an executable
54 # uninstall remove libraries from an installed directory
55 #
56 # MODE-ARGS vary depending on the MODE.
57 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
58 #
59 # When reporting a bug, please describe a test case to reproduce it and
60 # include the following information:
61 #
62 # host-triplet: $host
63 # shell: $SHELL
64 # compiler: $LTCC
65 # compiler flags: $LTCFLAGS
66 # linker: $LD (gnu? $with_gnu_ld)
67 # $progname: (GNU libtool) 2.2.4 Debian-2.2.4-0ubuntu4
68 # automake: $automake_version
69 # autoconf: $autoconf_version
70 #
71 # Report bugs to <bug-libtool@gnu.org>.
4272
4373 PROGRAM=ltmain.sh
4474 PACKAGE=libtool
45 VERSION="1.5.26 Debian 1.5.26-3"
46 TIMESTAMP=" (1.1220.2.493 2008/02/01 16:58:18)"
47
48 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
75 VERSION="2.2.4 Debian-2.2.4-0ubuntu4"
76 TIMESTAMP=""
77 package_revision=1.2976
78
79 # Be Bourne compatible
4980 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5081 emulate sh
5182 NULLCMD=:
5990 BIN_SH=xpg4; export BIN_SH # for Tru64
6091 DUALCASE=1; export DUALCASE # for MKS sh
6192
62 # Check that we have a working $echo.
93 # NLS nuisances: We save the old values to restore during execute mode.
94 # Only set LANG and LC_ALL to C if already set.
95 # These must not be set unconditionally because not all systems understand
96 # e.g. LANG=C (notably SCO).
97 lt_user_locale=
98 lt_safe_locale=
99 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
100 do
101 eval "if test \"\${$lt_var+set}\" = set; then
102 save_$lt_var=\$$lt_var
103 $lt_var=C
104 export $lt_var
105 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
106 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
107 fi"
108 done
109
110 $lt_unset CDPATH
111
112
113
114
115
116 : ${CP="cp -f"}
117 : ${ECHO="echo"}
118 : ${EGREP="/bin/grep -E"}
119 : ${FGREP="/bin/grep -F"}
120 : ${GREP="/bin/grep"}
121 : ${LN_S="ln -s"}
122 : ${MAKE="make"}
123 : ${MKDIR="mkdir"}
124 : ${MV="mv -f"}
125 : ${RM="rm -f"}
126 : ${SED="/bin/sed"}
127 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
128 : ${Xsed="$SED -e 1s/^X//"}
129
130 # Global variables:
131 EXIT_SUCCESS=0
132 EXIT_FAILURE=1
133 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
134 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
135
136 exit_status=$EXIT_SUCCESS
137
138 # Make sure IFS has a sensible default
139 lt_nl='
140 '
141 IFS=" $lt_nl"
142
143 dirname="s,/[^/]*$,,"
144 basename="s,^.*/,,"
145
146 # func_dirname_and_basename file append nondir_replacement
147 # perform func_basename and func_dirname in a single function
148 # call:
149 # dirname: Compute the dirname of FILE. If nonempty,
150 # add APPEND to the result, otherwise set result
151 # to NONDIR_REPLACEMENT.
152 # value returned in "$func_dirname_result"
153 # basename: Compute filename of FILE.
154 # value retuned in "$func_basename_result"
155 # Implementation must be kept synchronized with func_dirname
156 # and func_basename. For efficiency, we do not delegate to
157 # those functions but instead duplicate the functionality here.
158 func_dirname_and_basename ()
159 {
160 # Extract subdirectory from the argument.
161 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
162 if test "X$func_dirname_result" = "X${1}"; then
163 func_dirname_result="${3}"
164 else
165 func_dirname_result="$func_dirname_result${2}"
166 fi
167 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
168 }
169
170 # Generated shell functions inserted here.
171
172 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
173 # is ksh but when the shell is invoked as "sh" and the current value of
174 # the _XPG environment variable is not equal to 1 (one), the special
175 # positional parameter $0, within a function call, is the name of the
176 # function.
177 progpath="$0"
178
179 # The name of this program:
180 # In the unlikely event $progname began with a '-', it would play havoc with
181 # func_echo (imagine progname=-n), so we prepend ./ in that case:
182 func_dirname_and_basename "$progpath"
183 progname=$func_basename_result
184 case $progname in
185 -*) progname=./$progname ;;
186 esac
187
188 # Make sure we have an absolute path for reexecution:
189 case $progpath in
190 [\\/]*|[A-Za-z]:\\*) ;;
191 *[\\/]*)
192 progdir=$func_dirname_result
193 progdir=`cd "$progdir" && pwd`
194 progpath="$progdir/$progname"
195 ;;
196 *)
197 save_IFS="$IFS"
198 IFS=:
199 for progdir in $PATH; do
200 IFS="$save_IFS"
201 test -x "$progdir/$progname" && break
202 done
203 IFS="$save_IFS"
204 test -n "$progdir" || progdir=`pwd`
205 progpath="$progdir/$progname"
206 ;;
207 esac
208
209 # Sed substitution that helps us do robust quoting. It backslashifies
210 # metacharacters that are still active within double-quoted strings.
211 Xsed="${SED}"' -e 1s/^X//'
212 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
213
214 # Same as above, but do not quote variable references.
215 double_quote_subst='s/\(["`\\]\)/\\\1/g'
216
217 # Re-`\' parameter expansions in output of double_quote_subst that were
218 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
219 # in input to double_quote_subst, that '$' was protected from expansion.
220 # Since each input `\' is now two `\'s, look for any number of runs of
221 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
222 bs='\\'
223 bs2='\\\\'
224 bs4='\\\\\\\\'
225 dollar='\$'
226 sed_double_backslash="\
227 s/$bs4/&\\
228 /g
229 s/^$bs2$dollar/$bs&/
230 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
231 s/\n//g"
232
233 # Standard options:
234 opt_dry_run=false
235 opt_help=false
236 opt_quiet=false
237 opt_verbose=false
238 opt_warning=:
239
240 # func_echo arg...
241 # Echo program name prefixed message, along with the current mode
242 # name if it has been set yet.
243 func_echo ()
244 {
245 $ECHO "$progname${mode+: }$mode: $*"
246 }
247
248 # func_verbose arg...
249 # Echo program name prefixed message in verbose mode only.
250 func_verbose ()
251 {
252 $opt_verbose && func_echo ${1+"$@"}
253
254 # A bug in bash halts the script if the last line of a function
255 # fails when set -e is in force, so we need another command to
256 # work around that:
257 :
258 }
259
260 # func_error arg...
261 # Echo program name prefixed message to standard error.
262 func_error ()
263 {
264 $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
265 }
266
267 # func_warning arg...
268 # Echo program name prefixed warning message to standard error.
269 func_warning ()
270 {
271 $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
272
273 # bash bug again:
274 :
275 }
276
277 # func_fatal_error arg...
278 # Echo program name prefixed message to standard error, and exit.
279 func_fatal_error ()
280 {
281 func_error ${1+"$@"}
282 exit $EXIT_FAILURE
283 }
284
285 # func_fatal_help arg...
286 # Echo program name prefixed message to standard error, followed by
287 # a help hint, and exit.
288 func_fatal_help ()
289 {
290 func_error ${1+"$@"}
291 func_fatal_error "$help"
292 }
293 help="Try \`$progname --help' for more information." ## default
294
295
296 # func_grep expression filename
297 # Check whether EXPRESSION matches any line of FILENAME, without output.
298 func_grep ()
299 {
300 $GREP "$1" "$2" >/dev/null 2>&1
301 }
302
303
304 # func_mkdir_p directory-path
305 # Make sure the entire path to DIRECTORY-PATH is available.
306 func_mkdir_p ()
307 {
308 my_directory_path="$1"
309 my_dir_list=
310
311 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
312
313 # Protect directory names starting with `-'
314 case $my_directory_path in
315 -*) my_directory_path="./$my_directory_path" ;;
316 esac
317
318 # While some portion of DIR does not yet exist...
319 while test ! -d "$my_directory_path"; do
320 # ...make a list in topmost first order. Use a colon delimited
321 # list incase some portion of path contains whitespace.
322 my_dir_list="$my_directory_path:$my_dir_list"
323
324 # If the last portion added has no slash in it, the list is done
325 case $my_directory_path in */*) ;; *) break ;; esac
326
327 # ...otherwise throw away the child directory and loop
328 my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
329 done
330 my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
331
332 save_mkdir_p_IFS="$IFS"; IFS=':'
333 for my_dir in $my_dir_list; do
334 IFS="$save_mkdir_p_IFS"
335 # mkdir can fail with a `File exist' error if two processes
336 # try to create one of the directories concurrently. Don't
337 # stop in that case!
338 $MKDIR "$my_dir" 2>/dev/null || :
339 done
340 IFS="$save_mkdir_p_IFS"
341
342 # Bail out if we (or some other process) failed to create a directory.
343 test -d "$my_directory_path" || \
344 func_fatal_error "Failed to create \`$1'"
345 fi
346 }
347
348
349 # func_mktempdir [string]
350 # Make a temporary directory that won't clash with other running
351 # libtool processes, and avoids race conditions if possible. If
352 # given, STRING is the basename for that directory.
353 func_mktempdir ()
354 {
355 my_template="${TMPDIR-/tmp}/${1-$progname}"
356
357 if test "$opt_dry_run" = ":"; then
358 # Return a directory name, but don't create it in dry-run mode
359 my_tmpdir="${my_template}-$$"
360 else
361
362 # If mktemp works, use that first and foremost
363 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
364
365 if test ! -d "$my_tmpdir"; then
366 # Failing that, at least try and use $RANDOM to avoid a race
367 my_tmpdir="${my_template}-${RANDOM-0}$$"
368
369 save_mktempdir_umask=`umask`
370 umask 0077
371 $MKDIR "$my_tmpdir"
372 umask $save_mktempdir_umask
373 fi
374
375 # If we're not in dry-run mode, bomb out on failure
376 test -d "$my_tmpdir" || \
377 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
378 fi
379
380 $ECHO "X$my_tmpdir" | $Xsed
381 }
382
383
384 # func_quote_for_eval arg
385 # Aesthetically quote ARG to be evaled later.
386 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
387 # is double-quoted, suitable for a subsequent eval, whereas
388 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
389 # which are still active within double quotes backslashified.
390 func_quote_for_eval ()
391 {
392 case $1 in
393 *[\\\`\"\$]*)
394 func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
395 *)
396 func_quote_for_eval_unquoted_result="$1" ;;
397 esac
398
399 case $func_quote_for_eval_unquoted_result in
400 # Double-quote args containing shell metacharacters to delay
401 # word splitting, command substitution and and variable
402 # expansion for a subsequent eval.
403 # Many Bourne shells cannot handle close brackets correctly
404 # in scan sets, so we specify it separately.
405 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
406 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
407 ;;
408 *)
409 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
410 esac
411 }
412
413
414 # func_quote_for_expand arg
415 # Aesthetically quote ARG to be evaled later; same as above,
416 # but do not quote variable references.
417 func_quote_for_expand ()
418 {
419 case $1 in
420 *[\\\`\"]*)
421 my_arg=`$ECHO "X$1" | $Xsed \
422 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
423 *)
424 my_arg="$1" ;;
425 esac
426
427 case $my_arg in
428 # Double-quote args containing shell metacharacters to delay
429 # word splitting and command substitution for a subsequent eval.
430 # Many Bourne shells cannot handle close brackets correctly
431 # in scan sets, so we specify it separately.
432 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
433 my_arg="\"$my_arg\""
434 ;;
435 esac
436
437 func_quote_for_expand_result="$my_arg"
438 }
439
440
441 # func_show_eval cmd [fail_exp]
442 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
443 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
444 # is given, then evaluate it.
445 func_show_eval ()
446 {
447 my_cmd="$1"
448 my_fail_exp="${2-:}"
449
450 ${opt_silent-false} || {
451 func_quote_for_expand "$my_cmd"
452 eval "func_echo $func_quote_for_expand_result"
453 }
454
455 if ${opt_dry_run-false}; then :; else
456 eval "$my_cmd"
457 my_status=$?
458 if test "$my_status" -eq 0; then :; else
459 eval "(exit $my_status); $my_fail_exp"
460 fi
461 fi
462 }
463
464
465 # func_show_eval_locale cmd [fail_exp]
466 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
467 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
468 # is given, then evaluate it. Use the saved locale for evaluation.
469 func_show_eval_locale ()
470 {
471 my_cmd="$1"
472 my_fail_exp="${2-:}"
473
474 ${opt_silent-false} || {
475 func_quote_for_expand "$my_cmd"
476 eval "func_echo $func_quote_for_expand_result"
477 }
478
479 if ${opt_dry_run-false}; then :; else
480 eval "$lt_user_locale
481 $my_cmd"
482 my_status=$?
483 eval "$lt_safe_locale"
484 if test "$my_status" -eq 0; then :; else
485 eval "(exit $my_status); $my_fail_exp"
486 fi
487 fi
488 }
489
490
491
492
493
494 # func_version
495 # Echo version message to standard output and exit.
496 func_version ()
497 {
498 $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
499 s/^# //
500 s/^# *$//
501 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
502 p
503 }' < "$progpath"
504 exit $?
505 }
506
507 # func_usage
508 # Echo short help message to standard output and exit.
509 func_usage ()
510 {
511 $SED -n '/^# Usage:/,/# -h/ {
512 s/^# //
513 s/^# *$//
514 s/\$progname/'$progname'/
515 p
516 }' < "$progpath"
517 $ECHO
518 $ECHO "run \`$progname --help | more' for full usage"
519 exit $?
520 }
521
522 # func_help
523 # Echo long help message to standard output and exit.
524 func_help ()
525 {
526 $SED -n '/^# Usage:/,/# Report bugs to/ {
527 s/^# //
528 s/^# *$//
529 s*\$progname*'$progname'*
530 s*\$host*'"$host"'*
531 s*\$SHELL*'"$SHELL"'*
532 s*\$LTCC*'"$LTCC"'*
533 s*\$LTCFLAGS*'"$LTCFLAGS"'*
534 s*\$LD*'"$LD"'*
535 s/\$with_gnu_ld/'"$with_gnu_ld"'/
536 s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
537 s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
538 p
539 }' < "$progpath"
540 exit $?
541 }
542
543 # func_missing_arg argname
544 # Echo program name prefixed message to standard error and set global
545 # exit_cmd.
546 func_missing_arg ()
547 {
548 func_error "missing argument for $1"
549 exit_cmd=exit
550 }
551
552 exit_cmd=:
553
554
555
556
557
558 # Check that we have a working $ECHO.
63559 if test "X$1" = X--no-reexec; then
64560 # Discard the --no-reexec flag, and continue.
65561 shift
66562 elif test "X$1" = X--fallback-echo; then
67563 # Avoid inline document here, it may be left over
68564 :
69 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
70 # Yippee, $echo works!
565 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
566 # Yippee, $ECHO works!
71567 :
72568 else
73 # Restart under the correct shell, and then maybe $echo will work.
569 # Restart under the correct shell, and then maybe $ECHO will work.
74570 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
75571 fi
76572
83579 exit $EXIT_SUCCESS
84580 fi
85581
86 default_mode=
87 help="Try \`$progname --help' for more information."
88582 magic="%%%MAGIC variable%%%"
89 mkdir="mkdir"
90 mv="mv -f"
91 rm="rm -f"
92
93 # Sed substitution that helps us do robust quoting. It backslashifies
94 # metacharacters that are still active within double-quoted strings.
95 Xsed="${SED}"' -e 1s/^X//'
96 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
97 # test EBCDIC or ASCII
98 case `echo X|tr X '\101'` in
99 A) # ASCII based system
100 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
101 SP2NL='tr \040 \012'
102 NL2SP='tr \015\012 \040\040'
103 ;;
104 *) # EBCDIC based system
105 SP2NL='tr \100 \n'
106 NL2SP='tr \r\n \100\100'
107 ;;
108 esac
109
110 # NLS nuisances.
111 # Only set LANG and LC_ALL to C if already set.
112 # These must not be set unconditionally because not all systems understand
113 # e.g. LANG=C (notably SCO).
114 # We save the old values to restore during execute mode.
115 lt_env=
116 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
117 do
118 eval "if test \"\${$lt_var+set}\" = set; then
119 save_$lt_var=\$$lt_var
120 lt_env=\"$lt_var=\$$lt_var \$lt_env\"
121 $lt_var=C
122 export $lt_var
123 fi"
124 done
125
126 if test -n "$lt_env"; then
127 lt_env="env $lt_env"
128 fi
129
130 # Make sure IFS has a sensible default
131 lt_nl='
132 '
133 IFS=" $lt_nl"
134
135 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
136 $echo "$modename: not configured to build any kind of library" 1>&2
137 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
138 exit $EXIT_FAILURE
139 fi
583 magic_exe="%%%MAGIC EXE variable%%%"
140584
141585 # Global variables.
142 mode=$default_mode
586 # $mode is unset
143587 nonopt=
144 prev=
145 prevopt=
146 run=
147 show="$echo"
148 show_help=
149588 execute_dlfiles=
150 duplicate_deps=no
151589 preserve_args=
152590 lo2o="s/\\.lo\$/.${objext}/"
153591 o2lo="s/\\.${objext}\$/.lo/"
154592 extracted_archives=
155593 extracted_serial=0
156594
157 #####################################
158 # Shell function definitions:
159 # This seems to be the best place for them
160
161 # func_mktempdir [string]
162 # Make a temporary directory that won't clash with other running
163 # libtool processes, and avoids race conditions if possible. If
164 # given, STRING is the basename for that directory.
165 func_mktempdir ()
595 opt_dry_run=false
596 opt_duplicate_deps=false
597 opt_silent=false
598 opt_debug=:
599
600 # If this variable is set in any of the actions, the command in it
601 # will be execed at the end. This prevents here-documents from being
602 # left over by shells.
603 exec_cmd=
604
605 # func_fatal_configuration arg...
606 # Echo program name prefixed message to standard error, followed by
607 # a configuration failure hint, and exit.
608 func_fatal_configuration ()
166609 {
167 my_template="${TMPDIR-/tmp}/${1-$progname}"
168
169 if test "$run" = ":"; then
170 # Return a directory name, but don't create it in dry-run mode
171 my_tmpdir="${my_template}-$$"
610 func_error ${1+"$@"}
611 func_error "See the $PACKAGE documentation for more information."
612 func_fatal_error "Fatal configuration error."
613 }
614
615
616 # func_config
617 # Display the configuration for all the tags in this script.
618 func_config ()
619 {
620 re_begincf='^# ### BEGIN LIBTOOL'
621 re_endcf='^# ### END LIBTOOL'
622
623 # Default configuration.
624 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
625
626 # Now print the configurations for the tags.
627 for tagname in $taglist; do
628 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
629 done
630
631 exit $?
632 }
633
634 # func_features
635 # Display the features supported by this script.
636 func_features ()
637 {
638 $ECHO "host: $host"
639 if test "$build_libtool_libs" = yes; then
640 $ECHO "enable shared libraries"
172641 else
173
174 # If mktemp works, use that first and foremost
175 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
176
177 if test ! -d "$my_tmpdir"; then
178 # Failing that, at least try and use $RANDOM to avoid a race
179 my_tmpdir="${my_template}-${RANDOM-0}$$"
180
181 save_mktempdir_umask=`umask`
182 umask 0077
183 $mkdir "$my_tmpdir"
184 umask $save_mktempdir_umask
642 $ECHO "disable shared libraries"
643 fi
644 if test "$build_old_libs" = yes; then
645 $ECHO "enable static libraries"
646 else
647 $ECHO "disable static libraries"
648 fi
649
650 exit $?
651 }
652
653 # func_enable_tag tagname
654 # Verify that TAGNAME is valid, and either flag an error and exit, or
655 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
656 # variable here.
657 func_enable_tag ()
658 {
659 # Global variable:
660 tagname="$1"
661
662 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
663 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
664 sed_extractcf="/$re_begincf/,/$re_endcf/p"
665
666 # Validate tagname.
667 case $tagname in
668 *[!-_A-Za-z0-9,/]*)
669 func_fatal_error "invalid tag name: $tagname"
670 ;;
671 esac
672
673 # Don't test for the "default" C tag, as we know it's
674 # there but not specially marked.
675 case $tagname in
676 CC) ;;
677 *)
678 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
679 taglist="$taglist $tagname"
680
681 # Evaluate the configuration. Be careful to quote the path
682 # and the sed script, to avoid splitting on whitespace, but
683 # also don't use non-portable quotes within backquotes within
684 # quotes we have to do it in 2 steps:
685 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
686 eval "$extractedcf"
687 else
688 func_error "ignoring unknown tag $tagname"
185689 fi
186
187 # If we're not in dry-run mode, bomb out on failure
188 test -d "$my_tmpdir" || {
189 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
690 ;;
691 esac
692 }
693
694 # Parse options once, thoroughly. This comes as soon as possible in
695 # the script to make things like `libtool --version' happen quickly.
696 {
697
698 # Shorthand for --mode=foo, only valid as the first argument
699 case $1 in
700 clean|clea|cle|cl)
701 shift; set dummy --mode clean ${1+"$@"}; shift
702 ;;
703 compile|compil|compi|comp|com|co|c)
704 shift; set dummy --mode compile ${1+"$@"}; shift
705 ;;
706 execute|execut|execu|exec|exe|ex|e)
707 shift; set dummy --mode execute ${1+"$@"}; shift
708 ;;
709 finish|finis|fini|fin|fi|f)
710 shift; set dummy --mode finish ${1+"$@"}; shift
711 ;;
712 install|instal|insta|inst|ins|in|i)
713 shift; set dummy --mode install ${1+"$@"}; shift
714 ;;
715 link|lin|li|l)
716 shift; set dummy --mode link ${1+"$@"}; shift
717 ;;
718 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
719 shift; set dummy --mode uninstall ${1+"$@"}; shift
720 ;;
721 esac
722
723 # Parse non-mode specific arguments:
724 while test "$#" -gt 0; do
725 opt="$1"
726 shift
727
728 case $opt in
729 --config) func_config ;;
730
731 --debug) preserve_args="$preserve_args $opt"
732 func_echo "enabling shell trace mode"
733 opt_debug='set -x'
734 $opt_debug
735 ;;
736
737 -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
738 execute_dlfiles="$execute_dlfiles $1"
739 shift
740 ;;
741
742 --dry-run | -n) opt_dry_run=: ;;
743 --features) func_features ;;
744 --finish) mode="finish" ;;
745
746 --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
747 case $1 in
748 # Valid mode arguments:
749 clean) ;;
750 compile) ;;
751 execute) ;;
752 finish) ;;
753 install) ;;
754 link) ;;
755 relink) ;;
756 uninstall) ;;
757
758 # Catch anything else as an error
759 *) func_error "invalid argument for $opt"
760 exit_cmd=exit
761 break
762 ;;
763 esac
764
765 mode="$1"
766 shift
767 ;;
768
769 --preserve-dup-deps)
770 opt_duplicate_deps=: ;;
771
772 --quiet|--silent) preserve_args="$preserve_args $opt"
773 opt_silent=:
774 ;;
775
776 --verbose| -v) preserve_args="$preserve_args $opt"
777 opt_silent=false
778 ;;
779
780 --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
781 preserve_args="$preserve_args $opt $1"
782 func_enable_tag "$1" # tagname is set here
783 shift
784 ;;
785
786 # Separate optargs to long options:
787 -dlopen=*|--mode=*|--tag=*)
788 func_opt_split "$opt"
789 set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
790 shift
791 ;;
792
793 -\?|-h) func_usage ;;
794 --help) opt_help=: ;;
795 --version) func_version ;;
796
797 -*) func_fatal_help "unrecognized option \`$opt'" ;;
798
799 *) nonopt="$opt"
800 break
801 ;;
802 esac
803 done
804
805
806 case $host in
807 *cygwin* | *mingw* | *pw32*)
808 # don't eliminate duplications in $postdeps and $predeps
809 opt_duplicate_compiler_generated_deps=:
810 ;;
811 *)
812 opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
813 ;;
814 esac
815
816 # Having warned about all mis-specified options, bail out if
817 # anything was wrong.
818 $exit_cmd $EXIT_FAILURE
819 }
820
821 # func_check_version_match
822 # Ensure that we are using m4 macros, and libtool script from the same
823 # release of libtool.
824 func_check_version_match ()
825 {
826 if test "$package_revision" != "$macro_revision"; then
827 if test "$VERSION" != "$macro_version"; then
828 if test -z "$macro_version"; then
829 cat >&2 <<_LT_EOF
830 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
831 $progname: definition of this LT_INIT comes from an older release.
832 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
833 $progname: and run autoconf again.
834 _LT_EOF
835 else
836 cat >&2 <<_LT_EOF
837 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
838 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
839 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
840 $progname: and run autoconf again.
841 _LT_EOF
842 fi
843 else
844 cat >&2 <<_LT_EOF
845 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
846 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
847 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
848 $progname: of $PACKAGE $VERSION and run autoconf again.
849 _LT_EOF
850 fi
851
852 exit $EXIT_MISMATCH
853 fi
854 }
855
856
857 ## ----------- ##
858 ## Main. ##
859 ## ----------- ##
860
861 $opt_help || {
862 # Sanity checks first:
863 func_check_version_match
864
865 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
866 func_fatal_configuration "not configured to build any kind of library"
867 fi
868
869 test -z "$mode" && func_fatal_error "error: you must specify a MODE."
870
871
872 # Darwin sucks
873 eval std_shrext=\"$shrext_cmds\"
874
875
876 # Only execute mode is allowed to have -dlopen flags.
877 if test -n "$execute_dlfiles" && test "$mode" != execute; then
878 func_error "unrecognized option \`-dlopen'"
879 $ECHO "$help" 1>&2
880 exit $EXIT_FAILURE
881 fi
882
883 # Change the help message to a mode-specific one.
884 generic_help="$help"
885 help="Try \`$progname --help --mode=$mode' for more information."
886 }
887
888
889 # func_lalib_p file
890 # True iff FILE is a libtool `.la' library or `.lo' object file.
891 # This function is only a basic sanity check; it will hardly flush out
892 # determined imposters.
893 func_lalib_p ()
894 {
895 $SED -e 4q "$1" 2>/dev/null \
896 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
897 }
898
899 # func_lalib_unsafe_p file
900 # True iff FILE is a libtool `.la' library or `.lo' object file.
901 # This function implements the same check as func_lalib_p without
902 # resorting to external programs. To this end, it redirects stdin and
903 # closes it afterwards, without saving the original file descriptor.
904 # As a safety measure, use it only where a negative result would be
905 # fatal anyway. Works if `file' does not exist.
906 func_lalib_unsafe_p ()
907 {
908 lalib_p=no
909 if test -r "$1" && exec 5<&0 <"$1"; then
910 for lalib_p_l in 1 2 3 4
911 do
912 read lalib_p_line
913 case "$lalib_p_line" in
914 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
915 esac
916 done
917 exec 0<&5 5<&-
918 fi
919 test "$lalib_p" = yes
920 }
921
922 # func_ltwrapper_script_p file
923 # True iff FILE is a libtool wrapper script
924 # This function is only a basic sanity check; it will hardly flush out
925 # determined imposters.
926 func_ltwrapper_script_p ()
927 {
928 func_lalib_p "$1"
929 }
930
931 # func_ltwrapper_executable_p file
932 # True iff FILE is a libtool wrapper executable
933 # This function is only a basic sanity check; it will hardly flush out
934 # determined imposters.
935 func_ltwrapper_executable_p ()
936 {
937 func_ltwrapper_exec_suffix=
938 case $1 in
939 *.exe) ;;
940 *) func_ltwrapper_exec_suffix=.exe ;;
941 esac
942 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
943 }
944
945 # func_ltwrapper_scriptname file
946 # Assumes file is an ltwrapper_executable
947 # uses $file to determine the appropriate filename for a
948 # temporary ltwrapper_script.
949 func_ltwrapper_scriptname ()
950 {
951 func_ltwrapper_scriptname_result=""
952 if func_ltwrapper_executable_p "$1"; then
953 func_dirname_and_basename "$1" "" "."
954 func_stripname '' '.exe' "$func_basename_result"
955 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
956 fi
957 }
958
959 # func_ltwrapper_p file
960 # True iff FILE is a libtool wrapper script or wrapper executable
961 # This function is only a basic sanity check; it will hardly flush out
962 # determined imposters.
963 func_ltwrapper_p ()
964 {
965 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
966 }
967
968
969 # func_execute_cmds commands fail_cmd
970 # Execute tilde-delimited COMMANDS.
971 # If FAIL_CMD is given, eval that upon failure.
972 # FAIL_CMD may read-access the current command in variable CMD!
973 func_execute_cmds ()
974 {
975 $opt_debug
976 save_ifs=$IFS; IFS='~'
977 for cmd in $1; do
978 IFS=$save_ifs
979 eval cmd=\"$cmd\"
980 func_show_eval "$cmd" "${2-:}"
981 done
982 IFS=$save_ifs
983 }
984
985
986 # func_source file
987 # Source FILE, adding directory component if necessary.
988 # Note that it is not necessary on cygwin/mingw to append a dot to
989 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
990 # behavior happens only for exec(3), not for open(2)! Also, sourcing
991 # `FILE.' does not work on cygwin managed mounts.
992 func_source ()
993 {
994 $opt_debug
995 case $1 in
996 */* | *\\*) . "$1" ;;
997 *) . "./$1" ;;
998 esac
999 }
1000
1001
1002 # func_infer_tag arg
1003 # Infer tagged configuration to use if any are available and
1004 # if one wasn't chosen via the "--tag" command line option.
1005 # Only attempt this if the compiler in the base compile
1006 # command doesn't match the default compiler.
1007 # arg is usually of the form 'gcc ...'
1008 func_infer_tag ()
1009 {
1010 $opt_debug
1011 if test -n "$available_tags" && test -z "$tagname"; then
1012 CC_quoted=
1013 for arg in $CC; do
1014 func_quote_for_eval "$arg"
1015 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1016 done
1017 case $@ in
1018 # Blanks in the command may have been stripped by the calling shell,
1019 # but not from the CC environment variable when configure was run.
1020 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
1021 # Blanks at the start of $base_compile will cause this to fail
1022 # if we don't check for them as well.
1023 *)
1024 for z in $available_tags; do
1025 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
1026 # Evaluate the configuration.
1027 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
1028 CC_quoted=
1029 for arg in $CC; do
1030 # Double-quote args containing other shell metacharacters.
1031 func_quote_for_eval "$arg"
1032 CC_quoted="$CC_quoted $func_quote_for_eval_result"
1033 done
1034 case "$@ " in
1035 " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
1036 # The compiler in the base compile command matches
1037 # the one in the tagged configuration.
1038 # Assume this is the tagged configuration we want.
1039 tagname=$z
1040 break
1041 ;;
1042 esac
1043 fi
1044 done
1045 # If $tagname still isn't set, then no tagged configuration
1046 # was found and let the user know that the "--tag" command
1047 # line option must be used.
1048 if test -z "$tagname"; then
1049 func_echo "unable to infer tagged configuration"
1050 func_fatal_error "specify a tag with \`--tag'"
1051 # else
1052 # func_verbose "using $tagname tagged configuration"
1053 fi
1054 ;;
1055 esac
1056 fi
1057 }
1058
1059
1060
1061 # func_write_libtool_object output_name pic_name nonpic_name
1062 # Create a libtool object file (analogous to a ".la" file),
1063 # but don't create it if we're doing a dry run.
1064 func_write_libtool_object ()
1065 {
1066 write_libobj=${1}
1067 if test "$build_libtool_libs" = yes; then
1068 write_lobj=\'${2}\'
1069 else
1070 write_lobj=none
1071 fi
1072
1073 if test "$build_old_libs" = yes; then
1074 write_oldobj=\'${3}\'
1075 else
1076 write_oldobj=none
1077 fi
1078
1079 $opt_dry_run || {
1080 cat >${write_libobj}T <<EOF
1081 # $write_libobj - a libtool object file
1082 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
1083 #
1084 # Please DO NOT delete this file!
1085 # It is necessary for linking the library.
1086
1087 # Name of the PIC object.
1088 pic_object=$write_lobj
1089
1090 # Name of the non-PIC object
1091 non_pic_object=$write_oldobj
1092
1093 EOF
1094 $MV "${write_libobj}T" "${write_libobj}"
1095 }
1096 }
1097
1098 # func_mode_compile arg...
1099 func_mode_compile ()
1100 {
1101 $opt_debug
1102 # Get the compilation command and the source file.
1103 base_compile=
1104 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
1105 suppress_opt=yes
1106 suppress_output=
1107 arg_mode=normal
1108 libobj=
1109 later=
1110 pie_flag=
1111
1112 for arg
1113 do
1114 case $arg_mode in
1115 arg )
1116 # do not "continue". Instead, add this to base_compile
1117 lastarg="$arg"
1118 arg_mode=normal
1119 ;;
1120
1121 target )
1122 libobj="$arg"
1123 arg_mode=normal
1124 continue
1125 ;;
1126
1127 normal )
1128 # Accept any command-line options.
1129 case $arg in
1130 -o)
1131 test -n "$libobj" && \
1132 func_fatal_error "you cannot specify \`-o' more than once"
1133 arg_mode=target
1134 continue
1135 ;;
1136
1137 -pie | -fpie | -fPIE)
1138 pie_flag="$pie_flag $arg"
1139 continue
1140 ;;
1141
1142 -shared | -static | -prefer-pic | -prefer-non-pic)
1143 later="$later $arg"
1144 continue
1145 ;;
1146
1147 -no-suppress)
1148 suppress_opt=no
1149 continue
1150 ;;
1151
1152 -Xcompiler)
1153 arg_mode=arg # the next one goes into the "base_compile" arg list
1154 continue # The current "srcfile" will either be retained or
1155 ;; # replaced later. I would guess that would be a bug.
1156
1157 -Wc,*)
1158 func_stripname '-Wc,' '' "$arg"
1159 args=$func_stripname_result
1160 lastarg=
1161 save_ifs="$IFS"; IFS=','
1162 for arg in $args; do
1163 IFS="$save_ifs"
1164 func_quote_for_eval "$arg"
1165 lastarg="$lastarg $func_quote_for_eval_result"
1166 done
1167 IFS="$save_ifs"
1168 func_stripname ' ' '' "$lastarg"
1169 lastarg=$func_stripname_result
1170
1171 # Add the arguments to base_compile.
1172 base_compile="$base_compile $lastarg"
1173 continue
1174 ;;
1175
1176 *)
1177 # Accept the current argument as the source file.
1178 # The previous "srcfile" becomes the current argument.
1179 #
1180 lastarg="$srcfile"
1181 srcfile="$arg"
1182 ;;
1183 esac # case $arg
1184 ;;
1185 esac # case $arg_mode
1186
1187 # Aesthetically quote the previous argument.
1188 func_quote_for_eval "$lastarg"
1189 base_compile="$base_compile $func_quote_for_eval_result"
1190 done # for arg
1191
1192 case $arg_mode in
1193 arg)
1194 func_fatal_error "you must specify an argument for -Xcompile"
1195 ;;
1196 target)
1197 func_fatal_error "you must specify a target with \`-o'"
1198 ;;
1199 *)
1200 # Get the name of the library object.
1201 test -z "$libobj" && {
1202 func_basename "$srcfile"
1203 libobj="$func_basename_result"
1204 }
1205 ;;
1206 esac
1207
1208 # Recognize several different file suffixes.
1209 # If the user specifies -o file.o, it is replaced with file.lo
1210 case $libobj in
1211 *.[cCFSifmso] | \
1212 *.ada | *.adb | *.ads | *.asm | \
1213 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
1214 *.[fF][09]? | *.for | *.java | *.obj | *.sx)
1215 func_xform "$libobj"
1216 libobj=$func_xform_result
1217 ;;
1218 esac
1219
1220 case $libobj in
1221 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
1222 *)
1223 func_fatal_error "cannot determine name of library object from \`$libobj'"
1224 ;;
1225 esac
1226
1227 func_infer_tag $base_compile
1228
1229 for arg in $later; do
1230 case $arg in
1231 -shared)
1232 test "$build_libtool_libs" != yes && \
1233 func_fatal_configuration "can not build a shared library"
1234 build_old_libs=no
1235 continue
1236 ;;
1237
1238 -static)
1239 build_libtool_libs=no
1240 build_old_libs=yes
1241 continue
1242 ;;
1243
1244 -prefer-pic)
1245 pic_mode=yes
1246 continue
1247 ;;
1248
1249 -prefer-non-pic)
1250 pic_mode=no
1251 continue
1252 ;;
1253 esac
1254 done
1255
1256 func_quote_for_eval "$libobj"
1257 test "X$libobj" != "X$func_quote_for_eval_result" \
1258 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
1259 && func_warning "libobj name \`$libobj' may not contain shell special characters."
1260 func_dirname_and_basename "$obj" "/" ""
1261 objname="$func_basename_result"
1262 xdir="$func_dirname_result"
1263 lobj=${xdir}$objdir/$objname
1264
1265 test -z "$base_compile" && \
1266 func_fatal_help "you must specify a compilation command"
1267
1268 # Delete any leftover library objects.
1269 if test "$build_old_libs" = yes; then
1270 removelist="$obj $lobj $libobj ${libobj}T"
1271 else
1272 removelist="$lobj $libobj ${libobj}T"
1273 fi
1274
1275 # On Cygwin there's no "real" PIC flag so we must build both object types
1276 case $host_os in
1277 cygwin* | mingw* | pw32* | os2*)
1278 pic_mode=default
1279 ;;
1280 esac
1281 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
1282 # non-PIC code in shared libraries is not supported
1283 pic_mode=default
1284 fi
1285
1286 # Calculate the filename of the output object if compiler does
1287 # not support -o with -c
1288 if test "$compiler_c_o" = no; then
1289 output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
1290 lockfile="$output_obj.lock"
1291 else
1292 output_obj=
1293 need_locks=no
1294 lockfile=
1295 fi
1296
1297 # Lock this critical section if it is needed
1298 # We use this script file to make the link, it avoids creating a new file
1299 if test "$need_locks" = yes; then
1300 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
1301 func_echo "Waiting for $lockfile to be removed"
1302 sleep 2
1303 done
1304 elif test "$need_locks" = warn; then
1305 if test -f "$lockfile"; then
1306 $ECHO "\
1307 *** ERROR, $lockfile exists and contains:
1308 `cat $lockfile 2>/dev/null`
1309
1310 This indicates that another process is trying to use the same
1311 temporary object file, and libtool could not work around it because
1312 your compiler does not support \`-c' and \`-o' together. If you
1313 repeat this compilation, it may succeed, by chance, but you had better
1314 avoid parallel builds (make -j) in this platform, or get a better
1315 compiler."
1316
1317 $opt_dry_run || $RM $removelist
1901318 exit $EXIT_FAILURE
191 }
1319 fi
1320 removelist="$removelist $output_obj"
1321 $ECHO "$srcfile" > "$lockfile"
1921322 fi
1931323
194 $echo "X$my_tmpdir" | $Xsed
1324 $opt_dry_run || $RM $removelist
1325 removelist="$removelist $lockfile"
1326 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
1327
1328 if test -n "$fix_srcfile_path"; then
1329 eval srcfile=\"$fix_srcfile_path\"
1330 fi
1331 func_quote_for_eval "$srcfile"
1332 qsrcfile=$func_quote_for_eval_result
1333
1334 # Only build a PIC object if we are building libtool libraries.
1335 if test "$build_libtool_libs" = yes; then
1336 # Without this assignment, base_compile gets emptied.
1337 fbsd_hideous_sh_bug=$base_compile
1338
1339 if test "$pic_mode" != no; then
1340 command="$base_compile $qsrcfile $pic_flag"
1341 else
1342 # Don't build PIC code
1343 command="$base_compile $qsrcfile"
1344 fi
1345
1346 func_mkdir_p "$xdir$objdir"
1347
1348 if test -z "$output_obj"; then
1349 # Place PIC objects in $objdir
1350 command="$command -o $lobj"
1351 fi
1352
1353 func_show_eval_locale "$command" \
1354 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
1355
1356 if test "$need_locks" = warn &&
1357 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1358 $ECHO "\
1359 *** ERROR, $lockfile contains:
1360 `cat $lockfile 2>/dev/null`
1361
1362 but it should contain:
1363 $srcfile
1364
1365 This indicates that another process is trying to use the same
1366 temporary object file, and libtool could not work around it because
1367 your compiler does not support \`-c' and \`-o' together. If you
1368 repeat this compilation, it may succeed, by chance, but you had better
1369 avoid parallel builds (make -j) in this platform, or get a better
1370 compiler."
1371
1372 $opt_dry_run || $RM $removelist
1373 exit $EXIT_FAILURE
1374 fi
1375
1376 # Just move the object if needed, then go on to compile the next one
1377 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
1378 func_show_eval '$MV "$output_obj" "$lobj"' \
1379 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1380 fi
1381
1382 # Allow error messages only from the first compilation.
1383 if test "$suppress_opt" = yes; then
1384 suppress_output=' >/dev/null 2>&1'
1385 fi
1386 fi
1387
1388 # Only build a position-dependent object if we build old libraries.
1389 if test "$build_old_libs" = yes; then
1390 if test "$pic_mode" != yes; then
1391 # Don't build PIC code
1392 command="$base_compile $qsrcfile$pie_flag"
1393 else
1394 command="$base_compile $qsrcfile $pic_flag"
1395 fi
1396 if test "$compiler_c_o" = yes; then
1397 command="$command -o $obj"
1398 fi
1399
1400 # Suppress compiler output if we already did a PIC compilation.
1401 command="$command$suppress_output"
1402 func_show_eval_locale "$command" \
1403 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
1404
1405 if test "$need_locks" = warn &&
1406 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1407 $ECHO "\
1408 *** ERROR, $lockfile contains:
1409 `cat $lockfile 2>/dev/null`
1410
1411 but it should contain:
1412 $srcfile
1413
1414 This indicates that another process is trying to use the same
1415 temporary object file, and libtool could not work around it because
1416 your compiler does not support \`-c' and \`-o' together. If you
1417 repeat this compilation, it may succeed, by chance, but you had better
1418 avoid parallel builds (make -j) in this platform, or get a better
1419 compiler."
1420
1421 $opt_dry_run || $RM $removelist
1422 exit $EXIT_FAILURE
1423 fi
1424
1425 # Just move the object if needed
1426 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1427 func_show_eval '$MV "$output_obj" "$obj"' \
1428 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
1429 fi
1430 fi
1431
1432 $opt_dry_run || {
1433 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
1434
1435 # Unlock the critical section if it was locked
1436 if test "$need_locks" != no; then
1437 removelist=$lockfile
1438 $RM "$lockfile"
1439 fi
1440 }
1441
1442 exit $EXIT_SUCCESS
1951443 }
1961444
1445 $opt_help || {
1446 test "$mode" = compile && func_mode_compile ${1+"$@"}
1447 }
1448
1449 func_mode_help ()
1450 {
1451 # We need to display help for each of the modes.
1452 case $mode in
1453 "")
1454 # Generic help is extracted from the usage comments
1455 # at the start of this file.
1456 func_help
1457 ;;
1458
1459 clean)
1460 $ECHO \
1461 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
1462
1463 Remove files from the build directory.
1464
1465 RM is the name of the program to use to delete files associated with each FILE
1466 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1467 to RM.
1468
1469 If FILE is a libtool library, object or program, all the files associated
1470 with it are deleted. Otherwise, only FILE itself is deleted using RM."
1471 ;;
1472
1473 compile)
1474 $ECHO \
1475 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
1476
1477 Compile a source file into a libtool library object.
1478
1479 This mode accepts the following additional options:
1480
1481 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
1482 -no-suppress do not suppress compiler output for multiple passes
1483 -prefer-pic try to building PIC objects only
1484 -prefer-non-pic try to building non-PIC objects only
1485 -shared do not build a \`.o' file suitable for static linking
1486 -static only build a \`.o' file suitable for static linking
1487
1488 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
1489 from the given SOURCEFILE.
1490
1491 The output file name is determined by removing the directory component from
1492 SOURCEFILE, then substituting the C source code suffix \`.c' with the
1493 library object suffix, \`.lo'."
1494 ;;
1495
1496 execute)
1497 $ECHO \
1498 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
1499
1500 Automatically set library path, then run a program.
1501
1502 This mode accepts the following additional options:
1503
1504 -dlopen FILE add the directory containing FILE to the library path
1505
1506 This mode sets the library path environment variable according to \`-dlopen'
1507 flags.
1508
1509 If any of the ARGS are libtool executable wrappers, then they are translated
1510 into their corresponding uninstalled binary, and any of their required library
1511 directories are added to the library path.
1512
1513 Then, COMMAND is executed, with ARGS as arguments."
1514 ;;
1515
1516 finish)
1517 $ECHO \
1518 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
1519
1520 Complete the installation of libtool libraries.
1521
1522 Each LIBDIR is a directory that contains libtool libraries.
1523
1524 The commands that this mode executes may require superuser privileges. Use
1525 the \`--dry-run' option if you just want to see what would be executed."
1526 ;;
1527
1528 install)
1529 $ECHO \
1530 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
1531
1532 Install executables or libraries.
1533
1534 INSTALL-COMMAND is the installation command. The first component should be
1535 either the \`install' or \`cp' program.
1536
1537 The following components of INSTALL-COMMAND are treated specially:
1538
1539 -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
1540
1541 The rest of the components are interpreted as arguments to that command (only
1542 BSD-compatible install options are recognized)."
1543 ;;
1544
1545 link)
1546 $ECHO \
1547 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
1548
1549 Link object files or libraries together to form another library, or to
1550 create an executable program.
1551
1552 LINK-COMMAND is a command using the C compiler that you would use to create
1553 a program from several object files.
1554
1555 The following components of LINK-COMMAND are treated specially:
1556
1557 -all-static do not do any dynamic linking at all
1558 -avoid-version do not add a version suffix if possible
1559 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
1560 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
1561 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
1562 -export-symbols SYMFILE
1563 try to export only the symbols listed in SYMFILE
1564 -export-symbols-regex REGEX
1565 try to export only the symbols matching REGEX
1566 -LLIBDIR search LIBDIR for required installed libraries
1567 -lNAME OUTPUT-FILE requires the installed library libNAME
1568 -module build a library that can dlopened
1569 -no-fast-install disable the fast-install mode
1570 -no-install link a not-installable executable
1571 -no-undefined declare that a library does not refer to external symbols
1572 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
1573 -objectlist FILE Use a list of object files found in FILE to specify objects
1574 -precious-files-regex REGEX
1575 don't remove output files matching REGEX
1576 -release RELEASE specify package release information
1577 -rpath LIBDIR the created library will eventually be installed in LIBDIR
1578 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
1579 -shared only do dynamic linking of libtool libraries
1580 -shrext SUFFIX override the standard shared library file extension
1581 -static do not do any dynamic linking of uninstalled libtool libraries
1582 -static-libtool-libs
1583 do not do any dynamic linking of libtool libraries
1584 -version-info CURRENT[:REVISION[:AGE]]
1585 specify library version info [each variable defaults to 0]
1586 -weak LIBNAME declare that the target provides the LIBNAME interface
1587
1588 All other options (arguments beginning with \`-') are ignored.
1589
1590 Every other argument is treated as a filename. Files ending in \`.la' are
1591 treated as uninstalled libtool libraries, other files are standard or library
1592 object files.
1593
1594 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
1595 only library objects (\`.lo' files) may be specified, and \`-rpath' is
1596 required, except when creating a convenience library.
1597
1598 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
1599 using \`ar' and \`ranlib', or on Windows using \`lib'.
1600
1601 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
1602 is created, otherwise an executable program is created."
1603 ;;
1604
1605 uninstall)
1606 $ECHO \
1607 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
1608
1609 Remove libraries from an installation directory.
1610
1611 RM is the name of the program to use to delete files associated with each FILE
1612 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
1613 to RM.
1614
1615 If FILE is a libtool library, all the files associated with it are deleted.
1616 Otherwise, only FILE itself is deleted using RM."
1617 ;;
1618
1619 *)
1620 func_fatal_help "invalid operation mode \`$mode'"
1621 ;;
1622 esac
1623
1624 $ECHO
1625 $ECHO "Try \`$progname --help' for more information about other modes."
1626
1627 exit $?
1628 }
1629
1630 # Now that we've collected a possible --mode arg, show help if necessary
1631 $opt_help && func_mode_help
1632
1633
1634 # func_mode_execute arg...
1635 func_mode_execute ()
1636 {
1637 $opt_debug
1638 # The first argument is the command name.
1639 cmd="$nonopt"
1640 test -z "$cmd" && \
1641 func_fatal_help "you must specify a COMMAND"
1642
1643 # Handle -dlopen flags immediately.
1644 for file in $execute_dlfiles; do
1645 test -f "$file" \
1646 || func_fatal_help "\`$file' is not a file"
1647
1648 dir=
1649 case $file in
1650 *.la)
1651 # Check to see that this really is a libtool archive.
1652 func_lalib_unsafe_p "$file" \
1653 || func_fatal_help "\`$lib' is not a valid libtool archive"
1654
1655 # Read the libtool library.
1656 dlname=
1657 library_names=
1658 func_source "$file"
1659
1660 # Skip this library if it cannot be dlopened.
1661 if test -z "$dlname"; then
1662 # Warn if it was a shared library.
1663 test -n "$library_names" && \
1664 func_warning "\`$file' was not linked with \`-export-dynamic'"
1665 continue
1666 fi
1667
1668 func_dirname "$file" "" "."
1669 dir="$func_dirname_result"
1670
1671 if test -f "$dir/$objdir/$dlname"; then
1672 dir="$dir/$objdir"
1673 else
1674 if test ! -f "$dir/$dlname"; then
1675 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
1676 fi
1677 fi
1678 ;;
1679
1680 *.lo)
1681 # Just add the directory containing the .lo file.
1682 func_dirname "$file" "" "."
1683 dir="$func_dirname_result"
1684 ;;
1685
1686 *)
1687 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
1688 continue
1689 ;;
1690 esac
1691
1692 # Get the absolute pathname.
1693 absdir=`cd "$dir" && pwd`
1694 test -n "$absdir" && dir="$absdir"
1695
1696 # Now add the directory to shlibpath_var.
1697 if eval "test -z \"\$$shlibpath_var\""; then
1698 eval "$shlibpath_var=\"\$dir\""
1699 else
1700 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
1701 fi
1702 done
1703
1704 # This variable tells wrapper scripts just to set shlibpath_var
1705 # rather than running their programs.
1706 libtool_execute_magic="$magic"
1707
1708 # Check if any of the arguments is a wrapper script.
1709 args=
1710 for file
1711 do
1712 case $file in
1713 -*) ;;
1714 *)
1715 # Do a test to see if this is really a libtool program.
1716 if func_ltwrapper_script_p "$file"; then
1717 func_source "$file"
1718 # Transform arg to wrapped name.
1719 file="$progdir/$program"
1720 elif func_ltwrapper_executable_p "$file"; then
1721 func_ltwrapper_scriptname "$file"
1722 func_source "$func_ltwrapper_scriptname_result"
1723 # Transform arg to wrapped name.
1724 file="$progdir/$program"
1725 fi
1726 ;;
1727 esac
1728 # Quote arguments (to preserve shell metacharacters).
1729 func_quote_for_eval "$file"
1730 args="$args $func_quote_for_eval_result"
1731 done
1732
1733 if test "X$opt_dry_run" = Xfalse; then
1734 if test -n "$shlibpath_var"; then
1735 # Export the shlibpath_var.
1736 eval "export $shlibpath_var"
1737 fi
1738
1739 # Restore saved environment variables
1740 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
1741 do
1742 eval "if test \"\${save_$lt_var+set}\" = set; then
1743 $lt_var=\$save_$lt_var; export $lt_var
1744 else
1745 $lt_unset $lt_var
1746 fi"
1747 done
1748
1749 # Now prepare to actually exec the command.
1750 exec_cmd="\$cmd$args"
1751 else
1752 # Display what would be done.
1753 if test -n "$shlibpath_var"; then
1754 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
1755 $ECHO "export $shlibpath_var"
1756 fi
1757 $ECHO "$cmd$args"
1758 exit $EXIT_SUCCESS
1759 fi
1760 }
1761
1762 test "$mode" = execute && func_mode_execute ${1+"$@"}
1763
1764
1765 # func_mode_finish arg...
1766 func_mode_finish ()
1767 {
1768 $opt_debug
1769 libdirs="$nonopt"
1770 admincmds=
1771
1772 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
1773 for dir
1774 do
1775 libdirs="$libdirs $dir"
1776 done
1777
1778 for libdir in $libdirs; do
1779 if test -n "$finish_cmds"; then
1780 # Do each command in the finish commands.
1781 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
1782 '"$cmd"'"'
1783 fi
1784 if test -n "$finish_eval"; then
1785 # Do the single finish_eval.
1786 eval cmds=\"$finish_eval\"
1787 $opt_dry_run || eval "$cmds" || admincmds="$admincmds
1788 $cmds"
1789 fi
1790 done
1791 fi
1792
1793 # Exit here if they wanted silent mode.
1794 $opt_silent && exit $EXIT_SUCCESS
1795
1796 $ECHO "X----------------------------------------------------------------------" | $Xsed
1797 $ECHO "Libraries have been installed in:"
1798 for libdir in $libdirs; do
1799 $ECHO " $libdir"
1800 done
1801 $ECHO
1802 $ECHO "If you ever happen to want to link against installed libraries"
1803 $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
1804 $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
1805 $ECHO "flag during linking and do at least one of the following:"
1806 if test -n "$shlibpath_var"; then
1807 $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
1808 $ECHO " during execution"
1809 fi
1810 if test -n "$runpath_var"; then
1811 $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
1812 $ECHO " during linking"
1813 fi
1814 if test -n "$hardcode_libdir_flag_spec"; then
1815 libdir=LIBDIR
1816 eval flag=\"$hardcode_libdir_flag_spec\"
1817
1818 $ECHO " - use the \`$flag' linker flag"
1819 fi
1820 if test -n "$admincmds"; then
1821 $ECHO " - have your system administrator run these commands:$admincmds"
1822 fi
1823 if test -f /etc/ld.so.conf; then
1824 $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
1825 fi
1826 $ECHO
1827
1828 $ECHO "See any operating system documentation about shared libraries for"
1829 case $host in
1830 solaris2.[6789]|solaris2.1[0-9])
1831 $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
1832 $ECHO "pages."
1833 ;;
1834 *)
1835 $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
1836 ;;
1837 esac
1838 $ECHO "X----------------------------------------------------------------------" | $Xsed
1839 exit $EXIT_SUCCESS
1840 }
1841
1842 test "$mode" = finish && func_mode_finish ${1+"$@"}
1843
1844
1845 # func_mode_install arg...
1846 func_mode_install ()
1847 {
1848 $opt_debug
1849 # There may be an optional sh(1) argument at the beginning of
1850 # install_prog (especially on Windows NT).
1851 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
1852 # Allow the use of GNU shtool's install command.
1853 $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
1854 # Aesthetically quote it.
1855 func_quote_for_eval "$nonopt"
1856 install_prog="$func_quote_for_eval_result "
1857 arg=$1
1858 shift
1859 else
1860 install_prog=
1861 arg=$nonopt
1862 fi
1863
1864 # The real first argument should be the name of the installation program.
1865 # Aesthetically quote it.
1866 func_quote_for_eval "$arg"
1867 install_prog="$install_prog$func_quote_for_eval_result"
1868
1869 # We need to accept at least all the BSD install flags.
1870 dest=
1871 files=
1872 opts=
1873 prev=
1874 install_type=
1875 isdir=no
1876 stripme=
1877 for arg
1878 do
1879 if test -n "$dest"; then
1880 files="$files $dest"
1881 dest=$arg
1882 continue
1883 fi
1884
1885 case $arg in
1886 -d) isdir=yes ;;
1887 -f)
1888 case " $install_prog " in
1889 *[\\\ /]cp\ *) ;;
1890 *) prev=$arg ;;
1891 esac
1892 ;;
1893 -g | -m | -o)
1894 prev=$arg
1895 ;;
1896 -s)
1897 stripme=" -s"
1898 continue
1899 ;;
1900 -*)
1901 ;;
1902 *)
1903 # If the previous option needed an argument, then skip it.
1904 if test -n "$prev"; then
1905 prev=
1906 else
1907 dest=$arg
1908 continue
1909 fi
1910 ;;
1911 esac
1912
1913 # Aesthetically quote the argument.
1914 func_quote_for_eval "$arg"
1915 install_prog="$install_prog $func_quote_for_eval_result"
1916 done
1917
1918 test -z "$install_prog" && \
1919 func_fatal_help "you must specify an install program"
1920
1921 test -n "$prev" && \
1922 func_fatal_help "the \`$prev' option requires an argument"
1923
1924 if test -z "$files"; then
1925 if test -z "$dest"; then
1926 func_fatal_help "no file or destination specified"
1927 else
1928 func_fatal_help "you must specify a destination"
1929 fi
1930 fi
1931
1932 # Strip any trailing slash from the destination.
1933 func_stripname '' '/' "$dest"
1934 dest=$func_stripname_result
1935
1936 # Check to see that the destination is a directory.
1937 test -d "$dest" && isdir=yes
1938 if test "$isdir" = yes; then
1939 destdir="$dest"
1940 destname=
1941 else
1942 func_dirname_and_basename "$dest" "" "."
1943 destdir="$func_dirname_result"
1944 destname="$func_basename_result"
1945
1946 # Not a directory, so check to see that there is only one file specified.
1947 set dummy $files; shift
1948 test "$#" -gt 1 && \
1949 func_fatal_help "\`$dest' is not a directory"
1950 fi
1951 case $destdir in
1952 [\\/]* | [A-Za-z]:[\\/]*) ;;
1953 *)
1954 for file in $files; do
1955 case $file in
1956 *.lo) ;;
1957 *)
1958 func_fatal_help "\`$destdir' must be an absolute directory name"
1959 ;;
1960 esac
1961 done
1962 ;;
1963 esac
1964
1965 # This variable tells wrapper scripts just to set variables rather
1966 # than running their programs.
1967 libtool_install_magic="$magic"
1968
1969 staticlibs=
1970 future_libdirs=
1971 current_libdirs=
1972 for file in $files; do
1973
1974 # Do each installation.
1975 case $file in
1976 *.$libext)
1977 # Do the static libraries later.
1978 staticlibs="$staticlibs $file"
1979 ;;
1980
1981 *.la)
1982 # Check to see that this really is a libtool archive.
1983 func_lalib_unsafe_p "$file" \
1984 || func_fatal_help "\`$file' is not a valid libtool archive"
1985
1986 library_names=
1987 old_library=
1988 relink_command=
1989 func_source "$file"
1990
1991 # Add the libdir to current_libdirs if it is the destination.
1992 if test "X$destdir" = "X$libdir"; then
1993 case "$current_libdirs " in
1994 *" $libdir "*) ;;
1995 *) current_libdirs="$current_libdirs $libdir" ;;
1996 esac
1997 else
1998 # Note the libdir as a future libdir.
1999 case "$future_libdirs " in
2000 *" $libdir "*) ;;
2001 *) future_libdirs="$future_libdirs $libdir" ;;
2002 esac
2003 fi
2004
2005 func_dirname "$file" "/" ""
2006 dir="$func_dirname_result"
2007 dir="$dir$objdir"
2008
2009 if test -n "$relink_command"; then
2010 # Determine the prefix the user has applied to our future dir.
2011 inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
2012
2013 # Don't allow the user to place us outside of our expected
2014 # location b/c this prevents finding dependent libraries that
2015 # are installed to the same prefix.
2016 # At present, this check doesn't affect windows .dll's that
2017 # are installed into $libdir/../bin (currently, that works fine)
2018 # but it's something to keep an eye on.
2019 test "$inst_prefix_dir" = "$destdir" && \
2020 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
2021
2022 if test -n "$inst_prefix_dir"; then
2023 # Stick the inst_prefix_dir data into the link command.
2024 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
2025 else
2026 relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
2027 fi
2028
2029 func_warning "relinking \`$file'"
2030 func_show_eval "$relink_command" \
2031 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
2032 fi
2033
2034 # See the names of the shared library.
2035 set dummy $library_names; shift
2036 if test -n "$1"; then
2037 realname="$1"
2038 shift
2039
2040 srcname="$realname"
2041 test -n "$relink_command" && srcname="$realname"T
2042
2043 # Install the shared library and build the symlinks.
2044 func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
2045 'exit $?'
2046 tstripme="$stripme"
2047 case $host_os in
2048 cygwin* | mingw* | pw32*)
2049 case $realname in
2050 *.dll.a)
2051 tstripme=""
2052 ;;
2053 esac
2054 ;;
2055 esac
2056 if test -n "$tstripme" && test -n "$striplib"; then
2057 func_show_eval "$striplib $destdir/$realname" 'exit $?'
2058 fi
2059
2060 if test "$#" -gt 0; then
2061 # Delete the old symlinks, and create new ones.
2062 # Try `ln -sf' first, because the `ln' binary might depend on
2063 # the symlink we replace! Solaris /bin/ln does not understand -f,
2064 # so we also need to try rm && ln -s.
2065 for linkname
2066 do
2067 test "$linkname" != "$realname" \
2068 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
2069 done
2070 fi
2071
2072 # Do each command in the postinstall commands.
2073 lib="$destdir/$realname"
2074 func_execute_cmds "$postinstall_cmds" 'exit $?'
2075 fi
2076
2077 # Install the pseudo-library for information purposes.
2078 func_basename "$file"
2079 name="$func_basename_result"
2080 instname="$dir/$name"i
2081 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
2082
2083 # Maybe install the static library, too.
2084 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
2085 ;;
2086
2087 *.lo)
2088 # Install (i.e. copy) a libtool object.
2089
2090 # Figure out destination file name, if it wasn't already specified.
2091 if test -n "$destname"; then
2092 destfile="$destdir/$destname"
2093 else
2094 func_basename "$file"
2095 destfile="$func_basename_result"
2096 destfile="$destdir/$destfile"
2097 fi
2098
2099 # Deduce the name of the destination old-style object file.
2100 case $destfile in
2101 *.lo)
2102 func_lo2o "$destfile"
2103 staticdest=$func_lo2o_result
2104 ;;
2105 *.$objext)
2106 staticdest="$destfile"
2107 destfile=
2108 ;;
2109 *)
2110 func_fatal_help "cannot copy a libtool object to \`$destfile'"
2111 ;;
2112 esac
2113
2114 # Install the libtool object if requested.
2115 test -n "$destfile" && \
2116 func_show_eval "$install_prog $file $destfile" 'exit $?'
2117
2118 # Install the old object if enabled.
2119 if test "$build_old_libs" = yes; then
2120 # Deduce the name of the old-style object file.
2121 func_lo2o "$file"
2122 staticobj=$func_lo2o_result
2123 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
2124 fi
2125 exit $EXIT_SUCCESS
2126 ;;
2127
2128 *)
2129 # Figure out destination file name, if it wasn't already specified.
2130 if test -n "$destname"; then
2131 destfile="$destdir/$destname"
2132 else
2133 func_basename "$file"
2134 destfile="$func_basename_result"
2135 destfile="$destdir/$destfile"
2136 fi
2137
2138 # If the file is missing, and there is a .exe on the end, strip it
2139 # because it is most likely a libtool script we actually want to
2140 # install
2141 stripped_ext=""
2142 case $file in
2143 *.exe)
2144 if test ! -f "$file"; then
2145 func_stripname '' '.exe' "$file"
2146 file=$func_stripname_result
2147 stripped_ext=".exe"
2148 fi
2149 ;;
2150 esac
2151
2152 # Do a test to see if this is really a libtool program.
2153 case $host in
2154 *cygwin*|*mingw*)
2155 if func_ltwrapper_executable_p "$file"; then
2156 func_ltwrapper_scriptname "$file"
2157 wrapper=$func_ltwrapper_scriptname_result
2158 else
2159 func_stripname '' '.exe' "$file"
2160 wrapper=$func_stripname_result
2161 fi
2162 ;;
2163 *)
2164 wrapper=$file
2165 ;;
2166 esac
2167 if func_ltwrapper_script_p "$wrapper"; then
2168 notinst_deplibs=
2169 relink_command=
2170
2171 func_source "$wrapper"
2172
2173 # Check the variables that should have been set.
2174 test -z "$generated_by_libtool_version" && \
2175 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
2176
2177 finalize=yes
2178 for lib in $notinst_deplibs; do
2179 # Check to see that each library is installed.
2180 libdir=
2181 if test -f "$lib"; then
2182 func_source "$lib"
2183 fi
2184 libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
2185 if test -n "$libdir" && test ! -f "$libfile"; then
2186 func_warning "\`$lib' has not been installed in \`$libdir'"
2187 finalize=no
2188 fi
2189 done
2190
2191 relink_command=
2192 func_source "$wrapper"
2193
2194 outputname=
2195 if test "$fast_install" = no && test -n "$relink_command"; then
2196 $opt_dry_run || {
2197 if test "$finalize" = yes; then
2198 tmpdir=`func_mktempdir`
2199 func_basename "$file$stripped_ext"
2200 file="$func_basename_result"
2201 outputname="$tmpdir/$file"
2202 # Replace the output file specification.
2203 relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
2204
2205 $opt_silent || {
2206 func_quote_for_expand "$relink_command"
2207 eval "func_echo $func_quote_for_expand_result"
2208 }
2209 if eval "$relink_command"; then :
2210 else
2211 func_error "error: relink \`$file' with the above command before installing it"
2212 $opt_dry_run || ${RM}r "$tmpdir"
2213 continue
2214 fi
2215 file="$outputname"
2216 else
2217 func_warning "cannot relink \`$file'"
2218 fi
2219 }
2220 else
2221 # Install the binary that we compiled earlier.
2222 file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
2223 fi
2224 fi
2225
2226 # remove .exe since cygwin /usr/bin/install will append another
2227 # one anyway
2228 case $install_prog,$host in
2229 */usr/bin/install*,*cygwin*)
2230 case $file:$destfile in
2231 *.exe:*.exe)
2232 # this is ok
2233 ;;
2234 *.exe:*)
2235 destfile=$destfile.exe
2236 ;;
2237 *:*.exe)
2238 func_stripname '' '.exe' "$destfile"
2239 destfile=$func_stripname_result
2240 ;;
2241 esac
2242 ;;
2243 esac
2244 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
2245 $opt_dry_run || if test -n "$outputname"; then
2246 ${RM}r "$tmpdir"
2247 fi
2248 ;;
2249 esac
2250 done
2251
2252 for file in $staticlibs; do
2253 func_basename "$file"
2254 name="$func_basename_result"
2255
2256 # Set up the ranlib parameters.
2257 oldlib="$destdir/$name"
2258
2259 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
2260
2261 if test -n "$stripme" && test -n "$old_striplib"; then
2262 func_show_eval "$old_striplib $oldlib" 'exit $?'
2263 fi
2264
2265 # Do each command in the postinstall commands.
2266 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
2267 done
2268
2269 test -n "$future_libdirs" && \
2270 func_warning "remember to run \`$progname --finish$future_libdirs'"
2271
2272 if test -n "$current_libdirs"; then
2273 # Maybe just do a dry run.
2274 $opt_dry_run && current_libdirs=" -n$current_libdirs"
2275 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
2276 else
2277 exit $EXIT_SUCCESS
2278 fi
2279 }
2280
2281 test "$mode" = install && func_mode_install ${1+"$@"}
2282
2283
2284 # func_generate_dlsyms outputname originator pic_p
2285 # Extract symbols from dlprefiles and create ${outputname}S.o with
2286 # a dlpreopen symbol table.
2287 func_generate_dlsyms ()
2288 {
2289 $opt_debug
2290 my_outputname="$1"
2291 my_originator="$2"
2292 my_pic_p="${3-no}"
2293 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
2294 my_dlsyms=
2295
2296 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
2297 if test -n "$NM" && test -n "$global_symbol_pipe"; then
2298 my_dlsyms="${my_outputname}S.c"
2299 else
2300 func_error "not configured to extract global symbols from dlpreopened files"
2301 fi
2302 fi
2303
2304 if test -n "$my_dlsyms"; then
2305 case $my_dlsyms in
2306 "") ;;
2307 *.c)
2308 # Discover the nlist of each of the dlfiles.
2309 nlist="$output_objdir/${my_outputname}.nm"
2310
2311 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
2312
2313 # Parse the name list into a source file.
2314 func_verbose "creating $output_objdir/$my_dlsyms"
2315
2316 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
2317 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
2318 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
2319
2320 #ifdef __cplusplus
2321 extern \"C\" {
2322 #endif
2323
2324 /* External symbol declarations for the compiler. */\
2325 "
2326
2327 if test "$dlself" = yes; then
2328 func_verbose "generating symbol list for \`$output'"
2329
2330 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
2331
2332 # Add our own program objects to the symbol list.
2333 progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
2334 for progfile in $progfiles; do
2335 func_verbose "extracting global C symbols from \`$progfile'"
2336 $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
2337 done
2338
2339 if test -n "$exclude_expsyms"; then
2340 $opt_dry_run || {
2341 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
2342 eval '$MV "$nlist"T "$nlist"'
2343 }
2344 fi
2345
2346 if test -n "$export_symbols_regex"; then
2347 $opt_dry_run || {
2348 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
2349 eval '$MV "$nlist"T "$nlist"'
2350 }
2351 fi
2352
2353 # Prepare the list of exported symbols
2354 if test -z "$export_symbols"; then
2355 export_symbols="$output_objdir/$outputname.exp"
2356 $opt_dry_run || {
2357 $RM $export_symbols
2358 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
2359 case $host in
2360 *cygwin* | *mingw* )
2361 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2362 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
2363 ;;
2364 esac
2365 }
2366 else
2367 $opt_dry_run || {
2368 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
2369 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
2370 eval '$MV "$nlist"T "$nlist"'
2371 case $host in
2372 *cygwin | *mingw* )
2373 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
2374 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
2375 ;;
2376 esac
2377 }
2378 fi
2379 fi
2380
2381 for dlprefile in $dlprefiles; do
2382 func_verbose "extracting global C symbols from \`$dlprefile'"
2383 func_basename "$dlprefile"
2384 name="$func_basename_result"
2385 $opt_dry_run || {
2386 eval '$ECHO ": $name " >> "$nlist"'
2387 eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
2388 }
2389 done
2390
2391 $opt_dry_run || {
2392 # Make sure we have at least an empty file.
2393 test -f "$nlist" || : > "$nlist"
2394
2395 if test -n "$exclude_expsyms"; then
2396 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
2397 $MV "$nlist"T "$nlist"
2398 fi
2399
2400 # Try sorting and uniquifying the output.
2401 if $GREP -v "^: " < "$nlist" |
2402 if sort -k 3 </dev/null >/dev/null 2>&1; then
2403 sort -k 3
2404 else
2405 sort +2
2406 fi |
2407 uniq > "$nlist"S; then
2408 :
2409 else
2410 $GREP -v "^: " < "$nlist" > "$nlist"S
2411 fi
2412
2413 if test -f "$nlist"S; then
2414 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
2415 else
2416 $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
2417 fi
2418
2419 $ECHO >> "$output_objdir/$my_dlsyms" "\
2420
2421 /* The mapping between symbol names and symbols. */
2422 typedef struct {
2423 const char *name;
2424 void *address;
2425 } lt_dlsymlist;
2426 "
2427 case $host in
2428 *cygwin* | *mingw* )
2429 $ECHO >> "$output_objdir/$my_dlsyms" "\
2430 /* DATA imports from DLLs on WIN32 con't be const, because
2431 runtime relocations are performed -- see ld's documentation
2432 on pseudo-relocs. */"
2433 lt_dlsym_const= ;;
2434 *osf5*)
2435 echo >> "$output_objdir/$my_dlsyms" "\
2436 /* This system does not cope well with relocations in const data */"
2437 lt_dlsym_const= ;;
2438 *)
2439 lt_dlsym_const=const ;;
2440 esac
2441
2442 $ECHO >> "$output_objdir/$my_dlsyms" "\
2443 extern $lt_dlsym_const lt_dlsymlist
2444 lt_${my_prefix}_LTX_preloaded_symbols[];
2445 $lt_dlsym_const lt_dlsymlist
2446 lt_${my_prefix}_LTX_preloaded_symbols[] =
2447 {\
2448 { \"$my_originator\", (void *) 0 },"
2449
2450 case $need_lib_prefix in
2451 no)
2452 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
2453 ;;
2454 *)
2455 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
2456 ;;
2457 esac
2458 $ECHO >> "$output_objdir/$my_dlsyms" "\
2459 {0, (void *) 0}
2460 };
2461
2462 /* This works around a problem in FreeBSD linker */
2463 #ifdef FREEBSD_WORKAROUND
2464 static const void *lt_preloaded_setup() {
2465 return lt_${my_prefix}_LTX_preloaded_symbols;
2466 }
2467 #endif
2468
2469 #ifdef __cplusplus
2470 }
2471 #endif\
2472 "
2473 } # !$opt_dry_run
2474
2475 pic_flag_for_symtable=
2476 case "$compile_command " in
2477 *" -static "*) ;;
2478 *)
2479 case $host in
2480 # compiling the symbol table file with pic_flag works around
2481 # a FreeBSD bug that causes programs to crash when -lm is
2482 # linked before any other PIC object. But we must not use
2483 # pic_flag when linking with -static. The problem exists in
2484 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
2485 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
2486 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
2487 *-*-hpux*)
2488 pic_flag_for_symtable=" $pic_flag" ;;
2489 *)
2490 if test "X$my_pic_p" != Xno; then
2491 pic_flag_for_symtable=" $pic_flag"
2492 fi
2493 ;;
2494 esac
2495 ;;
2496 esac
2497 symtab_cflags=
2498 for arg in $LTCFLAGS; do
2499 case $arg in
2500 -pie | -fpie | -fPIE) ;;
2501 *) symtab_cflags="$symtab_cflags $arg" ;;
2502 esac
2503 done
2504
2505 # Now compile the dynamic symbol file.
2506 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
2507
2508 # Clean up the generated files.
2509 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
2510
2511 # Transform the symbol file into the correct name.
2512 symfileobj="$output_objdir/${my_outputname}S.$objext"
2513 case $host in
2514 *cygwin* | *mingw* )
2515 if test -f "$output_objdir/$my_outputname.def"; then
2516 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2517 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
2518 else
2519 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2520 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2521 fi
2522 ;;
2523 *)
2524 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2525 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
2526 ;;
2527 esac
2528 ;;
2529 *)
2530 func_fatal_error "unknown suffix for \`$my_dlsyms'"
2531 ;;
2532 esac
2533 else
2534 # We keep going just in case the user didn't refer to
2535 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
2536 # really was required.
2537
2538 # Nullify the symbol file.
2539 compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
2540 finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
2541 fi
2542 }
1972543
1982544 # func_win32_libid arg
1992545 # return the library type of file 'arg'
2032549 # that is supplied when $file_magic_command is called.
2042550 func_win32_libid ()
2052551 {
2552 $opt_debug
2062553 win32_libid_type="unknown"
2072554 win32_fileres=`file -L $1 2>/dev/null`
2082555 case $win32_fileres in
2102557 win32_libid_type="x86 archive import"
2112558 ;;
2122559 *ar\ archive*) # could be an import, or static
213 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
214 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
215 win32_nmres=`eval $NM -f posix -A $1 | \
216 $SED -n -e '1,100{
2560 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
2561 $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
2562 win32_nmres=`eval $NM -f posix -A $1 |
2563 $SED -n -e '
2564 1,100{
2172565 / I /{
218 s,.*,import,
219 p
220 q
221 }
222 }'`
2566 s,.*,import,
2567 p
2568 q
2569 }
2570 }'`
2232571 case $win32_nmres in
2242572 import*) win32_libid_type="x86 archive import";;
2252573 *) win32_libid_type="x86 archive static";;
2372585 esac
2382586 ;;
2392587 esac
240 $echo $win32_libid_type
2588 $ECHO "$win32_libid_type"
2412589 }
2422590
243
244 # func_infer_tag arg
245 # Infer tagged configuration to use if any are available and
246 # if one wasn't chosen via the "--tag" command line option.
247 # Only attempt this if the compiler in the base compile
248 # command doesn't match the default compiler.
249 # arg is usually of the form 'gcc ...'
250 func_infer_tag ()
251 {
252 if test -n "$available_tags" && test -z "$tagname"; then
253 CC_quoted=
254 for arg in $CC; do
255 case $arg in
256 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
257 arg="\"$arg\""
258 ;;
259 esac
260 CC_quoted="$CC_quoted $arg"
261 done
262 case $@ in
263 # Blanks in the command may have been stripped by the calling shell,
264 # but not from the CC environment variable when configure was run.
265 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
266 # Blanks at the start of $base_compile will cause this to fail
267 # if we don't check for them as well.
268 *)
269 for z in $available_tags; do
270 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
271 # Evaluate the configuration.
272 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
273 CC_quoted=
274 for arg in $CC; do
275 # Double-quote args containing other shell metacharacters.
276 case $arg in
277 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
278 arg="\"$arg\""
279 ;;
280 esac
281 CC_quoted="$CC_quoted $arg"
282 done
283 case "$@ " in
284 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
285 # The compiler in the base compile command matches
286 # the one in the tagged configuration.
287 # Assume this is the tagged configuration we want.
288 tagname=$z
289 break
290 ;;
291 esac
292 fi
293 done
294 # If $tagname still isn't set, then no tagged configuration
295 # was found and let the user know that the "--tag" command
296 # line option must be used.
297 if test -z "$tagname"; then
298 $echo "$modename: unable to infer tagged configuration"
299 $echo "$modename: specify a tag with \`--tag'" 1>&2
300 exit $EXIT_FAILURE
301 # else
302 # $echo "$modename: using $tagname tagged configuration"
303 fi
304 ;;
305 esac
306 fi
307 }
3082591
3092592
3102593 # func_extract_an_archive dir oldlib
3112594 func_extract_an_archive ()
3122595 {
2596 $opt_debug
3132597 f_ex_an_ar_dir="$1"; shift
3142598 f_ex_an_ar_oldlib="$1"
315
316 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
317 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
2599 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
3182600 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
3192601 :
3202602 else
321 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
322 exit $EXIT_FAILURE
2603 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
3232604 fi
3242605 }
2606
3252607
3262608 # func_extract_archives gentop oldlib ...
3272609 func_extract_archives ()
3282610 {
2611 $opt_debug
3292612 my_gentop="$1"; shift
3302613 my_oldlibs=${1+"$@"}
3312614 my_oldobjs=""
3322615 my_xlib=""
3332616 my_xabs=""
3342617 my_xdir=""
335 my_status=""
336
337 $show "${rm}r $my_gentop"
338 $run ${rm}r "$my_gentop"
339 $show "$mkdir $my_gentop"
340 $run $mkdir "$my_gentop"
341 my_status=$?
342 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
343 exit $my_status
344 fi
3452618
3462619 for my_xlib in $my_oldlibs; do
3472620 # Extract the objects.
3492622 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
3502623 *) my_xabs=`pwd`"/$my_xlib" ;;
3512624 esac
352 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
2625 func_basename "$my_xlib"
2626 my_xlib="$func_basename_result"
3532627 my_xlib_u=$my_xlib
3542628 while :; do
3552629 case " $extracted_archives " in
3562630 *" $my_xlib_u "*)
357 extracted_serial=`expr $extracted_serial + 1`
2631 func_arith $extracted_serial + 1
2632 extracted_serial=$func_arith_result
3582633 my_xlib_u=lt$extracted_serial-$my_xlib ;;
3592634 *) break ;;
3602635 esac
3622637 extracted_archives="$extracted_archives $my_xlib_u"
3632638 my_xdir="$my_gentop/$my_xlib_u"
3642639
365 $show "${rm}r $my_xdir"
366 $run ${rm}r "$my_xdir"
367 $show "$mkdir $my_xdir"
368 $run $mkdir "$my_xdir"
369 exit_status=$?
370 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
371 exit $exit_status
372 fi
2640 func_mkdir_p "$my_xdir"
2641
3732642 case $host in
3742643 *-darwin*)
375 $show "Extracting $my_xabs"
2644 func_verbose "Extracting $my_xabs"
3762645 # Do not bother doing anything if just a dry run
377 if test -z "$run"; then
2646 $opt_dry_run || {
3782647 darwin_orig_dir=`pwd`
3792648 cd $my_xdir || exit $?
3802649 darwin_archive=$my_xabs
3812650 darwin_curdir=`pwd`
382 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
383 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
384 if test -n "$darwin_arches"; then
385 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
2651 darwin_base_archive=`basename "$darwin_archive"`
2652 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
2653 if test -n "$darwin_arches"; then
2654 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
3862655 darwin_arch=
387 $show "$darwin_base_archive has multiple architectures $darwin_arches"
2656 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3882657 for darwin_arch in $darwin_arches ; do
389 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
390 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
2658 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
2659 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3912660 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3922661 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
3932662 cd "$darwin_curdir"
394 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
2663 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
3952664 done # $darwin_arches
396 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
397 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
2665 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
2666 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
3982667 darwin_file=
3992668 darwin_files=
4002669 for darwin_file in $darwin_filelist; do
4012670 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
402 lipo -create -output "$darwin_file" $darwin_files
2671 $LIPO -create -output "$darwin_file" $darwin_files
4032672 done # $darwin_filelist
404 ${rm}r unfat-$$
2673 $RM -rf unfat-$$
4052674 cd "$darwin_orig_dir"
4062675 else
407 cd "$darwin_orig_dir"
408 func_extract_an_archive "$my_xdir" "$my_xabs"
2676 cd $darwin_orig_dir
2677 func_extract_an_archive "$my_xdir" "$my_xabs"
4092678 fi # $darwin_arches
410 fi # $run
2679 } # !$opt_dry_run
4112680 ;;
4122681 *)
4132682 func_extract_an_archive "$my_xdir" "$my_xabs"
414 ;;
2683 ;;
4152684 esac
4162685 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
4172686 done
2687
4182688 func_extract_archives_result="$my_oldobjs"
4192689 }
420 # End of Shell function definitions
421 #####################################
422
423 # Darwin sucks
424 eval std_shrext=\"$shrext_cmds\"
425
426 disable_libs=no
427
428 # Parse our command line options once, thoroughly.
429 while test "$#" -gt 0
430 do
431 arg="$1"
432 shift
433
434 case $arg in
435 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
436 *) optarg= ;;
437 esac
438
439 # If the previous option needs an argument, assign it.
440 if test -n "$prev"; then
441 case $prev in
442 execute_dlfiles)
443 execute_dlfiles="$execute_dlfiles $arg"
444 ;;
445 tag)
446 tagname="$arg"
447 preserve_args="${preserve_args}=$arg"
448
449 # Check whether tagname contains only valid characters
450 case $tagname in
451 *[!-_A-Za-z0-9,/]*)
452 $echo "$progname: invalid tag name: $tagname" 1>&2
453 exit $EXIT_FAILURE
454 ;;
2690
2691
2692
2693 # func_emit_wrapper arg
2694 #
2695 # emit a libtool wrapper script on stdout
2696 # don't directly open a file because we may want to
2697 # incorporate the script contents within a cygwin/mingw
2698 # wrapper executable. Must ONLY be called from within
2699 # func_mode_link because it depends on a number of variable
2700 # set therein.
2701 #
2702 # arg is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
2703 # variable will take. If 'yes', then the emitted script
2704 # will assume that the directory in which it is stored is
2705 # the '.lib' directory. This is a cygwin/mingw-specific
2706 # behavior.
2707 func_emit_wrapper ()
2708 {
2709 func_emit_wrapper_arg1=no
2710 if test -n "$1" ; then
2711 func_emit_wrapper_arg1=$1
2712 fi
2713
2714 $ECHO "\
2715 #! $SHELL
2716
2717 # $output - temporary wrapper script for $objdir/$outputname
2718 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2719 #
2720 # The $output program cannot be directly executed until all the libtool
2721 # libraries that it depends on are installed.
2722 #
2723 # This wrapper script should never be moved out of the build directory.
2724 # If it is, it will not operate correctly.
2725
2726 # Sed substitution that helps us do robust quoting. It backslashifies
2727 # metacharacters that are still active within double-quoted strings.
2728 Xsed='${SED} -e 1s/^X//'
2729 sed_quote_subst='$sed_quote_subst'
2730
2731 # Be Bourne compatible
2732 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
2733 emulate sh
2734 NULLCMD=:
2735 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
2736 # is contrary to our usage. Disable this feature.
2737 alias -g '\${1+\"\$@\"}'='\"\$@\"'
2738 setopt NO_GLOB_SUBST
2739 else
2740 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
2741 fi
2742 BIN_SH=xpg4; export BIN_SH # for Tru64
2743 DUALCASE=1; export DUALCASE # for MKS sh
2744
2745 # The HP-UX ksh and POSIX shell print the target directory to stdout
2746 # if CDPATH is set.
2747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2748
2749 relink_command=\"$relink_command\"
2750
2751 # This environment variable determines our operation mode.
2752 if test \"\$libtool_install_magic\" = \"$magic\"; then
2753 # install mode needs the following variables:
2754 generated_by_libtool_version='$macro_version'
2755 notinst_deplibs='$notinst_deplibs'
2756 else
2757 # When we are sourced in execute mode, \$file and \$ECHO are already set.
2758 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2759 ECHO=\"$qecho\"
2760 file=\"\$0\"
2761 # Make sure echo works.
2762 if test \"X\$1\" = X--no-reexec; then
2763 # Discard the --no-reexec flag, and continue.
2764 shift
2765 elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
2766 # Yippee, \$ECHO works!
2767 :
2768 else
2769 # Restart under the correct shell, and then maybe \$ECHO will work.
2770 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
2771 fi
2772 fi\
2773 "
2774 $ECHO "\
2775
2776 # Find the directory that this script lives in.
2777 thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
2778 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
2779
2780 # Follow symbolic links until we get to the real thisdir.
2781 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
2782 while test -n \"\$file\"; do
2783 destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
2784
2785 # If there was a directory component, then change thisdir.
2786 if test \"x\$destdir\" != \"x\$file\"; then
2787 case \"\$destdir\" in
2788 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
2789 *) thisdir=\"\$thisdir/\$destdir\" ;;
4552790 esac
456
457 case $tagname in
458 CC)
459 # Don't test for the "default" C tag, as we know, it's there, but
460 # not specially marked.
461 ;;
462 *)
463 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
464 taglist="$taglist $tagname"
465 # Evaluate the configuration.
466 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
467 else
468 $echo "$progname: ignoring unknown tag $tagname" 1>&2
469 fi
470 ;;
471 esac
472 ;;
473 *)
474 eval "$prev=\$arg"
475 ;;
476 esac
477
478 prev=
479 prevopt=
480 continue
481 fi
482
483 # Have we seen a non-optional argument yet?
484 case $arg in
485 --help)
486 show_help=yes
487 ;;
488
489 --version)
490 echo "\
491 $PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP
492
493 Copyright (C) 2008 Free Software Foundation, Inc.
494 This is free software; see the source for copying conditions. There is NO
495 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
496 exit $?
497 ;;
498
499 --config)
500 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
501 # Now print the configurations for the tags.
502 for tagname in $taglist; do
503 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
504 done
505 exit $?
506 ;;
507
508 --debug)
509 $echo "$progname: enabling shell trace mode"
510 set -x
511 preserve_args="$preserve_args $arg"
512 ;;
513
514 --dry-run | -n)
515 run=:
516 ;;
517
518 --features)
519 $echo "host: $host"
520 if test "$build_libtool_libs" = yes; then
521 $echo "enable shared libraries"
522 else
523 $echo "disable shared libraries"
5242791 fi
525 if test "$build_old_libs" = yes; then
526 $echo "enable static libraries"
527 else
528 $echo "disable static libraries"
2792
2793 file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
2794 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
2795 done
2796
2797 # Usually 'no', except on cygwin/mingw when embedded into
2798 # the cwrapper.
2799 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
2800 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
2801 # special case for '.'
2802 if test \"\$thisdir\" = \".\"; then
2803 thisdir=\`pwd\`
5292804 fi
530 exit $?
531 ;;
532
533 --finish) mode="finish" ;;
534
535 --mode) prevopt="--mode" prev=mode ;;
536 --mode=*) mode="$optarg" ;;
537
538 --preserve-dup-deps) duplicate_deps="yes" ;;
539
540 --quiet | --silent)
541 show=:
542 preserve_args="$preserve_args $arg"
543 ;;
544
545 --tag)
546 prevopt="--tag"
547 prev=tag
548 preserve_args="$preserve_args --tag"
549 ;;
550 --tag=*)
551 set tag "$optarg" ${1+"$@"}
552 shift
553 prev=tag
554 preserve_args="$preserve_args --tag"
555 ;;
556
557 -dlopen)
558 prevopt="-dlopen"
559 prev=execute_dlfiles
560 ;;
561
562 -*)
563 $echo "$modename: unrecognized option \`$arg'" 1>&2
564 $echo "$help" 1>&2
565 exit $EXIT_FAILURE
566 ;;
567
568 *)
569 nonopt="$arg"
570 break
571 ;;
572 esac
573 done
574
575 if test -n "$prevopt"; then
576 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
577 $echo "$help" 1>&2
578 exit $EXIT_FAILURE
579 fi
580
581 case $disable_libs in
582 no)
583 ;;
584 shared)
585 build_libtool_libs=no
586 build_old_libs=yes
587 ;;
588 static)
589 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
590 ;;
591 esac
592
593 # If this variable is set in any of the actions, the command in it
594 # will be execed at the end. This prevents here-documents from being
595 # left over by shells.
596 exec_cmd=
597
598 if test -z "$show_help"; then
599
600 # Infer the operation mode.
601 if test -z "$mode"; then
602 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
603 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
604 case $nonopt in
605 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
606 mode=link
607 for arg
608 do
609 case $arg in
610 -c)
611 mode=compile
612 break
613 ;;
614 esac
615 done
616 ;;
617 *db | *dbx | *strace | *truss)
618 mode=execute
619 ;;
620 *install*|cp|mv)
621 mode=install
622 ;;
623 *rm)
624 mode=uninstall
625 ;;
626 *)
627 # If we have no mode, but dlfiles were specified, then do execute mode.
628 test -n "$execute_dlfiles" && mode=execute
629
630 # Just use the default operation mode.
631 if test -z "$mode"; then
632 if test -n "$nonopt"; then
633 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
634 else
635 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
636 fi
637 fi
638 ;;
2805 # remove .libs from thisdir
2806 case \"\$thisdir\" in
2807 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
2808 $objdir ) thisdir=. ;;
6392809 esac
6402810 fi
6412811
642 # Only execute mode is allowed to have -dlopen flags.
643 if test -n "$execute_dlfiles" && test "$mode" != execute; then
644 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
645 $echo "$help" 1>&2
646 exit $EXIT_FAILURE
2812 # Try to get the absolute directory name.
2813 absdir=\`cd \"\$thisdir\" && pwd\`
2814 test -n \"\$absdir\" && thisdir=\"\$absdir\"
2815 "
2816
2817 if test "$fast_install" = yes; then
2818 $ECHO "\
2819 program=lt-'$outputname'$exeext
2820 progdir=\"\$thisdir/$objdir\"
2821
2822 if test ! -f \"\$progdir/\$program\" ||
2823 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
2824 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
2825
2826 file=\"\$\$-\$program\"
2827
2828 if test ! -d \"\$progdir\"; then
2829 $MKDIR \"\$progdir\"
2830 else
2831 $RM \"\$progdir/\$file\"
2832 fi"
2833
2834 $ECHO "\
2835
2836 # relink executable if necessary
2837 if test -n \"\$relink_command\"; then
2838 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
2839 else
2840 $ECHO \"\$relink_command_output\" >&2
2841 $RM \"\$progdir/\$file\"
2842 exit 1
2843 fi
2844 fi
2845
2846 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
2847 { $RM \"\$progdir/\$program\";
2848 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
2849 $RM \"\$progdir/\$file\"
2850 fi"
2851 else
2852 $ECHO "\
2853 program='$outputname'
2854 progdir=\"\$thisdir/$objdir\"
2855 "
2856 fi
2857
2858 $ECHO "\
2859
2860 if test -f \"\$progdir/\$program\"; then"
2861
2862 # Export our shlibpath_var if we have one.
2863 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
2864 $ECHO "\
2865 # Add our own library path to $shlibpath_var
2866 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
2867
2868 # Some systems cannot cope with colon-terminated $shlibpath_var
2869 # The second colon is a workaround for a bug in BeOS R4 sed
2870 $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
2871
2872 export $shlibpath_var
2873 "
2874 fi
2875
2876 # fixup the dll searchpath if we need to.
2877 if test -n "$dllsearchpath"; then
2878 $ECHO "\
2879 # Add the dll search path components to the executable PATH
2880 PATH=$dllsearchpath:\$PATH
2881 "
2882 fi
2883
2884 $ECHO "\
2885 if test \"\$libtool_execute_magic\" != \"$magic\"; then
2886 # Run the actual program with our arguments.
2887 "
2888 case $host in
2889 # Backslashes separate directories on plain windows
2890 *-*-mingw | *-*-os2*)
2891 $ECHO "\
2892 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
2893 "
2894 ;;
2895
2896 *)
2897 $ECHO "\
2898 exec \"\$progdir/\$program\" \${1+\"\$@\"}
2899 "
2900 ;;
2901 esac
2902 $ECHO "\
2903 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
2904 exit 1
2905 fi
2906 else
2907 # The program doesn't exist.
2908 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
2909 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
2910 $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
2911 exit 1
6472912 fi
648
649 # Change the help message to a mode-specific one.
650 generic_help="$help"
651 help="Try \`$modename --help --mode=$mode' for more information."
652
653 # These modes are in order of execution frequency so that they run quickly.
654 case $mode in
655 # libtool compile mode
656 compile)
657 modename="$modename: compile"
658 # Get the compilation command and the source file.
659 base_compile=
660 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
661 suppress_opt=yes
662 suppress_output=
663 arg_mode=normal
664 libobj=
665 later=
666
667 for arg
668 do
669 case $arg_mode in
670 arg )
671 # do not "continue". Instead, add this to base_compile
672 lastarg="$arg"
673 arg_mode=normal
674 ;;
675
676 target )
677 libobj="$arg"
678 arg_mode=normal
679 continue
680 ;;
681
682 normal )
683 # Accept any command-line options.
684 case $arg in
685 -o)
686 if test -n "$libobj" ; then
687 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
688 exit $EXIT_FAILURE
689 fi
690 arg_mode=target
691 continue
692 ;;
693
694 -static | -prefer-pic | -prefer-non-pic)
695 later="$later $arg"
696 continue
697 ;;
698
699 -no-suppress)
700 suppress_opt=no
701 continue
702 ;;
703
704 -Xcompiler)
705 arg_mode=arg # the next one goes into the "base_compile" arg list
706 continue # The current "srcfile" will either be retained or
707 ;; # replaced later. I would guess that would be a bug.
708
709 -Wc,*)
710 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
711 lastarg=
712 save_ifs="$IFS"; IFS=','
713 for arg in $args; do
714 IFS="$save_ifs"
715
716 # Double-quote args containing other shell metacharacters.
717 # Many Bourne shells cannot handle close brackets correctly
718 # in scan sets, so we specify it separately.
719 case $arg in
720 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
721 arg="\"$arg\""
722 ;;
2913 fi\
2914 "
2915 }
2916 # end: func_emit_wrapper
2917
2918 # func_emit_cwrapperexe_src
2919 # emit the source code for a wrapper executable on stdout
2920 # Must ONLY be called from within func_mode_link because
2921 # it depends on a number of variable set therein.
2922 func_emit_cwrapperexe_src ()
2923 {
2924 cat <<EOF
2925
2926 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
2927 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2928
2929 The $output program cannot be directly executed until all the libtool
2930 libraries that it depends on are installed.
2931
2932 This wrapper executable should never be moved out of the build directory.
2933 If it is, it will not operate correctly.
2934
2935 Currently, it simply execs the wrapper *script* "$SHELL $output",
2936 but could eventually absorb all of the scripts functionality and
2937 exec $objdir/$outputname directly.
2938 */
2939 EOF
2940 cat <<"EOF"
2941 #include <stdio.h>
2942 #include <stdlib.h>
2943 #ifdef _MSC_VER
2944 # include <direct.h>
2945 # include <process.h>
2946 # include <io.h>
2947 # define setmode _setmode
2948 #else
2949 # include <unistd.h>
2950 # include <stdint.h>
2951 # ifdef __CYGWIN__
2952 # include <io.h>
2953 # endif
2954 #endif
2955 #include <malloc.h>
2956 #include <stdarg.h>
2957 #include <assert.h>
2958 #include <string.h>
2959 #include <ctype.h>
2960 #include <errno.h>
2961 #include <fcntl.h>
2962 #include <sys/stat.h>
2963
2964 #if defined(PATH_MAX)
2965 # define LT_PATHMAX PATH_MAX
2966 #elif defined(MAXPATHLEN)
2967 # define LT_PATHMAX MAXPATHLEN
2968 #else
2969 # define LT_PATHMAX 1024
2970 #endif
2971
2972 #ifndef S_IXOTH
2973 # define S_IXOTH 0
2974 #endif
2975 #ifndef S_IXGRP
2976 # define S_IXGRP 0
2977 #endif
2978
2979 #ifdef _MSC_VER
2980 # define S_IXUSR _S_IEXEC
2981 # define stat _stat
2982 # ifndef _INTPTR_T_DEFINED
2983 # define intptr_t int
2984 # endif
2985 #endif
2986
2987 #ifndef DIR_SEPARATOR
2988 # define DIR_SEPARATOR '/'
2989 # define PATH_SEPARATOR ':'
2990 #endif
2991
2992 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
2993 defined (__OS2__)
2994 # define HAVE_DOS_BASED_FILE_SYSTEM
2995 # define FOPEN_WB "wb"
2996 # ifndef DIR_SEPARATOR_2
2997 # define DIR_SEPARATOR_2 '\\'
2998 # endif
2999 # ifndef PATH_SEPARATOR_2
3000 # define PATH_SEPARATOR_2 ';'
3001 # endif
3002 #endif
3003
3004 #ifndef DIR_SEPARATOR_2
3005 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
3006 #else /* DIR_SEPARATOR_2 */
3007 # define IS_DIR_SEPARATOR(ch) \
3008 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
3009 #endif /* DIR_SEPARATOR_2 */
3010
3011 #ifndef PATH_SEPARATOR_2
3012 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
3013 #else /* PATH_SEPARATOR_2 */
3014 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
3015 #endif /* PATH_SEPARATOR_2 */
3016
3017 #ifdef __CYGWIN__
3018 # define FOPEN_WB "wb"
3019 #endif
3020
3021 #ifndef FOPEN_WB
3022 # define FOPEN_WB "w"
3023 #endif
3024 #ifndef _O_BINARY
3025 # define _O_BINARY 0
3026 #endif
3027
3028 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
3029 #define XFREE(stale) do { \
3030 if (stale) { free ((void *) stale); stale = 0; } \
3031 } while (0)
3032
3033 #undef LTWRAPPER_DEBUGPRINTF
3034 #if defined DEBUGWRAPPER
3035 # define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
3036 static void
3037 ltwrapper_debugprintf (const char *fmt, ...)
3038 {
3039 va_list args;
3040 va_start (args, fmt);
3041 (void) vfprintf (stderr, fmt, args);
3042 va_end (args);
3043 }
3044 #else
3045 # define LTWRAPPER_DEBUGPRINTF(args)
3046 #endif
3047
3048 const char *program_name = NULL;
3049
3050 void *xmalloc (size_t num);
3051 char *xstrdup (const char *string);
3052 const char *base_name (const char *name);
3053 char *find_executable (const char *wrapper);
3054 char *chase_symlinks (const char *pathspec);
3055 int make_executable (const char *path);
3056 int check_executable (const char *path);
3057 char *strendzap (char *str, const char *pat);
3058 void lt_fatal (const char *message, ...);
3059
3060 static const char *script_text =
3061 EOF
3062
3063 func_emit_wrapper yes |
3064 $SED -e 's/\([\\"]\)/\\\1/g' \
3065 -e 's/^/ "/' -e 's/$/\\n"/'
3066 echo ";"
3067
3068 cat <<EOF
3069 const char * MAGIC_EXE = "$magic_exe";
3070
3071 int
3072 main (int argc, char *argv[])
3073 {
3074 char **newargz;
3075 char *tmp_pathspec;
3076 char *actual_cwrapper_path;
3077 char *shwrapper_name;
3078 intptr_t rval = 127;
3079 FILE *shwrapper;
3080
3081 const char *dumpscript_opt = "--lt-dump-script";
3082 int i;
3083
3084 program_name = (char *) xstrdup (base_name (argv[0]));
3085 LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
3086 LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
3087
3088 /* very simple arg parsing; don't want to rely on getopt */
3089 for (i = 1; i < argc; i++)
3090 {
3091 if (strcmp (argv[i], dumpscript_opt) == 0)
3092 {
3093 EOF
3094 case "$host" in
3095 *mingw* | *cygwin* )
3096 # make stdout use "unix" line endings
3097 echo " setmode(1,_O_BINARY);"
3098 ;;
3099 esac
3100
3101 cat <<EOF
3102 printf ("%s", script_text);
3103 return 0;
3104 }
3105 }
3106
3107 newargz = XMALLOC (char *, argc + 2);
3108 EOF
3109
3110 if test -n "$TARGETSHELL" ; then
3111 # no path translation at all
3112 lt_newargv0=$TARGETSHELL
3113 else
3114 case "$host" in
3115 *mingw* )
3116 # awkward: cmd appends spaces to result
3117 lt_sed_strip_trailing_spaces="s/[ ]*\$//"
3118 lt_newargv0=`( cmd //c echo $SHELL | $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo $SHELL`
3119 case $lt_newargv0 in
3120 *.exe | *.EXE) ;;
3121 *) lt_newargv0=$lt_newargv0.exe ;;
3122 esac
3123 ;;
3124 * ) lt_newargv0=$SHELL ;;
3125 esac
3126 fi
3127
3128 cat <<EOF
3129 newargz[0] = (char *) xstrdup ("$lt_newargv0");
3130 EOF
3131
3132 cat <<"EOF"
3133 tmp_pathspec = find_executable (argv[0]);
3134 if (tmp_pathspec == NULL)
3135 lt_fatal ("Couldn't find %s", argv[0]);
3136 LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
3137 tmp_pathspec));
3138
3139 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
3140 LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
3141 actual_cwrapper_path));
3142 XFREE (tmp_pathspec);
3143
3144 shwrapper_name = (char *) xstrdup (base_name (actual_cwrapper_path));
3145 strendzap (actual_cwrapper_path, shwrapper_name);
3146
3147 /* shwrapper_name transforms */
3148 strendzap (shwrapper_name, ".exe");
3149 tmp_pathspec = XMALLOC (char, (strlen (shwrapper_name) +
3150 strlen ("_ltshwrapperTMP") + 1));
3151 strcpy (tmp_pathspec, shwrapper_name);
3152 strcat (tmp_pathspec, "_ltshwrapperTMP");
3153 XFREE (shwrapper_name);
3154 shwrapper_name = tmp_pathspec;
3155 tmp_pathspec = 0;
3156 LTWRAPPER_DEBUGPRINTF (("(main) libtool shell wrapper name: %s\n",
3157 shwrapper_name));
3158 EOF
3159
3160 cat <<EOF
3161 newargz[1] =
3162 XMALLOC (char, (strlen (actual_cwrapper_path) +
3163 strlen ("$objdir") + 1 + strlen (shwrapper_name) + 1));
3164 strcpy (newargz[1], actual_cwrapper_path);
3165 strcat (newargz[1], "$objdir");
3166 strcat (newargz[1], "/");
3167 strcat (newargz[1], shwrapper_name);
3168 EOF
3169
3170
3171 case $host_os in
3172 mingw*)
3173 cat <<"EOF"
3174 {
3175 char* p;
3176 while ((p = strchr (newargz[1], '\\')) != NULL)
3177 {
3178 *p = '/';
3179 }
3180 }
3181 EOF
3182 ;;
7233183 esac
724 lastarg="$lastarg $arg"
725 done
726 IFS="$save_ifs"
727 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
728
729 # Add the arguments to base_compile.
730 base_compile="$base_compile $lastarg"
731 continue
732 ;;
733
734 * )
735 # Accept the current argument as the source file.
736 # The previous "srcfile" becomes the current argument.
737 #
738 lastarg="$srcfile"
739 srcfile="$arg"
740 ;;
741 esac # case $arg
742 ;;
743 esac # case $arg_mode
744
745 # Aesthetically quote the previous argument.
746 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
747
748 case $lastarg in
749 # Double-quote args containing other shell metacharacters.
750 # Many Bourne shells cannot handle close brackets correctly
751 # in scan sets, and some SunOS ksh mistreat backslash-escaping
752 # in scan sets (worked around with variable expansion),
753 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
754 # at all, so we specify them separately.
755 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
756 lastarg="\"$lastarg\""
757 ;;
758 esac
759
760 base_compile="$base_compile $lastarg"
761 done # for arg
762
763 case $arg_mode in
764 arg)
765 $echo "$modename: you must specify an argument for -Xcompile"
766 exit $EXIT_FAILURE
767 ;;
768 target)
769 $echo "$modename: you must specify a target with \`-o'" 1>&2
770 exit $EXIT_FAILURE
771 ;;
772 *)
773 # Get the name of the library object.
774 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
775 ;;
776 esac
777
778 # Recognize several different file suffixes.
779 # If the user specifies -o file.o, it is replaced with file.lo
780 xform='[cCFSifmso]'
781 case $libobj in
782 *.ada) xform=ada ;;
783 *.adb) xform=adb ;;
784 *.ads) xform=ads ;;
785 *.asm) xform=asm ;;
786 *.c++) xform=c++ ;;
787 *.cc) xform=cc ;;
788 *.ii) xform=ii ;;
789 *.class) xform=class ;;
790 *.cpp) xform=cpp ;;
791 *.cxx) xform=cxx ;;
792 *.[fF][09]?) xform=[fF][09]. ;;
793 *.for) xform=for ;;
794 *.java) xform=java ;;
795 *.obj) xform=obj ;;
796 *.sx) xform=sx ;;
797 esac
798
799 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
800
801 case $libobj in
802 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
803 *)
804 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
805 exit $EXIT_FAILURE
806 ;;
807 esac
808
809 func_infer_tag $base_compile
810
811 for arg in $later; do
812 case $arg in
813 -static)
814 build_old_libs=yes
815 continue
816 ;;
817
818 -prefer-pic)
819 pic_mode=yes
820 continue
821 ;;
822
823 -prefer-non-pic)
824 pic_mode=no
825 continue
826 ;;
827 esac
828 done
829
830 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
831 case $qlibobj in
832 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
833 qlibobj="\"$qlibobj\"" ;;
834 esac
835 test "X$libobj" != "X$qlibobj" \
836 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
837 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
838 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
839 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
840 if test "X$xdir" = "X$obj"; then
841 xdir=
842 else
843 xdir=$xdir/
844 fi
845 lobj=${xdir}$objdir/$objname
846
847 if test -z "$base_compile"; then
848 $echo "$modename: you must specify a compilation command" 1>&2
849 $echo "$help" 1>&2
850 exit $EXIT_FAILURE
851 fi
852
853 # Delete any leftover library objects.
854 if test "$build_old_libs" = yes; then
855 removelist="$obj $lobj $libobj ${libobj}T"
856 else
857 removelist="$lobj $libobj ${libobj}T"
858 fi
859
860 $run $rm $removelist
861 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
862
863 # On Cygwin there's no "real" PIC flag so we must build both object types
864 case $host_os in
865 cygwin* | mingw* | pw32* | os2*)
866 pic_mode=default
867 ;;
868 esac
869 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
870 # non-PIC code in shared libraries is not supported
871 pic_mode=default
872 fi
873
874 # Calculate the filename of the output object if compiler does
875 # not support -o with -c
876 if test "$compiler_c_o" = no; then
877 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
878 lockfile="$output_obj.lock"
879 removelist="$removelist $output_obj $lockfile"
880 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
881 else
882 output_obj=
883 need_locks=no
884 lockfile=
885 fi
886
887 # Lock this critical section if it is needed
888 # We use this script file to make the link, it avoids creating a new file
889 if test "$need_locks" = yes; then
890 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
891 $show "Waiting for $lockfile to be removed"
892 sleep 2
893 done
894 elif test "$need_locks" = warn; then
895 if test -f "$lockfile"; then
896 $echo "\
897 *** ERROR, $lockfile exists and contains:
898 `cat $lockfile 2>/dev/null`
899
900 This indicates that another process is trying to use the same
901 temporary object file, and libtool could not work around it because
902 your compiler does not support \`-c' and \`-o' together. If you
903 repeat this compilation, it may succeed, by chance, but you had better
904 avoid parallel builds (make -j) in this platform, or get a better
905 compiler."
906
907 $run $rm $removelist
908 exit $EXIT_FAILURE
909 fi
910 $echo "$srcfile" > "$lockfile"
911 fi
912
913 if test -n "$fix_srcfile_path"; then
914 eval srcfile=\"$fix_srcfile_path\"
915 fi
916 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
917 case $qsrcfile in
918 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
919 qsrcfile="\"$qsrcfile\"" ;;
920 esac
921
922 $run $rm "$libobj" "${libobj}T"
923
924 # Create a libtool object file (analogous to a ".la" file),
925 # but don't create it if we're doing a dry run.
926 test -z "$run" && cat > ${libobj}T <<EOF
927 # $libobj - a libtool object file
928 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
929 #
930 # Please DO NOT delete this file!
931 # It is necessary for linking the library.
932
933 # Name of the PIC object.
3184
3185 cat <<"EOF"
3186 XFREE (shwrapper_name);
3187 XFREE (actual_cwrapper_path);
3188
3189 /* always write in binary mode */
3190 if ((shwrapper = fopen (newargz[1], FOPEN_WB)) == 0)
3191 {
3192 lt_fatal ("Could not open %s for writing", newargz[1]);
3193 }
3194 fprintf (shwrapper, "%s", script_text);
3195 fclose (shwrapper);
3196
3197 make_executable (newargz[1]);
3198
3199 for (i = 1; i < argc; i++)
3200 newargz[i + 1] = xstrdup (argv[i]);
3201 newargz[argc + 1] = NULL;
3202
3203 for (i = 0; i < argc + 1; i++)
3204 {
3205 LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, newargz[i]));
3206 }
3207
9343208 EOF
9353209
936 # Only build a PIC object if we are building libtool libraries.
937 if test "$build_libtool_libs" = yes; then
938 # Without this assignment, base_compile gets emptied.
939 fbsd_hideous_sh_bug=$base_compile
940
941 if test "$pic_mode" != no; then
942 command="$base_compile $qsrcfile $pic_flag"
3210 case $host_os in
3211 mingw*)
3212 cat <<EOF
3213 /* execv doesn't actually work on mingw as expected on unix */
3214 rval = _spawnv (_P_WAIT, "$lt_newargv0", (const char * const *) newargz);
3215 if (rval == -1)
3216 {
3217 /* failed to start process */
3218 LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"$lt_newargv0\": errno = %d\n", errno));
3219 return 127;
3220 }
3221 return rval;
3222 }
3223 EOF
3224 ;;
3225 *)
3226 cat <<EOF
3227 execv ("$lt_newargv0", newargz);
3228 return rval; /* =127, but avoids unused variable warning */
3229 }
3230 EOF
3231 ;;
3232 esac
3233
3234 cat <<"EOF"
3235
3236 void *
3237 xmalloc (size_t num)
3238 {
3239 void *p = (void *) malloc (num);
3240 if (!p)
3241 lt_fatal ("Memory exhausted");
3242
3243 return p;
3244 }
3245
3246 char *
3247 xstrdup (const char *string)
3248 {
3249 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
3250 string) : NULL;
3251 }
3252
3253 const char *
3254 base_name (const char *name)
3255 {
3256 const char *base;
3257
3258 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3259 /* Skip over the disk name in MSDOS pathnames. */
3260 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
3261 name += 2;
3262 #endif
3263
3264 for (base = name; *name; name++)
3265 if (IS_DIR_SEPARATOR (*name))
3266 base = name + 1;
3267 return base;
3268 }
3269
3270 int
3271 check_executable (const char *path)
3272 {
3273 struct stat st;
3274
3275 LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
3276 path ? (*path ? path : "EMPTY!") : "NULL!"));
3277 if ((!path) || (!*path))
3278 return 0;
3279
3280 if ((stat (path, &st) >= 0)
3281 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
3282 return 1;
3283 else
3284 return 0;
3285 }
3286
3287 int
3288 make_executable (const char *path)
3289 {
3290 int rval = 0;
3291 struct stat st;
3292
3293 LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
3294 path ? (*path ? path : "EMPTY!") : "NULL!"));
3295 if ((!path) || (!*path))
3296 return 0;
3297
3298 if (stat (path, &st) >= 0)
3299 {
3300 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
3301 }
3302 return rval;
3303 }
3304
3305 /* Searches for the full path of the wrapper. Returns
3306 newly allocated full path name if found, NULL otherwise
3307 Does not chase symlinks, even on platforms that support them.
3308 */
3309 char *
3310 find_executable (const char *wrapper)
3311 {
3312 int has_slash = 0;
3313 const char *p;
3314 const char *p_next;
3315 /* static buffer for getcwd */
3316 char tmp[LT_PATHMAX + 1];
3317 int tmp_len;
3318 char *concat_name;
3319
3320 LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
3321 wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
3322
3323 if ((wrapper == NULL) || (*wrapper == '\0'))
3324 return NULL;
3325
3326 /* Absolute path? */
3327 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3328 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
3329 {
3330 concat_name = xstrdup (wrapper);
3331 if (check_executable (concat_name))
3332 return concat_name;
3333 XFREE (concat_name);
3334 }
3335 else
3336 {
3337 #endif
3338 if (IS_DIR_SEPARATOR (wrapper[0]))
3339 {
3340 concat_name = xstrdup (wrapper);
3341 if (check_executable (concat_name))
3342 return concat_name;
3343 XFREE (concat_name);
3344 }
3345 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
3346 }
3347 #endif
3348
3349 for (p = wrapper; *p; p++)
3350 if (*p == '/')
3351 {
3352 has_slash = 1;
3353 break;
3354 }
3355 if (!has_slash)
3356 {
3357 /* no slashes; search PATH */
3358 const char *path = getenv ("PATH");
3359 if (path != NULL)
3360 {
3361 for (p = path; *p; p = p_next)
3362 {
3363 const char *q;
3364 size_t p_len;
3365 for (q = p; *q; q++)
3366 if (IS_PATH_SEPARATOR (*q))
3367 break;
3368 p_len = q - p;
3369 p_next = (*q == '\0' ? q : q + 1);
3370 if (p_len == 0)
3371 {
3372 /* empty path: current directory */
3373 if (getcwd (tmp, LT_PATHMAX) == NULL)
3374 lt_fatal ("getcwd failed");
3375 tmp_len = strlen (tmp);
3376 concat_name =
3377 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3378 memcpy (concat_name, tmp, tmp_len);
3379 concat_name[tmp_len] = '/';
3380 strcpy (concat_name + tmp_len + 1, wrapper);
3381 }
3382 else
3383 {
3384 concat_name =
3385 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
3386 memcpy (concat_name, p, p_len);
3387 concat_name[p_len] = '/';
3388 strcpy (concat_name + p_len + 1, wrapper);
3389 }
3390 if (check_executable (concat_name))
3391 return concat_name;
3392 XFREE (concat_name);
3393 }
3394 }
3395 /* not found in PATH; assume curdir */
3396 }
3397 /* Relative path | not found in path: prepend cwd */
3398 if (getcwd (tmp, LT_PATHMAX) == NULL)
3399 lt_fatal ("getcwd failed");
3400 tmp_len = strlen (tmp);
3401 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
3402 memcpy (concat_name, tmp, tmp_len);
3403 concat_name[tmp_len] = '/';
3404 strcpy (concat_name + tmp_len + 1, wrapper);
3405
3406 if (check_executable (concat_name))
3407 return concat_name;
3408 XFREE (concat_name);
3409 return NULL;
3410 }
3411
3412 char *
3413 chase_symlinks (const char *pathspec)
3414 {
3415 #ifndef S_ISLNK
3416 return xstrdup (pathspec);
3417 #else
3418 char buf[LT_PATHMAX];
3419 struct stat s;
3420 char *tmp_pathspec = xstrdup (pathspec);
3421 char *p;
3422 int has_symlinks = 0;
3423 while (strlen (tmp_pathspec) && !has_symlinks)
3424 {
3425 LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
3426 tmp_pathspec));
3427 if (lstat (tmp_pathspec, &s) == 0)
3428 {
3429 if (S_ISLNK (s.st_mode) != 0)
3430 {
3431 has_symlinks = 1;
3432 break;
3433 }
3434
3435 /* search backwards for last DIR_SEPARATOR */
3436 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
3437 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3438 p--;
3439 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
3440 {
3441 /* no more DIR_SEPARATORS left */
3442 break;
3443 }
3444 *p = '\0';
3445 }
9433446 else
944 # Don't build PIC code
945 command="$base_compile $qsrcfile"
946 fi
947
948 if test ! -d "${xdir}$objdir"; then
949 $show "$mkdir ${xdir}$objdir"
950 $run $mkdir ${xdir}$objdir
951 exit_status=$?
952 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
953 exit $exit_status
954 fi
955 fi
956
957 if test -z "$output_obj"; then
958 # Place PIC objects in $objdir
959 command="$command -o $lobj"
960 fi
961
962 $run $rm "$lobj" "$output_obj"
963
964 $show "$command"
965 if $run eval $lt_env "$command"; then :
966 else
967 test -n "$output_obj" && $run $rm $removelist
968 exit $EXIT_FAILURE
969 fi
970
971 if test "$need_locks" = warn &&
972 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
973 $echo "\
974 *** ERROR, $lockfile contains:
975 `cat $lockfile 2>/dev/null`
976
977 but it should contain:
978 $srcfile
979
980 This indicates that another process is trying to use the same
981 temporary object file, and libtool could not work around it because
982 your compiler does not support \`-c' and \`-o' together. If you
983 repeat this compilation, it may succeed, by chance, but you had better
984 avoid parallel builds (make -j) in this platform, or get a better
985 compiler."
986
987 $run $rm $removelist
988 exit $EXIT_FAILURE
989 fi
990
991 # Just move the object if needed, then go on to compile the next one
992 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
993 $show "$mv $output_obj $lobj"
994 if $run $mv $output_obj $lobj; then :
995 else
996 error=$?
997 $run $rm $removelist
998 exit $error
999 fi
1000 fi
1001
1002 # Append the name of the PIC object to the libtool object file.
1003 test -z "$run" && cat >> ${libobj}T <<EOF
1004 pic_object='$objdir/$objname'
1005
3447 {
3448 char *errstr = strerror (errno);
3449 lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
3450 }
3451 }
3452 XFREE (tmp_pathspec);
3453
3454 if (!has_symlinks)
3455 {
3456 return xstrdup (pathspec);
3457 }
3458
3459 tmp_pathspec = realpath (pathspec, buf);
3460 if (tmp_pathspec == 0)
3461 {
3462 lt_fatal ("Could not follow symlinks for %s", pathspec);
3463 }
3464 return xstrdup (tmp_pathspec);
3465 #endif
3466 }
3467
3468 char *
3469 strendzap (char *str, const char *pat)
3470 {
3471 size_t len, patlen;
3472
3473 assert (str != NULL);
3474 assert (pat != NULL);
3475
3476 len = strlen (str);
3477 patlen = strlen (pat);
3478
3479 if (patlen <= len)
3480 {
3481 str += len - patlen;
3482 if (strcmp (str, pat) == 0)
3483 *str = '\0';
3484 }
3485 return str;
3486 }
3487
3488 static void
3489 lt_error_core (int exit_status, const char *mode,
3490 const char *message, va_list ap)
3491 {
3492 fprintf (stderr, "%s: %s: ", program_name, mode);
3493 vfprintf (stderr, message, ap);
3494 fprintf (stderr, ".\n");
3495
3496 if (exit_status >= 0)
3497 exit (exit_status);
3498 }
3499
3500 void
3501 lt_fatal (const char *message, ...)
3502 {
3503 va_list ap;
3504 va_start (ap, message);
3505 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
3506 va_end (ap);
3507 }
10063508 EOF
1007
1008 # Allow error messages only from the first compilation.
1009 if test "$suppress_opt" = yes; then
1010 suppress_output=' >/dev/null 2>&1'
1011 fi
1012 else
1013 # No PIC object so indicate it doesn't exist in the libtool
1014 # object file.
1015 test -z "$run" && cat >> ${libobj}T <<EOF
1016 pic_object=none
1017
1018 EOF
1019 fi
1020
1021 # Only build a position-dependent object if we build old libraries.
1022 if test "$build_old_libs" = yes; then
1023 if test "$pic_mode" != yes; then
1024 # Don't build PIC code
1025 command="$base_compile $qsrcfile"
1026 else
1027 command="$base_compile $qsrcfile $pic_flag"
1028 fi
1029 if test "$compiler_c_o" = yes; then
1030 command="$command -o $obj"
1031 fi
1032
1033 # Suppress compiler output if we already did a PIC compilation.
1034 command="$command$suppress_output"
1035 $run $rm "$obj" "$output_obj"
1036 $show "$command"
1037 if $run eval $lt_env "$command"; then :
1038 else
1039 $run $rm $removelist
1040 exit $EXIT_FAILURE
1041 fi
1042
1043 if test "$need_locks" = warn &&
1044 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1045 $echo "\
1046 *** ERROR, $lockfile contains:
1047 `cat $lockfile 2>/dev/null`
1048
1049 but it should contain:
1050 $srcfile
1051
1052 This indicates that another process is trying to use the same
1053 temporary object file, and libtool could not work around it because
1054 your compiler does not support \`-c' and \`-o' together. If you
1055 repeat this compilation, it may succeed, by chance, but you had better
1056 avoid parallel builds (make -j) in this platform, or get a better
1057 compiler."
1058
1059 $run $rm $removelist
1060 exit $EXIT_FAILURE
1061 fi
1062
1063 # Just move the object if needed
1064 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1065 $show "$mv $output_obj $obj"
1066 if $run $mv $output_obj $obj; then :
1067 else
1068 error=$?
1069 $run $rm $removelist
1070 exit $error
1071 fi
1072 fi
1073
1074 # Append the name of the non-PIC object the libtool object file.
1075 # Only append if the libtool object file exists.
1076 test -z "$run" && cat >> ${libobj}T <<EOF
1077 # Name of the non-PIC object.
1078 non_pic_object='$objname'
1079
1080 EOF
1081 else
1082 # Append the name of the non-PIC object the libtool object file.
1083 # Only append if the libtool object file exists.
1084 test -z "$run" && cat >> ${libobj}T <<EOF
1085 # Name of the non-PIC object.
1086 non_pic_object=none
1087
1088 EOF
1089 fi
1090
1091 $run $mv "${libobj}T" "${libobj}"
1092
1093 # Unlock the critical section if it was locked
1094 if test "$need_locks" != no; then
1095 $run $rm "$lockfile"
1096 fi
1097
1098 exit $EXIT_SUCCESS
1099 ;;
1100
1101 # libtool link mode
1102 link | relink)
1103 modename="$modename: link"
3509 }
3510 # end: func_emit_cwrapperexe_src
3511
3512 # func_mode_link arg...
3513 func_mode_link ()
3514 {
3515 $opt_debug
11043516 case $host in
11053517 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11063518 # It is impossible to link a dll without this setting, and
11203532 allow_undefined=yes
11213533 ;;
11223534 esac
1123 libtool_args="$nonopt"
3535 libtool_args=$nonopt
11243536 base_compile="$nonopt $@"
1125 compile_command="$nonopt"
1126 finalize_command="$nonopt"
3537 compile_command=$nonopt
3538 finalize_command=$nonopt
11273539
11283540 compile_rpath=
11293541 finalize_rpath=
11383550 dllsearchpath=
11393551 lib_search_path=`pwd`
11403552 inst_prefix_dir=
3553 new_inherited_linker_flags=
11413554
11423555 avoid_version=no
11433556 dlfiles=
11533566 no_install=no
11543567 objs=
11553568 non_pic_objects=
1156 notinst_path= # paths that contain not-installed libtool libraries
11573569 precious_files_regex=
11583570 prefer_static_libs=no
11593571 preload=no
11673579 thread_safe=no
11683580 vinfo=
11693581 vinfo_number=no
3582 weak_libs=
11703583 single_module="${wl}-single_module"
1171
11723584 func_infer_tag $base_compile
11733585
11743586 # We need to know -static, to get the right output filenames.
11753587 for arg
11763588 do
11773589 case $arg in
3590 -shared)
3591 test "$build_libtool_libs" != yes && \
3592 func_fatal_configuration "can not build a shared library"
3593 build_old_libs=no
3594 break
3595 ;;
11783596 -all-static | -static | -static-libtool-libs)
11793597 case $arg in
11803598 -all-static)
11813599 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1182 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
3600 func_warning "complete static linking is impossible in this configuration"
11833601 fi
11843602 if test -n "$link_static_flag"; then
11853603 dlopen_self=$dlopen_self_static
12133631 while test "$#" -gt 0; do
12143632 arg="$1"
12153633 shift
1216 case $arg in
1217 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1218 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1219 ;;
1220 *) qarg=$arg ;;
1221 esac
1222 libtool_args="$libtool_args $qarg"
3634 func_quote_for_eval "$arg"
3635 qarg=$func_quote_for_eval_unquoted_result
3636 func_append libtool_args " $func_quote_for_eval_result"
12233637
12243638 # If the previous option needs an argument, assign it.
12253639 if test -n "$prev"; then
12263640 case $prev in
12273641 output)
1228 compile_command="$compile_command @OUTPUT@"
1229 finalize_command="$finalize_command @OUTPUT@"
3642 func_append compile_command " @OUTPUT@"
3643 func_append finalize_command " @OUTPUT@"
12303644 ;;
12313645 esac
12323646
12343648 dlfiles|dlprefiles)
12353649 if test "$preload" = no; then
12363650 # Add the symbol object into the linking commands.
1237 compile_command="$compile_command @SYMFILE@"
1238 finalize_command="$finalize_command @SYMFILE@"
3651 func_append compile_command " @SYMFILE@"
3652 func_append finalize_command " @SYMFILE@"
12393653 preload=yes
12403654 fi
12413655 case $arg in
12733687 ;;
12743688 expsyms)
12753689 export_symbols="$arg"
1276 if test ! -f "$arg"; then
1277 $echo "$modename: symbol file \`$arg' does not exist"
1278 exit $EXIT_FAILURE
1279 fi
3690 test -f "$arg" \
3691 || func_fatal_error "symbol file \`$arg' does not exist"
12803692 prev=
12813693 continue
12823694 ;;
12853697 prev=
12863698 continue
12873699 ;;
3700 framework)
3701 case $host in
3702 *-*-darwin*)
3703 case "$deplibs " in
3704 *" $qarg.ltframework "*) ;;
3705 *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
3706 ;;
3707 esac
3708 ;;
3709 esac
3710 prev=
3711 continue
3712 ;;
12883713 inst_prefix)
12893714 inst_prefix_dir="$arg"
3715 prev=
3716 continue
3717 ;;
3718 objectlist)
3719 if test -f "$arg"; then
3720 save_arg=$arg
3721 moreargs=
3722 for fil in `cat "$save_arg"`
3723 do
3724 # moreargs="$moreargs $fil"
3725 arg=$fil
3726 # A libtool-controlled object.
3727
3728 # Check to see that this really is a libtool object.
3729 if func_lalib_unsafe_p "$arg"; then
3730 pic_object=
3731 non_pic_object=
3732
3733 # Read the .lo file
3734 func_source "$arg"
3735
3736 if test -z "$pic_object" ||
3737 test -z "$non_pic_object" ||
3738 test "$pic_object" = none &&
3739 test "$non_pic_object" = none; then
3740 func_fatal_error "cannot find name of object for \`$arg'"
3741 fi
3742
3743 # Extract subdirectory from the argument.
3744 func_dirname "$arg" "/" ""
3745 xdir="$func_dirname_result"
3746
3747 if test "$pic_object" != none; then
3748 # Prepend the subdirectory the object is found in.
3749 pic_object="$xdir$pic_object"
3750
3751 if test "$prev" = dlfiles; then
3752 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
3753 dlfiles="$dlfiles $pic_object"
3754 prev=
3755 continue
3756 else
3757 # If libtool objects are unsupported, then we need to preload.
3758 prev=dlprefiles
3759 fi
3760 fi
3761
3762 # CHECK ME: I think I busted this. -Ossama
3763 if test "$prev" = dlprefiles; then
3764 # Preload the old-style object.
3765 dlprefiles="$dlprefiles $pic_object"
3766 prev=
3767 fi
3768
3769 # A PIC object.
3770 func_append libobjs " $pic_object"
3771 arg="$pic_object"
3772 fi
3773
3774 # Non-PIC object.
3775 if test "$non_pic_object" != none; then
3776 # Prepend the subdirectory the object is found in.
3777 non_pic_object="$xdir$non_pic_object"
3778
3779 # A standard non-PIC object
3780 func_append non_pic_objects " $non_pic_object"
3781 if test -z "$pic_object" || test "$pic_object" = none ; then
3782 arg="$non_pic_object"
3783 fi
3784 else
3785 # If the PIC object exists, use it instead.
3786 # $xdir was prepended to $pic_object above.
3787 non_pic_object="$pic_object"
3788 func_append non_pic_objects " $non_pic_object"
3789 fi
3790 else
3791 # Only an error if not doing a dry-run.
3792 if $opt_dry_run; then
3793 # Extract subdirectory from the argument.
3794 func_dirname "$arg" "/" ""
3795 xdir="$func_dirname_result"
3796
3797 func_lo2o "$arg"
3798 pic_object=$xdir$objdir/$func_lo2o_result
3799 non_pic_object=$xdir$func_lo2o_result
3800 func_append libobjs " $pic_object"
3801 func_append non_pic_objects " $non_pic_object"
3802 else
3803 func_fatal_error "\`$arg' is not a valid libtool object"
3804 fi
3805 fi
3806 done
3807 else
3808 func_fatal_error "link input file \`$arg' does not exist"
3809 fi
3810 arg=$save_arg
12903811 prev=
12913812 continue
12923813 ;;
13003821 prev=
13013822 continue
13023823 ;;
1303 objectlist)
1304 if test -f "$arg"; then
1305 save_arg=$arg
1306 moreargs=
1307 for fil in `cat $save_arg`
1308 do
1309 # moreargs="$moreargs $fil"
1310 arg=$fil
1311 # A libtool-controlled object.
1312
1313 # Check to see that this really is a libtool object.
1314 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1315 pic_object=
1316 non_pic_object=
1317
1318 # Read the .lo file
1319 # If there is no directory component, then add one.
1320 case $arg in
1321 */* | *\\*) . $arg ;;
1322 *) . ./$arg ;;
1323 esac
1324
1325 if test -z "$pic_object" || \
1326 test -z "$non_pic_object" ||
1327 test "$pic_object" = none && \
1328 test "$non_pic_object" = none; then
1329 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1330 exit $EXIT_FAILURE
1331 fi
1332
1333 # Extract subdirectory from the argument.
1334 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1335 if test "X$xdir" = "X$arg"; then
1336 xdir=
1337 else
1338 xdir="$xdir/"
1339 fi
1340
1341 if test "$pic_object" != none; then
1342 # Prepend the subdirectory the object is found in.
1343 pic_object="$xdir$pic_object"
1344
1345 if test "$prev" = dlfiles; then
1346 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1347 dlfiles="$dlfiles $pic_object"
1348 prev=
1349 continue
1350 else
1351 # If libtool objects are unsupported, then we need to preload.
1352 prev=dlprefiles
1353 fi
1354 fi
1355
1356 # CHECK ME: I think I busted this. -Ossama
1357 if test "$prev" = dlprefiles; then
1358 # Preload the old-style object.
1359 dlprefiles="$dlprefiles $pic_object"
1360 prev=
1361 fi
1362
1363 # A PIC object.
1364 libobjs="$libobjs $pic_object"
1365 arg="$pic_object"
1366 fi
1367
1368 # Non-PIC object.
1369 if test "$non_pic_object" != none; then
1370 # Prepend the subdirectory the object is found in.
1371 non_pic_object="$xdir$non_pic_object"
1372
1373 # A standard non-PIC object
1374 non_pic_objects="$non_pic_objects $non_pic_object"
1375 if test -z "$pic_object" || test "$pic_object" = none ; then
1376 arg="$non_pic_object"
1377 fi
1378 else
1379 # If the PIC object exists, use it instead.
1380 # $xdir was prepended to $pic_object above.
1381 non_pic_object="$pic_object"
1382 non_pic_objects="$non_pic_objects $non_pic_object"
1383 fi
1384 else
1385 # Only an error if not doing a dry-run.
1386 if test -z "$run"; then
1387 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1388 exit $EXIT_FAILURE
1389 else
1390 # Dry-run case.
1391
1392 # Extract subdirectory from the argument.
1393 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1394 if test "X$xdir" = "X$arg"; then
1395 xdir=
1396 else
1397 xdir="$xdir/"
1398 fi
1399
1400 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1401 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1402 libobjs="$libobjs $pic_object"
1403 non_pic_objects="$non_pic_objects $non_pic_object"
1404 fi
1405 fi
1406 done
1407 else
1408 $echo "$modename: link input file \`$save_arg' does not exist"
1409 exit $EXIT_FAILURE
1410 fi
1411 arg=$save_arg
1412 prev=
1413 continue
1414 ;;
14153824 rpath | xrpath)
14163825 # We need an absolute path.
14173826 case $arg in
14183827 [\\/]* | [A-Za-z]:[\\/]*) ;;
14193828 *)
1420 $echo "$modename: only absolute run-paths are allowed" 1>&2
1421 exit $EXIT_FAILURE
3829 func_fatal_error "only absolute run-paths are allowed"
14223830 ;;
14233831 esac
14243832 if test "$prev" = rpath; then
14353843 prev=
14363844 continue
14373845 ;;
3846 shrext)
3847 shrext_cmds="$arg"
3848 prev=
3849 continue
3850 ;;
3851 weak)
3852 weak_libs="$weak_libs $arg"
3853 prev=
3854 continue
3855 ;;
3856 xcclinker)
3857 linker_flags="$linker_flags $qarg"
3858 compiler_flags="$compiler_flags $qarg"
3859 prev=
3860 func_append compile_command " $qarg"
3861 func_append finalize_command " $qarg"
3862 continue
3863 ;;
14383864 xcompiler)
14393865 compiler_flags="$compiler_flags $qarg"
14403866 prev=
1441 compile_command="$compile_command $qarg"
1442 finalize_command="$finalize_command $qarg"
3867 func_append compile_command " $qarg"
3868 func_append finalize_command " $qarg"
14433869 continue
14443870 ;;
14453871 xlinker)
14463872 linker_flags="$linker_flags $qarg"
14473873 compiler_flags="$compiler_flags $wl$qarg"
14483874 prev=
1449 compile_command="$compile_command $wl$qarg"
1450 finalize_command="$finalize_command $wl$qarg"
1451 continue
1452 ;;
1453 xcclinker)
1454 linker_flags="$linker_flags $qarg"
1455 compiler_flags="$compiler_flags $qarg"
1456 prev=
1457 compile_command="$compile_command $qarg"
1458 finalize_command="$finalize_command $qarg"
1459 continue
1460 ;;
1461 shrext)
1462 shrext_cmds="$arg"
1463 prev=
1464 continue
1465 ;;
1466 darwin_framework|darwin_framework_skip)
1467 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1468 compile_command="$compile_command $arg"
1469 finalize_command="$finalize_command $arg"
1470 prev=
3875 func_append compile_command " $wl$qarg"
3876 func_append finalize_command " $wl$qarg"
14713877 continue
14723878 ;;
14733879 *)
14833889 case $arg in
14843890 -all-static)
14853891 if test -n "$link_static_flag"; then
1486 compile_command="$compile_command $link_static_flag"
1487 finalize_command="$finalize_command $link_static_flag"
3892 # See comment for -static flag below, for more details.
3893 func_append compile_command " $link_static_flag"
3894 func_append finalize_command " $link_static_flag"
14883895 fi
14893896 continue
14903897 ;;
14913898
14923899 -allow-undefined)
14933900 # FIXME: remove this flag sometime in the future.
1494 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1495 continue
3901 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
14963902 ;;
14973903
14983904 -avoid-version)
15173923
15183924 -export-symbols | -export-symbols-regex)
15193925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1520 $echo "$modename: more than one -exported-symbols argument is not allowed"
1521 exit $EXIT_FAILURE
3926 func_fatal_error "more than one -exported-symbols argument is not allowed"
15223927 fi
15233928 if test "X$arg" = "X-export-symbols"; then
15243929 prev=expsyms
15283933 continue
15293934 ;;
15303935
1531 -framework|-arch|-isysroot)
1532 case " $CC " in
1533 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1534 prev=darwin_framework_skip ;;
1535 *) compiler_flags="$compiler_flags $arg"
1536 prev=darwin_framework ;;
1537 esac
1538 compile_command="$compile_command $arg"
1539 finalize_command="$finalize_command $arg"
3936 -framework)
3937 prev=framework
15403938 continue
15413939 ;;
15423940
15503948 -L[A-Z][A-Z]*:*)
15513949 case $with_gcc/$host in
15523950 no/*-*-irix* | /*-*-irix*)
1553 compile_command="$compile_command $arg"
1554 finalize_command="$finalize_command $arg"
3951 func_append compile_command " $arg"
3952 func_append finalize_command " $arg"
15553953 ;;
15563954 esac
15573955 continue
15583956 ;;
15593957
15603958 -L*)
1561 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
3959 func_stripname '-L' '' "$arg"
3960 dir=$func_stripname_result
15623961 # We need an absolute path.
15633962 case $dir in
15643963 [\\/]* | [A-Za-z]:[\\/]*) ;;
15653964 *)
15663965 absdir=`cd "$dir" && pwd`
1567 if test -z "$absdir"; then
1568 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1569 absdir="$dir"
1570 notinst_path="$notinst_path $dir"
1571 fi
3966 test -z "$absdir" && \
3967 func_fatal_error "cannot determine absolute directory name of \`$dir'"
15723968 dir="$absdir"
15733969 ;;
15743970 esac
15813977 esac
15823978 case $host in
15833979 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1584 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
3980 testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
15853981 case :$dllsearchpath: in
15863982 *":$dir:"*) ;;
15873983 *) dllsearchpath="$dllsearchpath:$dir";;
16124008 ;;
16134009 *-*-rhapsody* | *-*-darwin1.[012])
16144010 # Rhapsody C and math libraries are in the System framework
1615 deplibs="$deplibs -framework System"
4011 deplibs="$deplibs System.ltframework"
16164012 continue
16174013 ;;
16184014 *-*-sco3.2v5* | *-*-sco5v6*)
16364032 continue
16374033 ;;
16384034
1639 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1640 # classes, name mangling, and exception handling.
1641 -model)
1642 compile_command="$compile_command $arg"
1643 compiler_flags="$compiler_flags $arg"
1644 finalize_command="$finalize_command $arg"
1645 prev=xcompiler
1646 continue
1647 ;;
1648
1649 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
1650 compiler_flags="$compiler_flags $arg"
1651 compile_command="$compile_command $arg"
1652 finalize_command="$finalize_command $arg"
1653 continue
1654 ;;
1655
1656 -multi_module)
1657 single_module="${wl}-multi_module"
1658 continue
1659 ;;
1660
16614035 -module)
16624036 module=yes
16634037 continue
16644038 ;;
16654039
1666 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1667 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1668 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1669 # +DA*, +DD* enable 64-bit mode on the HP compiler
1670 # -q* pass through compiler args for the IBM compiler
1671 # -m* pass through architecture-specific compiler args for GCC
1672 # -m*, -t[45]*, -txscale* pass through architecture-specific
1673 # compiler args for GCC
1674 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
1675 # -F/path gives path to uninstalled frameworks, gcc on darwin
1676 # @file GCC response files
1677 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
1678 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
1679
1680 # Unknown arguments in both finalize_command and compile_command need
1681 # to be aesthetically quoted because they are evaled later.
1682 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1683 case $arg in
1684 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1685 arg="\"$arg\""
1686 ;;
4040 # Tru64 UNIX uses -model [arg] to determine the layout of C++
4041 # classes, name mangling, and exception handling.
4042 # Darwin uses the -arch flag to determine output architecture.
4043 -model|-arch|-isysroot)
4044 compiler_flags="$compiler_flags $arg"
4045 func_append compile_command " $arg"
4046 func_append finalize_command " $arg"
4047 prev=xcompiler
4048 continue
4049 ;;
4050
4051 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
4052 compiler_flags="$compiler_flags $arg"
4053 func_append compile_command " $arg"
4054 func_append finalize_command " $arg"
4055 case "$new_inherited_linker_flags " in
4056 *" $arg "*) ;;
4057 * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
16874058 esac
1688 compile_command="$compile_command $arg"
1689 finalize_command="$finalize_command $arg"
1690 compiler_flags="$compiler_flags $arg"
1691 continue
1692 ;;
1693
1694 -shrext)
1695 prev=shrext
4059 continue
4060 ;;
4061
4062 -multi_module)
4063 single_module="${wl}-multi_module"
16964064 continue
16974065 ;;
16984066
17064074 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin*)
17074075 # The PATH hackery in wrapper scripts is required on Windows
17084076 # and Darwin in order for the loader to find any dlls it needs.
1709 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1710 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
4077 func_warning "\`-no-install' is ignored for $host"
4078 func_warning "assuming \`-no-fast-install' instead"
17114079 fast_install=no
17124080 ;;
17134081 *) no_install=yes ;;
17484116 ;;
17494117
17504118 -R*)
1751 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
4119 func_stripname '-R' '' "$arg"
4120 dir=$func_stripname_result
17524121 # We need an absolute path.
17534122 case $dir in
17544123 [\\/]* | [A-Za-z]:[\\/]*) ;;
17554124 *)
1756 $echo "$modename: only absolute run-paths are allowed" 1>&2
1757 exit $EXIT_FAILURE
4125 func_fatal_error "only absolute run-paths are allowed"
17584126 ;;
17594127 esac
17604128 case "$xrpath " in
17644132 continue
17654133 ;;
17664134
4135 -shared)
4136 # The effects of -shared are defined in a previous loop.
4137 continue
4138 ;;
4139
4140 -shrext)
4141 prev=shrext
4142 continue
4143 ;;
4144
17674145 -static | -static-libtool-libs)
17684146 # The effects of -static are defined in a previous loop.
17694147 # We used to do the same as -all-static on platforms that
17824160 prev=vinfo
17834161 continue
17844162 ;;
4163
17854164 -version-number)
17864165 prev=vinfo
17874166 vinfo_number=yes
17884167 continue
17894168 ;;
17904169
4170 -weak)
4171 prev=weak
4172 continue
4173 ;;
4174
17914175 -Wc,*)
1792 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
4176 func_stripname '-Wc,' '' "$arg"
4177 args=$func_stripname_result
17934178 arg=
17944179 save_ifs="$IFS"; IFS=','
17954180 for flag in $args; do
17964181 IFS="$save_ifs"
1797 case $flag in
1798 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1799 flag="\"$flag\""
1800 ;;
1801 esac
1802 arg="$arg $wl$flag"
1803 compiler_flags="$compiler_flags $flag"
4182 func_quote_for_eval "$flag"
4183 arg="$arg $wl$func_quote_for_eval_result"
4184 compiler_flags="$compiler_flags $func_quote_for_eval_result"
18044185 done
18054186 IFS="$save_ifs"
1806 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4187 func_stripname ' ' '' "$arg"
4188 arg=$func_stripname_result
18074189 ;;
18084190
18094191 -Wl,*)
1810 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
4192 func_stripname '-Wl,' '' "$arg"
4193 args=$func_stripname_result
18114194 arg=
18124195 save_ifs="$IFS"; IFS=','
18134196 for flag in $args; do
18144197 IFS="$save_ifs"
1815 case $flag in
1816 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1817 flag="\"$flag\""
1818 ;;
1819 esac
1820 arg="$arg $wl$flag"
1821 compiler_flags="$compiler_flags $wl$flag"
1822 linker_flags="$linker_flags $flag"
4198 func_quote_for_eval "$flag"
4199 arg="$arg $wl$func_quote_for_eval_result"
4200 compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
4201 linker_flags="$linker_flags $func_quote_for_eval_result"
18234202 done
18244203 IFS="$save_ifs"
1825 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
4204 func_stripname ' ' '' "$arg"
4205 arg=$func_stripname_result
18264206 ;;
18274207
18284208 -Xcompiler)
18404220 continue
18414221 ;;
18424222
4223 # -msg_* for osf cc
4224 -msg_*)
4225 func_quote_for_eval "$arg"
4226 arg="$func_quote_for_eval_result"
4227 ;;
4228
4229 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
4230 # -r[0-9][0-9]* specifies the processor on the SGI compiler
4231 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
4232 # +DA*, +DD* enable 64-bit mode on the HP compiler
4233 # -q* pass through compiler args for the IBM compiler
4234 # -m*, -t[45]*, -txscale* pass through architecture-specific
4235 # compiler args for GCC
4236 # -F/path gives path to uninstalled frameworks, gcc on darwin
4237 # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
4238 # @file GCC response files
4239 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
4240 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*)
4241 func_quote_for_eval "$arg"
4242 arg="$func_quote_for_eval_result"
4243 func_append compile_command " $arg"
4244 func_append finalize_command " $arg"
4245 compiler_flags="$compiler_flags $arg"
4246 continue
4247 ;;
4248
18434249 # Some other compiler flag.
18444250 -* | +*)
1845 # Unknown arguments in both finalize_command and compile_command need
1846 # to be aesthetically quoted because they are evaled later.
1847 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1848 case $arg in
1849 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1850 arg="\"$arg\""
1851 ;;
1852 esac
4251 func_quote_for_eval "$arg"
4252 arg="$func_quote_for_eval_result"
18534253 ;;
18544254
18554255 *.$objext)
18614261 # A libtool-controlled object.
18624262
18634263 # Check to see that this really is a libtool object.
1864 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4264 if func_lalib_unsafe_p "$arg"; then
18654265 pic_object=
18664266 non_pic_object=
18674267
18684268 # Read the .lo file
1869 # If there is no directory component, then add one.
1870 case $arg in
1871 */* | *\\*) . $arg ;;
1872 *) . ./$arg ;;
1873 esac
1874
1875 if test -z "$pic_object" || \
4269 func_source "$arg"
4270
4271 if test -z "$pic_object" ||
18764272 test -z "$non_pic_object" ||
1877 test "$pic_object" = none && \
4273 test "$pic_object" = none &&
18784274 test "$non_pic_object" = none; then
1879 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1880 exit $EXIT_FAILURE
4275 func_fatal_error "cannot find name of object for \`$arg'"
18814276 fi
18824277
18834278 # Extract subdirectory from the argument.
1884 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1885 if test "X$xdir" = "X$arg"; then
1886 xdir=
1887 else
1888 xdir="$xdir/"
1889 fi
4279 func_dirname "$arg" "/" ""
4280 xdir="$func_dirname_result"
18904281
18914282 if test "$pic_object" != none; then
18924283 # Prepend the subdirectory the object is found in.
19114302 fi
19124303
19134304 # A PIC object.
1914 libobjs="$libobjs $pic_object"
4305 func_append libobjs " $pic_object"
19154306 arg="$pic_object"
19164307 fi
19174308
19214312 non_pic_object="$xdir$non_pic_object"
19224313
19234314 # A standard non-PIC object
1924 non_pic_objects="$non_pic_objects $non_pic_object"
4315 func_append non_pic_objects " $non_pic_object"
19254316 if test -z "$pic_object" || test "$pic_object" = none ; then
19264317 arg="$non_pic_object"
19274318 fi
19294320 # If the PIC object exists, use it instead.
19304321 # $xdir was prepended to $pic_object above.
19314322 non_pic_object="$pic_object"
1932 non_pic_objects="$non_pic_objects $non_pic_object"
4323 func_append non_pic_objects " $non_pic_object"
19334324 fi
19344325 else
19354326 # Only an error if not doing a dry-run.
1936 if test -z "$run"; then
1937 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1938 exit $EXIT_FAILURE
4327 if $opt_dry_run; then
4328 # Extract subdirectory from the argument.
4329 func_dirname "$arg" "/" ""
4330 xdir="$func_dirname_result"
4331
4332 func_lo2o "$arg"
4333 pic_object=$xdir$objdir/$func_lo2o_result
4334 non_pic_object=$xdir$func_lo2o_result
4335 func_append libobjs " $pic_object"
4336 func_append non_pic_objects " $non_pic_object"
19394337 else
1940 # Dry-run case.
1941
1942 # Extract subdirectory from the argument.
1943 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1944 if test "X$xdir" = "X$arg"; then
1945 xdir=
1946 else
1947 xdir="$xdir/"
1948 fi
1949
1950 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1951 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1952 libobjs="$libobjs $pic_object"
1953 non_pic_objects="$non_pic_objects $non_pic_object"
4338 func_fatal_error "\`$arg' is not a valid libtool object"
19544339 fi
19554340 fi
19564341 ;;
19834368 *)
19844369 # Unknown arguments in both finalize_command and compile_command need
19854370 # to be aesthetically quoted because they are evaled later.
1986 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1987 case $arg in
1988 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1989 arg="\"$arg\""
1990 ;;
1991 esac
4371 func_quote_for_eval "$arg"
4372 arg="$func_quote_for_eval_result"
19924373 ;;
19934374 esac # arg
19944375
19954376 # Now actually substitute the argument into the commands.
19964377 if test -n "$arg"; then
1997 compile_command="$compile_command $arg"
1998 finalize_command="$finalize_command $arg"
4378 func_append compile_command " $arg"
4379 func_append finalize_command " $arg"
19994380 fi
20004381 done # argument parsing loop
20014382
2002 if test -n "$prev"; then
2003 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
2004 $echo "$help" 1>&2
2005 exit $EXIT_FAILURE
2006 fi
4383 test -n "$prev" && \
4384 func_fatal_help "the \`$prevarg' option requires an argument"
20074385
20084386 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
20094387 eval arg=\"$export_dynamic_flag_spec\"
2010 compile_command="$compile_command $arg"
2011 finalize_command="$finalize_command $arg"
4388 func_append compile_command " $arg"
4389 func_append finalize_command " $arg"
20124390 fi
20134391
20144392 oldlibs=
20154393 # calculate the name of the file, without its directory
2016 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
4394 func_basename "$output"
4395 outputname="$func_basename_result"
20174396 libobjs_save="$libobjs"
20184397
20194398 if test -n "$shlibpath_var"; then
20204399 # get the directories listed in $shlibpath_var
2021 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
4400 eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
20224401 else
20234402 shlib_search_path=
20244403 fi
20254404 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
20264405 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
20274406
2028 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
2029 if test "X$output_objdir" = "X$output"; then
2030 output_objdir="$objdir"
2031 else
2032 output_objdir="$output_objdir/$objdir"
2033 fi
4407 func_dirname "$output" "/" ""
4408 output_objdir="$func_dirname_result$objdir"
20344409 # Create the object directory.
2035 if test ! -d "$output_objdir"; then
2036 $show "$mkdir $output_objdir"
2037 $run $mkdir $output_objdir
2038 exit_status=$?
2039 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
2040 exit $exit_status
2041 fi
2042 fi
4410 func_mkdir_p "$output_objdir"
20434411
20444412 # Determine the type of output
20454413 case $output in
20464414 "")
2047 $echo "$modename: you must specify an output file" 1>&2
2048 $echo "$help" 1>&2
2049 exit $EXIT_FAILURE
4415 func_fatal_help "you must specify an output file"
20504416 ;;
20514417 *.$libext) linkmode=oldlib ;;
20524418 *.lo | *.$objext) linkmode=obj ;;
20544420 *) linkmode=prog ;; # Anything else should be a program.
20554421 esac
20564422
2057 case $host in
2058 *cygwin* | *mingw* | *pw32*)
2059 # don't eliminate duplications in $postdeps and $predeps
2060 duplicate_compiler_generated_deps=yes
2061 ;;
2062 *)
2063 duplicate_compiler_generated_deps=$duplicate_deps
2064 ;;
2065 esac
20664423 specialdeplibs=
20674424
20684425 libs=
20694426 # Find all interdependent deplibs by searching for libraries
20704427 # that are linked more than once (e.g. -la -lb -la)
20714428 for deplib in $deplibs; do
2072 if test "X$duplicate_deps" = "Xyes" ; then
4429 if $opt_duplicate_deps ; then
20734430 case "$libs " in
20744431 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
20754432 esac
20844441 # $postdeps and mark them as special (i.e., whose duplicates are
20854442 # not to be eliminated).
20864443 pre_post_deps=
2087 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
4444 if $opt_duplicate_compiler_generated_deps; then
20884445 for pre_post_dep in $predeps $postdeps; do
20894446 case "$pre_post_deps " in
20904447 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
21004457 newlib_search_path=
21014458 need_relink=no # whether we're linking any uninstalled libtool libraries
21024459 notinst_deplibs= # not-installed libtool libraries
4460 notinst_path= # paths that contain not-installed libtool libraries
4461
21034462 case $linkmode in
21044463 lib)
2105 passes="conv link"
4464 passes="conv dlpreopen link"
21064465 for file in $dlfiles $dlprefiles; do
21074466 case $file in
21084467 *.la) ;;
21094468 *)
2110 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2111 exit $EXIT_FAILURE
4469 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
21124470 ;;
21134471 esac
21144472 done
21244482 *) passes="conv"
21254483 ;;
21264484 esac
4485
21274486 for pass in $passes; do
4487 # The preopen pass in lib mode reverses $deplibs; put it back here
4488 # so that -L comes before libs that need it for instance...
4489 if test "$linkmode,$pass" = "lib,link"; then
4490 ## FIXME: Find the place where the list is rebuilt in the wrong
4491 ## order, and fix it there properly
4492 tmp_deplibs=
4493 for deplib in $deplibs; do
4494 tmp_deplibs="$deplib $tmp_deplibs"
4495 done
4496 deplibs="$tmp_deplibs"
4497 fi
4498
21284499 if test "$linkmode,$pass" = "lib,link" ||
21294500 test "$linkmode,$pass" = "prog,scan"; then
21304501 libs="$deplibs"
21404511 ;;
21414512 esac
21424513 fi
4514 if test "$linkmode,$pass" = "lib,dlpreopen"; then
4515 # Collect and forward deplibs of preopened libtool libs
4516 for lib in $dlprefiles; do
4517 # Ignore non-libtool-libs
4518 dependency_libs=
4519 case $lib in
4520 *.la) func_source "$lib" ;;
4521 esac
4522
4523 # Collect preopened libtool deplibs, except any this library
4524 # has declared as weak libs
4525 for deplib in $dependency_libs; do
4526 deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
4527 case " $weak_libs " in
4528 *" $deplib_base "*) ;;
4529 *) deplibs="$deplibs $deplib" ;;
4530 esac
4531 done
4532 done
4533 libs="$dlprefiles"
4534 fi
21434535 if test "$pass" = dlopen; then
21444536 # Collect dlpreopened libraries
21454537 save_deplibs="$deplibs"
21464538 deplibs=
21474539 fi
4540
21484541 for deplib in $libs; do
21494542 lib=
21504543 found=no
21554548 finalize_deplibs="$deplib $finalize_deplibs"
21564549 else
21574550 compiler_flags="$compiler_flags $deplib"
4551 if test "$linkmode" = lib ; then
4552 case "$new_inherited_linker_flags " in
4553 *" $deplib "*) ;;
4554 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
4555 esac
4556 fi
21584557 fi
21594558 continue
21604559 ;;
21614560 -l*)
21624561 if test "$linkmode" != lib && test "$linkmode" != prog; then
2163 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
4562 func_warning "\`-l' is ignored for archives/objects"
21644563 continue
21654564 fi
2166 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
4565 func_stripname '-l' '' "$deplib"
4566 name=$func_stripname_result
21674567 if test "$linkmode" = lib; then
21684568 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
21694569 else
21994599 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
22004600 case " $predeps $postdeps " in
22014601 *" $deplib "*)
2202 if (${SED} -e '2q' $lib |
2203 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
4602 if func_lalib_p "$lib"; then
22044603 library_names=
22054604 old_library=
2206 case $lib in
2207 */* | *\\*) . $lib ;;
2208 *) . ./$lib ;;
2209 esac
4605 func_source "$lib"
22104606 for l in $old_library $library_names; do
22114607 ll="$l"
22124608 done
22134609 if test "X$ll" = "X$old_library" ; then # only static version available
22144610 found=no
2215 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2216 test "X$ladir" = "X$lib" && ladir="."
4611 func_dirname "$lib" "" "."
4612 ladir="$func_dirname_result"
22174613 lib=$ladir/$old_library
22184614 if test "$linkmode,$pass" = "prog,link"; then
22194615 compile_deplibs="$deplib $compile_deplibs"
22254621 continue
22264622 fi
22274623 fi
2228 ;;
4624 ;;
22294625 *) ;;
22304626 esac
22314627 fi
22324628 fi
22334629 ;; # -l
4630 *.ltframework)
4631 if test "$linkmode,$pass" = "prog,link"; then
4632 compile_deplibs="$deplib $compile_deplibs"
4633 finalize_deplibs="$deplib $finalize_deplibs"
4634 else
4635 deplibs="$deplib $deplibs"
4636 if test "$linkmode" = lib ; then
4637 case "$new_inherited_linker_flags " in
4638 *" $deplib "*) ;;
4639 * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
4640 esac
4641 fi
4642 fi
4643 continue
4644 ;;
22344645 -L*)
22354646 case $linkmode in
22364647 lib)
22374648 deplibs="$deplib $deplibs"
22384649 test "$pass" = conv && continue
22394650 newdependency_libs="$deplib $newdependency_libs"
2240 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
4651 func_stripname '-L' '' "$deplib"
4652 newlib_search_path="$newlib_search_path $func_stripname_result"
22414653 ;;
22424654 prog)
22434655 if test "$pass" = conv; then
22504662 compile_deplibs="$deplib $compile_deplibs"
22514663 finalize_deplibs="$deplib $finalize_deplibs"
22524664 fi
2253 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
4665 func_stripname '-L' '' "$deplib"
4666 newlib_search_path="$newlib_search_path $func_stripname_result"
22544667 ;;
22554668 *)
2256 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
4669 func_warning "\`-L' is ignored for archives/objects"
22574670 ;;
22584671 esac # linkmode
22594672 continue
22604673 ;; # -L
22614674 -R*)
22624675 if test "$pass" = link; then
2263 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
4676 func_stripname '-R' '' "$deplib"
4677 dir=$func_stripname_result
22644678 # Make sure the xrpath contains only unique directories.
22654679 case "$xrpath " in
22664680 *" $dir "*) ;;
22784692 fi
22794693 case $linkmode in
22804694 lib)
2281 valid_a_lib=no
2282 case $deplibs_check_method in
2283 match_pattern*)
2284 set dummy $deplibs_check_method
2285 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2286 if eval $echo \"$deplib\" 2>/dev/null \
2287 | $SED 10q \
4695 # Linking convenience modules into shared libraries is allowed,
4696 # but linking other static libraries is non-portable.
4697 case " $dlpreconveniencelibs " in
4698 *" $deplib "*) ;;
4699 *)
4700 valid_a_lib=no
4701 case $deplibs_check_method in
4702 match_pattern*)
4703 set dummy $deplibs_check_method; shift
4704 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
4705 if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
22884706 | $EGREP "$match_pattern_regex" > /dev/null; then
4707 valid_a_lib=yes
4708 fi
4709 ;;
4710 pass_all)
22894711 valid_a_lib=yes
2290 fi
22914712 ;;
2292 pass_all)
2293 valid_a_lib=yes
2294 ;;
2295 esac
2296 if test "$valid_a_lib" != yes; then
2297 $echo
2298 $echo "*** Warning: Trying to link with static lib archive $deplib."
2299 $echo "*** I have the capability to make that library automatically link in when"
2300 $echo "*** you link to this library. But I can only do this if you have a"
2301 $echo "*** shared version of the library, which you do not appear to have"
2302 $echo "*** because the file extensions .$libext of this argument makes me believe"
2303 $echo "*** that it is just a static archive that I should not used here."
2304 else
2305 $echo
2306 $echo "*** Warning: Linking the shared library $output against the"
2307 $echo "*** static library $deplib is not portable!"
2308 deplibs="$deplib $deplibs"
2309 fi
4713 esac
4714 if test "$valid_a_lib" != yes; then
4715 $ECHO
4716 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
4717 $ECHO "*** I have the capability to make that library automatically link in when"
4718 $ECHO "*** you link to this library. But I can only do this if you have a"
4719 $ECHO "*** shared version of the library, which you do not appear to have"
4720 $ECHO "*** because the file extensions .$libext of this argument makes me believe"
4721 $ECHO "*** that it is just a static archive that I should not use here."
4722 else
4723 $ECHO
4724 $ECHO "*** Warning: Linking the shared library $output against the"
4725 $ECHO "*** static library $deplib is not portable!"
4726 deplibs="$deplib $deplibs"
4727 fi
4728 ;;
4729 esac
23104730 continue
23114731 ;;
23124732 prog)
23414761 continue
23424762 ;;
23434763 esac # case $deplib
4764
23444765 if test "$found" = yes || test -f "$lib"; then :
23454766 else
2346 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2347 exit $EXIT_FAILURE
4767 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
23484768 fi
23494769
23504770 # Check to see that this really is a libtool archive.
2351 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2352 else
2353 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2354 exit $EXIT_FAILURE
2355 fi
2356
2357 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2358 test "X$ladir" = "X$lib" && ladir="."
4771 func_lalib_unsafe_p "$lib" \
4772 || func_fatal_error "\`$lib' is not a valid libtool archive"
4773
4774 func_dirname "$lib" "" "."
4775 ladir="$func_dirname_result"
23594776
23604777 dlname=
23614778 dlopen=
23634780 libdir=
23644781 library_names=
23654782 old_library=
4783 inherited_linker_flags=
23664784 # If the library was installed with an old release of libtool,
23674785 # it will not redefine variables installed, or shouldnotlink
23684786 installed=yes
23714789
23724790
23734791 # Read the .la file
2374 case $lib in
2375 */* | *\\*) . $lib ;;
2376 *) . ./$lib ;;
2377 esac
2378
4792 func_source "$lib"
4793
4794 # Convert "-framework foo" to "foo.ltframework"
4795 if test -n "$inherited_linker_flags"; then
4796 tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
4797 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
4798 case " $new_inherited_linker_flags " in
4799 *" $tmp_inherited_linker_flag "*) ;;
4800 *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
4801 esac
4802 done
4803 fi
4804 dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
23794805 if test "$linkmode,$pass" = "lib,link" ||
23804806 test "$linkmode,$pass" = "prog,scan" ||
23814807 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
23884814 deplibs="$lib $deplibs"
23894815 if test -z "$libdir"; then
23904816 if test -z "$old_library"; then
2391 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2392 exit $EXIT_FAILURE
4817 func_fatal_error "cannot find name of link library for \`$lib'"
23934818 fi
23944819 # It is a libtool convenience library, so add in its objects.
23954820 convenience="$convenience $ladir/$objdir/$old_library"
23964821 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2397 tmp_libs=
2398 for deplib in $dependency_libs; do
2399 deplibs="$deplib $deplibs"
2400 if test "X$duplicate_deps" = "Xyes" ; then
2401 case "$tmp_libs " in
2402 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2403 esac
2404 fi
2405 tmp_libs="$tmp_libs $deplib"
2406 done
24074822 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2408 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2409 exit $EXIT_FAILURE
2410 fi
4823 func_fatal_error "\`$lib' is not a convenience library"
4824 fi
4825 tmp_libs=
4826 for deplib in $dependency_libs; do
4827 deplibs="$deplib $deplibs"
4828 if $opt_duplicate_deps ; then
4829 case "$tmp_libs " in
4830 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
4831 esac
4832 fi
4833 tmp_libs="$tmp_libs $deplib"
4834 done
24114835 continue
24124836 fi # $pass = conv
24134837
24184842 linklib="$l"
24194843 done
24204844 if test -z "$linklib"; then
2421 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2422 exit $EXIT_FAILURE
4845 func_fatal_error "cannot find name of link library for \`$lib'"
24234846 fi
24244847
24254848 # This library was specified with -dlopen.
24264849 if test "$pass" = dlopen; then
24274850 if test -z "$libdir"; then
2428 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2429 exit $EXIT_FAILURE
4851 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
24304852 fi
24314853 if test -z "$dlname" ||
24324854 test "$dlopen_support" != yes ||
24484870 *)
24494871 abs_ladir=`cd "$ladir" && pwd`
24504872 if test -z "$abs_ladir"; then
2451 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2452 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
4873 func_warning "cannot determine absolute directory name of \`$ladir'"
4874 func_warning "passing it literally to the linker, although it might fail"
24534875 abs_ladir="$ladir"
24544876 fi
24554877 ;;
24564878 esac
2457 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
4879 func_basename "$lib"
4880 laname="$func_basename_result"
24584881
24594882 # Find the relevant object directory and library name.
24604883 if test "X$installed" = Xyes; then
24614884 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2462 $echo "$modename: warning: library \`$lib' was moved." 1>&2
4885 func_warning "library \`$lib' was moved."
24634886 dir="$ladir"
24644887 absdir="$abs_ladir"
24654888 libdir="$abs_ladir"
24814904 notinst_path="$notinst_path $abs_ladir"
24824905 fi
24834906 fi # $installed = yes
2484 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
4907 func_stripname 'lib' '.la' "$laname"
4908 name=$func_stripname_result
24854909
24864910 # This library was specified with -dlpreopen.
24874911 if test "$pass" = dlpreopen; then
2488 if test -z "$libdir"; then
2489 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2490 exit $EXIT_FAILURE
4912 if test -z "$libdir" && test "$linkmode" = prog; then
4913 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
24914914 fi
24924915 # Prefer using a static library (so that no silly _DYNAMIC symbols
24934916 # are required to link).
24944917 if test -n "$old_library"; then
24954918 newdlprefiles="$newdlprefiles $dir/$old_library"
4919 # Keep a list of preopened convenience libraries to check
4920 # that they are being used correctly in the link pass.
4921 test -z "$libdir" && \
4922 dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
24964923 # Otherwise, use the dlname, so that lt_dlopen finds it.
24974924 elif test -n "$dlname"; then
24984925 newdlprefiles="$newdlprefiles $dir/$dlname"
25284955 tmp_libs=
25294956 for deplib in $dependency_libs; do
25304957 case $deplib in
2531 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
4958 -L*) func_stripname '-L' '' "$deplib"
4959 newlib_search_path="$newlib_search_path $func_stripname_result"
4960 ;;
25324961 esac
25334962 # Need to link against all dependency_libs?
25344963 if test "$linkalldeplibs" = yes; then
25384967 # or/and link against static libraries
25394968 newdependency_libs="$deplib $newdependency_libs"
25404969 fi
2541 if test "X$duplicate_deps" = "Xyes" ; then
4970 if $opt_duplicate_deps ; then
25424971 case "$tmp_libs " in
25434972 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
25444973 esac
25514980 if test "$linkmode,$pass" = "prog,link"; then
25524981 if test -n "$library_names" &&
25534982 { { test "$prefer_static_libs" = no ||
2554 test "$prefer_static_libs,$installed" = "built,yes"; } ||
4983 test "$prefer_static_libs,$installed" = "built,yes"; } ||
25554984 test -z "$old_library"; }; then
25564985 # We need to hardcode the library path
25574986 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
25584987 # Make sure the rpath contains only unique directories.
2559 case "$temp_rpath " in
2560 *" $dir "*) ;;
2561 *" $absdir "*) ;;
2562 *) temp_rpath="$temp_rpath $absdir" ;;
4988 case "$temp_rpath:" in
4989 *"$absdir:"*) ;;
4990 *) temp_rpath="$temp_rpath$absdir:" ;;
25634991 esac
25644992 fi
25654993
25975025
25985026 link_static=no # Whether the deplib will be linked statically
25995027 use_static_libs=$prefer_static_libs
2600 if test "$use_static_libs" = built && test "$installed" = yes ; then
5028 if test "$use_static_libs" = built && test "$installed" = yes; then
26015029 use_static_libs=no
26025030 fi
26035031 if test -n "$library_names" &&
26045032 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2605 if test "$installed" = no; then
2606 notinst_deplibs="$notinst_deplibs $lib"
2607 need_relink=yes
2608 fi
5033 case $host in
5034 *cygwin* | *mingw*)
5035 # No point in relinking DLLs because paths are not encoded
5036 notinst_deplibs="$notinst_deplibs $lib"
5037 need_relink=no
5038 ;;
5039 *)
5040 if test "$installed" = no; then
5041 notinst_deplibs="$notinst_deplibs $lib"
5042 need_relink=yes
5043 fi
5044 ;;
5045 esac
26095046 # This is a shared library
26105047
2611 # Warn about portability, can't link against -module's on
2612 # some systems (darwin)
2613 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2614 $echo
5048 # Warn about portability, can't link against -module's on some
5049 # systems (darwin). Don't bleat about dlopened modules though!
5050 dlopenmodule=""
5051 for dlpremoduletest in $dlprefiles; do
5052 if test "X$dlpremoduletest" = "X$lib"; then
5053 dlopenmodule="$dlpremoduletest"
5054 break
5055 fi
5056 done
5057 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
5058 $ECHO
26155059 if test "$linkmode" = prog; then
2616 $echo "*** Warning: Linking the executable $output against the loadable module"
5060 $ECHO "*** Warning: Linking the executable $output against the loadable module"
26175061 else
2618 $echo "*** Warning: Linking the shared library $output against the loadable module"
5062 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
26195063 fi
2620 $echo "*** $linklib is not portable!"
5064 $ECHO "*** $linklib is not portable!"
26215065 fi
26225066 if test "$linkmode" = lib &&
26235067 test "$hardcode_into_libs" = yes; then
26475091 if test -n "$old_archive_from_expsyms_cmds"; then
26485092 # figure out the soname
26495093 set dummy $library_names
2650 realname="$2"
2651 shift; shift
2652 libname=`eval \\$echo \"$libname_spec\"`
5094 shift
5095 realname="$1"
5096 shift
5097 libname=`eval "\\$ECHO \"$libname_spec\""`
26535098 # use dlname if we got it. it's perfectly good, no?
26545099 if test -n "$dlname"; then
26555100 soname="$dlname"
26575102 # bleh windows
26585103 case $host in
26595104 *cygwin* | mingw*)
2660 major=`expr $current - $age`
5105 func_arith $current - $age
5106 major=$func_arith_result
26615107 versuffix="-$major"
26625108 ;;
26635109 esac
26685114
26695115 # Make a new name for the extract_expsyms_cmds to use
26705116 soroot="$soname"
2671 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2672 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
5117 func_basename "$soroot"
5118 soname="$func_basename_result"
5119 func_stripname 'lib' '.dll' "$soname"
5120 newlib=libimp-$func_stripname_result.a
26735121
26745122 # If the library has no export list, then create one now
26755123 if test -f "$output_objdir/$soname-def"; then :
26765124 else
2677 $show "extracting exported symbol list from \`$soname'"
2678 save_ifs="$IFS"; IFS='~'
2679 cmds=$extract_expsyms_cmds
2680 for cmd in $cmds; do
2681 IFS="$save_ifs"
2682 eval cmd=\"$cmd\"
2683 $show "$cmd"
2684 $run eval "$cmd" || exit $?
2685 done
2686 IFS="$save_ifs"
5125 func_verbose "extracting exported symbol list from \`$soname'"
5126 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
26875127 fi
26885128
26895129 # Create $newlib
26905130 if test -f "$output_objdir/$newlib"; then :; else
2691 $show "generating import library for \`$soname'"
2692 save_ifs="$IFS"; IFS='~'
2693 cmds=$old_archive_from_expsyms_cmds
2694 for cmd in $cmds; do
2695 IFS="$save_ifs"
2696 eval cmd=\"$cmd\"
2697 $show "$cmd"
2698 $run eval "$cmd" || exit $?
2699 done
2700 IFS="$save_ifs"
5131 func_verbose "generating import library for \`$soname'"
5132 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
27015133 fi
27025134 # make sure the library variables are pointing to the new library
27035135 dir=$output_objdir
27195151 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
27205152 *-*-unixware7*) add_dir="-L$dir" ;;
27215153 *-*-darwin* )
2722 # if the lib is a module then we can not link against
2723 # it, someone is ignoring the new warnings I added
5154 # if the lib is a (non-dlopened) module then we can not
5155 # link against it, someone is ignoring the earlier warnings
27245156 if /usr/bin/file -L $add 2> /dev/null |
2725 $EGREP ": [^:]* bundle" >/dev/null ; then
2726 $echo "** Warning, lib $linklib is a module, not a shared library"
2727 if test -z "$old_library" ; then
2728 $echo
2729 $echo "** And there doesn't seem to be a static archive available"
2730 $echo "** The link will probably fail, sorry"
2731 else
2732 add="$dir/$old_library"
5157 $GREP ": [^:]* bundle" >/dev/null ; then
5158 if test "X$dlopenmodule" != "X$lib"; then
5159 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
5160 if test -z "$old_library" ; then
5161 $ECHO
5162 $ECHO "*** And there doesn't seem to be a static archive available"
5163 $ECHO "*** The link will probably fail, sorry"
5164 else
5165 add="$dir/$old_library"
5166 fi
5167 elif test -n "$old_library"; then
5168 add="$dir/$old_library"
27335169 fi
27345170 fi
27355171 esac
27475183 fi
27485184 ;;
27495185 relink)
2750 if test "$hardcode_direct" = yes; then
5186 if test "$hardcode_direct" = yes &&
5187 test "$hardcode_direct_absolute" = no; then
27515188 add="$dir/$linklib"
27525189 elif test "$hardcode_minus_L" = yes; then
27535190 add_dir="-L$dir"
27715208 esac
27725209
27735210 if test "$lib_linked" != yes; then
2774 $echo "$modename: configuration error: unsupported hardcode properties"
2775 exit $EXIT_FAILURE
5211 func_fatal_configuration "unsupported hardcode properties"
27765212 fi
27775213
27785214 if test -n "$add_shlibpath"; then
27875223 else
27885224 test -n "$add_dir" && deplibs="$add_dir $deplibs"
27895225 test -n "$add" && deplibs="$add $deplibs"
2790 if test "$hardcode_direct" != yes && \
2791 test "$hardcode_minus_L" != yes && \
5226 if test "$hardcode_direct" != yes &&
5227 test "$hardcode_minus_L" != yes &&
27925228 test "$hardcode_shlibpath_var" = yes; then
27935229 case :$finalize_shlibpath: in
27945230 *":$libdir:"*) ;;
28035239 add_dir=
28045240 add=
28055241 # Finalize command for both is simple: just hardcode it.
2806 if test "$hardcode_direct" = yes; then
5242 if test "$hardcode_direct" = yes &&
5243 test "$hardcode_direct_absolute" = no; then
28075244 add="$libdir/$linklib"
28085245 elif test "$hardcode_minus_L" = yes; then
28095246 add_dir="-L$libdir"
28175254 elif test "$hardcode_automatic" = yes; then
28185255 if test -n "$inst_prefix_dir" &&
28195256 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2820 add="$inst_prefix_dir$libdir/$linklib"
5257 add="$inst_prefix_dir$libdir/$linklib"
28215258 else
2822 add="$libdir/$linklib"
5259 add="$libdir/$linklib"
28235260 fi
28245261 else
28255262 # We cannot seem to hardcode it, guess we'll fake it.
28635300
28645301 # Just print a warning and add the library to dependency_libs so
28655302 # that the program can be linked against the static library.
2866 $echo
2867 $echo "*** Warning: This system can not link to static lib archive $lib."
2868 $echo "*** I have the capability to make that library automatically link in when"
2869 $echo "*** you link to this library. But I can only do this if you have a"
2870 $echo "*** shared version of the library, which you do not appear to have."
5303 $ECHO
5304 $ECHO "*** Warning: This system can not link to static lib archive $lib."
5305 $ECHO "*** I have the capability to make that library automatically link in when"
5306 $ECHO "*** you link to this library. But I can only do this if you have a"
5307 $ECHO "*** shared version of the library, which you do not appear to have."
28715308 if test "$module" = yes; then
2872 $echo "*** But as you try to build a module library, libtool will still create "
2873 $echo "*** a static module, that should work as long as the dlopening application"
2874 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
5309 $ECHO "*** But as you try to build a module library, libtool will still create "
5310 $ECHO "*** a static module, that should work as long as the dlopening application"
5311 $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
28755312 if test -z "$global_symbol_pipe"; then
2876 $echo
2877 $echo "*** However, this would only work if libtool was able to extract symbol"
2878 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2879 $echo "*** not find such a program. So, this module is probably useless."
2880 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
5313 $ECHO
5314 $ECHO "*** However, this would only work if libtool was able to extract symbol"
5315 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
5316 $ECHO "*** not find such a program. So, this module is probably useless."
5317 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
28815318 fi
28825319 if test "$build_old_libs" = no; then
28835320 build_libtool_libs=module
29015338 temp_deplibs=
29025339 for libdir in $dependency_libs; do
29035340 case $libdir in
2904 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
5341 -R*) func_stripname '-R' '' "$libdir"
5342 temp_xrpath=$func_stripname_result
29055343 case " $xrpath " in
29065344 *" $temp_xrpath "*) ;;
29075345 *) xrpath="$xrpath $temp_xrpath";;
29195357 tmp_libs=
29205358 for deplib in $dependency_libs; do
29215359 newdependency_libs="$deplib $newdependency_libs"
2922 if test "X$duplicate_deps" = "Xyes" ; then
5360 if $opt_duplicate_deps ; then
29235361 case "$tmp_libs " in
29245362 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
29255363 esac
29335371 case $deplib in
29345372 -L*) path="$deplib" ;;
29355373 *.la)
2936 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2937 test "X$dir" = "X$deplib" && dir="."
5374 func_dirname "$deplib" "" "."
5375 dir="$func_dirname_result"
29385376 # We need an absolute path.
29395377 case $dir in
29405378 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
29415379 *)
29425380 absdir=`cd "$dir" && pwd`
29435381 if test -z "$absdir"; then
2944 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
5382 func_warning "cannot determine absolute directory name of \`$dir'"
29455383 absdir="$dir"
29465384 fi
29475385 ;;
29485386 esac
2949 if grep "^installed=no" $deplib > /dev/null; then
2950 path="$absdir/$objdir"
2951 else
2952 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2953 if test -z "$libdir"; then
2954 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2955 exit $EXIT_FAILURE
2956 fi
2957 if test "$absdir" != "$libdir"; then
2958 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2959 fi
2960 path="$absdir"
2961 fi
2962 depdepl=
5387 if $GREP "^installed=no" $deplib > /dev/null; then
29635388 case $host in
29645389 *-*-darwin*)
2965 # we do not want to link against static libs,
2966 # but need to link against shared
5390 depdepl=
29675391 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2968 eval deplibdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
29695392 if test -n "$deplibrary_names" ; then
29705393 for tmp in $deplibrary_names ; do
29715394 depdepl=$tmp
29725395 done
2973 if test -f "$deplibdir/$depdepl" ; then
2974 depdepl="$deplibdir/$depdepl"
2975 elif test -f "$path/$depdepl" ; then
2976 depdepl="$path/$depdepl"
2977 else
2978 # Can't find it, oh well...
2979 depdepl=
5396 if test -f "$absdir/$objdir/$depdepl" ; then
5397 depdepl="$absdir/$objdir/$depdepl"
5398 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5399 if test -z "$darwin_install_name"; then
5400 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
5401 fi
5402 compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
5403 linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
5404 path=
29805405 fi
2981 # do not add paths which are already there
2982 case " $newlib_search_path " in
2983 *" $path "*) ;;
2984 *) newlib_search_path="$newlib_search_path $path";;
2985 esac
29865406 fi
2987 path=""
29885407 ;;
29895408 *)
2990 path="-L$path"
5409 path="-L$absdir/$objdir"
29915410 ;;
29925411 esac
5412 else
5413 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5414 test -z "$libdir" && \
5415 func_fatal_error "\`$deplib' is not a valid libtool archive"
5416 test "$absdir" != "$libdir" && \
5417 func_warning "\`$deplib' seems to be moved"
5418
5419 path="-L$absdir"
5420 fi
29935421 ;;
2994 -l*)
2995 case $host in
2996 *-*-darwin*)
2997 # Again, we only want to link against shared libraries
2998 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2999 for tmp in $newlib_search_path ; do
3000 if test -f "$tmp/lib$tmp_libs.dylib" ; then
3001 eval depdepl="$tmp/lib$tmp_libs.dylib"
3002 break
3003 fi
3004 done
3005 path=""
3006 ;;
3007 *) continue ;;
3008 esac
3009 ;;
3010 *) continue ;;
30115422 esac
30125423 case " $deplibs " in
30135424 *" $path "*) ;;
30145425 *) deplibs="$path $deplibs" ;;
30155426 esac
3016 case " $deplibs " in
3017 *" $depdepl "*) ;;
3018 *) deplibs="$depdepl $deplibs" ;;
3019 esac
30205427 done
30215428 fi # link_all_deplibs != no
30225429 fi # linkmode = lib
30235430 done # for deplib in $libs
5431 if test "$pass" = link; then
5432 if test "$linkmode" = "prog"; then
5433 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
5434 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
5435 else
5436 compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
5437 fi
5438 fi
30245439 dependency_libs="$newdependency_libs"
30255440 if test "$pass" = dlpreopen; then
30265441 # Link the dlpreopened libraries before other libraries
31195534 done # for pass
31205535 if test "$linkmode" = prog; then
31215536 dlfiles="$newdlfiles"
5537 fi
5538 if test "$linkmode" = prog || test "$linkmode" = lib; then
31225539 dlprefiles="$newdlprefiles"
31235540 fi
31245541
31255542 case $linkmode in
31265543 oldlib)
5544 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
5545 func_warning "\`-dlopen' is ignored for archives"
5546 fi
5547
31275548 case " $deplibs" in
31285549 *\ -l* | *\ -L*)
3129 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 ;;
5550 func_warning "\`-l' and \`-L' are ignored for archives" ;;
31305551 esac
31315552
3132 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3133 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3134 fi
3135
3136 if test -n "$rpath"; then
3137 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3138 fi
3139
3140 if test -n "$xrpath"; then
3141 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3142 fi
3143
3144 if test -n "$vinfo"; then
3145 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3146 fi
3147
3148 if test -n "$release"; then
3149 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3150 fi
3151
3152 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3153 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3154 fi
5553 test -n "$rpath" && \
5554 func_warning "\`-rpath' is ignored for archives"
5555
5556 test -n "$xrpath" && \
5557 func_warning "\`-R' is ignored for archives"
5558
5559 test -n "$vinfo" && \
5560 func_warning "\`-version-info/-version-number' is ignored for archives"
5561
5562 test -n "$release" && \
5563 func_warning "\`-release' is ignored for archives"
5564
5565 test -n "$export_symbols$export_symbols_regex" && \
5566 func_warning "\`-export-symbols' is ignored for archives"
31555567
31565568 # Now set the variables for building old libraries.
31575569 build_libtool_libs=no
31635575 # Make sure we only generate libraries of the form `libNAME.la'.
31645576 case $outputname in
31655577 lib*)
3166 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
5578 func_stripname 'lib' '.la' "$outputname"
5579 name=$func_stripname_result
31675580 eval shared_ext=\"$shrext_cmds\"
31685581 eval libname=\"$libname_spec\"
31695582 ;;
31705583 *)
3171 if test "$module" = no; then
3172 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3173 $echo "$help" 1>&2
3174 exit $EXIT_FAILURE
3175 fi
5584 test "$module" = no && \
5585 func_fatal_help "libtool library \`$output' must begin with \`lib'"
5586
31765587 if test "$need_lib_prefix" != no; then
31775588 # Add the "lib" prefix for modules if required
3178 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
5589 func_stripname '' '.la' "$outputname"
5590 name=$func_stripname_result
31795591 eval shared_ext=\"$shrext_cmds\"
31805592 eval libname=\"$libname_spec\"
31815593 else
3182 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
5594 func_stripname '' '.la' "$outputname"
5595 libname=$func_stripname_result
31835596 fi
31845597 ;;
31855598 esac
31865599
31875600 if test -n "$objs"; then
31885601 if test "$deplibs_check_method" != pass_all; then
3189 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3190 exit $EXIT_FAILURE
5602 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
31915603 else
3192 $echo
3193 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3194 $echo "*** objects $objs is not portable!"
5604 $ECHO
5605 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
5606 $ECHO "*** objects $objs is not portable!"
31955607 libobjs="$libobjs $objs"
31965608 fi
31975609 fi
31985610
3199 if test "$dlself" != no; then
3200 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3201 fi
5611 test "$dlself" != no && \
5612 func_warning "\`-dlopen self' is ignored for libtool libraries"
32025613
32035614 set dummy $rpath
3204 if test "$#" -gt 2; then
3205 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3206 fi
3207 install_libdir="$2"
5615 shift
5616 test "$#" -gt 1 && \
5617 func_warning "ignoring multiple \`-rpath's for a libtool library"
5618
5619 install_libdir="$1"
32085620
32095621 oldlibs=
32105622 if test -z "$rpath"; then
32185630 build_old_libs=yes
32195631 fi
32205632
3221 if test -n "$vinfo"; then
3222 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3223 fi
3224
3225 if test -n "$release"; then
3226 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3227 fi
5633 test -n "$vinfo" && \
5634 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
5635
5636 test -n "$release" && \
5637 func_warning "\`-release' is ignored for convenience libraries"
32285638 else
32295639
32305640 # Parse the version information argument.
32315641 save_ifs="$IFS"; IFS=':'
32325642 set dummy $vinfo 0 0 0
5643 shift
32335644 IFS="$save_ifs"
32345645
3235 if test -n "$8"; then
3236 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3237 $echo "$help" 1>&2
3238 exit $EXIT_FAILURE
3239 fi
5646 test -n "$7" && \
5647 func_fatal_help "too many parameters to \`-version-info'"
32405648
32415649 # convert absolute version numbers to libtool ages
32425650 # this retains compatibility with .la files and attempts
32445652
32455653 case $vinfo_number in
32465654 yes)
3247 number_major="$2"
3248 number_minor="$3"
3249 number_revision="$4"
5655 number_major="$1"
5656 number_minor="$2"
5657 number_revision="$3"
32505658 #
32515659 # There are really only two kinds -- those that
32525660 # use the current revision as the major version
32565664 #
32575665 case $version_type in
32585666 darwin|linux|osf|windows|none)
3259 current=`expr $number_major + $number_minor`
5667 func_arith $number_major + $number_minor
5668 current=$func_arith_result
32605669 age="$number_minor"
32615670 revision="$number_revision"
32625671 ;;
32665675 age="0"
32675676 ;;
32685677 irix|nonstopux)
3269 current=`expr $number_major + $number_minor`
5678 func_arith $number_major + $number_minor
5679 current=$func_arith_result
32705680 age="$number_minor"
32715681 revision="$number_minor"
32725682 lt_irix_increment=no
32735683 ;;
32745684 *)
3275 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3276 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3277 exit $EXIT_FAILURE
5685 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
32785686 ;;
32795687 esac
32805688 ;;
32815689 no)
3282 current="$2"
3283 revision="$3"
3284 age="$4"
5690 current="$1"
5691 revision="$2"
5692 age="$3"
32855693 ;;
32865694 esac
32875695
32895697 case $current in
32905698 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
32915699 *)
3292 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3293 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3294 exit $EXIT_FAILURE
5700 func_error "CURRENT \`$current' must be a nonnegative integer"
5701 func_fatal_error "\`$vinfo' is not valid version information"
32955702 ;;
32965703 esac
32975704
32985705 case $revision in
32995706 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
33005707 *)
3301 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3302 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3303 exit $EXIT_FAILURE
5708 func_error "REVISION \`$revision' must be a nonnegative integer"
5709 func_fatal_error "\`$vinfo' is not valid version information"
33045710 ;;
33055711 esac
33065712
33075713 case $age in
33085714 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
33095715 *)
3310 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3311 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3312 exit $EXIT_FAILURE
5716 func_error "AGE \`$age' must be a nonnegative integer"
5717 func_fatal_error "\`$vinfo' is not valid version information"
33135718 ;;
33145719 esac
33155720
33165721 if test "$age" -gt "$current"; then
3317 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3318 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3319 exit $EXIT_FAILURE
5722 func_error "AGE \`$age' is greater than the current interface number \`$current'"
5723 func_fatal_error "\`$vinfo' is not valid version information"
33205724 fi
33215725
33225726 # Calculate the version variables.
33295733 darwin)
33305734 # Like Linux, but with the current version available in
33315735 # verstring for coding it into the library header
3332 major=.`expr $current - $age`
5736 func_arith $current - $age
5737 major=.$func_arith_result
33335738 versuffix="$major.$age.$revision"
33345739 # Darwin ld doesn't like 0 for these options...
3335 minor_current=`expr $current + 1`
5740 func_arith $current + 1
5741 minor_current=$func_arith_result
33365742 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
33375743 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
33385744 ;;
33445750
33455751 freebsd-elf)
33465752 major=".$current"
3347 versuffix=".$current";
5753 versuffix=".$current"
33485754 ;;
33495755
33505756 irix | nonstopux)
33515757 if test "X$lt_irix_increment" = "Xno"; then
3352 major=`expr $current - $age`
5758 func_arith $current - $age
33535759 else
3354 major=`expr $current - $age + 1`
3355 fi
5760 func_arith $current - $age + 1
5761 fi
5762 major=$func_arith_result
5763
33565764 case $version_type in
33575765 nonstopux) verstring_prefix=nonstopux ;;
33585766 *) verstring_prefix=sgi ;;
33625770 # Add in all the interfaces that we are compatible with.
33635771 loop=$revision
33645772 while test "$loop" -ne 0; do
3365 iface=`expr $revision - $loop`
3366 loop=`expr $loop - 1`
5773 func_arith $revision - $loop
5774 iface=$func_arith_result
5775 func_arith $loop - 1
5776 loop=$func_arith_result
33675777 verstring="$verstring_prefix$major.$iface:$verstring"
33685778 done
33695779
33735783 ;;
33745784
33755785 linux)
3376 major=.`expr $current - $age`
5786 func_arith $current - $age
5787 major=.$func_arith_result
33775788 versuffix="$major.$age.$revision"
33785789 ;;
33795790
33805791 osf)
3381 major=.`expr $current - $age`
5792 func_arith $current - $age
5793 major=.$func_arith_result
33825794 versuffix=".$current.$age.$revision"
33835795 verstring="$current.$age.$revision"
33845796
33855797 # Add in all the interfaces that we are compatible with.
33865798 loop=$age
33875799 while test "$loop" -ne 0; do
3388 iface=`expr $current - $loop`
3389 loop=`expr $loop - 1`
5800 func_arith $current - $loop
5801 iface=$func_arith_result
5802 func_arith $loop - 1
5803 loop=$func_arith_result
33905804 verstring="$verstring:${iface}.0"
33915805 done
33925806
33935807 # Make executables depend on our current version.
33945808 verstring="$verstring:${current}.0"
5809 ;;
5810
5811 qnx)
5812 major=".$current"
5813 versuffix=".$current"
33955814 ;;
33965815
33975816 sunos)
34025821 windows)
34035822 # Use '-' rather than '.', since we only want one
34045823 # extension on DOS 8.3 filesystems.
3405 major=`expr $current - $age`
5824 func_arith $current - $age
5825 major=$func_arith_result
34065826 versuffix="-$major"
34075827 ;;
34085828
34095829 *)
3410 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3411 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3412 exit $EXIT_FAILURE
5830 func_fatal_configuration "unknown library version type \`$version_type'"
34135831 ;;
34145832 esac
34155833
34435861 # Check to see if the archive will have undefined symbols.
34445862 if test "$allow_undefined" = yes; then
34455863 if test "$allow_undefined_flag" = unsupported; then
3446 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
5864 func_warning "undefined symbols not allowed in $host shared libraries"
34475865 build_libtool_libs=no
34485866 build_old_libs=yes
34495867 fi
34515869 # Don't allow undefined symbols.
34525870 allow_undefined_flag="$no_undefined_flag"
34535871 fi
5872
34545873 fi
5874
5875 func_generate_dlsyms "$libname" "$libname" "yes"
5876 libobjs="$libobjs $symfileobj"
5877 test "X$libobjs" = "X " && libobjs=
34555878
34565879 if test "$mode" != relink; then
34575880 # Remove our outputs, but don't remove object files since they
34585881 # may have been created when compiling PIC objects.
34595882 removelist=
3460 tempremovelist=`$echo "$output_objdir/*"`
5883 tempremovelist=`$ECHO "$output_objdir/*"`
34615884 for p in $tempremovelist; do
34625885 case $p in
34635886 *.$objext)
34645887 ;;
34655888 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
34665889 if test "X$precious_files_regex" != "X"; then
3467 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3468 then
5890 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
5891 then
34695892 continue
34705893 fi
34715894 fi
34745897 *) ;;
34755898 esac
34765899 done
3477 if test -n "$removelist"; then
3478 $show "${rm}r $removelist"
3479 $run ${rm}r $removelist
3480 fi
5900 test -n "$removelist" && \
5901 func_show_eval "${RM}r \$removelist"
34815902 fi
34825903
34835904 # Now set the variables for building old libraries.
34855906 oldlibs="$oldlibs $output_objdir/$libname.$libext"
34865907
34875908 # Transform .lo files to .o files.
3488 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
5909 oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
34895910 fi
34905911
34915912 # Eliminate all temporary directories.
34925913 #for path in $notinst_path; do
3493 # lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3494 # deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3495 # dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
5914 # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
5915 # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
5916 # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
34965917 #done
34975918
34985919 if test -n "$xrpath"; then
35385959 ;;
35395960 *-*-rhapsody* | *-*-darwin1.[012])
35405961 # Rhapsody C library is in the System framework
3541 deplibs="$deplibs -framework System"
5962 deplibs="$deplibs System.ltframework"
35425963 ;;
35435964 *-*-netbsd*)
35445965 # Don't link with libc until the a.out ld.so is fixed.
35525973 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
35535974 # Compiler inserts libc in the correct place for threads to work
35545975 ;;
3555 *)
5976 *)
35565977 # Add libc to deplibs on all other systems if necessary.
35575978 if test "$build_libtool_need_lc" = "yes"; then
35585979 deplibs="$deplibs -lc"
35896010 # limits. Maybe even breaks it. We compile a program, linking it
35906011 # against the deplibs as a proxy for the library. Then we can check
35916012 # whether they linked in statically or dynamically with ldd.
3592 $rm conftest.c
6013 $opt_dry_run || $RM conftest.c
35936014 cat > conftest.c <<EOF
35946015 int main() { return 0; }
35956016 EOF
3596 $rm conftest
6017 $opt_dry_run || $RM conftest
35976018 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
35986019 ldd_output=`ldd conftest`
35996020 for i in $deplibs; do
3600 name=`expr $i : '-l\(.*\)'`
3601 # If $name is empty we are operating on a -L argument.
3602 if test "$name" != "" && test "$name" != "0"; then
6021 case $i in
6022 -l*)
6023 func_stripname -l '' "$i"
6024 name=$func_stripname_result
36036025 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36046026 case " $predeps $postdeps " in
36056027 *" $i "*)
36076029 i=""
36086030 ;;
36096031 esac
3610 fi
6032 fi
36116033 if test -n "$i" ; then
3612 libname=`eval \\$echo \"$libname_spec\"`
3613 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3614 set dummy $deplib_matches
3615 deplib_match=$2
6034 libname=`eval "\\$ECHO \"$libname_spec\""`
6035 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6036 set dummy $deplib_matches; shift
6037 deplib_match=$1
36166038 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36176039 newdeplibs="$newdeplibs $i"
36186040 else
36196041 droppeddeps=yes
3620 $echo
3621 $echo "*** Warning: dynamic linker does not accept needed library $i."
3622 $echo "*** I have the capability to make that library automatically link in when"
3623 $echo "*** you link to this library. But I can only do this if you have a"
3624 $echo "*** shared version of the library, which I believe you do not have"
3625 $echo "*** because a test_compile did reveal that the linker did not use it for"
3626 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
6042 $ECHO
6043 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6044 $ECHO "*** I have the capability to make that library automatically link in when"
6045 $ECHO "*** you link to this library. But I can only do this if you have a"
6046 $ECHO "*** shared version of the library, which I believe you do not have"
6047 $ECHO "*** because a test_compile did reveal that the linker did not use it for"
6048 $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
36276049 fi
36286050 fi
3629 else
6051 ;;
6052 *)
36306053 newdeplibs="$newdeplibs $i"
3631 fi
6054 ;;
6055 esac
36326056 done
36336057 else
36346058 # Error occurred in the first compile. Let's try to salvage
36356059 # the situation: Compile a separate program for each library.
36366060 for i in $deplibs; do
3637 name=`expr $i : '-l\(.*\)'`
3638 # If $name is empty we are operating on a -L argument.
3639 if test "$name" != "" && test "$name" != "0"; then
3640 $rm conftest
6061 case $i in
6062 -l*)
6063 func_stripname -l '' "$i"
6064 name=$func_stripname_result
6065 $opt_dry_run || $RM conftest
36416066 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
36426067 ldd_output=`ldd conftest`
36436068 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36496074 esac
36506075 fi
36516076 if test -n "$i" ; then
3652 libname=`eval \\$echo \"$libname_spec\"`
3653 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3654 set dummy $deplib_matches
3655 deplib_match=$2
6077 libname=`eval "\\$ECHO \"$libname_spec\""`
6078 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
6079 set dummy $deplib_matches; shift
6080 deplib_match=$1
36566081 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
36576082 newdeplibs="$newdeplibs $i"
36586083 else
36596084 droppeddeps=yes
3660 $echo
3661 $echo "*** Warning: dynamic linker does not accept needed library $i."
3662 $echo "*** I have the capability to make that library automatically link in when"
3663 $echo "*** you link to this library. But I can only do this if you have a"
3664 $echo "*** shared version of the library, which you do not appear to have"
3665 $echo "*** because a test_compile did reveal that the linker did not use this one"
3666 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
6085 $ECHO
6086 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
6087 $ECHO "*** I have the capability to make that library automatically link in when"
6088 $ECHO "*** you link to this library. But I can only do this if you have a"
6089 $ECHO "*** shared version of the library, which you do not appear to have"
6090 $ECHO "*** because a test_compile did reveal that the linker did not use this one"
6091 $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
36676092 fi
36686093 fi
36696094 else
36706095 droppeddeps=yes
3671 $echo
3672 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3673 $echo "*** make it link in! You will probably need to install it or some"
3674 $echo "*** library that it depends on before this library will be fully"
3675 $echo "*** functional. Installing it before continuing would be even better."
6096 $ECHO
6097 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
6098 $ECHO "*** make it link in! You will probably need to install it or some"
6099 $ECHO "*** library that it depends on before this library will be fully"
6100 $ECHO "*** functional. Installing it before continuing would be even better."
36766101 fi
3677 else
6102 ;;
6103 *)
36786104 newdeplibs="$newdeplibs $i"
3679 fi
6105 ;;
6106 esac
36806107 done
36816108 fi
36826109 ;;
36836110 file_magic*)
3684 set dummy $deplibs_check_method
3685 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6111 set dummy $deplibs_check_method; shift
6112 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
36866113 for a_deplib in $deplibs; do
3687 name=`expr $a_deplib : '-l\(.*\)'`
3688 # If $name is empty we are operating on a -L argument.
3689 if test "$name" != "" && test "$name" != "0"; then
6114 case $a_deplib in
6115 -l*)
6116 func_stripname -l '' "$a_deplib"
6117 name=$func_stripname_result
36906118 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
36916119 case " $predeps $postdeps " in
36926120 *" $a_deplib "*)
36966124 esac
36976125 fi
36986126 if test -n "$a_deplib" ; then
3699 libname=`eval \\$echo \"$libname_spec\"`
6127 libname=`eval "\\$ECHO \"$libname_spec\""`
37006128 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
37016129 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
37026130 for potent_lib in $potential_libs; do
37036131 # Follow soft links.
3704 if ls -lLd "$potent_lib" 2>/dev/null \
3705 | grep " -> " >/dev/null; then
6132 if ls -lLd "$potent_lib" 2>/dev/null |
6133 $GREP " -> " >/dev/null; then
37066134 continue
37076135 fi
37086136 # The statement above tries to avoid entering an
37156143 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
37166144 case $potliblink in
37176145 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3718 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
6146 *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
37196147 esac
37206148 done
3721 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3722 | ${SED} 10q \
3723 | $EGREP "$file_magic_regex" > /dev/null; then
6149 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
6150 $SED -e 10q |
6151 $EGREP "$file_magic_regex" > /dev/null; then
37246152 newdeplibs="$newdeplibs $a_deplib"
37256153 a_deplib=""
37266154 break 2
37306158 fi
37316159 if test -n "$a_deplib" ; then
37326160 droppeddeps=yes
3733 $echo
3734 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3735 $echo "*** I have the capability to make that library automatically link in when"
3736 $echo "*** you link to this library. But I can only do this if you have a"
3737 $echo "*** shared version of the library, which you do not appear to have"
3738 $echo "*** because I did check the linker path looking for a file starting"
6161 $ECHO
6162 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6163 $ECHO "*** I have the capability to make that library automatically link in when"
6164 $ECHO "*** you link to this library. But I can only do this if you have a"
6165 $ECHO "*** shared version of the library, which you do not appear to have"
6166 $ECHO "*** because I did check the linker path looking for a file starting"
37396167 if test -z "$potlib" ; then
3740 $echo "*** with $libname but no candidates were found. (...for file magic test)"
6168 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
37416169 else
3742 $echo "*** with $libname and none of the candidates passed a file format test"
3743 $echo "*** using a file magic. Last file checked: $potlib"
6170 $ECHO "*** with $libname and none of the candidates passed a file format test"
6171 $ECHO "*** using a file magic. Last file checked: $potlib"
37446172 fi
37456173 fi
3746 else
6174 ;;
6175 *)
37476176 # Add a -L argument.
37486177 newdeplibs="$newdeplibs $a_deplib"
3749 fi
6178 ;;
6179 esac
37506180 done # Gone through all deplibs.
37516181 ;;
37526182 match_pattern*)
3753 set dummy $deplibs_check_method
3754 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
6183 set dummy $deplibs_check_method; shift
6184 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
37556185 for a_deplib in $deplibs; do
3756 name=`expr $a_deplib : '-l\(.*\)'`
3757 # If $name is empty we are operating on a -L argument.
3758 if test -n "$name" && test "$name" != "0"; then
6186 case $a_deplib in
6187 -l*)
6188 func_stripname -l '' "$a_deplib"
6189 name=$func_stripname_result
37596190 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
37606191 case " $predeps $postdeps " in
37616192 *" $a_deplib "*)
37656196 esac
37666197 fi
37676198 if test -n "$a_deplib" ; then
3768 libname=`eval \\$echo \"$libname_spec\"`
6199 libname=`eval "\\$ECHO \"$libname_spec\""`
37696200 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
37706201 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
37716202 for potent_lib in $potential_libs; do
37726203 potlib="$potent_lib" # see symlink-check above in file_magic test
3773 if eval $echo \"$potent_lib\" 2>/dev/null \
3774 | ${SED} 10q \
3775 | $EGREP "$match_pattern_regex" > /dev/null; then
6204 if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
6205 $EGREP "$match_pattern_regex" > /dev/null; then
37766206 newdeplibs="$newdeplibs $a_deplib"
37776207 a_deplib=""
37786208 break 2
37826212 fi
37836213 if test -n "$a_deplib" ; then
37846214 droppeddeps=yes
3785 $echo
3786 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3787 $echo "*** I have the capability to make that library automatically link in when"
3788 $echo "*** you link to this library. But I can only do this if you have a"
3789 $echo "*** shared version of the library, which you do not appear to have"
3790 $echo "*** because I did check the linker path looking for a file starting"
6215 $ECHO
6216 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
6217 $ECHO "*** I have the capability to make that library automatically link in when"
6218 $ECHO "*** you link to this library. But I can only do this if you have a"
6219 $ECHO "*** shared version of the library, which you do not appear to have"
6220 $ECHO "*** because I did check the linker path looking for a file starting"
37916221 if test -z "$potlib" ; then
3792 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
6222 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
37936223 else
3794 $echo "*** with $libname and none of the candidates passed a file format test"
3795 $echo "*** using a regex pattern. Last file checked: $potlib"
6224 $ECHO "*** with $libname and none of the candidates passed a file format test"
6225 $ECHO "*** using a regex pattern. Last file checked: $potlib"
37966226 fi
37976227 fi
3798 else
6228 ;;
6229 *)
37996230 # Add a -L argument.
38006231 newdeplibs="$newdeplibs $a_deplib"
3801 fi
6232 ;;
6233 esac
38026234 done # Gone through all deplibs.
38036235 ;;
38046236 none | unknown | *)
38056237 newdeplibs=""
3806 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3807 -e 's/ -[LR][^ ]*//g'`
6238 tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
6239 -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
38086240 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
38096241 for i in $predeps $postdeps ; do
38106242 # can't use Xsed below, because $i might contain '/'
3811 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
6243 tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
38126244 done
38136245 fi
3814 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3815 | grep . >/dev/null; then
3816 $echo
6246 if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
6247 $GREP . >/dev/null; then
6248 $ECHO
38176249 if test "X$deplibs_check_method" = "Xnone"; then
3818 $echo "*** Warning: inter-library dependencies are not supported in this platform."
6250 $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
38196251 else
3820 $echo "*** Warning: inter-library dependencies are not known to be supported."
6252 $ECHO "*** Warning: inter-library dependencies are not known to be supported."
38216253 fi
3822 $echo "*** All declared inter-library dependencies are being dropped."
6254 $ECHO "*** All declared inter-library dependencies are being dropped."
38236255 droppeddeps=yes
38246256 fi
38256257 ;;
38326264
38336265 case $host in
38346266 *-*-rhapsody* | *-*-darwin1.[012])
3835 # On Rhapsody replace the C library is the System framework
3836 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
6267 # On Rhapsody replace the C library with the System framework
6268 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
38376269 ;;
38386270 esac
38396271
38406272 if test "$droppeddeps" = yes; then
38416273 if test "$module" = yes; then
3842 $echo
3843 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3844 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3845 $echo "*** a static module, that should work as long as the dlopening"
3846 $echo "*** application is linked with the -dlopen flag."
6274 $ECHO
6275 $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
6276 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
6277 $ECHO "*** a static module, that should work as long as the dlopening"
6278 $ECHO "*** application is linked with the -dlopen flag."
38476279 if test -z "$global_symbol_pipe"; then
3848 $echo
3849 $echo "*** However, this would only work if libtool was able to extract symbol"
3850 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3851 $echo "*** not find such a program. So, this module is probably useless."
3852 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
6280 $ECHO
6281 $ECHO "*** However, this would only work if libtool was able to extract symbol"
6282 $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
6283 $ECHO "*** not find such a program. So, this module is probably useless."
6284 $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
38536285 fi
38546286 if test "$build_old_libs" = no; then
38556287 oldlibs="$output_objdir/$libname.$libext"
38596291 build_libtool_libs=no
38606292 fi
38616293 else
3862 $echo "*** The inter-library dependencies that have been dropped here will be"
3863 $echo "*** automatically added whenever a program is linked with this library"
3864 $echo "*** or is declared to -dlopen it."
6294 $ECHO "*** The inter-library dependencies that have been dropped here will be"
6295 $ECHO "*** automatically added whenever a program is linked with this library"
6296 $ECHO "*** or is declared to -dlopen it."
38656297
38666298 if test "$allow_undefined" = no; then
3867 $echo
3868 $echo "*** Since this library must not contain undefined symbols,"
3869 $echo "*** because either the platform does not support them or"
3870 $echo "*** it was explicitly requested with -no-undefined,"
3871 $echo "*** libtool will only create a static version of it."
6299 $ECHO
6300 $ECHO "*** Since this library must not contain undefined symbols,"
6301 $ECHO "*** because either the platform does not support them or"
6302 $ECHO "*** it was explicitly requested with -no-undefined,"
6303 $ECHO "*** libtool will only create a static version of it."
38726304 if test "$build_old_libs" = no; then
38736305 oldlibs="$output_objdir/$libname.$libext"
38746306 build_libtool_libs=module
38826314 # Done checking deplibs!
38836315 deplibs=$newdeplibs
38846316 fi
3885
6317 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
6318 case $host in
6319 *-*-darwin*)
6320 newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6321 new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6322 deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
6323 ;;
6324 esac
38866325
38876326 # move library search paths that coincide with paths to not yet
38886327 # installed libraries to the beginning of the library search list
39106349 esac
39116350 done
39126351 deplibs="$new_libs"
3913
39146352
39156353 # All the library-specific variables (install_libdir is set above).
39166354 library_names=
39566394 test -n "$hardcode_libdirs"; then
39576395 libdir="$hardcode_libdirs"
39586396 if test -n "$hardcode_libdir_flag_spec_ld"; then
3959 case $archive_cmds in
3960 *\$LD*) eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" ;;
3961 *) eval dep_rpath=\"$hardcode_libdir_flag_spec\" ;;
3962 esac
6397 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
39636398 else
39646399 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
39656400 fi
39856420 eval shared_ext=\"$shrext_cmds\"
39866421 eval library_names=\"$library_names_spec\"
39876422 set dummy $library_names
3988 realname="$2"
3989 shift; shift
6423 shift
6424 realname="$1"
6425 shift
39906426
39916427 if test -n "$soname_spec"; then
39926428 eval soname=\"$soname_spec\"
40056441 done
40066442
40076443 # Use standard objects if they are pic
4008 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6444 test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
6445 test "X$libobjs" = "X " && libobjs=
6446
6447 delfiles=
6448 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6449 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
6450 export_symbols="$output_objdir/$libname.uexp"
6451 delfiles="$delfiles $export_symbols"
6452 fi
6453
6454 orig_export_symbols=
6455 case $host_os in
6456 cygwin* | mingw*)
6457 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
6458 # exporting using user supplied symfile
6459 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
6460 # and it's NOT already a .def file. Must figure out
6461 # which of the given symbols are data symbols and tag
6462 # them as such. So, trigger use of export_symbols_cmds.
6463 # export_symbols gets reassigned inside the "prepare
6464 # the list of exported symbols" if statement, so the
6465 # include_expsyms logic still works.
6466 orig_export_symbols="$export_symbols"
6467 export_symbols=
6468 always_export_symbols=yes
6469 fi
6470 fi
6471 ;;
6472 esac
40096473
40106474 # Prepare the list of exported symbols
40116475 if test -z "$export_symbols"; then
40126476 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
4013 $show "generating symbol list for \`$libname.la'"
6477 func_verbose "generating symbol list for \`$libname.la'"
40146478 export_symbols="$output_objdir/$libname.exp"
4015 $run $rm $export_symbols
6479 $opt_dry_run || $RM $export_symbols
40166480 cmds=$export_symbols_cmds
40176481 save_ifs="$IFS"; IFS='~'
40186482 for cmd in $cmds; do
40196483 IFS="$save_ifs"
40206484 eval cmd=\"$cmd\"
4021 if len=`expr "X$cmd" : ".*"` &&
4022 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4023 $show "$cmd"
4024 $run eval "$cmd" || exit $?
4025 skipped_export=false
6485 func_len " $cmd"
6486 len=$func_len_result
6487 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
6488 func_show_eval "$cmd" 'exit $?'
6489 skipped_export=false
40266490 else
4027 # The command line is too long to execute in one step.
4028 $show "using reloadable object file for export list..."
4029 skipped_export=:
6491 # The command line is too long to execute in one step.
6492 func_verbose "using reloadable object file for export list..."
6493 skipped_export=:
40306494 # Break out early, otherwise skipped_export may be
40316495 # set to false by a later but shorter cmd.
40326496 break
40336497 fi
40346498 done
40356499 IFS="$save_ifs"
4036 if test -n "$export_symbols_regex"; then
4037 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
4038 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
4039 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
4040 $run eval '$mv "${export_symbols}T" "$export_symbols"'
6500 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
6501 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
6502 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
40416503 fi
40426504 fi
40436505 fi
40446506
40456507 if test -n "$export_symbols" && test -n "$include_expsyms"; then
4046 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
6508 tmp_export_symbols="$export_symbols"
6509 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
6510 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
6511 fi
6512
6513 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
6514 # The given exports_symbols file has to be filtered, so filter it.
6515 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
6516 # FIXME: $output_objdir/$libname.filter potentially contains lots of
6517 # 's' commands which not all seds can handle. GNU sed should be fine
6518 # though. Also, the filter scales superlinearly with the number of
6519 # global variables. join(1) would be nice here, but unfortunately
6520 # isn't a blessed tool.
6521 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
6522 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
6523 export_symbols=$output_objdir/$libname.def
6524 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
40476525 fi
40486526
40496527 tmp_deplibs=
40506528 for test_deplib in $deplibs; do
4051 case " $convenience " in
4052 *" $test_deplib "*) ;;
4053 *)
4054 tmp_deplibs="$tmp_deplibs $test_deplib"
4055 ;;
4056 esac
6529 case " $convenience " in
6530 *" $test_deplib "*) ;;
6531 *)
6532 tmp_deplibs="$tmp_deplibs $test_deplib"
6533 ;;
6534 esac
40576535 done
40586536 deplibs="$tmp_deplibs"
40596537
40606538 if test -n "$convenience"; then
6539 if test -n "$whole_archive_flag_spec" &&
6540 test "$compiler_needs_object" = yes &&
6541 test -z "$libobjs"; then
6542 # extract the archives, so we have objects to list.
6543 # TODO: could optimize this to just extract one archive.
6544 whole_archive_flag_spec=
6545 fi
40616546 if test -n "$whole_archive_flag_spec"; then
40626547 save_libobjs=$libobjs
40636548 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
6549 test "X$libobjs" = "X " && libobjs=
40646550 else
40656551 gentop="$output_objdir/${outputname}x"
40666552 generated="$generated $gentop"
40676553
40686554 func_extract_archives $gentop $convenience
40696555 libobjs="$libobjs $func_extract_archives_result"
4070 fi
4071 fi
4072
6556 test "X$libobjs" = "X " && libobjs=
6557 fi
6558 fi
6559
40736560 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
40746561 eval flag=\"$thread_safe_flag_spec\"
40756562 linker_flags="$linker_flags $flag"
40776564
40786565 # Make a backup of the uninstalled library when relinking
40796566 if test "$mode" = relink; then
4080 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
6567 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
40816568 fi
40826569
40836570 # Do each of the archive commands.
40906577 cmds=$module_cmds
40916578 fi
40926579 else
4093 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4094 eval test_cmds=\"$archive_expsym_cmds\"
4095 cmds=$archive_expsym_cmds
4096 else
4097 eval test_cmds=\"$archive_cmds\"
4098 cmds=$archive_cmds
6580 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
6581 eval test_cmds=\"$archive_expsym_cmds\"
6582 cmds=$archive_expsym_cmds
6583 else
6584 eval test_cmds=\"$archive_cmds\"
6585 cmds=$archive_cmds
40996586 fi
41006587 fi
41016588
41026589 if test "X$skipped_export" != "X:" &&
4103 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4104 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
6590 func_len " $test_cmds" &&
6591 len=$func_len_result &&
6592 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
41056593 :
41066594 else
4107 # The command line is too long to link in one step, link piecewise.
4108 $echo "creating reloadable object files..."
6595 # The command line is too long to link in one step, link piecewise
6596 # or, if using GNU ld and skipped_export is not :, use a linker
6597 # script.
41096598
41106599 # Save the value of $output and $libobjs because we want to
41116600 # use them later. If we have whole_archive_flag_spec, we
41196608 save_libobjs=$libobjs
41206609 fi
41216610 save_output=$output
4122 output_la=`$echo "X$output" | $Xsed -e "$basename"`
6611 output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
41236612
41246613 # Clear the reloadable object creation command queue and
41256614 # initialize k to one.
41266615 test_cmds=
41276616 concat_cmds=
41286617 objlist=
4129 delfiles=
41306618 last_robj=
41316619 k=1
4132 output=$output_objdir/$output_la-${k}.$objext
4133 # Loop over the list of objects to be linked.
4134 for obj in $save_libobjs
4135 do
4136 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4137 if test "X$objlist" = X ||
4138 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4139 test "$len" -le "$max_cmd_len"; }; then
4140 objlist="$objlist $obj"
6620
6621 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
6622 output=${output_objdir}/${output_la}.lnkscript
6623 func_verbose "creating GNU ld script: $output"
6624 $ECHO 'INPUT (' > $output
6625 for obj in $save_libobjs
6626 do
6627 $ECHO "$obj" >> $output
6628 done
6629 $ECHO ')' >> $output
6630 delfiles="$delfiles $output"
6631 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
6632 output=${output_objdir}/${output_la}.lnk
6633 func_verbose "creating linker input file list: $output"
6634 : > $output
6635 set x $save_libobjs
6636 shift
6637 firstobj=
6638 if test "$compiler_needs_object" = yes; then
6639 firstobj="$1 "
6640 shift
6641 fi
6642 for obj
6643 do
6644 $ECHO "$obj" >> $output
6645 done
6646 delfiles="$delfiles $output"
6647 output=$firstobj\"$file_list_spec$output\"
6648 else
6649 if test -n "$save_libobjs"; then
6650 func_verbose "creating reloadable object files..."
6651 output=$output_objdir/$output_la-${k}.$objext
6652 eval test_cmds=\"$reload_cmds\"
6653 func_len " $test_cmds"
6654 len0=$func_len_result
6655 len=$len0
6656
6657 # Loop over the list of objects to be linked.
6658 for obj in $save_libobjs
6659 do
6660 func_len " $obj"
6661 func_arith $len + $func_len_result
6662 len=$func_arith_result
6663 if test "X$objlist" = X ||
6664 test "$len" -lt "$max_cmd_len"; then
6665 func_append objlist " $obj"
6666 else
6667 # The command $test_cmds is almost too long, add a
6668 # command to the queue.
6669 if test "$k" -eq 1 ; then
6670 # The first file doesn't have a previous command to add.
6671 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
6672 else
6673 # All subsequent reloadable object files will link in
6674 # the last one created.
6675 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
6676 fi
6677 last_robj=$output_objdir/$output_la-${k}.$objext
6678 func_arith $k + 1
6679 k=$func_arith_result
6680 output=$output_objdir/$output_la-${k}.$objext
6681 objlist=$obj
6682 func_len " $last_robj"
6683 func_arith $len0 + $func_len_result
6684 len=$func_arith_result
6685 fi
6686 done
6687 # Handle the remaining objects by creating one last
6688 # reloadable object file. All subsequent reloadable object
6689 # files will link in the last one created.
6690 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
6691 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
6692 if test -n "$last_robj"; then
6693 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
6694 fi
6695 delfiles="$delfiles $output"
6696
41416697 else
4142 # The command $test_cmds is almost too long, add a
4143 # command to the queue.
4144 if test "$k" -eq 1 ; then
4145 # The first file doesn't have a previous command to add.
4146 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4147 else
4148 # All subsequent reloadable object files will link in
4149 # the last one created.
4150 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
6698 output=
6699 fi
6700
6701 if ${skipped_export-false}; then
6702 func_verbose "generating symbol list for \`$libname.la'"
6703 export_symbols="$output_objdir/$libname.exp"
6704 $opt_dry_run || $RM $export_symbols
6705 libobjs=$output
6706 # Append the command to create the export file.
6707 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
6708 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
6709 if test -n "$last_robj"; then
6710 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
41516711 fi
4152 last_robj=$output_objdir/$output_la-${k}.$objext
4153 k=`expr $k + 1`
4154 output=$output_objdir/$output_la-${k}.$objext
4155 objlist=$obj
4156 len=1
41576712 fi
4158 done
4159 # Handle the remaining objects by creating one last
4160 # reloadable object file. All subsequent reloadable object
4161 # files will link in the last one created.
4162 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4163 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4164
4165 if ${skipped_export-false}; then
4166 $show "generating symbol list for \`$libname.la'"
4167 export_symbols="$output_objdir/$libname.exp"
4168 $run $rm $export_symbols
4169 libobjs=$output
4170 # Append the command to create the export file.
4171 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4172 fi
4173
4174 # Set up a command to remove the reloadable object files
4175 # after they are used.
4176 i=0
4177 while test "$i" -lt "$k"
4178 do
4179 i=`expr $i + 1`
4180 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4181 done
4182
4183 $echo "creating a temporary reloadable object file: $output"
4184
4185 # Loop through the commands generated above and execute them.
4186 save_ifs="$IFS"; IFS='~'
4187 for cmd in $concat_cmds; do
6713
6714 test -n "$save_libobjs" &&
6715 func_verbose "creating a temporary reloadable object file: $output"
6716
6717 # Loop through the commands generated above and execute them.
6718 save_ifs="$IFS"; IFS='~'
6719 for cmd in $concat_cmds; do
6720 IFS="$save_ifs"
6721 $opt_silent || {
6722 func_quote_for_expand "$cmd"
6723 eval "func_echo $func_quote_for_expand_result"
6724 }
6725 $opt_dry_run || eval "$cmd" || {
6726 lt_exit=$?
6727
6728 # Restore the uninstalled library and exit
6729 if test "$mode" = relink; then
6730 ( cd "$output_objdir" && \
6731 $RM "${realname}T" && \
6732 $MV "${realname}U" "$realname" )
6733 fi
6734
6735 exit $lt_exit
6736 }
6737 done
41886738 IFS="$save_ifs"
4189 $show "$cmd"
4190 $run eval "$cmd" || exit $?
4191 done
4192 IFS="$save_ifs"
6739
6740 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
6741 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
6742 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
6743 fi
6744 fi
6745
6746 if ${skipped_export-false}; then
6747 if test -n "$export_symbols" && test -n "$include_expsyms"; then
6748 tmp_export_symbols="$export_symbols"
6749 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
6750 $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
6751 fi
6752
6753 if test -n "$orig_export_symbols"; then
6754 # The given exports_symbols file has to be filtered, so filter it.
6755 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
6756 # FIXME: $output_objdir/$libname.filter potentially contains lots of
6757 # 's' commands which not all seds can handle. GNU sed should be fine
6758 # though. Also, the filter scales superlinearly with the number of
6759 # global variables. join(1) would be nice here, but unfortunately
6760 # isn't a blessed tool.
6761 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
6762 delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
6763 export_symbols=$output_objdir/$libname.def
6764 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
6765 fi
6766 fi
41936767
41946768 libobjs=$output
41956769 # Restore the value of output.
41976771
41986772 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
41996773 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
6774 test "X$libobjs" = "X " && libobjs=
42006775 fi
42016776 # Expand the library linking commands again to reset the
42026777 # value of $libobjs for piecewise linking.
42096784 cmds=$module_cmds
42106785 fi
42116786 else
4212 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4213 cmds=$archive_expsym_cmds
4214 else
4215 cmds=$archive_cmds
6787 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
6788 cmds=$archive_expsym_cmds
6789 else
6790 cmds=$archive_cmds
42166791 fi
42176792 fi
4218
4219 # Append the command to remove the reloadable object files
4220 # to the just-reset $cmds.
4221 eval cmds=\"\$cmds~\$rm $delfiles\"
4222 fi
6793 fi
6794
6795 if test -n "$delfiles"; then
6796 # Append the command to remove temporary files to $cmds.
6797 eval cmds=\"\$cmds~\$RM $delfiles\"
6798 fi
6799
6800 # Add any objects from preloaded convenience libraries
6801 if test -n "$dlprefiles"; then
6802 gentop="$output_objdir/${outputname}x"
6803 generated="$generated $gentop"
6804
6805 func_extract_archives $gentop $dlprefiles
6806 libobjs="$libobjs $func_extract_archives_result"
6807 test "X$libobjs" = "X " && libobjs=
6808 fi
6809
42236810 save_ifs="$IFS"; IFS='~'
42246811 for cmd in $cmds; do
42256812 IFS="$save_ifs"
42266813 eval cmd=\"$cmd\"
4227 $show "$cmd"
4228 $run eval "$cmd" || {
6814 $opt_silent || {
6815 func_quote_for_expand "$cmd"
6816 eval "func_echo $func_quote_for_expand_result"
6817 }
6818 $opt_dry_run || eval "$cmd" || {
42296819 lt_exit=$?
42306820
42316821 # Restore the uninstalled library and exit
42326822 if test "$mode" = relink; then
4233 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6823 ( cd "$output_objdir" && \
6824 $RM "${realname}T" && \
6825 $MV "${realname}U" "$realname" )
42346826 fi
42356827
42366828 exit $lt_exit
42406832
42416833 # Restore the uninstalled library and exit
42426834 if test "$mode" = relink; then
4243 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
6835 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
42446836
42456837 if test -n "$convenience"; then
42466838 if test -z "$whole_archive_flag_spec"; then
4247 $show "${rm}r $gentop"
4248 $run ${rm}r "$gentop"
6839 func_show_eval '${RM}r "$gentop"'
42496840 fi
42506841 fi
42516842
42556846 # Create links to the real library.
42566847 for linkname in $linknames; do
42576848 if test "$realname" != "$linkname"; then
4258 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4259 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
6849 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
42606850 fi
42616851 done
42626852
42696859 ;;
42706860
42716861 obj)
6862 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
6863 func_warning "\`-dlopen' is ignored for objects"
6864 fi
6865
42726866 case " $deplibs" in
42736867 *\ -l* | *\ -L*)
4274 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 ;;
6868 func_warning "\`-l' and \`-L' are ignored for objects" ;;
42756869 esac
42766870
4277 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4278 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4279 fi
4280
4281 if test -n "$rpath"; then
4282 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4283 fi
4284
4285 if test -n "$xrpath"; then
4286 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4287 fi
4288
4289 if test -n "$vinfo"; then
4290 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4291 fi
4292
4293 if test -n "$release"; then
4294 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4295 fi
6871 test -n "$rpath" && \
6872 func_warning "\`-rpath' is ignored for objects"
6873
6874 test -n "$xrpath" && \
6875 func_warning "\`-R' is ignored for objects"
6876
6877 test -n "$vinfo" && \
6878 func_warning "\`-version-info' is ignored for objects"
6879
6880 test -n "$release" && \
6881 func_warning "\`-release' is ignored for objects"
42966882
42976883 case $output in
42986884 *.lo)
4299 if test -n "$objs$old_deplibs"; then
4300 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4301 exit $EXIT_FAILURE
4302 fi
4303 libobj="$output"
4304 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
6885 test -n "$objs$old_deplibs" && \
6886 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
6887
6888 libobj=$output
6889 func_lo2o "$libobj"
6890 obj=$func_lo2o_result
43056891 ;;
43066892 *)
43076893 libobj=
43106896 esac
43116897
43126898 # Delete the old objects.
4313 $run $rm $obj $libobj
6899 $opt_dry_run || $RM $obj $libobj
43146900
43156901 # Objects from convenience libraries. This assumes
43166902 # single-version convenience libraries. Whenever we create
43266912 if test -n "$convenience"; then
43276913 if test -n "$whole_archive_flag_spec"; then
43286914 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
4329 reload_conv_objs=$reload_objs\ `$echo "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
6915 reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
43306916 else
43316917 gentop="$output_objdir/${obj}x"
43326918 generated="$generated $gentop"
43376923 fi
43386924
43396925 # Create the old-style object.
4340 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
6926 reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
43416927
43426928 output="$obj"
4343 cmds=$reload_cmds
4344 save_ifs="$IFS"; IFS='~'
4345 for cmd in $cmds; do
4346 IFS="$save_ifs"
4347 eval cmd=\"$cmd\"
4348 $show "$cmd"
4349 $run eval "$cmd" || exit $?
4350 done
4351 IFS="$save_ifs"
6929 func_execute_cmds "$reload_cmds" 'exit $?'
43526930
43536931 # Exit if we aren't doing a library object file.
43546932 if test -z "$libobj"; then
43556933 if test -n "$gentop"; then
4356 $show "${rm}r $gentop"
4357 $run ${rm}r $gentop
6934 func_show_eval '${RM}r "$gentop"'
43586935 fi
43596936
43606937 exit $EXIT_SUCCESS
43626939
43636940 if test "$build_libtool_libs" != yes; then
43646941 if test -n "$gentop"; then
4365 $show "${rm}r $gentop"
4366 $run ${rm}r $gentop
6942 func_show_eval '${RM}r "$gentop"'
43676943 fi
43686944
43696945 # Create an invalid libtool object if no PIC, so that we don't
43706946 # accidentally link it into a program.
43716947 # $show "echo timestamp > $libobj"
4372 # $run eval "echo timestamp > $libobj" || exit $?
6948 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
43736949 exit $EXIT_SUCCESS
43746950 fi
43756951
43776953 # Only do commands if we really have different PIC objects.
43786954 reload_objs="$libobjs $reload_conv_objs"
43796955 output="$libobj"
4380 cmds=$reload_cmds
4381 save_ifs="$IFS"; IFS='~'
4382 for cmd in $cmds; do
4383 IFS="$save_ifs"
4384 eval cmd=\"$cmd\"
4385 $show "$cmd"
4386 $run eval "$cmd" || exit $?
4387 done
4388 IFS="$save_ifs"
6956 func_execute_cmds "$reload_cmds" 'exit $?'
43896957 fi
43906958
43916959 if test -n "$gentop"; then
4392 $show "${rm}r $gentop"
4393 $run ${rm}r $gentop
6960 func_show_eval '${RM}r "$gentop"'
43946961 fi
43956962
43966963 exit $EXIT_SUCCESS
43986965
43996966 prog)
44006967 case $host in
4401 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
6968 *cygwin*) func_stripname '' '.exe' "$output"
6969 output=$func_stripname_result.exe;;
44026970 esac
4403 if test -n "$vinfo"; then
4404 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4405 fi
4406
4407 if test -n "$release"; then
4408 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4409 fi
4410
4411 if test "$preload" = yes; then
4412 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4413 test "$dlopen_self_static" = unknown; then
4414 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4415 fi
4416 fi
6971 test -n "$vinfo" && \
6972 func_warning "\`-version-info' is ignored for programs"
6973
6974 test -n "$release" && \
6975 func_warning "\`-release' is ignored for programs"
6976
6977 test "$preload" = yes \
6978 && test "$dlopen_support" = unknown \
6979 && test "$dlopen_self" = unknown \
6980 && test "$dlopen_self_static" = unknown && \
6981 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
44176982
44186983 case $host in
44196984 *-*-rhapsody* | *-*-darwin1.[012])
44206985 # On Rhapsody replace the C library is the System framework
4421 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4422 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
6986 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
6987 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
44236988 ;;
44246989 esac
44256990
44266991 case $host in
4427 *darwin*)
4428 # Don't allow lazy linking, it breaks C++ global constructors
4429 if test "$tagname" = CXX ; then
4430 compile_command="$compile_command ${wl}-bind_at_load"
4431 finalize_command="$finalize_command ${wl}-bind_at_load"
4432 fi
4433 ;;
6992 *-*-darwin*)
6993 # Don't allow lazy linking, it breaks C++ global constructors
6994 # But is supposedly fixed on 10.4 or later (yay!).
6995 if test "$tagname" = CXX ; then
6996 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
6997 10.[0123])
6998 compile_command="$compile_command ${wl}-bind_at_load"
6999 finalize_command="$finalize_command ${wl}-bind_at_load"
7000 ;;
7001 esac
7002 fi
7003 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
7004 compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7005 finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
7006 ;;
44347007 esac
44357008
44367009
45067079 fi
45077080 case $host in
45087081 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4509 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
7082 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
45107083 case :$dllsearchpath: in
45117084 *":$libdir:"*) ;;
45127085 *) dllsearchpath="$dllsearchpath:$libdir";;
45647137
45657138 if test -n "$libobjs" && test "$build_old_libs" = yes; then
45667139 # Transform all the library objects into standard objects.
4567 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4568 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7140 compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
7141 finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
45697142 fi
45707143
4571 dlsyms=
4572 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4574 dlsyms="${outputname}S.c"
4575 else
4576 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4577 fi
7144 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
7145
7146 # template prelinking step
7147 if test -n "$prelink_cmds"; then
7148 func_execute_cmds "$prelink_cmds" 'exit $?'
45787149 fi
45797150
4580 if test -n "$dlsyms"; then
4581 case $dlsyms in
4582 "") ;;
4583 *.c)
4584 # Discover the nlist of each of the dlfiles.
4585 nlist="$output_objdir/${outputname}.nm"
4586
4587 $show "$rm $nlist ${nlist}S ${nlist}T"
4588 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4589
4590 # Parse the name list into a source file.
4591 $show "creating $output_objdir/$dlsyms"
4592
4593 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4594 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4596
4597 #ifdef __cplusplus
4598 extern \"C\" {
4599 #endif
4600
4601 /* Prevent the only kind of declaration conflicts we can make. */
4602 #define lt_preloaded_symbols some_other_symbol
4603
4604 /* External symbol declarations for the compiler. */\
4605 "
4606
4607 if test "$dlself" = yes; then
4608 $show "generating symbol list for \`$output'"
4609
4610 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4611
4612 # Add our own program objects to the symbol list.
4613 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4614 for arg in $progfiles; do
4615 $show "extracting global C symbols from \`$arg'"
4616 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4617 done
4618
4619 if test -n "$exclude_expsyms"; then
4620 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4621 $run eval '$mv "$nlist"T "$nlist"'
4622 fi
4623
4624 if test -n "$export_symbols_regex"; then
4625 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4626 $run eval '$mv "$nlist"T "$nlist"'
4627 fi
4628
4629 # Prepare the list of exported symbols
4630 if test -z "$export_symbols"; then
4631 export_symbols="$output_objdir/$outputname.exp"
4632 $run $rm $export_symbols
4633 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4634 case $host in
4635 *cygwin* | *mingw* )
4636 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4637 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4638 ;;
4639 esac
4640 else
4641 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4642 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4643 $run eval 'mv "$nlist"T "$nlist"'
4644 case $host in
4645 *cygwin* | *mingw* )
4646 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4647 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4648 ;;
4649 esac
4650 fi
4651 fi
4652
4653 for arg in $dlprefiles; do
4654 $show "extracting global C symbols from \`$arg'"
4655 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4656 $run eval '$echo ": $name " >> "$nlist"'
4657 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4658 done
4659
4660 if test -z "$run"; then
4661 # Make sure we have at least an empty file.
4662 test -f "$nlist" || : > "$nlist"
4663
4664 if test -n "$exclude_expsyms"; then
4665 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4666 $mv "$nlist"T "$nlist"
4667 fi
4668
4669 # Try sorting and uniquifying the output.
4670 if grep -v "^: " < "$nlist" |
4671 if sort -k 3 </dev/null >/dev/null 2>&1; then
4672 sort -k 3
4673 else
4674 sort +2
4675 fi |
4676 uniq > "$nlist"S; then
4677 :
4678 else
4679 grep -v "^: " < "$nlist" > "$nlist"S
4680 fi
4681
4682 if test -f "$nlist"S; then
4683 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4684 else
4685 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4686 fi
4687
4688 $echo >> "$output_objdir/$dlsyms" "\
4689
4690 #undef lt_preloaded_symbols
4691
4692 #if defined (__STDC__) && __STDC__
4693 # define lt_ptr void *
4694 #else
4695 # define lt_ptr char *
4696 # define const
4697 #endif
4698
4699 /* The mapping between symbol names and symbols. */
4700 "
4701
4702 case $host in
4703 *cygwin* | *mingw* )
4704 $echo >> "$output_objdir/$dlsyms" "\
4705 /* DATA imports from DLLs on WIN32 can't be const, because
4706 runtime relocations are performed -- see ld's documentation
4707 on pseudo-relocs */
4708 struct {
4709 "
4710 ;;
4711 * )
4712 $echo >> "$output_objdir/$dlsyms" "\
4713 const struct {
4714 "
4715 ;;
4716 esac
4717
4718
4719 $echo >> "$output_objdir/$dlsyms" "\
4720 const char *name;
4721 lt_ptr address;
4722 }
4723 lt_preloaded_symbols[] =
4724 {\
4725 "
4726
4727 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4728
4729 $echo >> "$output_objdir/$dlsyms" "\
4730 {0, (lt_ptr) 0}
4731 };
4732
4733 /* This works around a problem in FreeBSD linker */
4734 #ifdef FREEBSD_WORKAROUND
4735 static const void *lt_preloaded_setup() {
4736 return lt_preloaded_symbols;
4737 }
4738 #endif
4739
4740 #ifdef __cplusplus
4741 }
4742 #endif\
4743 "
4744 fi
4745
4746 pic_flag_for_symtable=
4747 case $host in
4748 # compiling the symbol table file with pic_flag works around
4749 # a FreeBSD bug that causes programs to crash when -lm is
4750 # linked before any other PIC object. But we must not use
4751 # pic_flag when linking with -static. The problem exists in
4752 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4753 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4754 case "$compile_command " in
4755 *" -static "*) ;;
4756 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4757 esac;;
4758 *-*-hpux*)
4759 case "$compile_command " in
4760 *" -static "*) ;;
4761 *) pic_flag_for_symtable=" $pic_flag";;
4762 esac
4763 esac
4764
4765 # Now compile the dynamic symbol file.
4766 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4767 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4768
4769 # Clean up the generated files.
4770 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4771 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4772
4773 # Transform the symbol file into the correct name.
4774 case $host in
4775 *cygwin* | *mingw* )
4776 if test -f "$output_objdir/${outputname}.def" ; then
4777 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4778 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%" | $NL2SP`
4779 else
4780 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4781 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4782 fi
4783 ;;
4784 * )
4785 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4786 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%" | $NL2SP`
4787 ;;
4788 esac
4789 ;;
4790 *)
4791 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4792 exit $EXIT_FAILURE
4793 ;;
4794 esac
4795 else
4796 # We keep going just in case the user didn't refer to
4797 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4798 # really was required.
4799
4800 # Nullify the symbol file.
4801 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4802 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "s% @SYMFILE@%%" | $NL2SP`
4803 fi
4804
4805 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7151 wrappers_required=yes
7152 case $host in
7153 *cygwin* | *mingw* )
7154 if test "$build_libtool_libs" != yes; then
7155 wrappers_required=no
7156 fi
7157 ;;
7158 *)
7159 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
7160 wrappers_required=no
7161 fi
7162 ;;
7163 esac
7164 if test "$wrappers_required" = no; then
48067165 # Replace the output file specification.
4807 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$output"'%g' | $NL2SP`
7166 compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48087167 link_command="$compile_command$compile_rpath"
48097168
48107169 # We have no uninstalled library dependencies, so finalize right now.
4811 $show "$link_command"
4812 $run eval "$link_command"
4813 exit_status=$?
7170 exit_status=0
7171 func_show_eval "$link_command" 'exit_status=$?'
48147172
48157173 # Delete the generated files.
4816 if test -n "$dlsyms"; then
4817 $show "$rm $output_objdir/${outputname}S.${objext}"
4818 $run $rm "$output_objdir/${outputname}S.${objext}"
7174 if test -f "$output_objdir/${outputname}S.${objext}"; then
7175 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
48197176 fi
48207177
48217178 exit $exit_status
4822 fi
4823
4824 if test -n "$shlibpath_var"; then
4825 # We should set the shlibpath_var
4826 rpath=
4827 for dir in $temp_rpath; do
4828 case $dir in
4829 [\\/]* | [A-Za-z]:[\\/]*)
4830 # Absolute path.
4831 rpath="$rpath$dir:"
4832 ;;
4833 *)
4834 # Relative path: add a thisdir entry.
4835 rpath="$rpath\$thisdir/$dir:"
4836 ;;
4837 esac
4838 done
4839 temp_rpath="$rpath"
48407179 fi
48417180
48427181 if test -n "$compile_shlibpath$finalize_shlibpath"; then
48717210 # We don't need to create a wrapper script.
48727211 link_command="$compile_var$compile_command$compile_rpath"
48737212 # Replace the output file specification.
4874 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
7213 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
48757214 # Delete the old output file.
4876 $run $rm $output
7215 $opt_dry_run || $RM $output
48777216 # Link the executable and exit
4878 $show "$link_command"
4879 $run eval "$link_command" || exit $?
7217 func_show_eval "$link_command" 'exit $?'
48807218 exit $EXIT_SUCCESS
48817219 fi
48827220
48857223 link_command="$compile_var$compile_command$compile_rpath"
48867224 relink_command="$finalize_var$finalize_command$finalize_rpath"
48877225
4888 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4889 $echo "$modename: \`$output' will be relinked during installation" 1>&2
7226 func_warning "this platform does not like uninstalled shared libraries"
7227 func_warning "\`$output' will be relinked during installation"
48907228 else
48917229 if test "$fast_install" != no; then
48927230 link_command="$finalize_var$compile_command$finalize_rpath"
48937231 if test "$fast_install" = yes; then
4894 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $SP2NL | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g' | $NL2SP`
7232 relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
48957233 else
48967234 # fast_install is set to needless
48977235 relink_command=
49037241 fi
49047242
49057243 # Replace the output file specification.
4906 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
7244 link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
49077245
49087246 # Delete the old output files.
4909 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4910
4911 $show "$link_command"
4912 $run eval "$link_command" || exit $?
7247 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
7248
7249 func_show_eval "$link_command" 'exit $?'
49137250
49147251 # Now create the wrapper script.
4915 $show "creating $output"
7252 func_verbose "creating $output"
49167253
49177254 # Quote the relink command for shipping.
49187255 if test -n "$relink_command"; then
49197256 # Preserve any variables that may affect compiler behavior
49207257 for var in $variables_saved_for_relink; do
49217258 if eval test -z \"\${$var+set}\"; then
4922 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
7259 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
49237260 elif eval var_value=\$$var; test -z "$var_value"; then
49247261 relink_command="$var=; export $var; $relink_command"
49257262 else
4926 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4927 relink_command="$var=\"$var_value\"; export $var; $relink_command"
7263 func_quote_for_eval "$var_value"
7264 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
49287265 fi
49297266 done
49307267 relink_command="(cd `pwd`; $relink_command)"
4931 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
7268 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
49327269 fi
49337270
4934 # Quote $echo for shipping.
4935 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
7271 # Quote $ECHO for shipping.
7272 if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
49367273 case $progpath in
49377274 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
49387275 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
49397276 esac
4940 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
7277 qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
49417278 else
4942 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
7279 qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
49437280 fi
49447281
4945 # Only actually do things if our run command is non-null.
4946 if test -z "$run"; then
7282 # Only actually do things if not in dry run mode.
7283 $opt_dry_run || {
49477284 # win32 will think the script is a binary if it has
49487285 # a .exe suffix, so we strip it off here.
49497286 case $output in
4950 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
7287 *.exe) func_stripname '' '.exe' "$output"
7288 output=$func_stripname_result ;;
49517289 esac
49527290 # test for cygwin because mv fails w/o .exe extensions
49537291 case $host in
49547292 *cygwin*)
49557293 exeext=.exe
4956 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
7294 func_stripname '' '.exe' "$outputname"
7295 outputname=$func_stripname_result ;;
49577296 *) exeext= ;;
49587297 esac
49597298 case $host in
49607299 *cygwin* | *mingw* )
4961 output_name=`basename $output`
4962 output_path=`dirname $output`
4963 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4964 cwrapper="$output_path/$output_name.exe"
4965 $rm $cwrappersource $cwrapper
4966 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4967
4968 cat > $cwrappersource <<EOF
4969
4970 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4971 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4972
4973 The $output program cannot be directly executed until all the libtool
4974 libraries that it depends on are installed.
4975
4976 This wrapper executable should never be moved out of the build directory.
4977 If it is, it will not operate correctly.
4978
4979 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4980 but could eventually absorb all of the scripts functionality and
4981 exec $objdir/$outputname directly.
4982 */
4983 EOF
4984 cat >> $cwrappersource<<"EOF"
4985 #include <stdio.h>
4986 #include <stdlib.h>
4987 #include <unistd.h>
4988 #include <malloc.h>
4989 #include <stdarg.h>
4990 #include <assert.h>
4991 #include <string.h>
4992 #include <ctype.h>
4993 #include <sys/stat.h>
4994
4995 #if defined(PATH_MAX)
4996 # define LT_PATHMAX PATH_MAX
4997 #elif defined(MAXPATHLEN)
4998 # define LT_PATHMAX MAXPATHLEN
4999 #else
5000 # define LT_PATHMAX 1024
5001 #endif
5002
5003 #ifndef DIR_SEPARATOR
5004 # define DIR_SEPARATOR '/'
5005 # define PATH_SEPARATOR ':'
5006 #endif
5007
5008 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
5009 defined (__OS2__)
5010 # define HAVE_DOS_BASED_FILE_SYSTEM
5011 # ifndef DIR_SEPARATOR_2
5012 # define DIR_SEPARATOR_2 '\\'
5013 # endif
5014 # ifndef PATH_SEPARATOR_2
5015 # define PATH_SEPARATOR_2 ';'
5016 # endif
5017 #endif
5018
5019 #ifndef DIR_SEPARATOR_2
5020 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5021 #else /* DIR_SEPARATOR_2 */
5022 # define IS_DIR_SEPARATOR(ch) \
5023 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5024 #endif /* DIR_SEPARATOR_2 */
5025
5026 #ifndef PATH_SEPARATOR_2
5027 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5028 #else /* PATH_SEPARATOR_2 */
5029 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5030 #endif /* PATH_SEPARATOR_2 */
5031
5032 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5033 #define XFREE(stale) do { \
5034 if (stale) { free ((void *) stale); stale = 0; } \
5035 } while (0)
5036
5037 /* -DDEBUG is fairly common in CFLAGS. */
5038 #undef DEBUG
5039 #if defined DEBUGWRAPPER
5040 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
5041 #else
5042 # define DEBUG(format, ...)
5043 #endif
5044
5045 const char *program_name = NULL;
5046
5047 void * xmalloc (size_t num);
5048 char * xstrdup (const char *string);
5049 const char * base_name (const char *name);
5050 char * find_executable(const char *wrapper);
5051 int check_executable(const char *path);
5052 char * strendzap(char *str, const char *pat);
5053 void lt_fatal (const char *message, ...);
5054
5055 int
5056 main (int argc, char *argv[])
5057 {
5058 char **newargz;
5059 int i;
5060
5061 program_name = (char *) xstrdup (base_name (argv[0]));
5062 DEBUG("(main) argv[0] : %s\n",argv[0]);
5063 DEBUG("(main) program_name : %s\n",program_name);
5064 newargz = XMALLOC(char *, argc+2);
5065 EOF
5066
5067 cat >> $cwrappersource <<EOF
5068 newargz[0] = (char *) xstrdup("$SHELL");
5069 EOF
5070
5071 cat >> $cwrappersource <<"EOF"
5072 newargz[1] = find_executable(argv[0]);
5073 if (newargz[1] == NULL)
5074 lt_fatal("Couldn't find %s", argv[0]);
5075 DEBUG("(main) found exe at : %s\n",newargz[1]);
5076 /* we know the script has the same name, without the .exe */
5077 /* so make sure newargz[1] doesn't end in .exe */
5078 strendzap(newargz[1],".exe");
5079 for (i = 1; i < argc; i++)
5080 newargz[i+1] = xstrdup(argv[i]);
5081 newargz[argc+1] = NULL;
5082
5083 for (i=0; i<argc+1; i++)
5084 {
5085 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5086 ;
5087 }
5088
5089 EOF
5090
5091 case $host_os in
5092 mingw*)
5093 cat >> $cwrappersource <<EOF
5094 execv("$SHELL",(char const **)newargz);
5095 EOF
5096 ;;
5097 *)
5098 cat >> $cwrappersource <<EOF
5099 execv("$SHELL",newargz);
5100 EOF
5101 ;;
5102 esac
5103
5104 cat >> $cwrappersource <<"EOF"
5105 return 127;
5106 }
5107
5108 void *
5109 xmalloc (size_t num)
5110 {
5111 void * p = (void *) malloc (num);
5112 if (!p)
5113 lt_fatal ("Memory exhausted");
5114
5115 return p;
5116 }
5117
5118 char *
5119 xstrdup (const char *string)
5120 {
5121 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5122 ;
5123 }
5124
5125 const char *
5126 base_name (const char *name)
5127 {
5128 const char *base;
5129
5130 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5131 /* Skip over the disk name in MSDOS pathnames. */
5132 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5133 name += 2;
5134 #endif
5135
5136 for (base = name; *name; name++)
5137 if (IS_DIR_SEPARATOR (*name))
5138 base = name + 1;
5139 return base;
5140 }
5141
5142 int
5143 check_executable(const char * path)
5144 {
5145 struct stat st;
5146
5147 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5148 if ((!path) || (!*path))
5149 return 0;
5150
5151 if ((stat (path, &st) >= 0) &&
5152 (
5153 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5154 #if defined (S_IXOTH)
5155 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5156 #endif
5157 #if defined (S_IXGRP)
5158 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5159 #endif
5160 ((st.st_mode & S_IXUSR) == S_IXUSR))
5161 )
5162 return 1;
5163 else
5164 return 0;
5165 }
5166
5167 /* Searches for the full path of the wrapper. Returns
5168 newly allocated full path name if found, NULL otherwise */
5169 char *
5170 find_executable (const char* wrapper)
5171 {
5172 int has_slash = 0;
5173 const char* p;
5174 const char* p_next;
5175 /* static buffer for getcwd */
5176 char tmp[LT_PATHMAX + 1];
5177 int tmp_len;
5178 char* concat_name;
5179
5180 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5181
5182 if ((wrapper == NULL) || (*wrapper == '\0'))
5183 return NULL;
5184
5185 /* Absolute path? */
5186 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5187 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5188 {
5189 concat_name = xstrdup (wrapper);
5190 if (check_executable(concat_name))
5191 return concat_name;
5192 XFREE(concat_name);
5193 }
5194 else
5195 {
5196 #endif
5197 if (IS_DIR_SEPARATOR (wrapper[0]))
5198 {
5199 concat_name = xstrdup (wrapper);
5200 if (check_executable(concat_name))
5201 return concat_name;
5202 XFREE(concat_name);
5203 }
5204 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5205 }
5206 #endif
5207
5208 for (p = wrapper; *p; p++)
5209 if (*p == '/')
5210 {
5211 has_slash = 1;
5212 break;
5213 }
5214 if (!has_slash)
5215 {
5216 /* no slashes; search PATH */
5217 const char* path = getenv ("PATH");
5218 if (path != NULL)
5219 {
5220 for (p = path; *p; p = p_next)
5221 {
5222 const char* q;
5223 size_t p_len;
5224 for (q = p; *q; q++)
5225 if (IS_PATH_SEPARATOR(*q))
5226 break;
5227 p_len = q - p;
5228 p_next = (*q == '\0' ? q : q + 1);
5229 if (p_len == 0)
5230 {
5231 /* empty path: current directory */
5232 if (getcwd (tmp, LT_PATHMAX) == NULL)
5233 lt_fatal ("getcwd failed");
5234 tmp_len = strlen(tmp);
5235 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5236 memcpy (concat_name, tmp, tmp_len);
5237 concat_name[tmp_len] = '/';
5238 strcpy (concat_name + tmp_len + 1, wrapper);
5239 }
5240 else
5241 {
5242 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5243 memcpy (concat_name, p, p_len);
5244 concat_name[p_len] = '/';
5245 strcpy (concat_name + p_len + 1, wrapper);
5246 }
5247 if (check_executable(concat_name))
5248 return concat_name;
5249 XFREE(concat_name);
5250 }
5251 }
5252 /* not found in PATH; assume curdir */
5253 }
5254 /* Relative path | not found in path: prepend cwd */
5255 if (getcwd (tmp, LT_PATHMAX) == NULL)
5256 lt_fatal ("getcwd failed");
5257 tmp_len = strlen(tmp);
5258 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5259 memcpy (concat_name, tmp, tmp_len);
5260 concat_name[tmp_len] = '/';
5261 strcpy (concat_name + tmp_len + 1, wrapper);
5262
5263 if (check_executable(concat_name))
5264 return concat_name;
5265 XFREE(concat_name);
5266 return NULL;
5267 }
5268
5269 char *
5270 strendzap(char *str, const char *pat)
5271 {
5272 size_t len, patlen;
5273
5274 assert(str != NULL);
5275 assert(pat != NULL);
5276
5277 len = strlen(str);
5278 patlen = strlen(pat);
5279
5280 if (patlen <= len)
5281 {
5282 str += len - patlen;
5283 if (strcmp(str, pat) == 0)
5284 *str = '\0';
5285 }
5286 return str;
5287 }
5288
5289 static void
5290 lt_error_core (int exit_status, const char * mode,
5291 const char * message, va_list ap)
5292 {
5293 fprintf (stderr, "%s: %s: ", program_name, mode);
5294 vfprintf (stderr, message, ap);
5295 fprintf (stderr, ".\n");
5296
5297 if (exit_status >= 0)
5298 exit (exit_status);
5299 }
5300
5301 void
5302 lt_fatal (const char *message, ...)
5303 {
5304 va_list ap;
5305 va_start (ap, message);
5306 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5307 va_end (ap);
5308 }
5309 EOF
5310 # we should really use a build-platform specific compiler
5311 # here, but OTOH, the wrappers (shell script and this C one)
5312 # are only useful if you want to execute the "real" binary.
5313 # Since the "real" binary is built for $host, then this
5314 # wrapper might as well be built for $host, too.
5315 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5316 ;;
5317 esac
5318 $rm $output
5319 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5320
5321 $echo > $output "\
5322 #! $SHELL
5323
5324 # $output - temporary wrapper script for $objdir/$outputname
5325 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5326 #
5327 # The $output program cannot be directly executed until all the libtool
5328 # libraries that it depends on are installed.
5329 #
5330 # This wrapper script should never be moved out of the build directory.
5331 # If it is, it will not operate correctly.
5332
5333 # Sed substitution that helps us do robust quoting. It backslashifies
5334 # metacharacters that are still active within double-quoted strings.
5335 Xsed='${SED} -e 1s/^X//'
5336 sed_quote_subst='$sed_quote_subst'
5337
5338 # Be Bourne compatible (taken from Autoconf:_AS_BOURNE_COMPATIBLE).
5339 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5340 emulate sh
5341 NULLCMD=:
5342 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5343 # is contrary to our usage. Disable this feature.
5344 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5345 setopt NO_GLOB_SUBST
5346 else
5347 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5348 fi
5349 BIN_SH=xpg4; export BIN_SH # for Tru64
5350 DUALCASE=1; export DUALCASE # for MKS sh
5351
5352 # The HP-UX ksh and POSIX shell print the target directory to stdout
5353 # if CDPATH is set.
5354 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5355
5356 relink_command=\"$relink_command\"
5357
5358 # This environment variable determines our operation mode.
5359 if test \"\$libtool_install_magic\" = \"$magic\"; then
5360 # install mode needs the following variable:
5361 notinst_deplibs='$notinst_deplibs'
5362 else
5363 # When we are sourced in execute mode, \$file and \$echo are already set.
5364 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5365 echo=\"$qecho\"
5366 file=\"\$0\"
5367 # Make sure echo works.
5368 if test \"X\$1\" = X--no-reexec; then
5369 # Discard the --no-reexec flag, and continue.
5370 shift
5371 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5372 # Yippee, \$echo works!
5373 :
5374 else
5375 # Restart under the correct shell, and then maybe \$echo will work.
5376 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5377 fi
5378 fi\
5379 "
5380 $echo >> $output "\
5381
5382 # Find the directory that this script lives in.
5383 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5384 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5385
5386 # Follow symbolic links until we get to the real thisdir.
5387 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5388 while test -n \"\$file\"; do
5389 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5390
5391 # If there was a directory component, then change thisdir.
5392 if test \"x\$destdir\" != \"x\$file\"; then
5393 case \"\$destdir\" in
5394 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5395 *) thisdir=\"\$thisdir/\$destdir\" ;;
5396 esac
5397 fi
5398
5399 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5400 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5401 done
5402
5403 # Try to get the absolute directory name.
5404 absdir=\`cd \"\$thisdir\" && pwd\`
5405 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5406 "
5407
5408 if test "$fast_install" = yes; then
5409 $echo >> $output "\
5410 program=lt-'$outputname'$exeext
5411 progdir=\"\$thisdir/$objdir\"
5412
5413 if test ! -f \"\$progdir/\$program\" || \\
5414 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5415 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5416
5417 file=\"\$\$-\$program\"
5418
5419 if test ! -d \"\$progdir\"; then
5420 $mkdir \"\$progdir\"
5421 else
5422 $rm \"\$progdir/\$file\"
5423 fi"
5424
5425 $echo >> $output "\
5426
5427 # relink executable if necessary
5428 if test -n \"\$relink_command\"; then
5429 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5430 else
5431 $echo \"\$relink_command_output\" >&2
5432 $rm \"\$progdir/\$file\"
5433 exit $EXIT_FAILURE
5434 fi
5435 fi
5436
5437 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5438 { $rm \"\$progdir/\$program\";
5439 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5440 $rm \"\$progdir/\$file\"
5441 fi"
5442 else
5443 $echo >> $output "\
5444 program='$outputname'
5445 progdir=\"\$thisdir/$objdir\"
5446 "
5447 fi
5448
5449 $echo >> $output "\
5450
5451 if test -f \"\$progdir/\$program\"; then"
5452
5453 # Export our shlibpath_var if we have one.
5454 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5455 $echo >> $output "\
5456 # Add our own library path to $shlibpath_var
5457 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5458
5459 # Some systems cannot cope with colon-terminated $shlibpath_var
5460 # The second colon is a workaround for a bug in BeOS R4 sed
5461 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5462
5463 export $shlibpath_var
5464 "
5465 fi
5466
5467 # fixup the dll searchpath if we need to.
5468 if test -n "$dllsearchpath"; then
5469 $echo >> $output "\
5470 # Add the dll search path components to the executable PATH
5471 PATH=$dllsearchpath:\$PATH
5472 "
5473 fi
5474
5475 $echo >> $output "\
5476 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5477 # Run the actual program with our arguments.
5478 "
5479 case $host in
5480 # Backslashes separate directories on plain windows
5481 *-*-mingw | *-*-os2*)
5482 $echo >> $output "\
5483 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5484 "
7300 func_dirname_and_basename "$output" "" "."
7301 output_name=$func_basename_result
7302 output_path=$func_dirname_result
7303 cwrappersource="$output_path/$objdir/lt-$output_name.c"
7304 cwrapper="$output_path/$output_name.exe"
7305 $RM $cwrappersource $cwrapper
7306 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
7307
7308 func_emit_cwrapperexe_src > $cwrappersource
7309
7310 # we should really use a build-platform specific compiler
7311 # here, but OTOH, the wrappers (shell script and this C one)
7312 # are only useful if you want to execute the "real" binary.
7313 # Since the "real" binary is built for $host, then this
7314 # wrapper might as well be built for $host, too.
7315 $opt_dry_run || {
7316 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
7317 $STRIP $cwrapper
7318 }
7319
7320 # Now, create the wrapper script for func_source use:
7321 func_ltwrapper_scriptname $cwrapper
7322 $RM $func_ltwrapper_scriptname_result
7323 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
7324 $opt_dry_run || {
7325 # note: this script will not be executed, so do not chmod.
7326 if test "x$build" = "x$host" ; then
7327 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
7328 else
7329 func_emit_wrapper no > $func_ltwrapper_scriptname_result
7330 fi
7331 }
54857332 ;;
5486
5487 *)
5488 $echo >> $output "\
5489 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5490 "
7333 * )
7334 $RM $output
7335 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
7336
7337 func_emit_wrapper no > $output
7338 chmod +x $output
54917339 ;;
54927340 esac
5493 $echo >> $output "\
5494 \$echo \"\$0: cannot exec \$program \$*\"
5495 exit $EXIT_FAILURE
5496 fi
5497 else
5498 # The program doesn't exist.
5499 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5500 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5501 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5502 exit $EXIT_FAILURE
5503 fi
5504 fi\
5505 "
5506 chmod +x $output
5507 fi
7341 }
55087342 exit $EXIT_SUCCESS
55097343 ;;
55107344 esac
55137347 for oldlib in $oldlibs; do
55147348
55157349 if test "$build_libtool_libs" = convenience; then
5516 oldobjs="$libobjs_save"
7350 oldobjs="$libobjs_save $symfileobj"
55177351 addlibs="$convenience"
55187352 build_libtool_libs=no
55197353 else
55227356 build_libtool_libs=no
55237357 else
55247358 oldobjs="$old_deplibs $non_pic_objects"
7359 if test "$preload" = yes && test -f "$symfileobj"; then
7360 oldobjs="$oldobjs $symfileobj"
7361 fi
55257362 fi
55267363 addlibs="$old_convenience"
55277364 fi
55367373
55377374 # Do each command in the archive commands.
55387375 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5539 cmds=$old_archive_from_new_cmds
7376 cmds=$old_archive_from_new_cmds
55407377 else
7378
7379 # Add any objects from preloaded convenience libraries
7380 if test -n "$dlprefiles"; then
7381 gentop="$output_objdir/${outputname}x"
7382 generated="$generated $gentop"
7383
7384 func_extract_archives $gentop $dlprefiles
7385 oldobjs="$oldobjs $func_extract_archives_result"
7386 fi
7387
55417388 # POSIX demands no paths to be encoded in archives. We have
55427389 # to avoid creating archives with duplicate basenames if we
55437390 # might have to extract them afterwards, e.g., when creating a
55467393 # not supported by libtool).
55477394 if (for obj in $oldobjs
55487395 do
5549 $echo "X$obj" | $Xsed -e 's%^.*/%%'
7396 func_basename "$obj"
7397 $ECHO "$func_basename_result"
55507398 done | sort | sort -uc >/dev/null 2>&1); then
55517399 :
55527400 else
5553 $echo "copying selected object files to avoid basename conflicts..."
5554
5555 if test -z "$gentop"; then
5556 gentop="$output_objdir/${outputname}x"
5557 generated="$generated $gentop"
5558
5559 $show "${rm}r $gentop"
5560 $run ${rm}r "$gentop"
5561 $show "$mkdir $gentop"
5562 $run $mkdir "$gentop"
5563 exit_status=$?
5564 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5565 exit $exit_status
5566 fi
5567 fi
5568
7401 $ECHO "copying selected object files to avoid basename conflicts..."
7402 gentop="$output_objdir/${outputname}x"
7403 generated="$generated $gentop"
7404 func_mkdir_p "$gentop"
55697405 save_oldobjs=$oldobjs
55707406 oldobjs=
55717407 counter=1
55727408 for obj in $save_oldobjs
55737409 do
5574 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
7410 func_basename "$obj"
7411 objbase="$func_basename_result"
55757412 case " $oldobjs " in
55767413 " ") oldobjs=$obj ;;
55777414 *[\ /]"$objbase "*)
55797416 # Make sure we don't pick an alternate name that also
55807417 # overlaps.
55817418 newobj=lt$counter-$objbase
5582 counter=`expr $counter + 1`
7419 func_arith $counter + 1
7420 counter=$func_arith_result
55837421 case " $oldobjs " in
55847422 *[\ /]"$newobj "*) ;;
55857423 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
55867424 esac
55877425 done
5588 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5589 $run ln "$obj" "$gentop/$newobj" ||
5590 $run cp "$obj" "$gentop/$newobj"
7426 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
55917427 oldobjs="$oldobjs $gentop/$newobj"
55927428 ;;
55937429 *) oldobjs="$oldobjs $obj" ;;
55947430 esac
55957431 done
55967432 fi
5597
55987433 eval cmds=\"$old_archive_cmds\"
55997434
5600 if len=`expr "X$cmds" : ".*"` &&
5601 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
7435 func_len " $cmds"
7436 len=$func_len_result
7437 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
56027438 cmds=$old_archive_cmds
56037439 else
56047440 # the command line is too long to link in one step, link in parts
5605 $echo "using piecewise archive linking..."
7441 func_verbose "using piecewise archive linking..."
56067442 save_RANLIB=$RANLIB
56077443 RANLIB=:
56087444 objlist=
56097445 concat_cmds=
56107446 save_oldobjs=$oldobjs
5611
7447 oldobjs=
56127448 # Is there a better way of finding the last object in the list?
56137449 for obj in $save_oldobjs
56147450 do
56157451 last_oldobj=$obj
56167452 done
7453 eval test_cmds=\"$old_archive_cmds\"
7454 func_len " $test_cmds"
7455 len0=$func_len_result
7456 len=$len0
56177457 for obj in $save_oldobjs
56187458 do
5619 oldobjs="$objlist $obj"
5620 objlist="$objlist $obj"
5621 eval test_cmds=\"$old_archive_cmds\"
5622 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5623 test "$len" -le "$max_cmd_len"; then
7459 func_len " $obj"
7460 func_arith $len + $func_len_result
7461 len=$func_arith_result
7462 func_append objlist " $obj"
7463 if test "$len" -lt "$max_cmd_len"; then
56247464 :
56257465 else
56267466 # the above command should be used before it gets too long
56277467 oldobjs=$objlist
56287468 if test "$obj" = "$last_oldobj" ; then
5629 RANLIB=$save_RANLIB
7469 RANLIB=$save_RANLIB
56307470 fi
56317471 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
56327472 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
56337473 objlist=
7474 len=$len0
56347475 fi
56357476 done
56367477 RANLIB=$save_RANLIB
56427483 fi
56437484 fi
56447485 fi
5645 save_ifs="$IFS"; IFS='~'
5646 for cmd in $cmds; do
5647 eval cmd=\"$cmd\"
5648 IFS="$save_ifs"
5649 $show "$cmd"
5650 $run eval "$cmd" || exit $?
5651 done
5652 IFS="$save_ifs"
7486 func_execute_cmds "$cmds" 'exit $?'
56537487 done
56547488
5655 if test -n "$generated"; then
5656 $show "${rm}r$generated"
5657 $run ${rm}r$generated
5658 fi
7489 test -n "$generated" && \
7490 func_show_eval "${RM}r$generated"
56597491
56607492 # Now create the libtool archive.
56617493 case $output in
56627494 *.la)
56637495 old_library=
56647496 test "$build_old_libs" = yes && old_library="$libname.$libext"
5665 $show "creating $output"
7497 func_verbose "creating $output"
56667498
56677499 # Preserve any variables that may affect compiler behavior
56687500 for var in $variables_saved_for_relink; do
56697501 if eval test -z \"\${$var+set}\"; then
5670 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
7502 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
56717503 elif eval var_value=\$$var; test -z "$var_value"; then
56727504 relink_command="$var=; export $var; $relink_command"
56737505 else
5674 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5675 relink_command="$var=\"$var_value\"; export $var; $relink_command"
7506 func_quote_for_eval "$var_value"
7507 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
56767508 fi
56777509 done
56787510 # Quote the link command for shipping.
56797511 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5680 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e "$sed_quote_subst" | $NL2SP`
7512 relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
56817513 if test "$hardcode_automatic" = yes ; then
56827514 relink_command=
56837515 fi
56847516
5685
56867517 # Only create the output if not a dry run.
5687 if test -z "$run"; then
7518 $opt_dry_run || {
56887519 for installed in no yes; do
56897520 if test "$installed" = yes; then
56907521 if test -z "$install_libdir"; then
56967527 for deplib in $dependency_libs; do
56977528 case $deplib in
56987529 *.la)
5699 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
7530 func_basename "$deplib"
7531 name="$func_basename_result"
57007532 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5701 if test -z "$libdir"; then
5702 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5703 exit $EXIT_FAILURE
5704 fi
7533 test -z "$libdir" && \
7534 func_fatal_error "\`$deplib' is not a valid libtool archive"
57057535 newdependency_libs="$newdependency_libs $libdir/$name"
57067536 ;;
57077537 *) newdependency_libs="$newdependency_libs $deplib" ;;
57097539 done
57107540 dependency_libs="$newdependency_libs"
57117541 newdlfiles=
7542
57127543 for lib in $dlfiles; do
5713 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5714 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5715 if test -z "$libdir"; then
5716 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5717 exit $EXIT_FAILURE
5718 fi
5719 newdlfiles="$newdlfiles $libdir/$name"
7544 case $lib in
7545 *.la)
7546 func_basename "$lib"
7547 name="$func_basename_result"
7548 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
7549 test -z "$libdir" && \
7550 func_fatal_error "\`$lib' is not a valid libtool archive"
7551 newdlfiles="$newdlfiles $libdir/$name"
7552 ;;
7553 *) newdlfiles="$newdlfiles $lib" ;;
7554 esac
57207555 done
57217556 dlfiles="$newdlfiles"
57227557 newdlprefiles=
57237558 for lib in $dlprefiles; do
5724 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5725 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5726 if test -z "$libdir"; then
5727 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5728 exit $EXIT_FAILURE
5729 fi
5730 newdlprefiles="$newdlprefiles $libdir/$name"
7559 case $lib in
7560 *.la)
7561 # Only pass preopened files to the pseudo-archive (for
7562 # eventual linking with the app. that links it) if we
7563 # didn't already link the preopened objects directly into
7564 # the library:
7565 func_basename "$lib"
7566 name="$func_basename_result"
7567 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
7568 test -z "$libdir" && \
7569 func_fatal_error "\`$lib' is not a valid libtool archive"
7570 newdlprefiles="$newdlprefiles $libdir/$name"
7571 ;;
7572 esac
57317573 done
57327574 dlprefiles="$newdlprefiles"
57337575 else
57507592 done
57517593 dlprefiles="$newdlprefiles"
57527594 fi
5753 $rm $output
7595 $RM $output
57547596 # place dlname in correct position for cygwin
57557597 tdlname=$dlname
57567598 case $host,$output,$installed,$module,$dlname in
57577599 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
57587600 esac
5759 $echo > $output "\
7601 $ECHO > $output "\
57607602 # $outputname - a libtool library file
5761 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
7603 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
57627604 #
57637605 # Please DO NOT delete this file!
57647606 # It is necessary for linking the library.
57727614 # The name of the static archive.
57737615 old_library='$old_library'
57747616
7617 # Linker flags that can not go in dependency_libs.
7618 inherited_linker_flags='$new_inherited_linker_flags'
7619
57757620 # Libraries that this one depends upon.
57767621 dependency_libs='$dependency_libs'
7622
7623 # Names of additional weak libraries provided by this library
7624 weak_library_names='$weak_libs'
57777625
57787626 # Version information for $libname.
57797627 current=$current
57937641 # Directory that this library needs to be installed in:
57947642 libdir='$install_libdir'"
57957643 if test "$installed" = no && test "$need_relink" = yes; then
5796 $echo >> $output "\
7644 $ECHO >> $output "\
57977645 relink_command=\"$relink_command\""
57987646 fi
57997647 done
5800 fi
7648 }
58017649
58027650 # Do a symbolic link so that the libtool archive can be found in
58037651 # LD_LIBRARY_PATH before the program is installed.
5804 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5805 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
7652 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
58067653 ;;
58077654 esac
58087655 exit $EXIT_SUCCESS
5809 ;;
5810
5811 # libtool install mode
5812 install)
5813 modename="$modename: install"
5814
5815 # There may be an optional sh(1) argument at the beginning of
5816 # install_prog (especially on Windows NT).
5817 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5818 # Allow the use of GNU shtool's install command.
5819 $echo "X$nonopt" | grep shtool > /dev/null; then
5820 # Aesthetically quote it.
5821 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5822 case $arg in
5823 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5824 arg="\"$arg\""
5825 ;;
5826 esac
5827 install_prog="$arg "
5828 arg="$1"
5829 shift
5830 else
5831 install_prog=
5832 arg=$nonopt
5833 fi
5834
5835 # The real first argument should be the name of the installation program.
5836 # Aesthetically quote it.
5837 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5838 case $arg in
5839 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5840 arg="\"$arg\""
5841 ;;
5842 esac
5843 install_prog="$install_prog$arg"
5844
5845 # We need to accept at least all the BSD install flags.
5846 dest=
7656 }
7657
7658 { test "$mode" = link || test "$mode" = relink; } &&
7659 func_mode_link ${1+"$@"}
7660
7661
7662 # func_mode_uninstall arg...
7663 func_mode_uninstall ()
7664 {
7665 $opt_debug
7666 RM="$nonopt"
58477667 files=
5848 opts=
5849 prev=
5850 install_type=
5851 isdir=no
5852 stripme=
5853 for arg
5854 do
5855 if test -n "$dest"; then
5856 files="$files $dest"
5857 dest=$arg
5858 continue
5859 fi
5860
5861 case $arg in
5862 -d) isdir=yes ;;
5863 -f)
5864 case " $install_prog " in
5865 *[\\\ /]cp\ *) ;;
5866 *) prev=$arg ;;
5867 esac
5868 ;;
5869 -g | -m | -o) prev=$arg ;;
5870 -s)
5871 stripme=" -s"
5872 continue
5873 ;;
5874 -*)
5875 ;;
5876 *)
5877 # If the previous option needed an argument, then skip it.
5878 if test -n "$prev"; then
5879 prev=
5880 else
5881 dest=$arg
5882 continue
5883 fi
5884 ;;
5885 esac
5886
5887 # Aesthetically quote the argument.
5888 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5889 case $arg in
5890 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5891 arg="\"$arg\""
5892 ;;
5893 esac
5894 install_prog="$install_prog $arg"
5895 done
5896
5897 if test -z "$install_prog"; then
5898 $echo "$modename: you must specify an install program" 1>&2
5899 $echo "$help" 1>&2
5900 exit $EXIT_FAILURE
5901 fi
5902
5903 if test -n "$prev"; then
5904 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5905 $echo "$help" 1>&2
5906 exit $EXIT_FAILURE
5907 fi
5908
5909 if test -z "$files"; then
5910 if test -z "$dest"; then
5911 $echo "$modename: no file or destination specified" 1>&2
5912 else
5913 $echo "$modename: you must specify a destination" 1>&2
5914 fi
5915 $echo "$help" 1>&2
5916 exit $EXIT_FAILURE
5917 fi
5918
5919 # Strip any trailing slash from the destination.
5920 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5921
5922 # Check to see that the destination is a directory.
5923 test -d "$dest" && isdir=yes
5924 if test "$isdir" = yes; then
5925 destdir="$dest"
5926 destname=
5927 else
5928 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5929 test "X$destdir" = "X$dest" && destdir=.
5930 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5931
5932 # Not a directory, so check to see that there is only one file specified.
5933 set dummy $files
5934 if test "$#" -gt 2; then
5935 $echo "$modename: \`$dest' is not a directory" 1>&2
5936 $echo "$help" 1>&2
5937 exit $EXIT_FAILURE
5938 fi
5939 fi
5940 case $destdir in
5941 [\\/]* | [A-Za-z]:[\\/]*) ;;
5942 *)
5943 for file in $files; do
5944 case $file in
5945 *.lo) ;;
5946 *)
5947 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5948 $echo "$help" 1>&2
5949 exit $EXIT_FAILURE
5950 ;;
5951 esac
5952 done
5953 ;;
5954 esac
7668 rmforce=
7669 exit_status=0
59557670
59567671 # This variable tells wrapper scripts just to set variables rather
59577672 # than running their programs.
59587673 libtool_install_magic="$magic"
59597674
5960 staticlibs=
5961 future_libdirs=
5962 current_libdirs=
5963 for file in $files; do
5964
5965 # Do each installation.
5966 case $file in
5967 *.$libext)
5968 # Do the static libraries later.
5969 staticlibs="$staticlibs $file"
5970 ;;
5971
5972 *.la)
5973 # Check to see that this really is a libtool archive.
5974 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5975 else
5976 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5977 $echo "$help" 1>&2
5978 exit $EXIT_FAILURE
5979 fi
5980
5981 library_names=
5982 old_library=
5983 relink_command=
5984 # If there is no directory component, then add one.
5985 case $file in
5986 */* | *\\*) . $file ;;
5987 *) . ./$file ;;
5988 esac
5989
5990 # Add the libdir to current_libdirs if it is the destination.
5991 if test "X$destdir" = "X$libdir"; then
5992 case "$current_libdirs " in
5993 *" $libdir "*) ;;
5994 *) current_libdirs="$current_libdirs $libdir" ;;
5995 esac
5996 else
5997 # Note the libdir as a future libdir.
5998 case "$future_libdirs " in
5999 *" $libdir "*) ;;
6000 *) future_libdirs="$future_libdirs $libdir" ;;
6001 esac
6002 fi
6003
6004 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
6005 test "X$dir" = "X$file/" && dir=
6006 dir="$dir$objdir"
6007
6008 if test -n "$relink_command"; then
6009 # Determine the prefix the user has applied to our future dir.
6010 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
6011
6012 # Don't allow the user to place us outside of our expected
6013 # location b/c this prevents finding dependent libraries that
6014 # are installed to the same prefix.
6015 # At present, this check doesn't affect windows .dll's that
6016 # are installed into $libdir/../bin (currently, that works fine)
6017 # but it's something to keep an eye on.
6018 if test "$inst_prefix_dir" = "$destdir"; then
6019 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
6020 exit $EXIT_FAILURE
6021 fi
6022
6023 if test -n "$inst_prefix_dir"; then
6024 # Stick the inst_prefix_dir data into the link command.
6025 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%" | $NL2SP`
6026 else
6027 relink_command=`$echo "$relink_command" | $SP2NL | $SED "s%@inst_prefix_dir@%%" | $NL2SP`
6028 fi
6029
6030 $echo "$modename: warning: relinking \`$file'" 1>&2
6031 $show "$relink_command"
6032 if $run eval "$relink_command"; then :
6033 else
6034 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6035 exit $EXIT_FAILURE
6036 fi
6037 fi
6038
6039 # See the names of the shared library.
6040 set dummy $library_names
6041 if test -n "$2"; then
6042 realname="$2"
6043 shift
6044 shift
6045
6046 srcname="$realname"
6047 test -n "$relink_command" && srcname="$realname"T
6048
6049 # Install the shared library and build the symlinks.
6050 $show "$install_prog $dir/$srcname $destdir/$realname"
6051 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
6052 if test -n "$stripme" && test -n "$striplib"; then
6053 $show "$striplib $destdir/$realname"
6054 $run eval "$striplib $destdir/$realname" || exit $?
6055 fi
6056
6057 if test "$#" -gt 0; then
6058 # Delete the old symlinks, and create new ones.
6059 # Try `ln -sf' first, because the `ln' binary might depend on
6060 # the symlink we replace! Solaris /bin/ln does not understand -f,
6061 # so we also need to try rm && ln -s.
6062 for linkname
6063 do
6064 if test "$linkname" != "$realname"; then
6065 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6066 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
6067 fi
6068 done
6069 fi
6070
6071 # Do each command in the postinstall commands.
6072 lib="$destdir/$realname"
6073 cmds=$postinstall_cmds
6074 save_ifs="$IFS"; IFS='~'
6075 for cmd in $cmds; do
6076 IFS="$save_ifs"
6077 eval cmd=\"$cmd\"
6078 $show "$cmd"
6079 $run eval "$cmd" || {
6080 lt_exit=$?
6081
6082 # Restore the uninstalled library and exit
6083 if test "$mode" = relink; then
6084 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
6085 fi
6086
6087 exit $lt_exit
6088 }
6089 done
6090 IFS="$save_ifs"
6091 fi
6092
6093 # Install the pseudo-library for information purposes.
6094 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6095 instname="$dir/$name"i
6096 $show "$install_prog $instname $destdir/$name"
6097 $run eval "$install_prog $instname $destdir/$name" || exit $?
6098
6099 # Maybe install the static library, too.
6100 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6101 ;;
6102
6103 *.lo)
6104 # Install (i.e. copy) a libtool object.
6105
6106 # Figure out destination file name, if it wasn't already specified.
6107 if test -n "$destname"; then
6108 destfile="$destdir/$destname"
6109 else
6110 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6111 destfile="$destdir/$destfile"
6112 fi
6113
6114 # Deduce the name of the destination old-style object file.
6115 case $destfile in
6116 *.lo)
6117 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6118 ;;
6119 *.$objext)
6120 staticdest="$destfile"
6121 destfile=
6122 ;;
6123 *)
6124 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6125 $echo "$help" 1>&2
6126 exit $EXIT_FAILURE
6127 ;;
6128 esac
6129
6130 # Install the libtool object if requested.
6131 if test -n "$destfile"; then
6132 $show "$install_prog $file $destfile"
6133 $run eval "$install_prog $file $destfile" || exit $?
6134 fi
6135
6136 # Install the old object if enabled.
6137 if test "$build_old_libs" = yes; then
6138 # Deduce the name of the old-style object file.
6139 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6140
6141 $show "$install_prog $staticobj $staticdest"
6142 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6143 fi
6144 exit $EXIT_SUCCESS
6145 ;;
6146
6147 *)
6148 # Figure out destination file name, if it wasn't already specified.
6149 if test -n "$destname"; then
6150 destfile="$destdir/$destname"
6151 else
6152 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6153 destfile="$destdir/$destfile"
6154 fi
6155
6156 # If the file is missing, and there is a .exe on the end, strip it
6157 # because it is most likely a libtool script we actually want to
6158 # install
6159 stripped_ext=""
6160 case $file in
6161 *.exe)
6162 if test ! -f "$file"; then
6163 file=`$echo $file|${SED} 's,.exe$,,'`
6164 stripped_ext=".exe"
6165 fi
6166 ;;
6167 esac
6168
6169 # Do a test to see if this is really a libtool program.
6170 case $host in
6171 *cygwin*|*mingw*)
6172 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6173 ;;
6174 *)
6175 wrapper=$file
6176 ;;
6177 esac
6178 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6179 notinst_deplibs=
6180 relink_command=
6181
6182 # Note that it is not necessary on cygwin/mingw to append a dot to
6183 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6184 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6185 # `FILE.' does not work on cygwin managed mounts.
6186 #
6187 # If there is no directory component, then add one.
6188 case $wrapper in
6189 */* | *\\*) . ${wrapper} ;;
6190 *) . ./${wrapper} ;;
6191 esac
6192
6193 # Check the variables that should have been set.
6194 if test -z "$notinst_deplibs"; then
6195 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6196 exit $EXIT_FAILURE
6197 fi
6198
6199 finalize=yes
6200 for lib in $notinst_deplibs; do
6201 # Check to see that each library is installed.
6202 libdir=
6203 if test -f "$lib"; then
6204 # If there is no directory component, then add one.
6205 case $lib in
6206 */* | *\\*) . $lib ;;
6207 *) . ./$lib ;;
6208 esac
6209 fi
6210 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6211 if test -n "$libdir" && test ! -f "$libfile"; then
6212 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6213 finalize=no
6214 fi
6215 done
6216
6217 relink_command=
6218 # Note that it is not necessary on cygwin/mingw to append a dot to
6219 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6220 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6221 # `FILE.' does not work on cygwin managed mounts.
6222 #
6223 # If there is no directory component, then add one.
6224 case $wrapper in
6225 */* | *\\*) . ${wrapper} ;;
6226 *) . ./${wrapper} ;;
6227 esac
6228
6229 outputname=
6230 if test "$fast_install" = no && test -n "$relink_command"; then
6231 if test "$finalize" = yes && test -z "$run"; then
6232 tmpdir=`func_mktempdir`
6233 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6234 outputname="$tmpdir/$file"
6235 # Replace the output file specification.
6236 relink_command=`$echo "X$relink_command" | $SP2NL | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g' | $NL2SP`
6237
6238 $show "$relink_command"
6239 if $run eval "$relink_command"; then :
6240 else
6241 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6242 ${rm}r "$tmpdir"
6243 continue
6244 fi
6245 file="$outputname"
6246 else
6247 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6248 fi
6249 else
6250 # Install the binary that we compiled earlier.
6251 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6252 fi
6253 fi
6254
6255 # remove .exe since cygwin /usr/bin/install will append another
6256 # one anyway
6257 case $install_prog,$host in
6258 */usr/bin/install*,*cygwin*)
6259 case $file:$destfile in
6260 *.exe:*.exe)
6261 # this is ok
6262 ;;
6263 *.exe:*)
6264 destfile=$destfile.exe
6265 ;;
6266 *:*.exe)
6267 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6268 ;;
6269 esac
6270 ;;
6271 esac
6272 $show "$install_prog$stripme $file $destfile"
6273 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6274 test -n "$outputname" && ${rm}r "$tmpdir"
6275 ;;
6276 esac
6277 done
6278
6279 for file in $staticlibs; do
6280 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6281
6282 # Set up the ranlib parameters.
6283 oldlib="$destdir/$name"
6284
6285 $show "$install_prog $file $oldlib"
6286 $run eval "$install_prog \$file \$oldlib" || exit $?
6287
6288 if test -n "$stripme" && test -n "$old_striplib"; then
6289 $show "$old_striplib $oldlib"
6290 $run eval "$old_striplib $oldlib" || exit $?
6291 fi
6292
6293 # Do each command in the postinstall commands.
6294 cmds=$old_postinstall_cmds
6295 save_ifs="$IFS"; IFS='~'
6296 for cmd in $cmds; do
6297 IFS="$save_ifs"
6298 eval cmd=\"$cmd\"
6299 $show "$cmd"
6300 $run eval "$cmd" || exit $?
6301 done
6302 IFS="$save_ifs"
6303 done
6304
6305 if test -n "$future_libdirs"; then
6306 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6307 fi
6308
6309 if test -n "$current_libdirs"; then
6310 # Maybe just do a dry run.
6311 test -n "$run" && current_libdirs=" -n$current_libdirs"
6312 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6313 else
6314 exit $EXIT_SUCCESS
6315 fi
6316 ;;
6317
6318 # libtool finish mode
6319 finish)
6320 modename="$modename: finish"
6321 libdirs="$nonopt"
6322 admincmds=
6323
6324 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6325 for dir
6326 do
6327 libdirs="$libdirs $dir"
6328 done
6329
6330 for libdir in $libdirs; do
6331 if test -n "$finish_cmds"; then
6332 # Do each command in the finish commands.
6333 cmds=$finish_cmds
6334 save_ifs="$IFS"; IFS='~'
6335 for cmd in $cmds; do
6336 IFS="$save_ifs"
6337 eval cmd=\"$cmd\"
6338 $show "$cmd"
6339 $run eval "$cmd" || admincmds="$admincmds
6340 $cmd"
6341 done
6342 IFS="$save_ifs"
6343 fi
6344 if test -n "$finish_eval"; then
6345 # Do the single finish_eval.
6346 eval cmds=\"$finish_eval\"
6347 $run eval "$cmds" || admincmds="$admincmds
6348 $cmds"
6349 fi
6350 done
6351 fi
6352
6353 # Exit here if they wanted silent mode.
6354 test "$show" = : && exit $EXIT_SUCCESS
6355
6356 $echo "X----------------------------------------------------------------------" | $Xsed
6357 $echo "Libraries have been installed in:"
6358 for libdir in $libdirs; do
6359 $echo " $libdir"
6360 done
6361 $echo
6362 $echo "If you ever happen to want to link against installed libraries"
6363 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6364 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6365 $echo "flag during linking and do at least one of the following:"
6366 if test -n "$shlibpath_var"; then
6367 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6368 $echo " during execution"
6369 fi
6370 if test -n "$runpath_var"; then
6371 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6372 $echo " during linking"
6373 fi
6374 if test -n "$hardcode_libdir_flag_spec"; then
6375 libdir=LIBDIR
6376 eval flag=\"$hardcode_libdir_flag_spec\"
6377
6378 $echo " - use the \`$flag' linker flag"
6379 fi
6380 if test -n "$admincmds"; then
6381 $echo " - have your system administrator run these commands:$admincmds"
6382 fi
6383 if test -f /etc/ld.so.conf; then
6384 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6385 fi
6386 $echo
6387 $echo "See any operating system documentation about shared libraries for"
6388 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6389 $echo "X----------------------------------------------------------------------" | $Xsed
6390 exit $EXIT_SUCCESS
6391 ;;
6392
6393 # libtool execute mode
6394 execute)
6395 modename="$modename: execute"
6396
6397 # The first argument is the command name.
6398 cmd="$nonopt"
6399 if test -z "$cmd"; then
6400 $echo "$modename: you must specify a COMMAND" 1>&2
6401 $echo "$help"
6402 exit $EXIT_FAILURE
6403 fi
6404
6405 # Handle -dlopen flags immediately.
6406 for file in $execute_dlfiles; do
6407 if test ! -f "$file"; then
6408 $echo "$modename: \`$file' is not a file" 1>&2
6409 $echo "$help" 1>&2
6410 exit $EXIT_FAILURE
6411 fi
6412
6413 dir=
6414 case $file in
6415 *.la)
6416 # Check to see that this really is a libtool archive.
6417 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6418 else
6419 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6420 $echo "$help" 1>&2
6421 exit $EXIT_FAILURE
6422 fi
6423
6424 # Read the libtool library.
6425 dlname=
6426 library_names=
6427
6428 # If there is no directory component, then add one.
6429 case $file in
6430 */* | *\\*) . $file ;;
6431 *) . ./$file ;;
6432 esac
6433
6434 # Skip this library if it cannot be dlopened.
6435 if test -z "$dlname"; then
6436 # Warn if it was a shared library.
6437 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6438 continue
6439 fi
6440
6441 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6442 test "X$dir" = "X$file" && dir=.
6443
6444 if test -f "$dir/$objdir/$dlname"; then
6445 dir="$dir/$objdir"
6446 else
6447 if test ! -f "$dir/$dlname"; then
6448 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6449 exit $EXIT_FAILURE
6450 fi
6451 fi
6452 ;;
6453
6454 *.lo)
6455 # Just add the directory containing the .lo file.
6456 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6457 test "X$dir" = "X$file" && dir=.
6458 ;;
6459
6460 *)
6461 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6462 continue
6463 ;;
6464 esac
6465
6466 # Get the absolute pathname.
6467 absdir=`cd "$dir" && pwd`
6468 test -n "$absdir" && dir="$absdir"
6469
6470 # Now add the directory to shlibpath_var.
6471 if eval "test -z \"\$$shlibpath_var\""; then
6472 eval "$shlibpath_var=\"\$dir\""
6473 else
6474 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6475 fi
6476 done
6477
6478 # This variable tells wrapper scripts just to set shlibpath_var
6479 # rather than running their programs.
6480 libtool_execute_magic="$magic"
6481
6482 # Check if any of the arguments is a wrapper script.
6483 args=
6484 for file
6485 do
6486 case $file in
6487 -*) ;;
6488 *)
6489 # Do a test to see if this is really a libtool program.
6490 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6491 # If there is no directory component, then add one.
6492 case $file in
6493 */* | *\\*) . $file ;;
6494 *) . ./$file ;;
6495 esac
6496
6497 # Transform arg to wrapped name.
6498 file="$progdir/$program"
6499 fi
6500 ;;
6501 esac
6502 # Quote arguments (to preserve shell metacharacters).
6503 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6504 args="$args \"$file\""
6505 done
6506
6507 if test -z "$run"; then
6508 if test -n "$shlibpath_var"; then
6509 # Export the shlibpath_var.
6510 eval "export $shlibpath_var"
6511 fi
6512
6513 # Restore saved environment variables
6514 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
6515 do
6516 eval "if test \"\${save_$lt_var+set}\" = set; then
6517 $lt_var=\$save_$lt_var; export $lt_var
6518 fi"
6519 done
6520
6521 # Now prepare to actually exec the command.
6522 exec_cmd="\$cmd$args"
6523 else
6524 # Display what would be done.
6525 if test -n "$shlibpath_var"; then
6526 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6527 $echo "export $shlibpath_var"
6528 fi
6529 $echo "$cmd$args"
6530 exit $EXIT_SUCCESS
6531 fi
6532 ;;
6533
6534 # libtool clean and uninstall mode
6535 clean | uninstall)
6536 modename="$modename: $mode"
6537 rm="$nonopt"
6538 files=
6539 rmforce=
6540 exit_status=0
6541
6542 # This variable tells wrapper scripts just to set variables rather
6543 # than running their programs.
6544 libtool_install_magic="$magic"
6545
65467675 for arg
65477676 do
65487677 case $arg in
6549 -f) rm="$rm $arg"; rmforce=yes ;;
6550 -*) rm="$rm $arg" ;;
7678 -f) RM="$RM $arg"; rmforce=yes ;;
7679 -*) RM="$RM $arg" ;;
65517680 *) files="$files $arg" ;;
65527681 esac
65537682 done
65547683
6555 if test -z "$rm"; then
6556 $echo "$modename: you must specify an RM program" 1>&2
6557 $echo "$help" 1>&2
6558 exit $EXIT_FAILURE
6559 fi
7684 test -z "$RM" && \
7685 func_fatal_help "you must specify an RM program"
65607686
65617687 rmdirs=
65627688
65637689 origobjdir="$objdir"
65647690 for file in $files; do
6565 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6566 if test "X$dir" = "X$file"; then
6567 dir=.
7691 func_dirname "$file" "" "."
7692 dir="$func_dirname_result"
7693 if test "X$dir" = X.; then
65687694 objdir="$origobjdir"
65697695 else
65707696 objdir="$dir/$origobjdir"
65717697 fi
6572 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
7698 func_basename "$file"
7699 name="$func_basename_result"
65737700 test "$mode" = uninstall && objdir="$dir"
65747701
65757702 # Remember objdir for removal later, being careful to avoid duplicates
65817708 fi
65827709
65837710 # Don't error if the file doesn't exist and rm -f was used.
6584 if (test -L "$file") >/dev/null 2>&1 \
6585 || (test -h "$file") >/dev/null 2>&1 \
6586 || test -f "$file"; then
7711 if { test -L "$file"; } >/dev/null 2>&1 ||
7712 { test -h "$file"; } >/dev/null 2>&1 ||
7713 test -f "$file"; then
65877714 :
65887715 elif test -d "$file"; then
65897716 exit_status=1
65977724 case $name in
65987725 *.la)
65997726 # Possibly a libtool archive, so verify it.
6600 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6601 . $dir/$name
7727 if func_lalib_p "$file"; then
7728 func_source $dir/$name
66027729
66037730 # Delete the libtool libraries and symlinks.
66047731 for n in $library_names; do
66137740 *" $dlname "*) ;;
66147741 *) rmfiles="$rmfiles $objdir/$dlname" ;;
66157742 esac
6616 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
7743 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
66177744 ;;
66187745 uninstall)
66197746 if test -n "$library_names"; then
66207747 # Do each command in the postuninstall commands.
6621 cmds=$postuninstall_cmds
6622 save_ifs="$IFS"; IFS='~'
6623 for cmd in $cmds; do
6624 IFS="$save_ifs"
6625 eval cmd=\"$cmd\"
6626 $show "$cmd"
6627 $run eval "$cmd"
6628 if test "$?" -ne 0 && test "$rmforce" != yes; then
6629 exit_status=1
6630 fi
6631 done
6632 IFS="$save_ifs"
7748 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
66337749 fi
66347750
66357751 if test -n "$old_library"; then
66367752 # Do each command in the old_postuninstall commands.
6637 cmds=$old_postuninstall_cmds
6638 save_ifs="$IFS"; IFS='~'
6639 for cmd in $cmds; do
6640 IFS="$save_ifs"
6641 eval cmd=\"$cmd\"
6642 $show "$cmd"
6643 $run eval "$cmd"
6644 if test "$?" -ne 0 && test "$rmforce" != yes; then
6645 exit_status=1
6646 fi
6647 done
6648 IFS="$save_ifs"
7753 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
66497754 fi
66507755 # FIXME: should reinstall the best remaining shared library.
66517756 ;;
66557760
66567761 *.lo)
66577762 # Possibly a libtool object, so verify it.
6658 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
7763 if func_lalib_p "$file"; then
66597764
66607765 # Read the .lo file
6661 . $dir/$name
7766 func_source $dir/$name
66627767
66637768 # Add PIC object to the list of files to remove.
6664 if test -n "$pic_object" \
6665 && test "$pic_object" != none; then
7769 if test -n "$pic_object" &&
7770 test "$pic_object" != none; then
66667771 rmfiles="$rmfiles $dir/$pic_object"
66677772 fi
66687773
66697774 # Add non-PIC object to the list of files to remove.
6670 if test -n "$non_pic_object" \
6671 && test "$non_pic_object" != none; then
7775 if test -n "$non_pic_object" &&
7776 test "$non_pic_object" != none; then
66727777 rmfiles="$rmfiles $dir/$non_pic_object"
66737778 fi
66747779 fi
66797784 noexename=$name
66807785 case $file in
66817786 *.exe)
6682 file=`$echo $file|${SED} 's,.exe$,,'`
6683 noexename=`$echo $name|${SED} 's,.exe$,,'`
7787 func_stripname '' '.exe' "$file"
7788 file=$func_stripname_result
7789 func_stripname '' '.exe' "$name"
7790 noexename=$func_stripname_result
66847791 # $file with .exe has already been added to rmfiles,
66857792 # add $file without .exe
66867793 rmfiles="$rmfiles $file"
66877794 ;;
66887795 esac
66897796 # Do a test to see if this is a libtool program.
6690 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6691 relink_command=
6692 . $dir/$noexename
7797 if func_ltwrapper_p "$file"; then
7798 if func_ltwrapper_executable_p "$file"; then
7799 func_ltwrapper_scriptname "$file"
7800 relink_command=
7801 func_source $func_ltwrapper_scriptname_result
7802 rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
7803 else
7804 relink_command=
7805 func_source $dir/$noexename
7806 fi
66937807
66947808 # note $name still contains .exe if it was in $file originally
66957809 # as does the version of $file that was added into $rmfiles
67047818 fi
67057819 ;;
67067820 esac
6707 $show "$rm $rmfiles"
6708 $run $rm $rmfiles || exit_status=1
7821 func_show_eval "$RM $rmfiles" 'exit_status=1'
67097822 done
67107823 objdir="$origobjdir"
67117824
67127825 # Try to remove the ${objdir}s in the directories where we deleted files
67137826 for dir in $rmdirs; do
67147827 if test -d "$dir"; then
6715 $show "rmdir $dir"
6716 $run rmdir $dir >/dev/null 2>&1
7828 func_show_eval "rmdir $dir >/dev/null 2>&1"
67177829 fi
67187830 done
67197831
67207832 exit $exit_status
6721 ;;
6722
6723 "")
6724 $echo "$modename: you must specify a MODE" 1>&2
6725 $echo "$generic_help" 1>&2
6726 exit $EXIT_FAILURE
6727 ;;
6728 esac
6729
6730 if test -z "$exec_cmd"; then
6731 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6732 $echo "$generic_help" 1>&2
6733 exit $EXIT_FAILURE
6734 fi
6735 fi # test -z "$show_help"
7833 }
7834
7835 { test "$mode" = uninstall || test "$mode" = clean; } &&
7836 func_mode_uninstall ${1+"$@"}
7837
7838 test -z "$mode" && {
7839 help="$generic_help"
7840 func_fatal_help "you must specify a MODE"
7841 }
7842
7843 test -z "$exec_cmd" && \
7844 func_fatal_help "invalid operation mode \`$mode'"
67367845
67377846 if test -n "$exec_cmd"; then
6738 eval exec $exec_cmd
7847 eval exec "$exec_cmd"
67397848 exit $EXIT_FAILURE
67407849 fi
67417850
6742 # We need to display help for each of the modes.
6743 case $mode in
6744 "") $echo \
6745 "Usage: $modename [OPTION]... [MODE-ARG]...
6746
6747 Provide generalized library-building support services.
6748
6749 --config show all configuration variables
6750 --debug enable verbose shell tracing
6751 -n, --dry-run display commands without modifying any files
6752 --features display basic configuration information and exit
6753 --finish same as \`--mode=finish'
6754 --help display this help message and exit
6755 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6756 --quiet same as \`--silent'
6757 --silent don't print informational messages
6758 --tag=TAG use configuration variables from tag TAG
6759 --version print version information
6760
6761 MODE must be one of the following:
6762
6763 clean remove files from the build directory
6764 compile compile a source file into a libtool object
6765 execute automatically set library path, then run a program
6766 finish complete the installation of libtool libraries
6767 install install libraries or executables
6768 link create a library or an executable
6769 uninstall remove libraries from an installed directory
6770
6771 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6772 a more detailed description of MODE.
6773
6774 Report bugs to <bug-libtool@gnu.org>."
6775 exit $EXIT_SUCCESS
6776 ;;
6777
6778 clean)
6779 $echo \
6780 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6781
6782 Remove files from the build directory.
6783
6784 RM is the name of the program to use to delete files associated with each FILE
6785 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6786 to RM.
6787
6788 If FILE is a libtool library, object or program, all the files associated
6789 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6790 ;;
6791
6792 compile)
6793 $echo \
6794 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6795
6796 Compile a source file into a libtool library object.
6797
6798 This mode accepts the following additional options:
6799
6800 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6801 -prefer-pic try to building PIC objects only
6802 -prefer-non-pic try to building non-PIC objects only
6803 -static always build a \`.o' file suitable for static linking
6804
6805 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6806 from the given SOURCEFILE.
6807
6808 The output file name is determined by removing the directory component from
6809 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6810 library object suffix, \`.lo'."
6811 ;;
6812
6813 execute)
6814 $echo \
6815 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6816
6817 Automatically set library path, then run a program.
6818
6819 This mode accepts the following additional options:
6820
6821 -dlopen FILE add the directory containing FILE to the library path
6822
6823 This mode sets the library path environment variable according to \`-dlopen'
6824 flags.
6825
6826 If any of the ARGS are libtool executable wrappers, then they are translated
6827 into their corresponding uninstalled binary, and any of their required library
6828 directories are added to the library path.
6829
6830 Then, COMMAND is executed, with ARGS as arguments."
6831 ;;
6832
6833 finish)
6834 $echo \
6835 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6836
6837 Complete the installation of libtool libraries.
6838
6839 Each LIBDIR is a directory that contains libtool libraries.
6840
6841 The commands that this mode executes may require superuser privileges. Use
6842 the \`--dry-run' option if you just want to see what would be executed."
6843 ;;
6844
6845 install)
6846 $echo \
6847 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6848
6849 Install executables or libraries.
6850
6851 INSTALL-COMMAND is the installation command. The first component should be
6852 either the \`install' or \`cp' program.
6853
6854 The rest of the components are interpreted as arguments to that command (only
6855 BSD-compatible install options are recognized)."
6856 ;;
6857
6858 link)
6859 $echo \
6860 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6861
6862 Link object files or libraries together to form another library, or to
6863 create an executable program.
6864
6865 LINK-COMMAND is a command using the C compiler that you would use to create
6866 a program from several object files.
6867
6868 The following components of LINK-COMMAND are treated specially:
6869
6870 -all-static do not do any dynamic linking at all
6871 -avoid-version do not add a version suffix if possible
6872 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6873 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6874 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6875 -export-symbols SYMFILE
6876 try to export only the symbols listed in SYMFILE
6877 -export-symbols-regex REGEX
6878 try to export only the symbols matching REGEX
6879 -LLIBDIR search LIBDIR for required installed libraries
6880 -lNAME OUTPUT-FILE requires the installed library libNAME
6881 -module build a library that can dlopened
6882 -no-fast-install disable the fast-install mode
6883 -no-install link a not-installable executable
6884 -no-undefined declare that a library does not refer to external symbols
6885 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6886 -objectlist FILE Use a list of object files found in FILE to specify objects
6887 -precious-files-regex REGEX
6888 don't remove output files matching REGEX
6889 -release RELEASE specify package release information
6890 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6891 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6892 -static do not do any dynamic linking of uninstalled libtool libraries
6893 -static-libtool-libs
6894 do not do any dynamic linking of libtool libraries
6895 -version-info CURRENT[:REVISION[:AGE]]
6896 specify library version info [each variable defaults to 0]
6897
6898 All other options (arguments beginning with \`-') are ignored.
6899
6900 Every other argument is treated as a filename. Files ending in \`.la' are
6901 treated as uninstalled libtool libraries, other files are standard or library
6902 object files.
6903
6904 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6905 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6906 required, except when creating a convenience library.
6907
6908 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6909 using \`ar' and \`ranlib', or on Windows using \`lib'.
6910
6911 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6912 is created, otherwise an executable program is created."
6913 ;;
6914
6915 uninstall)
6916 $echo \
6917 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6918
6919 Remove libraries from an installation directory.
6920
6921 RM is the name of the program to use to delete files associated with each FILE
6922 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6923 to RM.
6924
6925 If FILE is a libtool library, all the files associated with it are deleted.
6926 Otherwise, only FILE itself is deleted using RM."
6927 ;;
6928
6929 *)
6930 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6931 $echo "$help" 1>&2
6932 exit $EXIT_FAILURE
6933 ;;
6934 esac
6935
6936 $echo
6937 $echo "Try \`$modename --help' for more information about other modes."
6938
6939 exit $?
7851 exit $exit_status
7852
69407853
69417854 # The TAGs below are defined such that we never get into a situation
69427855 # in which we disable both kinds of libraries. Given conflicting
69507863 # configuration. But we'll never go from static-only to shared-only.
69517864
69527865 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6953 disable_libs=shared
7866 build_libtool_libs=no
7867 build_old_libs=yes
69547868 # ### END LIBTOOL TAG CONFIG: disable-shared
69557869
69567870 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6957 disable_libs=static
7871 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
69587872 # ### END LIBTOOL TAG CONFIG: disable-static
69597873
69607874 # Local Variables:
69617875 # mode:shell-script
69627876 # sh-indentation:2
69637877 # End:
7878 # vi:sw=2
7879
00 #! /bin/sh
11 # Common stub for a few missing GNU programs while installing.
22
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
3 scriptversion=2006-05-10.23
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
66 # Free Software Foundation, Inc.
77 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
3232 fi
3333
3434 run=:
35 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
36 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
3537
3638 # In the cases where this matters, `missing' is being run in the
3739 # srcdir already.
4345
4446 msg="missing on your system"
4547
46 case "$1" in
48 case $1 in
4749 --run)
4850 # Try to run requested program, and just exit if it succeeds.
4951 run=
7678 aclocal touch file \`aclocal.m4'
7779 autoconf touch file \`configure'
7880 autoheader touch file \`config.h.in'
81 autom4te touch the output file, or create a stub one
7982 automake touch all \`Makefile.in' files
8083 bison create \`y.tab.[ch]', if possible, from existing .[ch]
8184 flex create \`lex.yy.c', if possible, from existing .c
105108 # Now exit if we have it, but it failed. Also exit now if we
106109 # don't have it and --version was passed (most likely to detect
107110 # the program).
108 case "$1" in
111 case $1 in
109112 lex|yacc)
110113 # Not GNU programs, they don't have --version.
111114 ;;
134137
135138 # If it does not exist, or fails to run (possibly an outdated version),
136139 # try to emulate it.
137 case "$1" in
140 case $1 in
138141 aclocal*)
139142 echo 1>&2 "\
140143 WARNING: \`$1' is $msg. You should only need it if
163166 test -z "$files" && files="config.h"
164167 touch_files=
165168 for f in $files; do
166 case "$f" in
169 case $f in
167170 *:*) touch_files="$touch_files "`echo "$f" |
168171 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169172 *) touch_files="$touch_files $f.in";;
191194 You can get \`$1' as part of \`Autoconf' from any GNU
192195 archive site."
193196
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
197 file=`echo "$*" | sed -n "$sed_output"`
198 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
196199 if test -f "$file"; then
197200 touch $file
198201 else
213216 in order for those modifications to take effect. You can get
214217 \`Bison' from any GNU archive site."
215218 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
219 if test $# -ne 1; then
217220 eval LASTARG="\${$#}"
218 case "$LASTARG" in
221 case $LASTARG in
219222 *.y)
220223 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
224 if test -f "$SRCFILE"; then
222225 cp "$SRCFILE" y.tab.c
223226 fi
224227 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
228 if test -f "$SRCFILE"; then
226229 cp "$SRCFILE" y.tab.h
227230 fi
228231 ;;
229232 esac
230233 fi
231 if [ ! -f y.tab.h ]; then
234 if test ! -f y.tab.h; then
232235 echo >y.tab.h
233236 fi
234 if [ ! -f y.tab.c ]; then
237 if test ! -f y.tab.c; then
235238 echo 'main() { return 0; }' >y.tab.c
236239 fi
237240 ;;
243246 in order for those modifications to take effect. You can get
244247 \`Flex' from any GNU archive site."
245248 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
249 if test $# -ne 1; then
247250 eval LASTARG="\${$#}"
248 case "$LASTARG" in
251 case $LASTARG in
249252 *.l)
250253 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
254 if test -f "$SRCFILE"; then
252255 cp "$SRCFILE" lex.yy.c
253256 fi
254257 ;;
255258 esac
256259 fi
257 if [ ! -f lex.yy.c ]; then
260 if test ! -f lex.yy.c; then
258261 echo 'main() { return 0; }' >lex.yy.c
259262 fi
260263 ;;
266269 \`Help2man' package in order for those modifications to take
267270 effect. You can get \`Help2man' from any GNU archive site."
268271
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
272 file=`echo "$*" | sed -n "$sed_output"`
273 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
274 if test -f "$file"; then
274275 touch $file
275276 else
276277 test -z "$file" || exec >$file
288289 DU, IRIX). You might want to install the \`Texinfo' package or
289290 the \`GNU make' package. Grab either from any GNU archive site."
290291 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 file=`echo "$*" | sed -n "$sed_output"`
293 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
292294 if test -z "$file"; then
293295 # ... or it is the one specified with @setfilename ...
294296 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
297 file=`sed -n '
298 /^@setfilename/{
299 s/.* \([^ ]*\) *$/\1/
300 p
301 q
302 }' $infile`
296303 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297304 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298305 fi
316323 fi
317324 firstarg="$1"
318325 if shift; then
319 case "$firstarg" in
326 case $firstarg in
320327 *o*)
321328 firstarg=`echo "$firstarg" | sed s/o//`
322329 tar "$firstarg" "$@" && exit 0
323330 ;;
324331 esac
325 case "$firstarg" in
332 case $firstarg in
326333 *h*)
327334 firstarg=`echo "$firstarg" | sed s/h//`
328335 tar "$firstarg" "$@" && exit 0
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
0 # Makefile.in generated by automake 1.10.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
4 # 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
77 # with or without modifications, as long as this notice is preserved.
3636 # 330, Boston, MA 02111-1307, USA
3737
3838
39 srcdir = @srcdir@
40 top_srcdir = @top_srcdir@
4139 VPATH = @srcdir@
4240 pkgdatadir = $(datadir)/@PACKAGE@
4341 pkglibdir = $(libdir)/@PACKAGE@
4442 pkgincludedir = $(includedir)/@PACKAGE@
45 top_builddir = ..
4643 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
47 INSTALL = @INSTALL@
4844 install_sh_DATA = $(install_sh) -c -m 644
4945 install_sh_PROGRAM = $(install_sh) -c
5046 install_sh_SCRIPT = $(install_sh) -c
8076 libotf_la_LIBADD =
8177 am_libotf_la_OBJECTS = otferror.lo otfopen.lo otfdrive.lo
8278 libotf_la_OBJECTS = $(am_libotf_la_OBJECTS)
83 DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
79 DEFAULT_INCLUDES = -I.@am__isrc@
8480 depcomp = $(SHELL) $(top_srcdir)/depcomp
8581 am__depfiles_maybe = depfiles
8682 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
8783 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
88 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
89 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
90 $(AM_CFLAGS) $(CFLAGS)
84 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
85 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
86 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
9187 CCLD = $(CC)
92 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
93 $(AM_LDFLAGS) $(LDFLAGS) -o $@
88 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
89 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
90 $(LDFLAGS) -o $@
9491 SOURCES = $(libotf_la_SOURCES)
9592 DIST_SOURCES = $(libotf_la_SOURCES)
9693 includeHEADERS_INSTALL = $(INSTALL_HEADER)
10097 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
10198 ACLOCAL = @ACLOCAL@
10299 ALLOCA = @ALLOCA@
103 AMDEP_FALSE = @AMDEP_FALSE@
104 AMDEP_TRUE = @AMDEP_TRUE@
105100 AMTAR = @AMTAR@
106101 AR = @AR@
107102 AUTOCONF = @AUTOCONF@
113108 CFLAGS = @CFLAGS@
114109 CPP = @CPP@
115110 CPPFLAGS = @CPPFLAGS@
116 CXX = @CXX@
117 CXXCPP = @CXXCPP@
118 CXXDEPMODE = @CXXDEPMODE@
119 CXXFLAGS = @CXXFLAGS@
120111 CYGPATH_W = @CYGPATH_W@
121112 DEFS = @DEFS@
122113 DEPDIR = @DEPDIR@
123114 DSYMUTIL = @DSYMUTIL@
124 ECHO = @ECHO@
115 DUMPBIN = @DUMPBIN@
125116 ECHO_C = @ECHO_C@
126117 ECHO_N = @ECHO_N@
127118 ECHO_T = @ECHO_T@
128119 EGREP = @EGREP@
129120 EXEEXT = @EXEEXT@
130 F77 = @F77@
131 FFLAGS = @FFLAGS@
121 FGREP = @FGREP@
132122 FREETYPE_INC = @FREETYPE_INC@
133123 FREETYPE_LD_FLAGS = @FREETYPE_LD_FLAGS@
134124 GREP = @GREP@
135125 HAVE_FREETYPE_CONFIG = @HAVE_FREETYPE_CONFIG@
126 INSTALL = @INSTALL@
136127 INSTALL_DATA = @INSTALL_DATA@
137128 INSTALL_PROGRAM = @INSTALL_PROGRAM@
138129 INSTALL_SCRIPT = @INSTALL_SCRIPT@
139130 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
131 LD = @LD@
140132 LDFLAGS = @LDFLAGS@
141133 LIBOBJS = @LIBOBJS@
142134 LIBS = @LIBS@
143135 LIBTOOL = @LIBTOOL@
136 LIPO = @LIPO@
144137 LN_S = @LN_S@
145138 LTLIBOBJS = @LTLIBOBJS@
146139 MAKEINFO = @MAKEINFO@
140 MKDIR_P = @MKDIR_P@
141 NM = @NM@
147142 NMEDIT = @NMEDIT@
148143 OBJEXT = @OBJEXT@
144 OTOOL = @OTOOL@
145 OTOOL64 = @OTOOL64@
149146 PACKAGE = @PACKAGE@
150147 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
151148 PACKAGE_NAME = @PACKAGE_NAME@
165162 X_EXTRA_LIBS = @X_EXTRA_LIBS@
166163 X_LIBS = @X_LIBS@
167164 X_PRE_LIBS = @X_PRE_LIBS@
165 abs_builddir = @abs_builddir@
166 abs_srcdir = @abs_srcdir@
167 abs_top_builddir = @abs_top_builddir@
168 abs_top_srcdir = @abs_top_srcdir@
168169 ac_ct_CC = @ac_ct_CC@
169 ac_ct_CXX = @ac_ct_CXX@
170 ac_ct_F77 = @ac_ct_F77@
171 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
172 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
173 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
174 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
170 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
175171 am__include = @am__include@
176172 am__leading_dot = @am__leading_dot@
177173 am__quote = @am__quote@
183179 build_cpu = @build_cpu@
184180 build_os = @build_os@
185181 build_vendor = @build_vendor@
182 builddir = @builddir@
186183 datadir = @datadir@
187184 datarootdir = @datarootdir@
188185 docdir = @docdir@
201198 libexecdir = @libexecdir@
202199 localedir = @localedir@
203200 localstatedir = @localstatedir@
201 lt_ECHO = @lt_ECHO@
204202 mandir = @mandir@
205203 mkdir_p = @mkdir_p@
206204 oldincludedir = @oldincludedir@
210208 psdir = @psdir@
211209 sbindir = @sbindir@
212210 sharedstatedir = @sharedstatedir@
211 srcdir = @srcdir@
213212 sysconfdir = @sysconfdir@
214213 target_alias = @target_alias@
214 top_builddir = @top_builddir@
215 top_srcdir = @top_srcdir@
215216 lib_LTLIBRARIES = libotf.la
216217 libotf_la_SOURCES = \
217218 otf.h \
258259 config.h: stamp-h1
259260 @if test ! -f $@; then \
260261 rm -f stamp-h1; \
261 $(MAKE) stamp-h1; \
262 $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
262263 else :; fi
263264
264265 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
273274 -rm -f config.h stamp-h1
274275 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
275276 @$(NORMAL_INSTALL)
276 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
277 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
277278 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
278279 if test -f $$p; then \
279280 f=$(am__strip_dir) \
280 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
281 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
281 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
282 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
282283 else :; fi; \
283284 done
284285
285286 uninstall-libLTLIBRARIES:
286287 @$(NORMAL_UNINSTALL)
287 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
288 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
288289 p=$(am__strip_dir) \
289 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
290 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
290 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
291 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
291292 done
292293
293294 clean-libLTLIBRARIES:
299300 rm -f "$${dir}/so_locations"; \
300301 done
301302 libotf.la: $(libotf_la_OBJECTS) $(libotf_la_DEPENDENCIES)
302 $(LINK) -rpath $(libdir) $(libotf_la_LDFLAGS) $(libotf_la_OBJECTS) $(libotf_la_LIBADD) $(LIBS)
303 $(LINK) -rpath $(libdir) $(libotf_la_OBJECTS) $(libotf_la_LIBADD) $(LIBS)
303304
304305 mostlyclean-compile:
305306 -rm -f *.$(OBJEXT)
312313 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/otfopen.Plo@am__quote@
313314
314315 .c.o:
315 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
316 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
316 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
317 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
317318 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
318319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
319320 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
320321
321322 .c.obj:
322 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
323 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
323 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
324 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
324325 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
325326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
326327 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
327328
328329 .c.lo:
329 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
330 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
330 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
331 @am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
331332 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
332333 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
333334 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
337338
338339 clean-libtool:
339340 -rm -rf .libs _libs
340
341 distclean-libtool:
342 -rm -f libtool
343 uninstall-info-am:
344341 install-includeHEADERS: $(include_HEADERS)
345342 @$(NORMAL_INSTALL)
346 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
343 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
347344 @list='$(include_HEADERS)'; for p in $$list; do \
348345 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
349346 f=$(am__strip_dir) \
364361 unique=`for i in $$list; do \
365362 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
366363 done | \
367 $(AWK) ' { files[$$0] = 1; } \
368 END { for (i in files) print i; }'`; \
364 $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \
365 END { if (nonempty) { for (i in files) print i; }; }'`; \
369366 mkid -fID $$unique
370367 tags: TAGS
371368
377374 unique=`for i in $$list; do \
378375 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
379376 done | \
380 $(AWK) ' { files[$$0] = 1; } \
381 END { for (i in files) print i; }'`; \
377 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
378 END { if (nonempty) { for (i in files) print i; }; }'`; \
382379 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
383380 test -n "$$unique" || unique=$$empty_fix; \
384381 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
388385 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
389386 $(TAGS_FILES) $(LISP)
390387 tags=; \
391 here=`pwd`; \
392388 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
393389 unique=`for i in $$list; do \
394390 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
395391 done | \
396 $(AWK) ' { files[$$0] = 1; } \
397 END { for (i in files) print i; }'`; \
392 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
393 END { if (nonempty) { for (i in files) print i; }; }'`; \
398394 test -z "$(CTAGS_ARGS)$$tags$$unique" \
399395 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
400396 $$tags $$unique
408404 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
409405
410406 distdir: $(DISTFILES)
411 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
412 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
413 list='$(DISTFILES)'; for file in $$list; do \
414 case $$file in \
415 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
416 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
417 esac; \
407 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
408 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
409 list='$(DISTFILES)'; \
410 dist_files=`for file in $$list; do echo $$file; done | \
411 sed -e "s|^$$srcdirstrip/||;t" \
412 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
413 case $$dist_files in \
414 */*) $(MKDIR_P) `echo "$$dist_files" | \
415 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
416 sort -u` ;; \
417 esac; \
418 for file in $$dist_files; do \
418419 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
419 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
420 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
421 dir="/$$dir"; \
422 $(mkdir_p) "$(distdir)$$dir"; \
423 else \
424 dir=''; \
425 fi; \
426420 if test -d $$d/$$file; then \
421 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
427422 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
428423 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
429424 fi; \
439434 all-am: Makefile $(LTLIBRARIES) $(HEADERS) config.h
440435 installdirs:
441436 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
442 test -z "$$dir" || $(mkdir_p) "$$dir"; \
437 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
443438 done
444439 install: install-am
445440 install-exec: install-exec-am
474469 -rm -rf ./$(DEPDIR)
475470 -rm -f Makefile
476471 distclean-am: clean-am distclean-compile distclean-generic \
477 distclean-hdr distclean-libtool distclean-tags
472 distclean-hdr distclean-tags
478473
479474 dvi: dvi-am
480475
488483
489484 install-data-am: install-includeHEADERS
490485
486 install-dvi: install-dvi-am
487
491488 install-exec-am: install-libLTLIBRARIES
492489
490 install-html: install-html-am
491
493492 install-info: install-info-am
494493
495494 install-man:
495
496 install-pdf: install-pdf-am
497
498 install-ps: install-ps-am
496499
497500 installcheck-am:
498501
514517
515518 ps-am:
516519
517 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
518 uninstall-libLTLIBRARIES
520 uninstall-am: uninstall-includeHEADERS uninstall-libLTLIBRARIES
521
522 .MAKE: install-am install-strip
519523
520524 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
521525 clean-libLTLIBRARIES clean-libtool ctags distclean \
522526 distclean-compile distclean-generic distclean-hdr \
523527 distclean-libtool distclean-tags distdir dvi dvi-am html \
524528 html-am info info-am install install-am install-data \
525 install-data-am install-exec install-exec-am \
529 install-data-am install-dvi install-dvi-am install-exec \
530 install-exec-am install-html install-html-am \
526531 install-includeHEADERS install-info install-info-am \
527 install-libLTLIBRARIES install-man install-strip installcheck \
532 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
533 install-ps install-ps-am install-strip installcheck \
528534 installcheck-am installdirs maintainer-clean \
529535 maintainer-clean-generic mostlyclean mostlyclean-compile \
530536 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
531537 tags uninstall uninstall-am uninstall-includeHEADERS \
532 uninstall-info-am uninstall-libLTLIBRARIES
538 uninstall-libLTLIBRARIES
533539
534540 # Tell versions [3.59,3.63) of GNU make to not export all variables.
535541 # Otherwise a system limit (for SysV at least) may be exceeded.
6060 /* Define to 1 if you have the <X11/Xaw/Command.h> header file. */
6161 #undef HAVE_X11_XAW_COMMAND_H
6262
63 /* Define to the sub-directory in which libtool stores uninstalled libraries.
64 */
65 #undef LT_OBJDIR
66
6367 /* Name of package */
6468 #undef PACKAGE
6569
00 /* otf.h -- Header file for libotf (OpenType font library).
11
2 Copyright (C) 2003, 2004, 2005, 2006, 2007
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
55
2828 #endif
2929
3030 /* Version name of this library. */
31 #define LIBOTF_VERSION "0.9.6"
31 #define LIBOTF_VERSION "0.9.9"
3232
3333 /* Major version number. */
3434 #define LIBOTF_MAJOR_VERSION 0
3535 /* Minor version number. */
3636 #define LIBOTF_MINOR_VERSION 9
3737 /* Release (i.e. patch level) number. */
38 #define LIBOTF_RELEASE_NUMBER 6
38 #define LIBOTF_RELEASE_NUMBER 9
3939
4040 /***
4141 Table of contents:
164164 unsigned endCount;
165165 int idDelta;
166166 unsigned idRangeOffset;
167 } OTF_cmapSegument;
167 } OTF_cmapSegment;
168168
169169 typedef struct
170170 {
172172 unsigned searchRange;
173173 unsigned entrySelector;
174174 unsigned rangeShift;
175 OTF_cmapSegument *segments;
175 OTF_cmapSegment *segments;
176176 int GlyphCount;
177177 unsigned *glyphIdArray;
178178 } OTF_EncodingSubtable4;
210210 unsigned nGroups;
211211 OTF_cmapGroup *Groups;
212212 } OTF_EncodingSubtable12;
213
214 typedef struct
215 {
216 unsigned unicodeValue;
217 unsigned short glyphID;
218 } OTF_UVSMapping;
219
220 typedef struct
221 {
222 unsigned startUnicodeValue;
223 unsigned short additionalCount;
224 } OTF_UnicodeValueRange;
225
226 typedef struct
227 {
228 unsigned varSelector;
229 unsigned defaultUVSOffset;
230 unsigned nonDefaultUVSOffset;
231 /* DefaultUVS */
232 unsigned numUnicodeValueRanges;
233 OTF_UnicodeValueRange *unicodeValueRanges;
234 /* NonDefaultUVS */
235 unsigned numUVSMappings;
236 OTF_UVSMapping *uvsMappings;
237 } OTF_VariationSelectorRecord;
238
239 typedef struct
240 {
241 unsigned nRecords;
242 OTF_VariationSelectorRecord *Records;
243 } OTF_EncodingSubtable14;
213244
214245 typedef struct
215246 {
224255 OTF_EncodingSubtable8 *f8;
225256 OTF_EncodingSubtable10 *f10;
226257 OTF_EncodingSubtable12 *f12;
258 OTF_EncodingSubtable14 *f14;
227259 }f;
228260 } OTF_EncodingSubtable;
229261
11851217 int c;
11861218
11871219 /* Glyph ID of the glyph. If the value is 0, the library gets a
1188 correct value from the above character code via cmap. */
1220 correct value from the above character code via cmap if such a
1221 glyph is available in the font.
1222
1223 The function OTF_drive_gpos2 may insert a glyph whose glyph_id is
1224 0 but positioning_type is positive. It is not an actual glyph
1225 but just contains positioning information that should be
1226 accumulated to the positioning information of the previous
1227 glyphs. */
11891228 OTF_GlyphID glyph_id;
11901229
11911230 /* GlyphClass of the glyph. The value is extracted from the GDEF
12571296 Process glyph string by Unicode-based cmap table.
12581297
12591298 The OTF_drive_cmap() function looks up a Unicode-based cmap table
1260 of OpenType font $OTF, and setup the member <glyhph_id> of all
1299 of OpenType font $OTF, and setup the member <glyph_id> of all
12611300 glhphs in the glyph string $GSTRING if the value of the member is
12621301 not zero. */
12631302
12681307
12691308 The OTF_drive_cmap2() function looks up a cmap table (whose
12701309 Platform-ID is $PLATFORM_ID an Encoding-ID is $ENCODING_ID) of
1271 OpenType font $OTF, and setup the member <glyhph_id> of all glhphs
1310 OpenType font $OTF, and setup the member <glyph_id> of all glhphs
12721311 in the glyph string $GSTRING if the value of the member is not
12731312 zero. */
12741313
12751314 extern int OTF_drive_cmap2 (OTF *otf, OTF_GlyphString *gstring,
12761315 int platform_id, int encoding_id);
1316
1317
1318 /***
1319 Store variable glyphs of character C in the array CODE. The array
1320 size must be 256. The Nth element of CODE is the glyph corresponding
1321 to the variation selector (N + 1). The return value is the number
1322 of variation glyphs. */
1323
1324 extern int OTF_get_variation_glyphs (OTF *otf, int c, OTF_GlyphID code[256]);
1325
12771326
12781327 /*** (3-3) OTF_drive_gdef() */
12791328
13091358 /***
13101359 Process glyph string by GPOS table.
13111360
1312 The OTF_drive_gdef() function looks up the GPOS table of $OTF of
1361 The OTF_drive_gpos() function is deprecated. Use
1362 OTF_drive_gpos2() instread. */
1363
1364 extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
1365 const char *script, const char *language,
1366 const char *features);
1367
1368 /***
1369 Process glyph string by GPOS table.
1370
1371 The OTF_drive_gpos2() function looks up the GPOS table of $OTF of
13131372 OpenType font $OTF, and by using features the font has for script
13141373 $SCRIPT and language system $LANGSYS, setup members
13151374 <positioning_type> and <f> of all glhphs in the glyph string
13161375 $GSTRING. $FEATURES is a list of features to apply. */
13171376
1318 extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
1319 const char *script, const char *language,
1320 const char *features);
1377 extern int OTF_drive_gpos2 (OTF *otf, OTF_GlyphString *gstring,
1378 const char *script, const char *language,
1379 const char *features);
13211380
13221381 /*** (3-6) OTF_drive_tables() */
13231382
202202 }
203203
204204 static int
205 setup_lookup_indices (OTF_LookupList *LookupList, OTF_FeatureList *FeatureList,
206 const char *features, int *lookup_indices)
205 setup_lookup_flags (OTF_LookupList *LookupList, OTF_FeatureList *FeatureList,
206 OTF_LangSys *LangSys,
207 const char *features, char *lookup_flags)
207208 {
208209 int i, j, n = 0;
209210 OTF_Feature *feature;
210211 int *feature_table = alloca (sizeof (int) * FeatureList->FeatureCount);
211212
213 if (! feature_table)
214 return -1;
212215 for (i = 0; i < FeatureList->FeatureCount; i++)
213216 feature_table[i] = 0;
217 memset (lookup_flags, 0, LookupList->LookupCount);
214218
215219 while (*features)
216220 {
221225 if (*features == '*')
222226 {
223227 /* Consume all remaining features. */
224 for (i = 0; i < FeatureList->FeatureCount; i++)
225 if (! feature_table[i])
226 {
227 feature = FeatureList->Feature + i;
228 for (j = 0; j < feature->LookupCount; j++)
229 lookup_indices[n++] = feature->LookupListIndex[j];
230 }
228 for (i = 0; i < LangSys->FeatureCount; i++)
229 {
230 int index = LangSys->FeatureIndex[i];
231
232 if (! feature_table[index])
233 {
234 feature = FeatureList->Feature + index;
235 for (j = 0; j < feature->LookupCount; j++)
236 lookup_flags[feature->LookupListIndex[j]] = 1;
237 }
238 }
231239 break;
232240 }
233241
241249 for (; i < 4; i++)
242250 tagname[i] = '\0';
243251 tag = OTF_tag (tagname);
244 for (i = 0; i < FeatureList->FeatureCount; i++)
252 for (i = 0; i < LangSys->FeatureCount; i++)
245253 {
246 feature = FeatureList->Feature + i;
254 feature = FeatureList->Feature + LangSys->FeatureIndex[i];
247255 if (tag == feature->FeatureTag)
248256 {
249257 if (feature_table[i])
250258 break;
251259 if (use_it > 0)
252260 for (j = 0; j < feature->LookupCount; j++)
253 lookup_indices[n++] = feature->LookupListIndex[j];
261 lookup_flags[feature->LookupListIndex[j]] = 1;
254262 feature_table[i] = use_it;
255263 break;
256264 }
257265 }
258266 }
259
260 return n;
267 return 0;
261268 }
262269
263270 static int
747754 return value_format;
748755 }
749756
757 static int
758 gstring_insert_for_gpos (OTF_GlyphString *gstring, int gidx)
759 {
760 int errret = -1;
761 int orig_gidx = gidx++;
762
763 while (gidx < gstring->used
764 && ! gstring->glyphs[gidx].glyph_id
765 && gstring->glyphs[gidx].positioning_type)
766 gidx++;
767 GSTRING_INSERT (gstring, gidx, 1);
768 gstring->glyphs[gidx] = gstring->glyphs[orig_gidx];
769 gstring->glyphs[gidx].glyph_id = 0;
770 return gidx;
771 }
750772
751773 static int
752774 lookup_gpos (OTF_LookupList *lookup_list, unsigned lookup_list_index,
753 OTF_GlyphString *gstring, int gidx)
775 OTF_GlyphString *gstring, int gidx, int accumulate)
754776 {
755777 char *errfmt = "GPOS Looking up%s";
756778 int errret = -1;
761783 OTF_Glyph *g = gstring->glyphs + gidx;
762784 int i;
763785
764 if (IGNORED_GLYPH (g, flag)
765 || (0 & g->positioning_type))
786 if (IGNORED_GLYPH (g, flag))
766787 return (gidx + 1);
767788
768789 /* Try all subtables until one of them handles the current glyph. */
771792 unsigned lookup_type = lookup->LookupType;
772793 OTF_LookupSubTableGPOS *subtable = lookup->SubTable.gpos + i;
773794 int coverage_idx;
795 int positioning_type;
796 enum OTF_ValueFormat format;
797 OTF_ValueRecord *value;
798 OTF_Anchor *anchor1, *anchor2;
774799
775800 if (lookup_type == 9)
776801 {
791816 switch (lookup_type)
792817 {
793818 case 1:
794 g->positioning_type = lookup_type;
819 positioning_type = lookup_type;
795820 if (subtable->Format == 1)
796821 {
797822 OTF_GPOS_Single1 *single1 = &subtable->u.single1;
798823
799 g->f.f1.format = single1->ValueFormat;
800 g->f.f1.value = &single1->Value;
824 format = single1->ValueFormat;
825 value = &single1->Value;
801826 }
802827 else if (subtable->Format == 2)
803828 {
804829 OTF_GPOS_Single2 *single2 = &subtable->u.single2;
805830
806 g->f.f1.format = single2->ValueFormat;
807 g->f.f1.value = single2->Value + coverage_idx;
808 }
831 format = single2->ValueFormat;
832 value = single2->Value + coverage_idx;
833 }
834 if (accumulate && g->positioning_type)
835 {
836 gidx = gstring_insert_for_gpos (gstring, gidx);
837 g = gstring->glyphs + gidx;
838 }
839 g->positioning_type = positioning_type;
840 g->f.f1.format = format;
841 g->f.f1.value = value;
842 gidx++;
809843 break;
810844
811845 case 2:
831865 {
832866 if (pair1->ValueFormat1)
833867 {
868 if (accumulate && g->positioning_type)
869 {
870 gidx = gstring_insert_for_gpos (gstring, gidx);
871 g = gstring->glyphs + gidx;
872 next_gidx += gidx - orig_gidx;
873 nextg = gstring->glyphs + next_gidx;
874 }
834875 g->positioning_type = lookup_type;
835876 g->f.f2.format = pair1->ValueFormat1;
836877 g->f.f2.value = &set->PairValueRecord[j].Value1;
837878 }
838879 gidx = next_gidx;
880 g = nextg;
839881 if (pair1->ValueFormat2)
840882 {
841 nextg->positioning_type = lookup_type;
842 nextg->f.f2.format = pair1->ValueFormat2;
843 nextg->f.f2.value = &set->PairValueRecord[j].Value2;
883 if (accumulate && g->positioning_type)
884 {
885 gidx = gstring_insert_for_gpos (gstring, gidx);
886 g = gstring->glyphs + gidx;
887 }
888 g->positioning_type = lookup_type;
889 g->f.f2.format = pair1->ValueFormat2;
890 g->f.f2.value = &set->PairValueRecord[j].Value2;
844891 gidx++;
845892 }
846893 break;
855902 class2 = get_class_def (&pair2->ClassDef2, nextg->glyph_id);
856903 if (pair2->ValueFormat1)
857904 {
905 if (accumulate && g->positioning_type)
906 {
907 gidx = gstring_insert_for_gpos (gstring, gidx);
908 g = gstring->glyphs + gidx;
909 next_gidx += gidx - orig_gidx;
910 nextg = gstring->glyphs + next_gidx;
911 }
858912 g->positioning_type = lookup_type;
859913 g->f.f2.format = pair2->ValueFormat1;
860914 g->f.f2.value
861915 = &pair2->Class1Record[class1].Class2Record[class2].Value1;
862916 }
863917 gidx = next_gidx;
918 g = nextg;
864919 if (pair2->ValueFormat2)
865920 {
866 nextg->positioning_type = lookup_type;
867 nextg->f.f2.format = pair2->ValueFormat2;
868 nextg->f.f2.value
921 if (accumulate && g->positioning_type)
922 {
923 gidx = gstring_insert_for_gpos (gstring, gidx);
924 g = gstring->glyphs + gidx;
925 }
926 g->positioning_type = lookup_type;
927 g->f.f2.format = pair2->ValueFormat2;
928 g->f.f2.value
869929 = &pair2->Class1Record[class1].Class2Record[class2].Value2;
870930 gidx++;
871931 }
877937 {
878938 OTF_GPOS_Cursive1 *cursive1 = &subtable->u.cursive1;
879939
940 if (accumulate && g->positioning_type)
941 {
942 gidx = gstring_insert_for_gpos (gstring, gidx);
943 g = gstring->glyphs + gidx;
944 }
880945 g->positioning_type = lookup_type;
881946 g->f.f3.entry_anchor
882947 = &cursive1->EntryExitRecord[coverage_idx].EntryAnchor;
910975 mark_record = mark_base1->MarkArray.MarkRecord + coverage_idx;
911976 base_record
912977 = mark_base1->BaseArray.AnchorRecord + coverage_idx_base;
978 if (accumulate && g->positioning_type)
979 {
980 gidx = gstring_insert_for_gpos (gstring, gidx);
981 g = gstring->glyphs + gidx;
982 }
913983 g->f.f4.mark_anchor = &mark_record->MarkAnchor;
914984 g->f.f4.base_anchor
915985 = &base_record->Anchor[mark_record->Class];
9601030 if (lig_anchor[mark_record->Class].AnchorFormat
9611031 && num_class[mark_record->Class]-- == 0)
9621032 {
1033 if (accumulate && g->positioning_type)
1034 {
1035 gidx = gstring_insert_for_gpos (gstring, gidx);
1036 g = gstring->glyphs + gidx;
1037 }
9631038 g->positioning_type = lookup_type;
9641039 g->f.f5.mark_anchor = &mark_record->MarkAnchor;
9651040 g->f.f5.ligature_anchor = lig_anchor + mark_record->Class;
9931068 mark1_record = mark_mark1->Mark1Array.MarkRecord + coverage_idx;
9941069 mark2_record
9951070 = mark_mark1->Mark2Array.AnchorRecord + coverage_idx_base;
1071 if (accumulate && g->positioning_type)
1072 {
1073 gidx = gstring_insert_for_gpos (gstring, gidx);
1074 g = gstring->glyphs + gidx;
1075 }
9961076 g->f.f6.mark1_anchor = &mark1_record->MarkAnchor;
9971077 g->f.f6.mark2_anchor
9981078 = &mark2_record->Anchor[mark1_record->Class];
10211101 lookup_gpos (lookup_list,
10221102 rule->LookupRecord[k].LookupListIndex,
10231103 gstring,
1024 gidx + rule->LookupRecord[k].SequenceIndex);
1104 gidx + rule->LookupRecord[k].SequenceIndex,
1105 accumulate);
10251106 gidx += rule->GlyphCount + (gstring->used - orig_used);
10261107 break;
10271108 }
10511132 lookup_gpos (lookup_list,
10521133 rule->LookupRecord[k].LookupListIndex,
10531134 gstring,
1054 gidx + rule->LookupRecord[k].SequenceIndex);
1135 gidx + rule->LookupRecord[k].SequenceIndex,
1136 accumulate);
10551137 gidx += rule->GlyphCount + (gstring->used - orig_used);
10561138 break;
10571139 }
10711153 lookup_gpos (lookup_list,
10721154 context3->LookupRecord[j].LookupListIndex,
10731155 gstring,
1074 gidx + context3->LookupRecord[j].SequenceIndex);
1156 gidx + context3->LookupRecord[j].SequenceIndex,
1157 accumulate);
10751158 gidx += context3->GlyphCount + (gstring->used - orig_used);
10761159 }
10771160 break;
10991182 lookup_gpos (lookup_list,
11001183 rule->LookupRecord[k].LookupListIndex,
11011184 gstring,
1102 gidx + rule->LookupRecord[k].SequenceIndex);
1185 gidx + rule->LookupRecord[k].SequenceIndex,
1186 accumulate);
11031187 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
11041188 break;
11051189 }
11341218 lookup_gpos (lookup_list,
11351219 rule->LookupRecord[k].LookupListIndex,
11361220 gstring,
1137 gidx + rule->LookupRecord[k].SequenceIndex);
1221 gidx + rule->LookupRecord[k].SequenceIndex,
1222 accumulate);
11381223 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
11391224 break;
11401225 }
11561241 lookup_gpos (lookup_list,
11571242 context3->LookupRecord[j].LookupListIndex,
11581243 gstring,
1159 gidx + context3->LookupRecord[j].SequenceIndex);
1244 gidx + context3->LookupRecord[j].SequenceIndex,
1245 accumulate);
11601246 gidx += context3->InputGlyphCount + (gstring->used - orig_used);
11611247 }
11621248 else
12071293 gstring->glyphs[i].glyph_id = 0;
12081294 for (j = 0; j < segCount; j++)
12091295 {
1210 OTF_cmapSegument *seg = sub4->segments + i;
1296 OTF_cmapSegment *seg = sub4->segments + i;
12111297
12121298 if (c >= seg->startCount && c <= seg->endCount)
12131299 {
12491335 return 0;
12501336 }
12511337
1338 static OTF_GlyphID
1339 get_uvs_glyph (OTF_cmap *cmap, OTF_EncodingSubtable14 *sub14, int c1, int c2)
1340 {
1341 unsigned nRecords = sub14->nRecords;
1342 OTF_VariationSelectorRecord *record;
1343 unsigned i;
1344
1345 for (i = 0; i < nRecords; i++)
1346 {
1347 record = &sub14->Records[i];
1348 if (record->varSelector == c2)
1349 {
1350 if (record->defaultUVSOffset)
1351 {
1352 OTF_UnicodeValueRange *uVRs = record->unicodeValueRanges;
1353 unsigned numUVRs = record->numUnicodeValueRanges;
1354 unsigned top = numUVRs, bottom = 0, middle;
1355
1356 if (uVRs[0].startUnicodeValue <= c1)
1357 {
1358 unsigned additionalCount, startUnicodeValue;
1359
1360 for (;;)
1361 {
1362 middle = (top + bottom) / 2;
1363 if (c1 < uVRs[middle].startUnicodeValue)
1364 top = middle;
1365 else if (bottom == middle)
1366 break;
1367 else
1368 bottom = middle;
1369 }
1370 startUnicodeValue = uVRs[bottom].startUnicodeValue;
1371 additionalCount = uVRs[bottom].additionalCount;
1372 if (c1 <= startUnicodeValue + additionalCount)
1373 return cmap->unicode_table[c1];
1374 }
1375 }
1376 if (record->nonDefaultUVSOffset)
1377 {
1378 OTF_UVSMapping *uvsMappings = record->uvsMappings;
1379 unsigned numUVSMs = record->numUVSMappings;
1380 unsigned top = numUVSMs, bottom = 0, middle;
1381
1382 if (uvsMappings[0].unicodeValue <= c1)
1383 {
1384 for (;;)
1385 {
1386 middle = (top + bottom) / 2;
1387 if (c1 < uvsMappings[middle].unicodeValue)
1388 top = middle;
1389 else if (bottom == middle)
1390 break;
1391 else
1392 bottom = middle;
1393 }
1394 if (uvsMappings[bottom].unicodeValue == c1)
1395 return uvsMappings[bottom].glyphID;
1396 }
1397 }
1398 return 0;
1399 }
1400 }
1401 return 0;
1402 }
1403
1404 static void
1405 check_cmap_uvs (OTF_cmap *cmap, OTF_GlyphString *gstring, int idx)
1406 {
1407 OTF_EncodingSubtable14 *sub14;
1408 int c1 = gstring->glyphs[idx - 1].c;
1409 int c2 = gstring->glyphs[idx].c;
1410 OTF_GlyphID code;
1411 int i;
1412
1413 gstring->glyphs[idx].glyph_id = 0;
1414 for (i = 0; i < cmap->numTables; i++)
1415 if (cmap->EncodingRecord[i].subtable.format == 14)
1416 break;
1417 if (i == cmap->numTables)
1418 return;
1419 code = get_uvs_glyph (cmap, cmap->EncodingRecord[i].subtable.f.f14, c1, c2);
1420 if (code == 0)
1421 return;
1422 gstring->glyphs[idx - 1].glyph_id = code;
1423 gstring->glyphs[idx - 1].f.index.to = gstring->glyphs[idx].f.index.to;
1424 gstring->used--;
1425 memmove (gstring->glyphs + idx, gstring->glyphs + idx + 1,
1426 sizeof (OTF_Glyph) * (gstring->used - idx));
1427 }
1428
12521429
12531430
1431 /* GDEF */
1432 /* Table of GlyphClass and MarkAttackClass.
1433
1434 For the Nth element CHAR, CHAR and the succeeding characters
1435 (before CHAR of the next element) has GlyphClass C (= (N % 2) ? 3 : 1).
1436
1437 This table is generated from the General Category (GC) property of
1438 characters defined in the Unicode Character Database. */
1439
1440 static int glyph_class_table[] =
1441 { 0x00000, 0x00300, 0x00370, 0x00483, 0x00487, 0x00488, 0x0048A, 0x00591,
1442 0x005BE, 0x005BF, 0x005C0, 0x005C1, 0x005C3, 0x005C4, 0x005C6, 0x005C7,
1443 0x005C8, 0x00610, 0x00616, 0x0064B, 0x0065F, 0x00670, 0x00671, 0x006D6,
1444 0x006DD, 0x006DE, 0x006E5, 0x006E7, 0x006E9, 0x006EA, 0x006EE, 0x00711,
1445 0x00712, 0x00730, 0x0074B, 0x007A6, 0x007B1, 0x007EB, 0x007F4, 0x00901,
1446 0x00904, 0x0093C, 0x0093D, 0x0093E, 0x0094E, 0x00951, 0x00955, 0x00962,
1447 0x00964, 0x00981, 0x00984, 0x009BC, 0x009BD, 0x009BE, 0x009C5, 0x009C7,
1448 0x009CE, 0x009D7, 0x009D8, 0x009E2, 0x009E4, 0x00A01, 0x00A04, 0x00A3C,
1449 0x00A3D, 0x00A3E, 0x00A4E, 0x00A70, 0x00A72, 0x00A81, 0x00A84, 0x00ABC,
1450 0x00ABD, 0x00ABE, 0x00ACE, 0x00AE2, 0x00AE4, 0x00B01, 0x00B04, 0x00B3C,
1451 0x00B3D, 0x00B3E, 0x00B44, 0x00B47, 0x00B58, 0x00B82, 0x00B83, 0x00BBE,
1452 0x00BCE, 0x00BD7, 0x00BD8, 0x00C01, 0x00C04, 0x00C3E, 0x00C45, 0x00C46,
1453 0x00C57, 0x00C82, 0x00C84, 0x00CBC, 0x00CBD, 0x00CBE, 0x00CC5, 0x00CC6,
1454 0x00CCE, 0x00CD5, 0x00CD7, 0x00CE2, 0x00CE4, 0x00D02, 0x00D04, 0x00D3E,
1455 0x00D44, 0x00D46, 0x00D4E, 0x00D57, 0x00D58, 0x00D82, 0x00D84, 0x00DCA,
1456 0x00DCB, 0x00DCF, 0x00DD7, 0x00DD8, 0x00DF4, 0x00E31, 0x00E32, 0x00E34,
1457 0x00E3B, 0x00E47, 0x00E4F, 0x00EB1, 0x00EB2, 0x00EB4, 0x00EBD, 0x00EC8,
1458 0x00ECE, 0x00F18, 0x00F1A, 0x00F35, 0x00F36, 0x00F37, 0x00F38, 0x00F39,
1459 0x00F3A, 0x00F3E, 0x00F40, 0x00F71, 0x00F85, 0x00F86, 0x00F88, 0x00F90,
1460 0x00FBD, 0x00FC6, 0x00FC7, 0x0102C, 0x0103A, 0x01056, 0x0105A, 0x0135F,
1461 0x01360, 0x01712, 0x01715, 0x01732, 0x01735, 0x01752, 0x01754, 0x01772,
1462 0x01774, 0x017B6, 0x017D4, 0x017DD, 0x017DE, 0x0180B, 0x0180E, 0x018A9,
1463 0x018AA, 0x01920, 0x0193C, 0x019B0, 0x019C1, 0x019C8, 0x019CA, 0x01A17,
1464 0x01A1C, 0x01B00, 0x01B05, 0x01B34, 0x01B45, 0x01B6B, 0x01B74, 0x01DC0,
1465 0x01E00, 0x020D0, 0x020F0, 0x0302A, 0x03030, 0x03099, 0x0309B, 0x0A802,
1466 0x0A803, 0x0A806, 0x0A807, 0x0A80B, 0x0A80C, 0x0A823, 0x0A828, 0x0FB1E,
1467 0x0FB1F, 0x0FE00, 0x0FE10, 0x0FE20, 0x0FE24, 0x10A01, 0x10A10, 0x10A38,
1468 0x10A40, 0x1D165, 0x1D16A, 0x1D16D, 0x1D173, 0x1D17B, 0x1D183, 0x1D185,
1469 0x1D18C, 0x1D1AA, 0x1D1AE, 0x1D242, 0x1D245, 0xE0100, 0xE01F0 };
1470
1471 int get_class_def_auto (int c)
1472 {
1473 static int table_size
1474 = sizeof glyph_class_table / sizeof glyph_class_table[0];
1475 int low, high, mid;
1476
1477 if (c >= glyph_class_table[table_size - 1])
1478 return 0;
1479 low = 0;
1480 high = table_size - 1;
1481 while (1)
1482 {
1483 mid = (low + high) / 2;
1484 if (c < glyph_class_table[mid])
1485 high = mid - 1;
1486 else if (c >= glyph_class_table[mid + 1])
1487 low = mid + 1;
1488 else
1489 break;
1490 }
1491 return ((mid % 2) ? 3 : 1);
1492 }
1493
1494
1495
12541496 /* API */
1497
1498 #define UVS_P(C) \
1499 (((C) >= 0xFE00 && (C) <= 0xFE0F) || ((C) >= 0xE0100 && (C) <= 0xE01EF))
12551500
12561501 int
12571502 OTF_drive_cmap (OTF *otf, OTF_GlyphString *gstring)
12701515 int c = gstring->glyphs[i].c;
12711516 if (c < 32 || ! cmap->unicode_table)
12721517 gstring->glyphs[i].glyph_id = 0;
1518 else if (UVS_P (c) && i > 0)
1519 check_cmap_uvs (cmap, gstring, i);
12731520 else
12741521 gstring->glyphs[i].glyph_id = cmap->unicode_table[c];
12751522 }
13271574 }
13281575
13291576 int
1577 OTF_get_variation_glyphs (OTF *otf, int c, OTF_GlyphID code[256])
1578 {
1579 int i, n;
1580 OTF_cmap *cmap;
1581 OTF_EncodingSubtable14 *sub14;
1582
1583 memset (code, 0, sizeof (OTF_GlyphID) * 256);
1584 if (! otf->cmap
1585 && OTF_get_table (otf, "cmap") < 0)
1586 return 0;
1587 cmap = otf->cmap;
1588 for (i = 0; i < cmap->numTables; i++)
1589 if (cmap->EncodingRecord[i].subtable.format == 14)
1590 break;
1591 if (i == cmap->numTables)
1592 return 0;
1593 sub14 = cmap->EncodingRecord[i].subtable.f.f14;
1594 for (i = 0, n = 0; i < 256; i++)
1595 {
1596 int uvs = (i < 16 ? 0xFE00 + i : 0xE0100 + (i - 16));
1597
1598 if ((code[i] = get_uvs_glyph (cmap, sub14, c, uvs)))
1599 n++;
1600 }
1601 return n;
1602 }
1603
1604
1605 int
13301606 OTF_drive_gdef (OTF *otf, OTF_GlyphString *gstring)
13311607 {
13321608 OTF_GDEF *gdef;
13421618 gstring->glyphs[i].GlyphClass
13431619 = get_class_def (&gdef->glyph_class_def,
13441620 gstring->glyphs[i].glyph_id);
1621 else
1622 for (i = 0; i < gstring->used; i++)
1623 gstring->glyphs[i].GlyphClass
1624 = get_class_def_auto (gstring->glyphs[i].c);
13451625
13461626 if (gdef->mark_attach_class_def.offset)
13471627 for (i = 0; i < gstring->used; i++)
13621642 int errret = -1;
13631643 OTF_GSUB *gsub;
13641644 OTF_LangSys *LangSys;
1365 int *lookup_indices;
1366 int i, n;
1645 char *lookup_flags;
1646 int i;
13671647
13681648 for (i = 0; i < gstring->used; i++)
13691649 {
13821662 if (! LangSys)
13831663 return errret;
13841664
1385 /* One lookup may be used by multiple features. */
1386 lookup_indices = alloca (sizeof (int)
1387 * gsub->LookupList.LookupCount
1388 * (gsub->FeatureList.FeatureCount + 1));
1389 if (! lookup_indices)
1665 lookup_flags = alloca (gsub->LookupList.LookupCount);
1666 if (! lookup_flags
1667 || setup_lookup_flags (&gsub->LookupList, &gsub->FeatureList, LangSys,
1668 features, lookup_flags) < 0)
13901669 OTF_ERROR (OTF_ERROR_MEMORY, " feature list");
1391 n = setup_lookup_indices (&gsub->LookupList, &gsub->FeatureList,
1392 features, lookup_indices);
1393 if (n < 0)
1394 return errret;
1395
1396 for (i = 0; i < n; i++)
1397 {
1398 int index = lookup_indices[i];
1670
1671 for (i = 0; i < gsub->LookupList.LookupCount; i++)
1672 {
13991673 int gidx;
14001674
1401 if (gsub->LookupList.Lookup[index].LookupType != 8)
1675 if (! lookup_flags[i]) continue;
1676
1677 if (gsub->LookupList.Lookup[i].LookupType != 8)
14021678 {
14031679 gidx = 0;
14041680 while (gidx < gstring->used)
14051681 {
1406 gidx = lookup_gsub (otf, &gsub->LookupList, index, gstring, gidx,
1682 gidx = lookup_gsub (otf, &gsub->LookupList, i, gstring, gidx,
14071683 alternate_subst);
14081684 if (gidx < 0)
14091685 return errret;
14141690 gidx = gstring->used - 1;
14151691 while (gidx >= 0)
14161692 {
1417 gidx = lookup_gsub (otf, &gsub->LookupList, index, gstring, gidx,
1693 gidx = lookup_gsub (otf, &gsub->LookupList, i, gstring, gidx,
14181694 alternate_subst);
14191695 if (gidx < 0)
14201696 return errret;
14351711 }
14361712
14371713 int
1438 OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
1439 const char *script, const char *language, const char *features)
1714 OTF_drive_gpos_internal (OTF *otf, OTF_GlyphString *gstring,
1715 const char *script, const char *language,
1716 const char *features,
1717 int accumulate)
14401718 {
14411719 char *errfmt = "GPOS driving%s";
14421720 int errret = -1;
14431721 OTF_GPOS *gpos;
14441722 OTF_LangSys *LangSys;
1445 int *lookup_indices;
1723 char *lookup_flags;
14461724 int i, n;
14471725
14481726 for (i = 0; i < gstring->used; i++)
14591737 if (! LangSys)
14601738 return errret;
14611739
1462 /* One lookup may be used by multiple features. */
1463 lookup_indices = alloca (sizeof (int)
1464 * gpos->LookupList.LookupCount
1465 * (gpos->FeatureList.FeatureCount + 1));
1466 if (! lookup_indices)
1740 lookup_flags = alloca (gpos->LookupList.LookupCount);
1741 if (! lookup_flags
1742 || setup_lookup_flags (&gpos->LookupList, &gpos->FeatureList, LangSys,
1743 features, lookup_flags) < 0)
14671744 OTF_ERROR (OTF_ERROR_MEMORY, " feature list");
1468 n = setup_lookup_indices (&gpos->LookupList, &gpos->FeatureList,
1469 features, lookup_indices);
1470 if (n < 0)
1471 return errret;
1472
1473 for (i = 0; i < n; i++)
1474 {
1475 int index = lookup_indices[i];
1745
1746 for (i = 0; i < gpos->LookupList.LookupCount; i++)
1747 {
14761748 int gidx = 0;
1749
1750 if (! lookup_flags[i]) continue;
14771751
14781752 while (gidx < gstring->used)
14791753 {
1480 gidx = lookup_gpos (&gpos->LookupList, index, gstring, gidx);
1754 gidx = lookup_gpos (&gpos->LookupList, i, gstring, gidx, accumulate);
14811755 if (gidx < 0)
14821756 return errret;
14831757 }
14841758 }
14851759
14861760 return 0;
1761 }
1762
1763 int
1764 OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
1765 const char *script, const char *language, const char *features)
1766 {
1767 if (! otf->cmap)
1768 OTF_get_table (otf, "cmap");
1769 return OTF_drive_gpos_internal (otf, gstring, script, language, features, 0);
1770 }
1771
1772 int
1773 OTF_drive_gpos2 (OTF *otf, OTF_GlyphString *gstring,
1774 const char *script, const char *language, const char *features)
1775 {
1776 if (! otf->cmap)
1777 OTF_get_table (otf, "cmap");
1778 return OTF_drive_gpos_internal (otf, gstring, script, language, features, 1);
14871779 }
14881780
14891781 int
00 /* otfopen.c -- OpenType font reader.
11
2 Copyright (C) 2003, 2004, 2005, 2006, 2008
2 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
55
9090
9191 typedef long OTF_StreamState;
9292
93 OTF_Stream *
93 static OTF_Stream *
9494 make_stream (const char *name)
9595 {
9696 OTF_Stream *stream;
104104 return stream;
105105 }
106106
107 int
107 static int
108108 setup_stream (OTF_Stream *stream, FILE *fp, long offset, int nbytes)
109109 {
110110 char *errfmt = "stream setup for %s";
130130 return 0;
131131 }
132132
133 OTF_Stream *
133 static OTF_Stream *
134134 make_stream_from_ft_face (FT_Face face, const char *name)
135135 {
136136 char *errfmt = "FT_Face stream creation for %s";
160160 return stream;
161161 }
162162
163 void
163 static void
164164 free_stream (OTF_Stream *stream)
165165 {
166 free (stream->buf);
166 if (stream->buf)
167 free (stream->buf);
167168 free (stream);
168169 }
169170
196197 (var) = (short) (((stream)->buf[(stream)->pos] << 8) \
197198 | (stream)->buf[(stream)->pos + 1]); \
198199 (stream)->pos += 2; \
200 } while (0)
201
202 #define READ_UINT24(stream, var) \
203 do { \
204 STREAM_CHECK_SIZE ((stream), 3); \
205 (var) = (((stream)->buf[(stream)->pos ] << 16) \
206 | ((stream)->buf[(stream)->pos + 1] << 8) \
207 | (stream)->buf[(stream)->pos + 2]); \
208 (stream)->pos += 3; \
199209 } while (0)
200210
201211 #define READ_ULONG(stream, var) \
381391 static int
382392 read_name (OTF *otf, OTF_Stream *stream, OTF_NameRecord *rec)
383393 {
384 char *errfmt = "nameID (%d)";
394 char errfmt[256];
385395 int errret = -1;
386396 OTF_StreamState state;
387397 int ucs = 0;
388398 int ascii = 0;
389399 int i;
390400
401 sprintf (errfmt, "nameID (%d)%%s", rec->nameID);
391402 if (rec->platformID == 0)
392403 ucs = (rec->encodingID <= 3) ? 2 : 4;
393404 else if (rec->platformID == 1 && rec->encodingID == 0)
397408 : rec->encodingID == 10 ? 4
398409 : 0);
399410
400 OTF_MALLOC (rec->name, rec->length + 1, (void *) rec->nameID);
411 OTF_MALLOC (rec->name, rec->length + 1, "");
401412 SAVE_STREAM (stream, state);
402413 SEEK_STREAM (stream, stream->pos + rec->offset);
403414 READ_BYTES (stream, rec->name, rec->length);
494505
495506 /*** (1-4) "cmap" table */
496507
508 static OTF_EncodingSubtable14 *
509 read_cmap_uvs_table (OTF *otf, OTF_Stream *stream, OTF_Offset offset)
510 {
511 OTF_EncodingSubtable14 *sub14;
512 char *errfmt = "cmap-uvs%s";
513 void *errret = NULL;
514 unsigned nRecords;
515 unsigned i,j;
516
517 OTF_MALLOC (sub14, 1, " (EncodingSubtable14)");
518 READ_ULONG (stream, nRecords);
519 sub14->nRecords = nRecords;
520 OTF_MALLOC (sub14->Records, nRecords, "(EncodingSubtable14-Records)");
521 for (i = 0; i < sub14->nRecords; i++)
522 {
523 unsigned varSelector=0, defaultUVSOffset, nonDefaultUVSOffset;
524
525 READ_UINT24 (stream, varSelector);
526 sub14->Records[i].varSelector = varSelector;
527 READ_ULONG (stream, defaultUVSOffset);
528 sub14->Records[i].defaultUVSOffset = defaultUVSOffset;
529 READ_ULONG (stream, nonDefaultUVSOffset);
530 sub14->Records[i].nonDefaultUVSOffset = nonDefaultUVSOffset;
531 }
532 for (i = 0; i < sub14->nRecords; i++)
533 {
534 OTF_VariationSelectorRecord *record = &sub14->Records[i];
535 unsigned defaultUVSOffset = record->defaultUVSOffset;
536 unsigned nonDefaultUVSOffset = record->nonDefaultUVSOffset;
537
538 if (defaultUVSOffset)
539 {
540 unsigned numUnicodeValueRanges;
541
542 SEEK_STREAM (stream, offset+defaultUVSOffset);
543 READ_ULONG (stream, numUnicodeValueRanges);
544 record->numUnicodeValueRanges = numUnicodeValueRanges;
545 OTF_MALLOC (record->unicodeValueRanges,
546 numUnicodeValueRanges,
547 "(EncodingSubtable14-Records-unicodeValueRanges)");
548 for (j = 0; j < numUnicodeValueRanges; j++)
549 {
550 OTF_UnicodeValueRange *unicodeValueRange
551 = &record->unicodeValueRanges[j];
552 unsigned startUnicodeValue;
553 char additionalCount;
554
555 READ_UINT24 (stream, startUnicodeValue);
556 unicodeValueRange->startUnicodeValue=startUnicodeValue;
557 READ_BYTES (stream, &additionalCount, 1);
558 unicodeValueRange->additionalCount
559 = (unsigned short) additionalCount;
560 }
561 }
562 if (nonDefaultUVSOffset)
563 {
564 unsigned numUVSMappings;
565
566 SEEK_STREAM (stream, offset+nonDefaultUVSOffset);
567 READ_ULONG (stream, numUVSMappings);
568 record->numUVSMappings = numUVSMappings;
569 OTF_MALLOC (record->uvsMappings, numUVSMappings,
570 "(EncodingSubtable14-Records-uvsMappings)");
571 for (j = 0; j < numUVSMappings; j++)
572 {
573 OTF_UVSMapping *uvsMapping = &record->uvsMappings[j];
574 unsigned unicodeValue;
575 unsigned short glyphID;
576
577 READ_UINT24 (stream, unicodeValue);
578 uvsMapping->unicodeValue = unicodeValue;
579 READ_USHORT (stream, glyphID);
580 uvsMapping->glyphID = glyphID;
581 }
582 }
583 }
584 return sub14;
585 }
586
497587 static void *
498588 read_cmap_table (OTF *otf, OTF_TableInfo *table, enum OTF_ReaderFlag flag)
499589 {
539629 SEEK_STREAM (stream, cmap->EncodingRecord[i].offset);
540630 READ_USHORT (stream, format);
541631 cmap->EncodingRecord[i].subtable.format = format;
542 READ_USHORT (stream, cmap->EncodingRecord[i].subtable.length);
543 if (format == 8 || format == 10 || format == 12)
544 {
545 READ_ULONG (stream, cmap->EncodingRecord[i].subtable.length);
546 READ_ULONG (stream, cmap->EncodingRecord[i].subtable.language);
632 if (format == 14)
633 {
634 READ_ULONG (stream, cmap->EncodingRecord[i].subtable.length);
635 cmap->EncodingRecord[i].subtable.language = 0;
547636 }
548637 else
549638 {
550 READ_USHORT (stream, cmap->EncodingRecord[i].subtable.language);
639 READ_USHORT (stream, cmap->EncodingRecord[i].subtable.length);
640 if (format == 8 || format == 10 || format == 12)
641 {
642 READ_ULONG (stream, cmap->EncodingRecord[i].subtable.length);
643 READ_ULONG (stream, cmap->EncodingRecord[i].subtable.language);
644 }
645 else
646 {
647 READ_USHORT (stream, cmap->EncodingRecord[i].subtable.language);
648 }
551649 }
552650 switch (format)
553651 {
704802 }
705803 break;
706804
805 case 14:
806 {
807 cmap->EncodingRecord[i].subtable.f.f14
808 = read_cmap_uvs_table (otf, stream,
809 cmap->EncodingRecord[i].offset);
810 break;
811 }
812
707813 default:
708814 OTF_ERROR (OTF_ERROR_TABLE, " (invalid Subtable format)");
709815 }
724830
725831 for (i = 0; i < segCount; i++)
726832 {
727 OTF_cmapSegument *seg = sub4->segments + i;
833 OTF_cmapSegment *seg = sub4->segments + i;
728834 int c;
729835
730836 if (seg->idRangeOffset == 0xFFFF)
11051211 OTF_GDEF *gdef;
11061212
11071213 OTF_CALLOC (gdef, 1, "");
1108 read_gdef_header (stream, (OTF_GDEFHeader *) &gdef->header);
1109 if (gdef->header.GlyphClassDef)
1110 {
1111 gdef->glyph_class_def.offset = gdef->header.GlyphClassDef;
1112 read_class_def_without_offset (otf, stream, &gdef->glyph_class_def);
1113 }
1114 if (gdef->header.AttachList)
1115 read_attach_list (otf, stream, gdef->header.AttachList,
1116 &gdef->attach_list);
1117 if (gdef->header.LigCaretList)
1118 read_lig_caret_list (otf, stream, gdef->header.LigCaretList,
1119 &gdef->lig_caret_list);
1120 if (gdef->header.MarkAttachClassDef)
1121 {
1122 gdef->mark_attach_class_def.offset = gdef->header.MarkAttachClassDef;
1123 read_class_def_without_offset (otf, stream, &gdef->mark_attach_class_def);
1214 if (stream->buf)
1215 {
1216 read_gdef_header (stream, (OTF_GDEFHeader *) &gdef->header);
1217 if (gdef->header.GlyphClassDef)
1218 {
1219 gdef->glyph_class_def.offset = gdef->header.GlyphClassDef;
1220 read_class_def_without_offset (otf, stream,
1221 &gdef->glyph_class_def);
1222 }
1223 if (gdef->header.AttachList)
1224 read_attach_list (otf, stream, gdef->header.AttachList,
1225 &gdef->attach_list);
1226 if (gdef->header.LigCaretList)
1227 read_lig_caret_list (otf, stream, gdef->header.LigCaretList,
1228 &gdef->lig_caret_list);
1229 if (gdef->header.MarkAttachClassDef)
1230 {
1231 gdef->mark_attach_class_def.offset = gdef->header.MarkAttachClassDef;
1232 read_class_def_without_offset (otf, stream,
1233 &gdef->mark_attach_class_def);
1234 }
11241235 }
11251236
11261237 *table->address = gdef;
26102721
26112722 /*** (1-11) Structure for OTF */
26122723
2613 int
2724 static int
26142725 read_offset_table (OTF *otf, OTF_Stream *stream, OTF_OffsetTable *table)
26152726 {
26162727 int errret = -1;
27412852 internal_data->table_info[OTF_TABLE_TYPE_GPOS].stream = stream;
27422853 }
27432854
2855 if (! internal_data->table_info[OTF_TABLE_TYPE_GDEF].stream)
2856 /* We can simulate the GDEF table. */
2857 internal_data->table_info[OTF_TABLE_TYPE_GDEF].stream
2858 = make_stream ("GDEF");
27442859 return 0;
27452860 }
27462861