Codebase list libotf / 85af96e
* New upstream release 0.9.16 Harshula Jayasuriya 4 years ago
34 changed file(s) with 10414 addition(s) and 6432 deletion(s). Raw diff Collapse all Expand all
(No changes)
(No changes)
0 2018-02-08 handa <handa@gnu.org>
1
2 Version 0.9.16 released.
3
4 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.16".
5
6 * src/Makefile.am (libotf_la_LDFLAGS): New variable.
7
8 2018-01-24 handa <handa@gnu.org>
9
10 * configure.ac: Change versions to 0.9.16.
11
12 2018-01-23 K. Handa <handa@gnu.org>
13
14 * src/otfopen.c (read_class_def): Handle the case of
15 f.f1.GlyphCount and f.f2.ClassRangeCount being 0 gracefully.
16
17 2015-09-02 K. Handa <handa@gnu.org>
18
19 * example/otfview.c (update_seq_area): Use the macro
20 OTF_POSITIONING_TYPE_GET_FORMAT.
21
22 2015-08-29 Richard Wordingham <richard.wordingham@ntlworld.com>
23
24 * src/otfdrive.c (lookup_gsub, lookup_gpos): Extend debug output.
25
26 2015-08-28 K. Handa <handa@gnu.org>
27
28 * src/otf.h (OTF_drive_gsub_features, OTF_drive_gpos_features):
29 Extern them.
30 (OTF_drive_features): Delete extern.
31
32 * src/otfdrive.c (OTF_drive_gsub_with_log): Fix the settings of
33 members of control.
34 (OTF_drive_gsub_features): New function.
35 (OTF_drive_gpos_internal): Pay attention to
36 control->disable_mark_distance.
37 (OTF_drive_gpos_features): New function.
38 (OTF_drive_features): Delete it.
39
40 * example/otfview.c (update_seq_area): Call
41 OTF_drive_gsub_features and OTF_drive_gpos_features instead of
42 OTF_drive_features.
43
44 2015-08-08 K. Handa <handa@gnu.org>
45
46 * src/otf.h (OTF_Positioning_Type_Bit_Field)
47 (OTF_Positioning_Type_Mask): New enums.
48 (OTF_POSITIONING_TYPE_GET_FORMAT)
49 (OTF_POSITIONING_TYPE_SET_FORMAT)
50 (OTF_POSITIONING_TYPE_GET_FEATURE)
51 (OTF_POSITIONING_TYPE_SET_FEATURE)
52 (OTF_POSITIONING_TYPE_GET_COMPONENTS)
53 (OTF_POSITIONING_TYPE_SET_COMPONENTS)
54 (OTF_POSITIONING_TYPE_GET_MARKDISTANCE)
55 (OTF_POSITIONING_TYPE_SET_MARKDISTANCE): New macros.
56
57 * src/otfdrive.c (struct Control): New member
58 disable_mark_distance.
59 (POSITIONING_TYPE_FORMAT_MASK, POSITIONING_TYPE_FEATURE_MASK)
60 (POSITIONING_TYPE_COMPONENTS_MASK, POSITIONING_TYPE_GET_FORMAT)
61 (POSITIONING_TYPE_SET_FORMAT, POSITIONING_TYPE_GET_FEATURE)
62 (POSITIONING_TYPE_SET_FEATURE, POSITIONING_TYPE_GET_COMPONENTS)
63 (POSITIONING_TYPE_SET_COMPONENTS): These macros deleted. Callers
64 change to use the corresponding macros in otf.h.
65 (lookup_gsub): Propaged the error of recursively callled function.
66 (lookup_gpos): Propaged the error of recursively callled function.
67 For lookup of type 5, if control->disable_ligature_component_info
68 is set, find a target component by
69 OTF_POSITIONING_TYPE_GET_COMPONENTS (). Record the distance of
70 marks for handling MarkToMark Attachment (bug#44697).
71 (OTF_drive_gpos): Set control.disable_mark_distance to 1.
72 (OTF_drive_gpos2, OTF_drive_gpos_with_log): Likewise.
73
74 * example/otfview.c (update_seq_area): Use OTF_drive_features ()
75 instead of OTF_drive_gsub/gpos_with_log (). Use
76 OTF_POSITIONING_TYPE_GET_XXX () macros. Pay attention to
77 OTF_POSITIONING_TYPE_GET_MARKDISTANCE (g).
78
79 2015-07-19 K. Handa <handa@gnu.org>
80
81 * src/otfdrive.c (lookup_gsub): Fix previous change.
82
83 2015-07-18 K. Handa <handa@gnu.org>
84
85 The following is to fix incorrect calculation of the position to
86 move to after a match (bug#44693).
87
88 * src/otfdrive.c (match_chain_ids, match_chain_classes)
89 (match_chain_coverages): If matched, return the number of matched
90 glyphs.
91 (lookup_gsub, lookup_gpos): Utilize the return value of match_XXX
92 functions to find the position to move to.
93
94 2015-07-09 K. Handa <handa@gnu.org>
95
96 * configure.ac: Change versions to 0.9.15.
97
98 * src/otf.h (LIBOTF_VERSION): Changed to "0.9.15".
99 (LIBOTF_RELEASE_NUMBER): Changed to 15.
100 (OTF_drive_features): Extern it.
101
102 2015-07-09 K. Handa <handa@gnu.org>
103
104 These changes are to implement a new API OTF_drive_feature which
105 can return sufficient information to handle a lookup of type
106 Mark-to-Ligature attachment.
107
108 * src/otfdrive.c (struct Control): New type.
109 (default_control): New variable.
110 (POSITIONING_TYPE_FORMAT_MASK, POSITIONING_TYPE_FEATURE_MASK)
111 (POSITIONING_TYPE_COMPONENTS_MASK, POSITIONING_TYPE_GET_FORMAT)
112 (POSITIONING_TYPE_SET_FORMAT, POSITIONING_TYPE_GET_FEATURE)
113 (POSITIONING_TYPE_SET_FEATURE, POSITIONING_TYPE_GET_COMPONENTS)
114 (POSITIONING_TYPE_SET_COMPONENTS): New macros. All codes
115 accessing bit-fields in <positioning_type> of OTF_Glyph are
116 changed to use thise macros.
117 (gstring_subst): Set bit-field for ligature components in
118 <positioning_type> member of OTF_Glyph.
119 (lookup_gsub): Change argument alternate_subst to control. Caller
120 changed.
121 (lookup_gpos): Change argument accumulate to control. Caller
122 changed.
123 (OTF_drive_gsub_internal): Change arguments alternate_subst and
124 with_log to control. Caller changed.
125 (OTF_drive_gpos_internal): Change arguments accumulate and
126 with_log to control. Caller changed.
127 (OTF_drive_features): New function.
128
129 2015-03-27 K. Handa <handa@gnu.org>
130
131 * example/otflist.c (main): Check the retrun value of OTF_get_table.
132
133 2015-03-27 K. Handa <handa@gnu.org>
134
135 * src/otfopen.c (read_lookup_record_list): Type changed to int.
136 Return -1 on error.
137 (read_rule_list, read_class_rule_list, read_chain_rule_list)
138 (read_chain_class_rule_list, read_chain_context3): Adjusted for
139 the above change.
140
141 2015-02-23 K. Handa <handa@gnu.org>
142
143 * src/otf.h (LIBOTF_VERSION): Updated to 0.9.14.
144 (LIBOTF_RELEASE_NUMBER): Updated to 14.
145
146 2014-03-17 K. Handa <handa@gnu.org>
147
148 * src/otfopen.c (OTF_open): Use "rb" for fopen's arg MODE.
149
150 2013-04-05 Harshula Jayasuriya <harshula@debian.org>
151
152 * libotf-config.1: New file.
153
0154 2012-09-18 Kenichi Handa <handa@gnu.org>
1155
2156 * Version 0.9.13 released.
9661120 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
9671121 National Institute of Advanced Industrial Science and Technology (AIST)
9681122 Registration Number H15PRO112
1123 Copyright (C) 2012, 2013, 2014, 2015 K. Handa <handa@gnu.org>
9691124
9701125 This file is part of the m17n library.
9711126
(No changes)
(No changes)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
3837
3938
4039 VPATH = @srcdir@
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
51 am__make_running_with_option = \
52 case $${target_option-} in \
53 ?) ;; \
54 *) echo "am__make_running_with_option: internal error: invalid" \
55 "target option '$${target_option-}' specified" >&2; \
56 exit 1;; \
57 esac; \
58 has_opt=no; \
59 sane_makeflags=$$MAKEFLAGS; \
60 if $(am__is_gnu_make); then \
61 sane_makeflags=$$MFLAGS; \
62 else \
63 case $$MAKEFLAGS in \
64 *\\[\ \ ]*) \
65 bs=\\; \
66 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
67 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
68 esac; \
69 fi; \
70 skip_next=no; \
71 strip_trailopt () \
72 { \
73 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
74 }; \
75 for flg in $$sane_makeflags; do \
76 test $$skip_next = yes && { skip_next=no; continue; }; \
77 case $$flg in \
78 *=*|--*) continue;; \
79 -*I) strip_trailopt 'I'; skip_next=yes;; \
80 -*I?*) strip_trailopt 'I';; \
81 -*O) strip_trailopt 'O'; skip_next=yes;; \
82 -*O?*) strip_trailopt 'O';; \
83 -*l) strip_trailopt 'l'; skip_next=yes;; \
84 -*l?*) strip_trailopt 'l';; \
85 -[dEDm]) skip_next=yes;; \
86 -[JT]) skip_next=yes;; \
87 esac; \
88 case $$flg in \
89 *$$target_option*) has_opt=yes; break;; \
90 esac; \
91 done; \
92 test $$has_opt = yes
93 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
94 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4195 pkgdatadir = $(datadir)/@PACKAGE@
4296 pkgincludedir = $(includedir)/@PACKAGE@
4397 pkglibdir = $(libdir)/@PACKAGE@
57111 build_triplet = @build@
58112 host_triplet = @host@
59113 subdir = .
60 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
61 $(srcdir)/Makefile.in $(srcdir)/libotf-config.in \
62 $(srcdir)/libotf.pc.in $(top_srcdir)/configure AUTHORS COPYING \
63 ChangeLog INSTALL NEWS config.guess config.sub depcomp \
64 install-sh ltmain.sh missing
65114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
66115 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
67116 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
68117 $(ACLOCAL_M4)
118 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
119 $(am__configure_deps) $(am__DIST_COMMON)
69120 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
70121 configure.lineno config.status.lineno
71122 mkinstalldirs = $(install_sh) -d
101152 }
102153 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"
103154 SCRIPTS = $(bin_SCRIPTS)
155 AM_V_P = $(am__v_P_@AM_V@)
156 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
157 am__v_P_0 = false
158 am__v_P_1 = :
159 AM_V_GEN = $(am__v_GEN_@AM_V@)
160 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
161 am__v_GEN_0 = @echo " GEN " $@;
162 am__v_GEN_1 =
163 AM_V_at = $(am__v_at_@AM_V@)
164 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
165 am__v_at_0 = @
166 am__v_at_1 =
104167 SOURCES =
105168 DIST_SOURCES =
106 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
107 html-recursive info-recursive install-data-recursive \
108 install-dvi-recursive install-exec-recursive \
109 install-html-recursive install-info-recursive \
110 install-pdf-recursive install-ps-recursive install-recursive \
111 installcheck-recursive installdirs-recursive pdf-recursive \
112 ps-recursive uninstall-recursive
169 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
170 ctags-recursive dvi-recursive html-recursive info-recursive \
171 install-data-recursive install-dvi-recursive \
172 install-exec-recursive install-html-recursive \
173 install-info-recursive install-pdf-recursive \
174 install-ps-recursive install-recursive installcheck-recursive \
175 installdirs-recursive pdf-recursive ps-recursive \
176 tags-recursive uninstall-recursive
177 am__can_run_installinfo = \
178 case $$AM_UPDATE_INFO_DIR in \
179 n|no|NO) false;; \
180 *) (install-info --version) >/dev/null 2>&1;; \
181 esac
113182 DATA = $(pkgconfig_DATA)
114183 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
115184 distclean-recursive maintainer-clean-recursive
116 AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
117 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
118 distdir dist dist-all distcheck
185 am__recursive_targets = \
186 $(RECURSIVE_TARGETS) \
187 $(RECURSIVE_CLEAN_TARGETS) \
188 $(am__extra_recursive_targets)
189 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
190 cscope distdir dist dist-all distcheck
191 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
192 # Read a list of newline-separated strings from the standard input,
193 # and print each of them once, without duplicates. Input order is
194 # *not* preserved.
195 am__uniquify_input = $(AWK) '\
196 BEGIN { nonempty = 0; } \
197 { items[$$0] = 1; nonempty = 1; } \
198 END { if (nonempty) { for (i in items) print i; }; } \
199 '
200 # Make sure the list of sources is unique. This is necessary because,
201 # e.g., the same source file might be shared among _SOURCES variables
202 # for different programs/libraries.
203 am__define_uniq_tagged_files = \
204 list='$(am__tagged_files)'; \
205 unique=`for i in $$list; do \
206 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
207 done | $(am__uniquify_input)`
119208 ETAGS = etags
120209 CTAGS = ctags
210 CSCOPE = cscope
121211 DIST_SUBDIRS = $(SUBDIRS)
212 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libotf-config.in \
213 $(srcdir)/libotf.pc.in AUTHORS COPYING ChangeLog INSTALL NEWS \
214 README compile config.guess config.sub depcomp install-sh \
215 ltmain.sh missing
122216 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
123217 distdir = $(PACKAGE)-$(VERSION)
124218 top_distdir = $(distdir)
128222 && rm -rf "$(distdir)" \
129223 || { sleep 5 && rm -rf "$(distdir)"; }; \
130224 else :; fi
225 am__post_remove_distdir = $(am__remove_distdir)
131226 am__relativize = \
132227 dir0=`pwd`; \
133228 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
155250 reldir="$$dir2"
156251 DIST_ARCHIVES = $(distdir).tar.gz
157252 GZIP_ENV = --best
253 DIST_TARGETS = dist-gzip
158254 distuninstallcheck_listfiles = find . -type f -print
159255 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
160256 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
162258 ACLOCAL = @ACLOCAL@
163259 ALLOCA = @ALLOCA@
164260 AMTAR = @AMTAR@
261 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
165262 AR = @AR@
166263 AUTOCONF = @AUTOCONF@
167264 AUTOHEADER = @AUTOHEADER@
201298 LIPO = @LIPO@
202299 LN_S = @LN_S@
203300 LTLIBOBJS = @LTLIBOBJS@
301 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
204302 MAKEINFO = @MAKEINFO@
205303 MANIFEST_TOOL = @MANIFEST_TOOL@
206304 MKDIR_P = @MKDIR_P@
274372 prefix = @prefix@
275373 program_transform_name = @program_transform_name@
276374 psdir = @psdir@
375 runstatedir = @runstatedir@
277376 sbindir = @sbindir@
278377 sharedstatedir = @sharedstatedir@
279378 srcdir = @srcdir@
305404 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
306405 $(am__cd) $(top_srcdir) && \
307406 $(AUTOMAKE) --gnu Makefile
308 .PRECIOUS: Makefile
309407 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
310408 @case '$?' in \
311409 *config.status*) \
330428 cd $(top_builddir) && $(SHELL) ./config.status $@
331429 install-binSCRIPTS: $(bin_SCRIPTS)
332430 @$(NORMAL_INSTALL)
333 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
334431 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
432 if test -n "$$list"; then \
433 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
434 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
435 fi; \
335436 for p in $$list; do \
336437 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
337438 if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
371472 -rm -f libtool config.lt
372473 install-pkgconfigDATA: $(pkgconfig_DATA)
373474 @$(NORMAL_INSTALL)
374 test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
375475 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
476 if test -n "$$list"; then \
477 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
478 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
479 fi; \
376480 for p in $$list; do \
377481 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
378482 echo "$$d$$p"; \
389493 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
390494
391495 # This directory's subdirectories are mostly independent; you can cd
392 # into them and run `make' without going through this Makefile.
393 # To change the values of `make' variables: instead of editing Makefiles,
394 # (1) if the variable is set in `config.status', edit `config.status'
395 # (which will cause the Makefiles to be regenerated when you run `make');
396 # (2) otherwise, pass the desired values on the `make' command line.
397 $(RECURSIVE_TARGETS):
398 @fail= failcom='exit 1'; \
399 for f in x $$MAKEFLAGS; do \
400 case $$f in \
401 *=* | --[!k]*);; \
402 *k*) failcom='fail=yes';; \
403 esac; \
404 done; \
496 # into them and run 'make' without going through this Makefile.
497 # To change the values of 'make' variables: instead of editing Makefiles,
498 # (1) if the variable is set in 'config.status', edit 'config.status'
499 # (which will cause the Makefiles to be regenerated when you run 'make');
500 # (2) otherwise, pass the desired values on the 'make' command line.
501 $(am__recursive_targets):
502 @fail=; \
503 if $(am__make_keepgoing); then \
504 failcom='fail=yes'; \
505 else \
506 failcom='exit 1'; \
507 fi; \
405508 dot_seen=no; \
406509 target=`echo $@ | sed s/-recursive//`; \
407 list='$(SUBDIRS)'; for subdir in $$list; do \
510 case "$@" in \
511 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
512 *) list='$(SUBDIRS)' ;; \
513 esac; \
514 for subdir in $$list; do \
408515 echo "Making $$target in $$subdir"; \
409516 if test "$$subdir" = "."; then \
410517 dot_seen=yes; \
419526 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
420527 fi; test -z "$$fail"
421528
422 $(RECURSIVE_CLEAN_TARGETS):
423 @fail= failcom='exit 1'; \
424 for f in x $$MAKEFLAGS; do \
425 case $$f in \
426 *=* | --[!k]*);; \
427 *k*) failcom='fail=yes';; \
428 esac; \
429 done; \
430 dot_seen=no; \
431 case "$@" in \
432 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
433 *) list='$(SUBDIRS)' ;; \
434 esac; \
435 rev=''; for subdir in $$list; do \
436 if test "$$subdir" = "."; then :; else \
437 rev="$$subdir $$rev"; \
438 fi; \
439 done; \
440 rev="$$rev ."; \
441 target=`echo $@ | sed s/-recursive//`; \
442 for subdir in $$rev; do \
443 echo "Making $$target in $$subdir"; \
444 if test "$$subdir" = "."; then \
445 local_target="$$target-am"; \
446 else \
447 local_target="$$target"; \
448 fi; \
449 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
450 || eval $$failcom; \
451 done && test -z "$$fail"
452 tags-recursive:
453 list='$(SUBDIRS)'; for subdir in $$list; do \
454 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
455 done
456 ctags-recursive:
457 list='$(SUBDIRS)'; for subdir in $$list; do \
458 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
459 done
460
461 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
462 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
463 unique=`for i in $$list; do \
464 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
465 done | \
466 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
467 END { if (nonempty) { for (i in files) print i; }; }'`; \
468 mkid -fID $$unique
469 tags: TAGS
470
471 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
472 $(TAGS_FILES) $(LISP)
529 ID: $(am__tagged_files)
530 $(am__define_uniq_tagged_files); mkid -fID $$unique
531 tags: tags-recursive
532 TAGS: tags
533
534 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
473535 set x; \
474536 here=`pwd`; \
475537 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
485547 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
486548 fi; \
487549 done; \
488 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
489 unique=`for i in $$list; do \
490 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
491 done | \
492 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
493 END { if (nonempty) { for (i in files) print i; }; }'`; \
550 $(am__define_uniq_tagged_files); \
494551 shift; \
495552 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
496553 test -n "$$unique" || unique=$$empty_fix; \
502559 $$unique; \
503560 fi; \
504561 fi
505 ctags: CTAGS
506 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
507 $(TAGS_FILES) $(LISP)
508 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
509 unique=`for i in $$list; do \
510 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
511 done | \
512 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
513 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 ctags: ctags-recursive
563
564 CTAGS: ctags
565 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
566 $(am__define_uniq_tagged_files); \
514567 test -z "$(CTAGS_ARGS)$$unique" \
515568 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
516569 $$unique
519572 here=`$(am__cd) $(top_builddir) && pwd` \
520573 && $(am__cd) $(top_srcdir) \
521574 && gtags -i $(GTAGS_ARGS) "$$here"
575 cscope: cscope.files
576 test ! -s cscope.files \
577 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
578 clean-cscope:
579 -rm -f cscope.files
580 cscope.files: clean-cscope cscopelist
581 cscopelist: cscopelist-recursive
582
583 cscopelist-am: $(am__tagged_files)
584 list='$(am__tagged_files)'; \
585 case "$(srcdir)" in \
586 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
587 *) sdir=$(subdir)/$(srcdir) ;; \
588 esac; \
589 for i in $$list; do \
590 if test -f "$$i"; then \
591 echo "$(subdir)/$$i"; \
592 else \
593 echo "$$sdir/$$i"; \
594 fi; \
595 done >> $(top_builddir)/cscope.files
522596
523597 distclean-tags:
524598 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
599 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
525600
526601 distdir: $(DISTFILES)
527602 $(am__remove_distdir)
557632 done
558633 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
559634 if test "$$subdir" = .; then :; else \
560 test -d "$(distdir)/$$subdir" \
561 || $(MKDIR_P) "$(distdir)/$$subdir" \
562 || exit 1; \
563 fi; \
564 done
565 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
566 if test "$$subdir" = .; then :; else \
635 $(am__make_dryrun) \
636 || test -d "$(distdir)/$$subdir" \
637 || $(MKDIR_P) "$(distdir)/$$subdir" \
638 || exit 1; \
567639 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
568640 $(am__relativize); \
569641 new_distdir=$$reldir; \
592664 || chmod -R a+r "$(distdir)"
593665 dist-gzip: distdir
594666 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
595 $(am__remove_distdir)
667 $(am__post_remove_distdir)
596668
597669 dist-bzip2: distdir
598670 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
599 $(am__remove_distdir)
671 $(am__post_remove_distdir)
600672
601673 dist-lzip: distdir
602674 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
603 $(am__remove_distdir)
604
605 dist-lzma: distdir
606 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
607 $(am__remove_distdir)
675 $(am__post_remove_distdir)
608676
609677 dist-xz: distdir
610678 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
611 $(am__remove_distdir)
679 $(am__post_remove_distdir)
612680
613681 dist-tarZ: distdir
682 @echo WARNING: "Support for distribution archives compressed with" \
683 "legacy program 'compress' is deprecated." >&2
684 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
614685 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
615 $(am__remove_distdir)
686 $(am__post_remove_distdir)
616687
617688 dist-shar: distdir
689 @echo WARNING: "Support for shar distribution archives is" \
690 "deprecated." >&2
691 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
618692 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
619 $(am__remove_distdir)
693 $(am__post_remove_distdir)
620694
621695 dist-zip: distdir
622696 -rm -f $(distdir).zip
623697 zip -rq $(distdir).zip $(distdir)
624 $(am__remove_distdir)
625
626 dist dist-all: distdir
627 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
628 $(am__remove_distdir)
698 $(am__post_remove_distdir)
699
700 dist dist-all:
701 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
702 $(am__post_remove_distdir)
629703
630704 # This target untars the dist file and tries a VPATH configuration. Then
631705 # it guarantees that the distribution is self-contained by making another
636710 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
637711 *.tar.bz2*) \
638712 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
639 *.tar.lzma*) \
640 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
641713 *.tar.lz*) \
642714 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
643715 *.tar.xz*) \
649721 *.zip*) \
650722 unzip $(distdir).zip ;;\
651723 esac
652 chmod -R a-w $(distdir); chmod a+w $(distdir)
653 mkdir $(distdir)/_build
654 mkdir $(distdir)/_inst
724 chmod -R a-w $(distdir)
725 chmod u+w $(distdir)
726 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
655727 chmod a-w $(distdir)
656728 test -d $(distdir)/_build || exit 0; \
657729 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
658730 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
659731 && am__cwd=`pwd` \
660 && $(am__cd) $(distdir)/_build \
661 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
732 && $(am__cd) $(distdir)/_build/sub \
733 && ../../configure \
662734 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
663735 $(DISTCHECK_CONFIGURE_FLAGS) \
736 --srcdir=../.. --prefix="$$dc_install_base" \
664737 && $(MAKE) $(AM_MAKEFLAGS) \
665738 && $(MAKE) $(AM_MAKEFLAGS) dvi \
666739 && $(MAKE) $(AM_MAKEFLAGS) check \
683756 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
684757 && cd "$$am__cwd" \
685758 || exit 1
686 $(am__remove_distdir)
759 $(am__post_remove_distdir)
687760 @(echo "$(distdir) archives ready for distribution: "; \
688761 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
689762 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
821894
822895 uninstall-am: uninstall-binSCRIPTS uninstall-pkgconfigDATA
823896
824 .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
825 install-am install-strip tags-recursive
826
827 .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
828 all all-am am--refresh check check-am clean clean-generic \
829 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
830 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
831 dist-zip distcheck distclean distclean-generic \
897 .MAKE: $(am__recursive_targets) install-am install-strip
898
899 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
900 am--refresh check check-am clean clean-cscope clean-generic \
901 clean-libtool cscope cscopelist-am ctags ctags-am dist \
902 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
903 dist-xz dist-zip distcheck distclean distclean-generic \
832904 distclean-libtool distclean-tags distcleancheck distdir \
833905 distuninstallcheck dvi dvi-am html html-am info info-am \
834906 install install-am install-binSCRIPTS install-data \
839911 installcheck installcheck-am installdirs installdirs-am \
840912 maintainer-clean maintainer-clean-generic mostlyclean \
841913 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
842 tags tags-recursive uninstall uninstall-am \
843 uninstall-binSCRIPTS uninstall-pkgconfigDATA
914 tags tags-am uninstall uninstall-am uninstall-binSCRIPTS \
915 uninstall-pkgconfigDATA
916
917 .PRECIOUS: Makefile
844918
845919
846920 # Tell versions [3.59,3.63) of GNU make to not export all variables.
11 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012
22 National Institute of Advanced Industrial Science and Technology (AIST)
33 Registration Number H15PRO167
4 Copyright (C) 2018 K. Handa <handa@gnu.org>
45 See the end for copying conditions.
6
7
8 * Changes in libotf 0.9.16
9
10 ** This is a bug fix release.
511
612
713 * Changes in libotf 0.9.13
96102 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011, 2012
97103 National Institute of Advanced Industrial Science and Technology (AIST)
98104 Registration Number H15PRO167
105 Copyright (C) 2018 K. Handa <handa@gnu.org>
99106
100107 This file is part of libotf.
101108
0 This directory tree holds version 0.9.13 of the otf library. -*- text -*-
0 This directory tree holds version 0.9.16 of the otf library. -*- text -*-
11
22 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
5 Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 2018
6 K. Handa <handa@gnu.org>
57 See the end for copying conditions.
68
79
810 #####################################################################
911 # libotf -- A Library for handling OpenType Font (OTF) #
1012 # #
11 # Ver.0.9.13 (2012.08.31) #
13 # Ver.0.9.16 (2018.02.08) #
1214 #####################################################################
1315
1416 (1) What is libotf?
6062
6163 (4) Bug report
6264
63 Please send bug reports to bugs <handa@m17n.org>.
65 Please send bug reports to bugs <handa@gnu.org>.
6466
6567
6668 -----
6870 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
6971 National Institute of Advanced Industrial Science and Technology (AIST)
7072 Registration Number H15PRO167
73 Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 2018
74 K. Handa <handa@gnu.org>
7175
7276 This file is part of libotf.
7377
+2063
-1423
aclocal.m4 less more
0 # generated automatically by aclocal 1.11.3 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
4 # Inc.
0 # generated automatically by aclocal 1.15 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
3
54 # This file is free software; the Free Software Foundation
65 # gives unlimited permission to copy and/or distribute it,
76 # with or without modifications, as long as this notice is preserved.
1110 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1211 # PARTICULAR PURPOSE.
1312
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],,
17 [m4_warning([this file was generated for autoconf 2.68.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
2222 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
2323 #
24 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
25 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
26 # Foundation, Inc.
24 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
2725 # Written by Gordon Matzigkeit, 1996
2826 #
2927 # This file is free software; the Free Software Foundation gives
3129 # modifications, as long as this notice is preserved.
3230
3331 m4_define([_LT_COPYING], [dnl
34 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
36 # Foundation, Inc.
37 # Written by Gordon Matzigkeit, 1996
32 # Copyright (C) 2014 Free Software Foundation, Inc.
33 # This is free software; see the source for copying conditions. There is NO
34 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35
36 # GNU Libtool is free software; you can redistribute it and/or modify
37 # it under the terms of the GNU General Public License as published by
38 # the Free Software Foundation; either version 2 of of the License, or
39 # (at your option) any later version.
3840 #
39 # This file is part of GNU Libtool.
41 # As a special exception to the GNU General Public License, if you
42 # distribute this file as part of a program or library that is built
43 # using GNU Libtool, you may include this file under the same
44 # distribution terms that you use for the rest of that program.
4045 #
41 # GNU Libtool is free software; you can redistribute it and/or
42 # modify it under the terms of the GNU General Public License as
43 # published by the Free Software Foundation; either version 2 of
44 # the License, or (at your option) any later version.
45 #
46 # As a special exception to the GNU General Public License,
47 # if you distribute this file as part of a program or library that
48 # is built using GNU Libtool, you may include this file under the
49 # same distribution terms that you use for the rest of that program.
50 #
51 # GNU Libtool is distributed in the hope that it will be useful,
52 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46 # GNU Libtool is distributed in the hope that it will be useful, but
47 # WITHOUT ANY WARRANTY; without even the implied warranty of
5348 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5449 # GNU General Public License for more details.
5550 #
5651 # You should have received a copy of the GNU General Public License
57 # along with GNU Libtool; see the file COPYING. If not, a copy
58 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
59 # obtained by writing to the Free Software Foundation, Inc.,
60 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
52 # along with this program. If not, see <http://www.gnu.org/licenses/>.
6153 ])
6254
63 # serial 57 LT_INIT
55 # serial 58 LT_INIT
6456
6557
6658 # LT_PREREQ(VERSION)
8880 # LT_INIT([OPTIONS])
8981 # ------------------
9082 AC_DEFUN([LT_INIT],
91 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
83 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
9284 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9385 AC_BEFORE([$0], [LT_LANG])dnl
9486 AC_BEFORE([$0], [LT_OUTPUT])dnl
112104 _LT_SET_OPTIONS([$0], [$1])
113105
114106 # This can be used to rebuild libtool when needed
115 LIBTOOL_DEPS="$ltmain"
107 LIBTOOL_DEPS=$ltmain
116108
117109 # Always use our own libtool.
118110 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
132124 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
133125
134126
127 # _LT_PREPARE_CC_BASENAME
128 # -----------------------
129 m4_defun([_LT_PREPARE_CC_BASENAME], [
130 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
131 func_cc_basename ()
132 {
133 for cc_temp in @S|@*""; do
134 case $cc_temp in
135 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
136 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
137 \-*) ;;
138 *) break;;
139 esac
140 done
141 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
142 }
143 ])# _LT_PREPARE_CC_BASENAME
144
145
135146 # _LT_CC_BASENAME(CC)
136147 # -------------------
137 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
148 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
149 # but that macro is also expanded into generated libtool script, which
150 # arranges for $SED and $ECHO to be set by different means.
138151 m4_defun([_LT_CC_BASENAME],
139 [for cc_temp in $1""; do
140 case $cc_temp in
141 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
142 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
143 \-*) ;;
144 *) break;;
145 esac
146 done
147 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
152 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
153 AC_REQUIRE([_LT_DECL_SED])dnl
154 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
155 func_cc_basename $1
156 cc_basename=$func_cc_basename_result
148157 ])
149158
150159
151160 # _LT_FILEUTILS_DEFAULTS
152161 # ----------------------
153162 # It is okay to use these file commands and assume they have been set
154 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
163 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
155164 m4_defun([_LT_FILEUTILS_DEFAULTS],
156165 [: ${CP="cp -f"}
157166 : ${MV="mv -f"}
198207 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
199208 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
200209 m4_require([_LT_WITH_SYSROOT])dnl
210 m4_require([_LT_CMD_TRUNCATE])dnl
201211
202212 _LT_CONFIG_LIBTOOL_INIT([
203 # See if we are running on zsh, and set the options which allow our
213 # See if we are running on zsh, and set the options that allow our
204214 # commands through without removal of \ escapes INIT.
205 if test -n "\${ZSH_VERSION+set}" ; then
215 if test -n "\${ZSH_VERSION+set}"; then
206216 setopt NO_GLOB_SUBST
207217 fi
208218 ])
209 if test -n "${ZSH_VERSION+set}" ; then
219 if test -n "${ZSH_VERSION+set}"; then
210220 setopt NO_GLOB_SUBST
211221 fi
212222
219229 # AIX sometimes has problems with the GCC collect2 program. For some
220230 # reason, if we set the COLLECT_NAMES environment variable, the problems
221231 # vanish in a puff of smoke.
222 if test "X${COLLECT_NAMES+set}" != Xset; then
232 if test set != "${COLLECT_NAMES+set}"; then
223233 COLLECT_NAMES=
224234 export COLLECT_NAMES
225235 fi
230240 ofile=libtool
231241 can_build_shared=yes
232242
233 # All known linkers require a `.a' archive for static linking (except MSVC,
243 # All known linkers require a '.a' archive for static linking (except MSVC,
234244 # which needs '.lib').
235245 libext=a
236246
237 with_gnu_ld="$lt_cv_prog_gnu_ld"
238
239 old_CC="$CC"
240 old_CFLAGS="$CFLAGS"
247 with_gnu_ld=$lt_cv_prog_gnu_ld
248
249 old_CC=$CC
250 old_CFLAGS=$CFLAGS
241251
242252 # Set sane defaults for various variables
243253 test -z "$CC" && CC=cc
290300
291301 # _LT_PROG_LTMAIN
292302 # ---------------
293 # Note that this code is called both from `configure', and `config.status'
303 # Note that this code is called both from 'configure', and 'config.status'
294304 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
295 # `config.status' has no value for ac_aux_dir unless we are using Automake,
305 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
296306 # so we pass a copy along to make sure it has a sensible value anyway.
297307 m4_defun([_LT_PROG_LTMAIN],
298308 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
299309 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
300 ltmain="$ac_aux_dir/ltmain.sh"
310 ltmain=$ac_aux_dir/ltmain.sh
301311 ])# _LT_PROG_LTMAIN
302312
303313
304314
305315 # So that we can recreate a full libtool script including additional
306316 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
307 # in macros and then make a single call at the end using the `libtool'
317 # in macros and then make a single call at the end using the 'libtool'
308318 # label.
309319
310320
436446
437447 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
438448 # ------------------------------------
439 # Quote a variable value, and forward it to `config.status' so that its
440 # declaration there will have the same value as in `configure'. VARNAME
449 # Quote a variable value, and forward it to 'config.status' so that its
450 # declaration there will have the same value as in 'configure'. VARNAME
441451 # must have a single quote delimited value for this to work.
442452 m4_define([_LT_CONFIG_STATUS_DECLARE],
443453 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
461471 # Output comment and list of tags supported by the script
462472 m4_defun([_LT_LIBTOOL_TAGS],
463473 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
464 available_tags="_LT_TAGS"dnl
474 available_tags='_LT_TAGS'dnl
465475 ])
466476
467477
489499 # _LT_LIBTOOL_CONFIG_VARS
490500 # -----------------------
491501 # Produce commented declarations of non-tagged libtool config variables
492 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
502 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
493503 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
494504 # section) are produced by _LT_LIBTOOL_TAG_VARS.
495505 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
515525 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
516526 # variables for single and double quote escaping we saved from calls
517527 # to _LT_DECL, we can put quote escaped variables declarations
518 # into `config.status', and then the shell code to quote escape them in
519 # for loops in `config.status'. Finally, any additional code accumulated
528 # into 'config.status', and then the shell code to quote escape them in
529 # for loops in 'config.status'. Finally, any additional code accumulated
520530 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
521531 m4_defun([_LT_CONFIG_COMMANDS],
522532 [AC_PROVIDE_IFELSE([LT_OUTPUT],
562572 ]], lt_decl_quote_varnames); do
563573 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
564574 *[[\\\\\\\`\\"\\\$]]*)
565 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
575 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
566576 ;;
567577 *)
568578 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
575585 ]], lt_decl_dquote_varnames); do
576586 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
577587 *[[\\\\\\\`\\"\\\$]]*)
578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
588 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
579589 ;;
580590 *)
581591 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
591601 # Generate a child script FILE with all initialization necessary to
592602 # reuse the environment learned by the parent script, and make the
593603 # file executable. If COMMENT is supplied, it is inserted after the
594 # `#!' sequence but before initialization text begins. After this
604 # '#!' sequence but before initialization text begins. After this
595605 # macro, additional text can be appended to FILE to form the body of
596606 # the child script. The macro ends with non-zero status if the
597607 # file could not be fully written (such as if the disk is full).
613623 _AS_PREPARE
614624 exec AS_MESSAGE_FD>&1
615625 _ASEOF
616 test $lt_write_fail = 0 && chmod +x $1[]dnl
626 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
617627 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
618628
619629 # LT_OUTPUT
636646 } >&AS_MESSAGE_LOG_FD
637647
638648 lt_cl_help="\
639 \`$as_me' creates a local libtool stub from the current configuration,
649 '$as_me' creates a local libtool stub from the current configuration,
640650 for use in further configure time tests before the real libtool is
641651 generated.
642652
658668 This config.lt script is free software; the Free Software Foundation
659669 gives unlimited permision to copy, distribute and modify it."
660670
661 while test $[#] != 0
671 while test 0 != $[#]
662672 do
663673 case $[1] in
664674 --version | --v* | -V )
671681 lt_cl_silent=: ;;
672682
673683 -*) AC_MSG_ERROR([unrecognized option: $[1]
674 Try \`$[0] --help' for more information.]) ;;
684 Try '$[0] --help' for more information.]) ;;
675685
676686 *) AC_MSG_ERROR([unrecognized argument: $[1]
677 Try \`$[0] --help' for more information.]) ;;
687 Try '$[0] --help' for more information.]) ;;
678688 esac
679689 shift
680690 done
700710 # open by configure. Here we exec the FD to /dev/null, effectively closing
701711 # config.log, so it can be properly (re)opened and appended to by config.lt.
702712 lt_cl_success=:
703 test "$silent" = yes &&
713 test yes = "$silent" &&
704714 lt_config_lt_args="$lt_config_lt_args --quiet"
705715 exec AS_MESSAGE_LOG_FD>/dev/null
706716 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
720730 _LT_CONFIG_SAVE_COMMANDS([
721731 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
722732 m4_if(_LT_TAG, [C], [
723 # See if we are running on zsh, and set the options which allow our
733 # See if we are running on zsh, and set the options that allow our
724734 # commands through without removal of \ escapes.
725 if test -n "${ZSH_VERSION+set}" ; then
735 if test -n "${ZSH_VERSION+set}"; then
726736 setopt NO_GLOB_SUBST
727737 fi
728738
729 cfgfile="${ofile}T"
739 cfgfile=${ofile}T
730740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
731741 $RM "$cfgfile"
732742
733743 cat <<_LT_EOF >> "$cfgfile"
734744 #! $SHELL
735
736 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
737 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
745 # Generated automatically by $as_me ($PACKAGE) $VERSION
738746 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
739747 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
740 #
748
749 # Provide generalized library-building support services.
750 # Written by Gordon Matzigkeit, 1996
751
741752 _LT_COPYING
742753 _LT_LIBTOOL_TAGS
754
755 # Configured defaults for sys_lib_dlsearch_path munging.
756 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
743757
744758 # ### BEGIN LIBTOOL CONFIG
745759 _LT_LIBTOOL_CONFIG_VARS
746760 _LT_LIBTOOL_TAG_VARS
747761 # ### END LIBTOOL CONFIG
762
763 _LT_EOF
764
765 cat <<'_LT_EOF' >> "$cfgfile"
766
767 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
768
769 _LT_PREPARE_MUNGE_PATH_LIST
770 _LT_PREPARE_CC_BASENAME
771
772 # ### END FUNCTIONS SHARED WITH CONFIGURE
748773
749774 _LT_EOF
750775
754779 # AIX sometimes has problems with the GCC collect2 program. For some
755780 # reason, if we set the COLLECT_NAMES environment variable, the problems
756781 # vanish in a puff of smoke.
757 if test "X${COLLECT_NAMES+set}" != Xset; then
782 if test set != "${COLLECT_NAMES+set}"; then
758783 COLLECT_NAMES=
759784 export COLLECT_NAMES
760785 fi
770795 # is reportedly fixed, but why not run on old versions too?
771796 sed '$q' "$ltmain" >> "$cfgfile" \
772797 || (rm -f "$cfgfile"; exit 1)
773
774 _LT_PROG_REPLACE_SHELLFNS
775798
776799 mv -f "$cfgfile" "$ofile" ||
777800 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
790813 [m4_if([$1], [], [
791814 PACKAGE='$PACKAGE'
792815 VERSION='$VERSION'
793 TIMESTAMP='$TIMESTAMP'
794816 RM='$RM'
795817 ofile='$ofile'], [])
796818 ])dnl /_LT_CONFIG_SAVE_COMMANDS
9871009
9881010 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
9891011 [lt_cv_apple_cc_single_mod=no
990 if test -z "${LT_MULTI_MODULE}"; then
1012 if test -z "$LT_MULTI_MODULE"; then
9911013 # By default we will add the -single_module flag. You can override
9921014 # by either setting the environment variable LT_MULTI_MODULE
9931015 # non-empty at configure time, or by adding -multi_module to the
10051027 cat conftest.err >&AS_MESSAGE_LOG_FD
10061028 # Otherwise, if the output was created with a 0 exit code from
10071029 # the compiler, it worked.
1008 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1030 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10091031 lt_cv_apple_cc_single_mod=yes
10101032 else
10111033 cat conftest.err >&AS_MESSAGE_LOG_FD
10231045 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
10241046 [lt_cv_ld_exported_symbols_list=yes],
10251047 [lt_cv_ld_exported_symbols_list=no])
1026 LDFLAGS="$save_LDFLAGS"
1048 LDFLAGS=$save_LDFLAGS
10271049 ])
10281050
10291051 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
10451067 _lt_result=$?
10461068 if test -s conftest.err && $GREP force_load conftest.err; then
10471069 cat conftest.err >&AS_MESSAGE_LOG_FD
1048 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1070 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10491071 lt_cv_ld_force_load=yes
10501072 else
10511073 cat conftest.err >&AS_MESSAGE_LOG_FD
10551077 ])
10561078 case $host_os in
10571079 rhapsody* | darwin1.[[012]])
1058 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1080 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10591081 darwin1.*)
1060 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1082 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10611083 darwin*) # darwin 5.x on
10621084 # if running on 10.5 or later, the deployment target defaults
10631085 # to the OS version, if on x86, and 10.4, the deployment
10641086 # target defaults to 10.4. Don't you love it?
10651087 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10661088 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1067 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1068 10.[[012]]*)
1069 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1089 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1090 10.[[012]][[,.]]*)
1091 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10701092 10.*)
1071 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1093 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10721094 esac
10731095 ;;
10741096 esac
1075 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1097 if test yes = "$lt_cv_apple_cc_single_mod"; then
10761098 _lt_dar_single_mod='$single_module'
10771099 fi
1078 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1079 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1100 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1101 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10801102 else
1081 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1103 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10821104 fi
1083 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1105 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10841106 _lt_dsymutil='~$DSYMUTIL $lib || :'
10851107 else
10861108 _lt_dsymutil=
11001122 _LT_TAGVAR(hardcode_direct, $1)=no
11011123 _LT_TAGVAR(hardcode_automatic, $1)=yes
11021124 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1103 if test "$lt_cv_ld_force_load" = "yes"; then
1104 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1125 if test yes = "$lt_cv_ld_force_load"; then
1126 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11051127 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
11061128 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
11071129 else
11081130 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
11091131 fi
11101132 _LT_TAGVAR(link_all_deplibs, $1)=yes
1111 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1133 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
11121134 case $cc_basename in
1113 ifort*) _lt_dar_can_shared=yes ;;
1135 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11141136 *) _lt_dar_can_shared=$GCC ;;
11151137 esac
1116 if test "$_lt_dar_can_shared" = "yes"; then
1138 if test yes = "$_lt_dar_can_shared"; then
11171139 output_verbose_link_cmd=func_echo_all
1118 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1119 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1120 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1121 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1140 _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"
1141 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1142 _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"
1143 _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"
11221144 m4_if([$1], [CXX],
1123 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1124 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1125 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1145 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1146 _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"
1147 _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"
11261148 fi
11271149 ],[])
11281150 else
11421164 # Allow to override them for all tags through lt_cv_aix_libpath.
11431165 m4_defun([_LT_SYS_MODULE_PATH_AIX],
11441166 [m4_require([_LT_DECL_SED])dnl
1145 if test "${lt_cv_aix_libpath+set}" = set; then
1167 if test set = "${lt_cv_aix_libpath+set}"; then
11461168 aix_libpath=$lt_cv_aix_libpath
11471169 else
11481170 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
11601182 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11611183 fi],[])
11621184 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1163 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1185 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
11641186 fi
11651187 ])
11661188 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
11801202 # -----------------------
11811203 # Find how we can fake an echo command that does not interpret backslash.
11821204 # In particular, with Autoconf 2.60 or later we add some code to the start
1183 # of the generated configure script which will find a shell with a builtin
1184 # printf (which we can use as an echo command).
1205 # of the generated configure script that will find a shell with a builtin
1206 # printf (that we can use as an echo command).
11851207 m4_defun([_LT_PROG_ECHO_BACKSLASH],
11861208 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11871209 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
12091231 # Invoke $ECHO with all args, space-separated.
12101232 func_echo_all ()
12111233 {
1212 $ECHO "$*"
1234 $ECHO "$*"
12131235 }
12141236
1215 case "$ECHO" in
1237 case $ECHO in
12161238 printf*) AC_MSG_RESULT([printf]) ;;
12171239 print*) AC_MSG_RESULT([print -r]) ;;
12181240 *) AC_MSG_RESULT([cat]) ;;
12381260 AC_DEFUN([_LT_WITH_SYSROOT],
12391261 [AC_MSG_CHECKING([for sysroot])
12401262 AC_ARG_WITH([sysroot],
1241 [ --with-sysroot[=DIR] Search for dependent libraries within DIR
1242 (or the compiler's sysroot if not specified).],
1263 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1264 [Search for dependent libraries within DIR (or the compiler's sysroot
1265 if not specified).])],
12431266 [], [with_sysroot=no])
12441267
12451268 dnl lt_sysroot will always be passed unquoted. We quote it here
12461269 dnl in case the user passed a directory name.
12471270 lt_sysroot=
1248 case ${with_sysroot} in #(
1271 case $with_sysroot in #(
12491272 yes)
1250 if test "$GCC" = yes; then
1273 if test yes = "$GCC"; then
12511274 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12521275 fi
12531276 ;; #(
12571280 no|'')
12581281 ;; #(
12591282 *)
1260 AC_MSG_RESULT([${with_sysroot}])
1283 AC_MSG_RESULT([$with_sysroot])
12611284 AC_MSG_ERROR([The sysroot must be an absolute path.])
12621285 ;;
12631286 esac
12641287
12651288 AC_MSG_RESULT([${lt_sysroot:-no}])
12661289 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1267 [dependent libraries, and in which our libraries should be installed.])])
1290 [dependent libraries, and where our libraries should be installed.])])
12681291
12691292 # _LT_ENABLE_LOCK
12701293 # ---------------
12721295 [AC_ARG_ENABLE([libtool-lock],
12731296 [AS_HELP_STRING([--disable-libtool-lock],
12741297 [avoid locking (might break parallel builds)])])
1275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1298 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
12761299
12771300 # Some flags need to be propagated to the compiler or linker for good
12781301 # libtool support.
12791302 case $host in
12801303 ia64-*-hpux*)
1281 # Find out which ABI we are using.
1304 # Find out what ABI is being produced by ac_compile, and set mode
1305 # options accordingly.
12821306 echo 'int i;' > conftest.$ac_ext
12831307 if AC_TRY_EVAL(ac_compile); then
12841308 case `/usr/bin/file conftest.$ac_objext` in
12851309 *ELF-32*)
1286 HPUX_IA64_MODE="32"
1310 HPUX_IA64_MODE=32
12871311 ;;
12881312 *ELF-64*)
1289 HPUX_IA64_MODE="64"
1313 HPUX_IA64_MODE=64
12901314 ;;
12911315 esac
12921316 fi
12931317 rm -rf conftest*
12941318 ;;
12951319 *-*-irix6*)
1296 # Find out which ABI we are using.
1320 # Find out what ABI is being produced by ac_compile, and set linker
1321 # options accordingly.
12971322 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
12981323 if AC_TRY_EVAL(ac_compile); then
1299 if test "$lt_cv_prog_gnu_ld" = yes; then
1324 if test yes = "$lt_cv_prog_gnu_ld"; then
13001325 case `/usr/bin/file conftest.$ac_objext` in
13011326 *32-bit*)
13021327 LD="${LD-ld} -melf32bsmip"
13251350 rm -rf conftest*
13261351 ;;
13271352
1328 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1353 mips64*-*linux*)
1354 # Find out what ABI is being produced by ac_compile, and set linker
1355 # options accordingly.
1356 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1357 if AC_TRY_EVAL(ac_compile); then
1358 emul=elf
1359 case `/usr/bin/file conftest.$ac_objext` in
1360 *32-bit*)
1361 emul="${emul}32"
1362 ;;
1363 *64-bit*)
1364 emul="${emul}64"
1365 ;;
1366 esac
1367 case `/usr/bin/file conftest.$ac_objext` in
1368 *MSB*)
1369 emul="${emul}btsmip"
1370 ;;
1371 *LSB*)
1372 emul="${emul}ltsmip"
1373 ;;
1374 esac
1375 case `/usr/bin/file conftest.$ac_objext` in
1376 *N32*)
1377 emul="${emul}n32"
1378 ;;
1379 esac
1380 LD="${LD-ld} -m $emul"
1381 fi
1382 rm -rf conftest*
1383 ;;
1384
1385 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13291386 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1330 # Find out which ABI we are using.
1387 # Find out what ABI is being produced by ac_compile, and set linker
1388 # options accordingly. Note that the listed cases only cover the
1389 # situations where additional linker options are needed (such as when
1390 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1391 # vice versa); the common cases where no linker options are needed do
1392 # not appear in the list.
13311393 echo 'int i;' > conftest.$ac_ext
13321394 if AC_TRY_EVAL(ac_compile); then
13331395 case `/usr/bin/file conftest.o` in
13371399 LD="${LD-ld} -m elf_i386_fbsd"
13381400 ;;
13391401 x86_64-*linux*)
1340 LD="${LD-ld} -m elf_i386"
1402 case `/usr/bin/file conftest.o` in
1403 *x86-64*)
1404 LD="${LD-ld} -m elf32_x86_64"
1405 ;;
1406 *)
1407 LD="${LD-ld} -m elf_i386"
1408 ;;
1409 esac
13411410 ;;
1342 ppc64-*linux*|powerpc64-*linux*)
1411 powerpc64le-*linux*)
1412 LD="${LD-ld} -m elf32lppclinux"
1413 ;;
1414 powerpc64-*linux*)
13431415 LD="${LD-ld} -m elf32ppclinux"
13441416 ;;
13451417 s390x-*linux*)
13581430 x86_64-*linux*)
13591431 LD="${LD-ld} -m elf_x86_64"
13601432 ;;
1361 ppc*-*linux*|powerpc*-*linux*)
1433 powerpcle-*linux*)
1434 LD="${LD-ld} -m elf64lppc"
1435 ;;
1436 powerpc-*linux*)
13621437 LD="${LD-ld} -m elf64ppc"
13631438 ;;
13641439 s390*-*linux*|s390*-*tpf*)
13761451
13771452 *-*-sco3.2v5*)
13781453 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1379 SAVE_CFLAGS="$CFLAGS"
1454 SAVE_CFLAGS=$CFLAGS
13801455 CFLAGS="$CFLAGS -belf"
13811456 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
13821457 [AC_LANG_PUSH(C)
13831458 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
13841459 AC_LANG_POP])
1385 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1460 if test yes != "$lt_cv_cc_needs_belf"; then
13861461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1387 CFLAGS="$SAVE_CFLAGS"
1462 CFLAGS=$SAVE_CFLAGS
13881463 fi
13891464 ;;
13901465 *-*solaris*)
1391 # Find out which ABI we are using.
1466 # Find out what ABI is being produced by ac_compile, and set linker
1467 # options accordingly.
13921468 echo 'int i;' > conftest.$ac_ext
13931469 if AC_TRY_EVAL(ac_compile); then
13941470 case `/usr/bin/file conftest.o` in
13961472 case $lt_cv_prog_gnu_ld in
13971473 yes*)
13981474 case $host in
1399 i?86-*-solaris*)
1475 i?86-*-solaris*|x86_64-*-solaris*)
14001476 LD="${LD-ld} -m elf_x86_64"
14011477 ;;
14021478 sparc*-*-solaris*)
14051481 esac
14061482 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14071483 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1408 LD="${LD-ld}_sol2"
1484 LD=${LD-ld}_sol2
14091485 fi
14101486 ;;
14111487 *)
14211497 ;;
14221498 esac
14231499
1424 need_locks="$enable_libtool_lock"
1500 need_locks=$enable_libtool_lock
14251501 ])# _LT_ENABLE_LOCK
14261502
14271503
14401516 [echo conftest.$ac_objext > conftest.lst
14411517 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
14421518 AC_TRY_EVAL([lt_ar_try])
1443 if test "$ac_status" -eq 0; then
1519 if test 0 -eq "$ac_status"; then
14441520 # Ensure the archiver fails upon bogus file names.
14451521 rm -f conftest.$ac_objext libconftest.a
14461522 AC_TRY_EVAL([lt_ar_try])
1447 if test "$ac_status" -ne 0; then
1523 if test 0 -ne "$ac_status"; then
14481524 lt_cv_ar_at_file=@
14491525 fi
14501526 fi
14521528 ])
14531529 ])
14541530
1455 if test "x$lt_cv_ar_at_file" = xno; then
1531 if test no = "$lt_cv_ar_at_file"; then
14561532 archiver_list_spec=
14571533 else
14581534 archiver_list_spec=$lt_cv_ar_at_file
14831559
14841560 if test -n "$RANLIB"; then
14851561 case $host_os in
1486 openbsd*)
1562 bitrig* | openbsd*)
14871563 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14881564 ;;
14891565 *)
15191595 [$2=no
15201596 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
15211597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1522 lt_compiler_flag="$3"
1598 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
15231599 # Insert the option either (1) after the last *FLAGS variable, or
15241600 # (2) before a word containing "conftest.", or (3) at the end.
15251601 # Note that $ac_compile itself does not contain backslashes and begins
15461622 $RM conftest*
15471623 ])
15481624
1549 if test x"[$]$2" = xyes; then
1625 if test yes = "[$]$2"; then
15501626 m4_if([$5], , :, [$5])
15511627 else
15521628 m4_if([$6], , :, [$6])
15681644 m4_require([_LT_DECL_SED])dnl
15691645 AC_CACHE_CHECK([$1], [$2],
15701646 [$2=no
1571 save_LDFLAGS="$LDFLAGS"
1647 save_LDFLAGS=$LDFLAGS
15721648 LDFLAGS="$LDFLAGS $3"
15731649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15741650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15871663 fi
15881664 fi
15891665 $RM -r conftest*
1590 LDFLAGS="$save_LDFLAGS"
1666 LDFLAGS=$save_LDFLAGS
15911667 ])
15921668
1593 if test x"[$]$2" = xyes; then
1669 if test yes = "[$]$2"; then
15941670 m4_if([$4], , :, [$4])
15951671 else
15961672 m4_if([$5], , :, [$5])
16111687 AC_MSG_CHECKING([the maximum length of command line arguments])
16121688 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
16131689 i=0
1614 teststring="ABCD"
1690 teststring=ABCD
16151691
16161692 case $build_os in
16171693 msdosdjgpp*)
16511727 lt_cv_sys_max_cmd_len=8192;
16521728 ;;
16531729
1654 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1730 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
16551731 # This has been around since 386BSD, at least. Likely further.
16561732 if test -x /sbin/sysctl; then
16571733 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
17011777 ;;
17021778 *)
17031779 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1704 if test -n "$lt_cv_sys_max_cmd_len"; then
1780 if test -n "$lt_cv_sys_max_cmd_len" && \
1781 test undefined != "$lt_cv_sys_max_cmd_len"; then
17051782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
17061783 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
17071784 else
17081785 # Make teststring a little bigger before we do anything with it.
17091786 # a 1K string should be a reasonable start.
1710 for i in 1 2 3 4 5 6 7 8 ; do
1787 for i in 1 2 3 4 5 6 7 8; do
17111788 teststring=$teststring$teststring
17121789 done
17131790 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
17141791 # If test is not a shell built-in, we'll probably end up computing a
17151792 # maximum length that is only half of the actual maximum length, but
17161793 # we can't tell.
1717 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1794 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
17181795 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1719 test $i != 17 # 1/2 MB should be enough
1796 test 17 != "$i" # 1/2 MB should be enough
17201797 do
17211798 i=`expr $i + 1`
17221799 teststring=$teststring$teststring
17321809 ;;
17331810 esac
17341811 ])
1735 if test -n $lt_cv_sys_max_cmd_len ; then
1812 if test -n "$lt_cv_sys_max_cmd_len"; then
17361813 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
17371814 else
17381815 AC_MSG_RESULT(none)
17601837 # ----------------------------------------------------------------
17611838 m4_defun([_LT_TRY_DLOPEN_SELF],
17621839 [m4_require([_LT_HEADER_DLFCN])dnl
1763 if test "$cross_compiling" = yes; then :
1840 if test yes = "$cross_compiling"; then :
17641841 [$4]
17651842 else
17661843 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18071884 # endif
18081885 #endif
18091886
1810 /* When -fvisbility=hidden is used, assume the code has been annotated
1887 /* When -fvisibility=hidden is used, assume the code has been annotated
18111888 correspondingly for the symbols needed. */
1812 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1889 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
18131890 int fnord () __attribute__((visibility("default")));
18141891 #endif
18151892
18351912 return status;
18361913 }]
18371914 _LT_EOF
1838 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1915 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
18391916 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
18401917 lt_status=$?
18411918 case x$lt_status in
18561933 # ------------------
18571934 AC_DEFUN([LT_SYS_DLOPEN_SELF],
18581935 [m4_require([_LT_HEADER_DLFCN])dnl
1859 if test "x$enable_dlopen" != xyes; then
1936 if test yes != "$enable_dlopen"; then
18601937 enable_dlopen=unknown
18611938 enable_dlopen_self=unknown
18621939 enable_dlopen_self_static=unknown
18661943
18671944 case $host_os in
18681945 beos*)
1869 lt_cv_dlopen="load_add_on"
1946 lt_cv_dlopen=load_add_on
18701947 lt_cv_dlopen_libs=
18711948 lt_cv_dlopen_self=yes
18721949 ;;
18731950
18741951 mingw* | pw32* | cegcc*)
1875 lt_cv_dlopen="LoadLibrary"
1952 lt_cv_dlopen=LoadLibrary
18761953 lt_cv_dlopen_libs=
18771954 ;;
18781955
18791956 cygwin*)
1880 lt_cv_dlopen="dlopen"
1957 lt_cv_dlopen=dlopen
18811958 lt_cv_dlopen_libs=
18821959 ;;
18831960
18841961 darwin*)
1885 # if libdl is installed we need to link against it
1962 # if libdl is installed we need to link against it
18861963 AC_CHECK_LIB([dl], [dlopen],
1887 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1888 lt_cv_dlopen="dyld"
1964 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1965 lt_cv_dlopen=dyld
18891966 lt_cv_dlopen_libs=
18901967 lt_cv_dlopen_self=yes
18911968 ])
18921969 ;;
18931970
1971 tpf*)
1972 # Don't try to run any link tests for TPF. We know it's impossible
1973 # because TPF is a cross-compiler, and we know how we open DSOs.
1974 lt_cv_dlopen=dlopen
1975 lt_cv_dlopen_libs=
1976 lt_cv_dlopen_self=no
1977 ;;
1978
18941979 *)
18951980 AC_CHECK_FUNC([shl_load],
1896 [lt_cv_dlopen="shl_load"],
1981 [lt_cv_dlopen=shl_load],
18971982 [AC_CHECK_LIB([dld], [shl_load],
1898 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1983 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
18991984 [AC_CHECK_FUNC([dlopen],
1900 [lt_cv_dlopen="dlopen"],
1985 [lt_cv_dlopen=dlopen],
19011986 [AC_CHECK_LIB([dl], [dlopen],
1902 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1987 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
19031988 [AC_CHECK_LIB([svld], [dlopen],
1904 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1989 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
19051990 [AC_CHECK_LIB([dld], [dld_link],
1906 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1991 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
19071992 ])
19081993 ])
19091994 ])
19121997 ;;
19131998 esac
19141999
1915 if test "x$lt_cv_dlopen" != xno; then
2000 if test no = "$lt_cv_dlopen"; then
2001 enable_dlopen=no
2002 else
19162003 enable_dlopen=yes
1917 else
1918 enable_dlopen=no
19192004 fi
19202005
19212006 case $lt_cv_dlopen in
19222007 dlopen)
1923 save_CPPFLAGS="$CPPFLAGS"
1924 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1925
1926 save_LDFLAGS="$LDFLAGS"
2008 save_CPPFLAGS=$CPPFLAGS
2009 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2010
2011 save_LDFLAGS=$LDFLAGS
19272012 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19282013
1929 save_LIBS="$LIBS"
2014 save_LIBS=$LIBS
19302015 LIBS="$lt_cv_dlopen_libs $LIBS"
19312016
19322017 AC_CACHE_CHECK([whether a program can dlopen itself],
19362021 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
19372022 ])
19382023
1939 if test "x$lt_cv_dlopen_self" = xyes; then
2024 if test yes = "$lt_cv_dlopen_self"; then
19402025 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19412026 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
19422027 lt_cv_dlopen_self_static, [dnl
19462031 ])
19472032 fi
19482033
1949 CPPFLAGS="$save_CPPFLAGS"
1950 LDFLAGS="$save_LDFLAGS"
1951 LIBS="$save_LIBS"
2034 CPPFLAGS=$save_CPPFLAGS
2035 LDFLAGS=$save_LDFLAGS
2036 LIBS=$save_LIBS
19522037 ;;
19532038 esac
19542039
20402125 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
20412126 _LT_COMPILER_C_O([$1])
20422127
2043 hard_links="nottested"
2044 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2128 hard_links=nottested
2129 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
20452130 # do not overwrite the value of need_locks provided by the user
20462131 AC_MSG_CHECKING([if we can lock with hard links])
20472132 hard_links=yes
20512136 ln conftest.a conftest.b 2>&5 || hard_links=no
20522137 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20532138 AC_MSG_RESULT([$hard_links])
2054 if test "$hard_links" = no; then
2055 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2139 if test no = "$hard_links"; then
2140 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
20562141 need_locks=warn
20572142 fi
20582143 else
20792164 _LT_DECL([], [objdir], [0],
20802165 [The name of the directory that contains temporary libtool files])dnl
20812166 m4_pattern_allow([LT_OBJDIR])dnl
2082 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2083 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2167 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2168 [Define to the sub-directory where libtool stores uninstalled libraries.])
20842169 ])# _LT_CHECK_OBJDIR
20852170
20862171
20922177 _LT_TAGVAR(hardcode_action, $1)=
20932178 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
20942179 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2095 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2180 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
20962181
20972182 # We can hardcode non-existent directories.
2098 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2183 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
20992184 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21002185 # have to relink, otherwise we might link with an installed library
21012186 # when we should be linking with a yet-to-be-installed one
2102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2103 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2187 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2188 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
21042189 # Linking always hardcodes the temporary library directory.
21052190 _LT_TAGVAR(hardcode_action, $1)=relink
21062191 else
21142199 fi
21152200 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
21162201
2117 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2118 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2202 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2203 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
21192204 # Fast installation is not supported
21202205 enable_fast_install=no
2121 elif test "$shlibpath_overrides_runpath" = yes ||
2122 test "$enable_shared" = no; then
2206 elif test yes = "$shlibpath_overrides_runpath" ||
2207 test no = "$enable_shared"; then
21232208 # Fast installation is not necessary
21242209 enable_fast_install=needless
21252210 fi
21432228 # FIXME - insert some real tests, host_os isn't really good enough
21442229 case $host_os in
21452230 darwin*)
2146 if test -n "$STRIP" ; then
2231 if test -n "$STRIP"; then
21472232 striplib="$STRIP -x"
21482233 old_striplib="$STRIP -S"
21492234 AC_MSG_RESULT([yes])
21612246 ])# _LT_CMD_STRIPLIB
21622247
21632248
2249 # _LT_PREPARE_MUNGE_PATH_LIST
2250 # ---------------------------
2251 # Make sure func_munge_path_list() is defined correctly.
2252 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2253 [[# func_munge_path_list VARIABLE PATH
2254 # -----------------------------------
2255 # VARIABLE is name of variable containing _space_ separated list of
2256 # directories to be munged by the contents of PATH, which is string
2257 # having a format:
2258 # "DIR[:DIR]:"
2259 # string "DIR[ DIR]" will be prepended to VARIABLE
2260 # ":DIR[:DIR]"
2261 # string "DIR[ DIR]" will be appended to VARIABLE
2262 # "DIRP[:DIRP]::[DIRA:]DIRA"
2263 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2264 # "DIRA[ DIRA]" will be appended to VARIABLE
2265 # "DIR[:DIR]"
2266 # VARIABLE will be replaced by "DIR[ DIR]"
2267 func_munge_path_list ()
2268 {
2269 case x@S|@2 in
2270 x)
2271 ;;
2272 *:)
2273 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2274 ;;
2275 x:*)
2276 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2277 ;;
2278 *::*)
2279 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2280 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2281 ;;
2282 *)
2283 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2284 ;;
2285 esac
2286 }
2287 ]])# _LT_PREPARE_PATH_LIST
2288
2289
21642290 # _LT_SYS_DYNAMIC_LINKER([TAG])
21652291 # -----------------------------
21662292 # PORTME Fill in your ld.so characteristics
21712297 m4_require([_LT_DECL_OBJDUMP])dnl
21722298 m4_require([_LT_DECL_SED])dnl
21732299 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2300 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
21742301 AC_MSG_CHECKING([dynamic linker characteristics])
21752302 m4_if([$1],
21762303 [], [
2177 if test "$GCC" = yes; then
2304 if test yes = "$GCC"; then
21782305 case $host_os in
2179 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2180 *) lt_awk_arg="/^libraries:/" ;;
2306 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2307 *) lt_awk_arg='/^libraries:/' ;;
21812308 esac
21822309 case $host_os in
2183 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2184 *) lt_sed_strip_eq="s,=/,/,g" ;;
2310 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2311 *) lt_sed_strip_eq='s|=/|/|g' ;;
21852312 esac
21862313 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
21872314 case $lt_search_path_spec in
21972324 ;;
21982325 esac
21992326 # Ok, now we have the path, separated by spaces, we can step through it
2200 # and add multilib dir if necessary.
2327 # and add multilib dir if necessary...
22012328 lt_tmp_lt_search_path_spec=
2202 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2329 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2330 # ...but if some path component already ends with the multilib dir we assume
2331 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2332 case "$lt_multi_os_dir; $lt_search_path_spec " in
2333 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2334 lt_multi_os_dir=
2335 ;;
2336 esac
22032337 for lt_sys_path in $lt_search_path_spec; do
2204 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2206 else
2338 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2339 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2340 elif test -n "$lt_multi_os_dir"; then
22072341 test -d "$lt_sys_path" && \
22082342 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
22092343 fi
22102344 done
22112345 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2212 BEGIN {RS=" "; FS="/|\n";} {
2213 lt_foo="";
2214 lt_count=0;
2346 BEGIN {RS = " "; FS = "/|\n";} {
2347 lt_foo = "";
2348 lt_count = 0;
22152349 for (lt_i = NF; lt_i > 0; lt_i--) {
22162350 if ($lt_i != "" && $lt_i != ".") {
22172351 if ($lt_i == "..") {
22182352 lt_count++;
22192353 } else {
22202354 if (lt_count == 0) {
2221 lt_foo="/" $lt_i lt_foo;
2355 lt_foo = "/" $lt_i lt_foo;
22222356 } else {
22232357 lt_count--;
22242358 }
22322366 # for these hosts.
22332367 case $host_os in
22342368 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2235 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2369 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
22362370 esac
22372371 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
22382372 else
22412375 library_names_spec=
22422376 libname_spec='lib$name'
22432377 soname_spec=
2244 shrext_cmds=".so"
2378 shrext_cmds=.so
22452379 postinstall_cmds=
22462380 postuninstall_cmds=
22472381 finish_cmds=
22582392 # flags to be left without arguments
22592393 need_version=unknown
22602394
2395 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2396 [User-defined run-time library search path.])
2397
22612398 case $host_os in
22622399 aix3*)
22632400 version_type=linux # correct to gnu/linux during the next big refactor
2264 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2401 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22652402 shlibpath_var=LIBPATH
22662403
22672404 # AIX 3 has no versioning support, so we append a major version to the name.
2268 soname_spec='${libname}${release}${shared_ext}$major'
2405 soname_spec='$libname$release$shared_ext$major'
22692406 ;;
22702407
22712408 aix[[4-9]]*)
22732410 need_lib_prefix=no
22742411 need_version=no
22752412 hardcode_into_libs=yes
2276 if test "$host_cpu" = ia64; then
2413 if test ia64 = "$host_cpu"; then
22772414 # AIX 5 supports IA64
2278 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2415 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22792416 shlibpath_var=LD_LIBRARY_PATH
22802417 else
22812418 # With GCC up to 2.95.x, collect2 would create an import file
22822419 # for dependence libraries. The import file would start with
2283 # the line `#! .'. This would cause the generated library to
2284 # depend on `.', always an invalid library. This was fixed in
2420 # the line '#! .'. This would cause the generated library to
2421 # depend on '.', always an invalid library. This was fixed in
22852422 # development snapshots of GCC prior to 3.0.
22862423 case $host_os in
22872424 aix4 | aix4.[[01]] | aix4.[[01]].*)
22882425 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22892426 echo ' yes '
2290 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2427 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22912428 :
22922429 else
22932430 can_build_shared=no
22942431 fi
22952432 ;;
22962433 esac
2297 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2434 # Using Import Files as archive members, it is possible to support
2435 # filename-based versioning of shared library archives on AIX. While
2436 # this would work for both with and without runtime linking, it will
2437 # prevent static linking of such archives. So we do filename-based
2438 # shared library versioning with .so extension only, which is used
2439 # when both runtime linking and shared linking is enabled.
2440 # Unfortunately, runtime linking may impact performance, so we do
2441 # not want this to be the default eventually. Also, we use the
2442 # versioned .so libs for executables only if there is the -brtl
2443 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2444 # To allow for filename-based versioning support, we need to create
2445 # libNAME.so.V as an archive file, containing:
2446 # *) an Import File, referring to the versioned filename of the
2447 # archive as well as the shared archive member, telling the
2448 # bitwidth (32 or 64) of that shared object, and providing the
2449 # list of exported symbols of that shared object, eventually
2450 # decorated with the 'weak' keyword
2451 # *) the shared object with the F_LOADONLY flag set, to really avoid
2452 # it being seen by the linker.
2453 # At run time we better use the real file rather than another symlink,
2454 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2455
2456 case $with_aix_soname,$aix_use_runtimelinking in
2457 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22982458 # soname into executable. Probably we can add versioning support to
22992459 # collect2, so additional links can be useful in future.
2300 if test "$aix_use_runtimelinking" = yes; then
2460 aix,yes) # traditional libtool
2461 dynamic_linker='AIX unversionable lib.so'
23012462 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23022463 # instead of lib<name>.a to let people know that these are not
23032464 # typical AIX shared libraries.
2304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2305 else
2465 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2466 ;;
2467 aix,no) # traditional AIX only
2468 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
23062469 # We preserve .a as extension for shared libraries through AIX4.2
23072470 # and later when we are not doing run time linking.
2308 library_names_spec='${libname}${release}.a $libname.a'
2309 soname_spec='${libname}${release}${shared_ext}$major'
2310 fi
2471 library_names_spec='$libname$release.a $libname.a'
2472 soname_spec='$libname$release$shared_ext$major'
2473 ;;
2474 svr4,*) # full svr4 only
2475 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2476 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2477 # We do not specify a path in Import Files, so LIBPATH fires.
2478 shlibpath_overrides_runpath=yes
2479 ;;
2480 *,yes) # both, prefer svr4
2481 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2482 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2483 # unpreferred sharedlib libNAME.a needs extra handling
2484 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2485 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2486 # We do not specify a path in Import Files, so LIBPATH fires.
2487 shlibpath_overrides_runpath=yes
2488 ;;
2489 *,no) # both, prefer aix
2490 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2491 library_names_spec='$libname$release.a $libname.a'
2492 soname_spec='$libname$release$shared_ext$major'
2493 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2494 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2495 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2496 ;;
2497 esac
23112498 shlibpath_var=LIBPATH
23122499 fi
23132500 ;;
23172504 powerpc)
23182505 # Since July 2007 AmigaOS4 officially supports .so libraries.
23192506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2507 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23212508 ;;
23222509 m68k)
23232510 library_names_spec='$libname.ixlibrary $libname.a'
23242511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2512 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
23262513 ;;
23272514 esac
23282515 ;;
23292516
23302517 beos*)
2331 library_names_spec='${libname}${shared_ext}'
2518 library_names_spec='$libname$shared_ext'
23322519 dynamic_linker="$host_os ld.so"
23332520 shlibpath_var=LIBRARY_PATH
23342521 ;;
23362523 bsdi[[45]]*)
23372524 version_type=linux # correct to gnu/linux during the next big refactor
23382525 need_version=no
2339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2340 soname_spec='${libname}${release}${shared_ext}$major'
2526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2527 soname_spec='$libname$release$shared_ext$major'
23412528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23422529 shlibpath_var=LD_LIBRARY_PATH
23432530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23492536
23502537 cygwin* | mingw* | pw32* | cegcc*)
23512538 version_type=windows
2352 shrext_cmds=".dll"
2539 shrext_cmds=.dll
23532540 need_version=no
23542541 need_lib_prefix=no
23552542
23582545 # gcc
23592546 library_names_spec='$libname.dll.a'
23602547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2361 postinstall_cmds='base_file=`basename \${file}`~
2362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2548 postinstall_cmds='base_file=`basename \$file`~
2549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23632550 dldir=$destdir/`dirname \$dlpath`~
23642551 test -d \$dldir || mkdir -p \$dldir~
23652552 $install_prog $dir/$dlname \$dldir/$dlname~
23752562 case $host_os in
23762563 cygwin*)
23772564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2378 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2565 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23792566 m4_if([$1], [],[
23802567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
23812568 ;;
23822569 mingw* | cegcc*)
23832570 # MinGW DLLs use traditional 'lib' prefix
2384 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2571 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23852572 ;;
23862573 pw32*)
23872574 # pw32 DLLs use 'pw' prefix rather than 'lib'
2388 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2575 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
23892576 ;;
23902577 esac
23912578 dynamic_linker='Win32 ld.exe'
23942581 *,cl*)
23952582 # Native MSVC
23962583 libname_spec='$name'
2397 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2398 library_names_spec='${libname}.dll.lib'
2584 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2585 library_names_spec='$libname.dll.lib'
23992586
24002587 case $build_os in
24012588 mingw*)
24222609 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
24232610 ;;
24242611 *)
2425 sys_lib_search_path_spec="$LIB"
2612 sys_lib_search_path_spec=$LIB
24262613 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
24272614 # It is most probably a Windows format PATH.
24282615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
24352622 esac
24362623
24372624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2438 postinstall_cmds='base_file=`basename \${file}`~
2439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2625 postinstall_cmds='base_file=`basename \$file`~
2626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
24402627 dldir=$destdir/`dirname \$dlpath`~
24412628 test -d \$dldir || mkdir -p \$dldir~
24422629 $install_prog $dir/$dlname \$dldir/$dlname'
24492636
24502637 *)
24512638 # Assume MSVC wrapper
2452 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2639 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
24532640 dynamic_linker='Win32 ld.exe'
24542641 ;;
24552642 esac
24622649 version_type=darwin
24632650 need_lib_prefix=no
24642651 need_version=no
2465 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2466 soname_spec='${libname}${release}${major}$shared_ext'
2652 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2653 soname_spec='$libname$release$major$shared_ext'
24672654 shlibpath_overrides_runpath=yes
24682655 shlibpath_var=DYLD_LIBRARY_PATH
24692656 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
24762663 version_type=linux # correct to gnu/linux during the next big refactor
24772664 need_lib_prefix=no
24782665 need_version=no
2479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2480 soname_spec='${libname}${release}${shared_ext}$major'
2666 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2667 soname_spec='$libname$release$shared_ext$major'
24812668 shlibpath_var=LD_LIBRARY_PATH
24822669 ;;
24832670
24952682 version_type=freebsd-$objformat
24962683 case $version_type in
24972684 freebsd-elf*)
2498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2685 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2686 soname_spec='$libname$release$shared_ext$major'
24992687 need_version=no
25002688 need_lib_prefix=no
25012689 ;;
25022690 freebsd-*)
2503 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2691 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
25042692 need_version=yes
25052693 ;;
25062694 esac
25252713 esac
25262714 ;;
25272715
2528 gnu*)
2529 version_type=linux # correct to gnu/linux during the next big refactor
2530 need_lib_prefix=no
2531 need_version=no
2532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2533 soname_spec='${libname}${release}${shared_ext}$major'
2534 shlibpath_var=LD_LIBRARY_PATH
2535 shlibpath_overrides_runpath=no
2536 hardcode_into_libs=yes
2537 ;;
2538
25392716 haiku*)
25402717 version_type=linux # correct to gnu/linux during the next big refactor
25412718 need_lib_prefix=no
25422719 need_version=no
25432720 dynamic_linker="$host_os runtime_loader"
2544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2545 soname_spec='${libname}${release}${shared_ext}$major'
2721 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2722 soname_spec='$libname$release$shared_ext$major'
25462723 shlibpath_var=LIBRARY_PATH
2547 shlibpath_overrides_runpath=yes
2724 shlibpath_overrides_runpath=no
25482725 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
25492726 hardcode_into_libs=yes
25502727 ;;
25622739 dynamic_linker="$host_os dld.so"
25632740 shlibpath_var=LD_LIBRARY_PATH
25642741 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2566 soname_spec='${libname}${release}${shared_ext}$major'
2567 if test "X$HPUX_IA64_MODE" = X32; then
2742 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2743 soname_spec='$libname$release$shared_ext$major'
2744 if test 32 = "$HPUX_IA64_MODE"; then
25682745 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2746 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
25692747 else
25702748 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2749 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
25712750 fi
2572 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25732751 ;;
25742752 hppa*64*)
25752753 shrext_cmds='.sl'
25772755 dynamic_linker="$host_os dld.sl"
25782756 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
25792757 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2581 soname_spec='${libname}${release}${shared_ext}$major'
2758 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2759 soname_spec='$libname$release$shared_ext$major'
25822760 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
25832761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
25842762 ;;
25872765 dynamic_linker="$host_os dld.sl"
25882766 shlibpath_var=SHLIB_PATH
25892767 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2591 soname_spec='${libname}${release}${shared_ext}$major'
2768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2769 soname_spec='$libname$release$shared_ext$major'
25922770 ;;
25932771 esac
25942772 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
26012779 version_type=linux # correct to gnu/linux during the next big refactor
26022780 need_lib_prefix=no
26032781 need_version=no
2604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2605 soname_spec='${libname}${release}${shared_ext}$major'
2782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2783 soname_spec='$libname$release$shared_ext$major'
26062784 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
26072785 shlibpath_var=LD_LIBRARY_PATH
26082786 shlibpath_overrides_runpath=no
26132791 case $host_os in
26142792 nonstopux*) version_type=nonstopux ;;
26152793 *)
2616 if test "$lt_cv_prog_gnu_ld" = yes; then
2794 if test yes = "$lt_cv_prog_gnu_ld"; then
26172795 version_type=linux # correct to gnu/linux during the next big refactor
26182796 else
26192797 version_type=irix
26212799 esac
26222800 need_lib_prefix=no
26232801 need_version=no
2624 soname_spec='${libname}${release}${shared_ext}$major'
2625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2802 soname_spec='$libname$release$shared_ext$major'
2803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
26262804 case $host_os in
26272805 irix5* | nonstopux*)
26282806 libsuff= shlibsuff=
26412819 esac
26422820 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
26432821 shlibpath_overrides_runpath=no
2644 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2645 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2822 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2823 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
26462824 hardcode_into_libs=yes
26472825 ;;
26482826
26512829 dynamic_linker=no
26522830 ;;
26532831
2832 linux*android*)
2833 version_type=none # Android doesn't support versioned libraries.
2834 need_lib_prefix=no
2835 need_version=no
2836 library_names_spec='$libname$release$shared_ext'
2837 soname_spec='$libname$release$shared_ext'
2838 finish_cmds=
2839 shlibpath_var=LD_LIBRARY_PATH
2840 shlibpath_overrides_runpath=yes
2841
2842 # This implies no fast_install, which is unacceptable.
2843 # Some rework will be needed to allow for fast_install
2844 # before this can be enabled.
2845 hardcode_into_libs=yes
2846
2847 dynamic_linker='Android linker'
2848 # Don't embed -rpath directories since the linker doesn't support them.
2849 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2850 ;;
2851
26542852 # This must be glibc/ELF.
2655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
2853 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
26562854 version_type=linux # correct to gnu/linux during the next big refactor
26572855 need_lib_prefix=no
26582856 need_version=no
2659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2660 soname_spec='${libname}${release}${shared_ext}$major'
2857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2858 soname_spec='$libname$release$shared_ext$major'
26612859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
26622860 shlibpath_var=LD_LIBRARY_PATH
26632861 shlibpath_overrides_runpath=no
26822880 # before this can be enabled.
26832881 hardcode_into_libs=yes
26842882
2685 # Append ld.so.conf contents to the search path
2883 # Ideally, we could use ldconfig to report *all* directores which are
2884 # searched for libraries, however this is still not possible. Aside from not
2885 # being certain /sbin/ldconfig is available, command
2886 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2887 # even though it is searched at run-time. Try to do the best guess by
2888 # appending ld.so.conf contents (and includes) to the search path.
26862889 if test -f /etc/ld.so.conf; then
26872890 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
26882891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
27142917 need_lib_prefix=no
27152918 need_version=no
27162919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2920 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27182921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27192922 dynamic_linker='NetBSD (a.out) ld.so'
27202923 else
2721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2722 soname_spec='${libname}${release}${shared_ext}$major'
2924 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2925 soname_spec='$libname$release$shared_ext$major'
27232926 dynamic_linker='NetBSD ld.elf_so'
27242927 fi
27252928 shlibpath_var=LD_LIBRARY_PATH
27292932
27302933 newsos6)
27312934 version_type=linux # correct to gnu/linux during the next big refactor
2732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2935 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27332936 shlibpath_var=LD_LIBRARY_PATH
27342937 shlibpath_overrides_runpath=yes
27352938 ;;
27382941 version_type=qnx
27392942 need_lib_prefix=no
27402943 need_version=no
2741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2742 soname_spec='${libname}${release}${shared_ext}$major'
2944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2945 soname_spec='$libname$release$shared_ext$major'
27432946 shlibpath_var=LD_LIBRARY_PATH
27442947 shlibpath_overrides_runpath=no
27452948 hardcode_into_libs=yes
27462949 dynamic_linker='ldqnx.so'
27472950 ;;
27482951
2749 openbsd*)
2952 openbsd* | bitrig*)
27502953 version_type=sunos
2751 sys_lib_dlsearch_path_spec="/usr/lib"
2954 sys_lib_dlsearch_path_spec=/usr/lib
27522955 need_lib_prefix=no
2753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2754 case $host_os in
2755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2756 *) need_version=no ;;
2757 esac
2758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2957 need_version=no
2958 else
2959 need_version=yes
2960 fi
2961 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
27592962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27602963 shlibpath_var=LD_LIBRARY_PATH
2761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2762 case $host_os in
2763 openbsd2.[[89]] | openbsd2.[[89]].*)
2764 shlibpath_overrides_runpath=no
2765 ;;
2766 *)
2767 shlibpath_overrides_runpath=yes
2768 ;;
2769 esac
2770 else
2771 shlibpath_overrides_runpath=yes
2772 fi
2964 shlibpath_overrides_runpath=yes
27732965 ;;
27742966
27752967 os2*)
27762968 libname_spec='$name'
2777 shrext_cmds=".dll"
2969 version_type=windows
2970 shrext_cmds=.dll
2971 need_version=no
27782972 need_lib_prefix=no
2779 library_names_spec='$libname${shared_ext} $libname.a'
2973 # OS/2 can only load a DLL with a base name of 8 characters or less.
2974 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2975 v=$($ECHO $release$versuffix | tr -d .-);
2976 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2977 $ECHO $n$v`$shared_ext'
2978 library_names_spec='${libname}_dll.$libext'
27802979 dynamic_linker='OS/2 ld.exe'
2781 shlibpath_var=LIBPATH
2980 shlibpath_var=BEGINLIBPATH
2981 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2983 postinstall_cmds='base_file=`basename \$file`~
2984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2985 dldir=$destdir/`dirname \$dlpath`~
2986 test -d \$dldir || mkdir -p \$dldir~
2987 $install_prog $dir/$dlname \$dldir/$dlname~
2988 chmod a+x \$dldir/$dlname~
2989 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2990 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2991 fi'
2992 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2993 dlpath=$dir/\$dldll~
2994 $RM \$dlpath'
27822995 ;;
27832996
27842997 osf3* | osf4* | osf5*)
27852998 version_type=osf
27862999 need_lib_prefix=no
27873000 need_version=no
2788 soname_spec='${libname}${release}${shared_ext}$major'
2789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3001 soname_spec='$libname$release$shared_ext$major'
3002 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
27903003 shlibpath_var=LD_LIBRARY_PATH
27913004 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27933006 ;;
27943007
27953008 rdos*)
28003013 version_type=linux # correct to gnu/linux during the next big refactor
28013014 need_lib_prefix=no
28023015 need_version=no
2803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2804 soname_spec='${libname}${release}${shared_ext}$major'
3016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3017 soname_spec='$libname$release$shared_ext$major'
28053018 shlibpath_var=LD_LIBRARY_PATH
28063019 shlibpath_overrides_runpath=yes
28073020 hardcode_into_libs=yes
28113024
28123025 sunos4*)
28133026 version_type=sunos
2814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3027 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
28153028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
28163029 shlibpath_var=LD_LIBRARY_PATH
28173030 shlibpath_overrides_runpath=yes
2818 if test "$with_gnu_ld" = yes; then
3031 if test yes = "$with_gnu_ld"; then
28193032 need_lib_prefix=no
28203033 fi
28213034 need_version=yes
28233036
28243037 sysv4 | sysv4.3*)
28253038 version_type=linux # correct to gnu/linux during the next big refactor
2826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2827 soname_spec='${libname}${release}${shared_ext}$major'
3039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3040 soname_spec='$libname$release$shared_ext$major'
28283041 shlibpath_var=LD_LIBRARY_PATH
28293042 case $host_vendor in
28303043 sni)
28453058 ;;
28463059
28473060 sysv4*MP*)
2848 if test -d /usr/nec ;then
3061 if test -d /usr/nec; then
28493062 version_type=linux # correct to gnu/linux during the next big refactor
2850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2851 soname_spec='$libname${shared_ext}.$major'
3063 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3064 soname_spec='$libname$shared_ext.$major'
28523065 shlibpath_var=LD_LIBRARY_PATH
28533066 fi
28543067 ;;
28553068
28563069 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2857 version_type=freebsd-elf
3070 version_type=sco
28583071 need_lib_prefix=no
28593072 need_version=no
2860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2861 soname_spec='${libname}${release}${shared_ext}$major'
3073 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3074 soname_spec='$libname$release$shared_ext$major'
28623075 shlibpath_var=LD_LIBRARY_PATH
28633076 shlibpath_overrides_runpath=yes
28643077 hardcode_into_libs=yes
2865 if test "$with_gnu_ld" = yes; then
3078 if test yes = "$with_gnu_ld"; then
28663079 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
28673080 else
28683081 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
28803093 version_type=linux # correct to gnu/linux during the next big refactor
28813094 need_lib_prefix=no
28823095 need_version=no
2883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3096 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
28843097 shlibpath_var=LD_LIBRARY_PATH
28853098 shlibpath_overrides_runpath=no
28863099 hardcode_into_libs=yes
28883101
28893102 uts4*)
28903103 version_type=linux # correct to gnu/linux during the next big refactor
2891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2892 soname_spec='${libname}${release}${shared_ext}$major'
3104 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3105 soname_spec='$libname$release$shared_ext$major'
28933106 shlibpath_var=LD_LIBRARY_PATH
28943107 ;;
28953108
28983111 ;;
28993112 esac
29003113 AC_MSG_RESULT([$dynamic_linker])
2901 test "$dynamic_linker" = no && can_build_shared=no
3114 test no = "$dynamic_linker" && can_build_shared=no
29023115
29033116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2904 if test "$GCC" = yes; then
3117 if test yes = "$GCC"; then
29053118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29063119 fi
29073120
2908 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
2909 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3121 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3122 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
29103123 fi
2911 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
2912 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3124
3125 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3126 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
29133127 fi
3128
3129 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3130 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3131
3132 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3133 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3134
3135 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3136 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
29143137
29153138 _LT_DECL([], [variables_saved_for_relink], [1],
29163139 [Variables whose values should be saved in libtool wrapper scripts and
29443167 [Whether we should hardcode library paths into libraries])
29453168 _LT_DECL([], [sys_lib_search_path_spec], [2],
29463169 [Compile-time system search path for libraries])
2947 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
2948 [Run-time system search path for libraries])
3170 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3171 [Detected run-time system search path for libraries])
3172 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3173 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
29493174 ])# _LT_SYS_DYNAMIC_LINKER
29503175
29513176
29523177 # _LT_PATH_TOOL_PREFIX(TOOL)
29533178 # --------------------------
2954 # find a file program which can recognize shared library
3179 # find a file program that can recognize shared library
29553180 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
29563181 [m4_require([_LT_DECL_EGREP])dnl
29573182 AC_MSG_CHECKING([for $1])
29583183 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
29593184 [case $MAGIC_CMD in
29603185 [[\\/*] | ?:[\\/]*])
2961 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3186 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
29623187 ;;
29633188 *)
2964 lt_save_MAGIC_CMD="$MAGIC_CMD"
2965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3189 lt_save_MAGIC_CMD=$MAGIC_CMD
3190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
29663191 dnl $ac_dummy forces splitting on constant user-supplied paths.
29673192 dnl POSIX.2 word splitting is done only on the output of word expansions,
29683193 dnl not every word. This closes a longstanding sh security hole.
29693194 ac_dummy="m4_if([$2], , $PATH, [$2])"
29703195 for ac_dir in $ac_dummy; do
2971 IFS="$lt_save_ifs"
3196 IFS=$lt_save_ifs
29723197 test -z "$ac_dir" && ac_dir=.
2973 if test -f $ac_dir/$1; then
2974 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3198 if test -f "$ac_dir/$1"; then
3199 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
29753200 if test -n "$file_magic_test_file"; then
29763201 case $deplibs_check_method in
29773202 "file_magic "*)
29783203 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2979 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3204 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
29803205 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
29813206 $EGREP "$file_magic_regex" > /dev/null; then
29823207 :
29993224 break
30003225 fi
30013226 done
3002 IFS="$lt_save_ifs"
3003 MAGIC_CMD="$lt_save_MAGIC_CMD"
3227 IFS=$lt_save_ifs
3228 MAGIC_CMD=$lt_save_MAGIC_CMD
30043229 ;;
30053230 esac])
3006 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3231 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
30073232 if test -n "$MAGIC_CMD"; then
30083233 AC_MSG_RESULT($MAGIC_CMD)
30093234 else
30213246
30223247 # _LT_PATH_MAGIC
30233248 # --------------
3024 # find a file program which can recognize a shared library
3249 # find a file program that can recognize a shared library
30253250 m4_defun([_LT_PATH_MAGIC],
30263251 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
30273252 if test -z "$lt_cv_path_MAGIC_CMD"; then
30483273 AC_ARG_WITH([gnu-ld],
30493274 [AS_HELP_STRING([--with-gnu-ld],
30503275 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3051 [test "$withval" = no || with_gnu_ld=yes],
3276 [test no = "$withval" || with_gnu_ld=yes],
30523277 [with_gnu_ld=no])dnl
30533278
30543279 ac_prog=ld
3055 if test "$GCC" = yes; then
3280 if test yes = "$GCC"; then
30563281 # Check if gcc -print-prog-name=ld gives a path.
30573282 AC_MSG_CHECKING([for ld used by $CC])
30583283 case $host in
30593284 *-*-mingw*)
3060 # gcc leaves a trailing carriage return which upsets mingw
3285 # gcc leaves a trailing carriage return, which upsets mingw
30613286 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
30623287 *)
30633288 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
30713296 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
30723297 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
30733298 done
3074 test -z "$LD" && LD="$ac_prog"
3299 test -z "$LD" && LD=$ac_prog
30753300 ;;
30763301 "")
30773302 # If it fails, then pretend we aren't using GCC.
30823307 with_gnu_ld=unknown
30833308 ;;
30843309 esac
3085 elif test "$with_gnu_ld" = yes; then
3310 elif test yes = "$with_gnu_ld"; then
30863311 AC_MSG_CHECKING([for GNU ld])
30873312 else
30883313 AC_MSG_CHECKING([for non-GNU ld])
30893314 fi
30903315 AC_CACHE_VAL(lt_cv_path_LD,
30913316 [if test -z "$LD"; then
3092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
30933318 for ac_dir in $PATH; do
3094 IFS="$lt_save_ifs"
3319 IFS=$lt_save_ifs
30953320 test -z "$ac_dir" && ac_dir=.
30963321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3097 lt_cv_path_LD="$ac_dir/$ac_prog"
3322 lt_cv_path_LD=$ac_dir/$ac_prog
30983323 # Check to see if the program is GNU ld. I'd rather use --version,
30993324 # but apparently some variants of GNU ld only accept -v.
31003325 # Break only if it was the GNU/non-GNU ld that we prefer.
31013326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
31023327 *GNU* | *'with BFD'*)
3103 test "$with_gnu_ld" != no && break
3328 test no != "$with_gnu_ld" && break
31043329 ;;
31053330 *)
3106 test "$with_gnu_ld" != yes && break
3331 test yes != "$with_gnu_ld" && break
31073332 ;;
31083333 esac
31093334 fi
31103335 done
3111 IFS="$lt_save_ifs"
3336 IFS=$lt_save_ifs
31123337 else
3113 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3338 lt_cv_path_LD=$LD # Let the user override the test with a path.
31143339 fi])
3115 LD="$lt_cv_path_LD"
3340 LD=$lt_cv_path_LD
31163341 if test -n "$LD"; then
31173342 AC_MSG_RESULT($LD)
31183343 else
31663391 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31673392 case $host_os in
31683393 cygwin* | mingw* | pw32* | cegcc*)
3169 if test "$GCC" != yes; then
3394 if test yes != "$GCC"; then
31703395 reload_cmds=false
31713396 fi
31723397 ;;
31733398 darwin*)
3174 if test "$GCC" = yes; then
3175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3399 if test yes = "$GCC"; then
3400 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
31763401 else
31773402 reload_cmds='$LD$reload_flag -o $output$reload_objs'
31783403 fi
31813406 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
31823407 _LT_TAGDECL([], [reload_cmds], [2])dnl
31833408 ])# _LT_CMD_RELOAD
3409
3410
3411 # _LT_PATH_DD
3412 # -----------
3413 # find a working dd
3414 m4_defun([_LT_PATH_DD],
3415 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3416 [printf 0123456789abcdef0123456789abcdef >conftest.i
3417 cat conftest.i conftest.i >conftest2.i
3418 : ${lt_DD:=$DD}
3419 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3420 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3421 cmp -s conftest.i conftest.out \
3422 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3423 fi])
3424 rm -f conftest.i conftest2.i conftest.out])
3425 ])# _LT_PATH_DD
3426
3427
3428 # _LT_CMD_TRUNCATE
3429 # ----------------
3430 # find command to truncate a binary pipe
3431 m4_defun([_LT_CMD_TRUNCATE],
3432 [m4_require([_LT_PATH_DD])
3433 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3434 [printf 0123456789abcdef0123456789abcdef >conftest.i
3435 cat conftest.i conftest.i >conftest2.i
3436 lt_cv_truncate_bin=
3437 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3438 cmp -s conftest.i conftest.out \
3439 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3440 fi
3441 rm -f conftest.i conftest2.i conftest.out
3442 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3443 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3444 [Command to truncate a binary pipe])
3445 ])# _LT_CMD_TRUNCATE
31843446
31853447
31863448 # _LT_CHECK_MAGIC_METHOD
31983460 # Need to set the preceding variable on all platforms that support
31993461 # interlibrary dependencies.
32003462 # 'none' -- dependencies not supported.
3201 # `unknown' -- same as none, but documents that we really don't know.
3463 # 'unknown' -- same as none, but documents that we really don't know.
32023464 # 'pass_all' -- all dependencies passed with no checks.
32033465 # 'test_compile' -- check by making test program.
32043466 # 'file_magic [[regex]]' -- check by looking for files in library path
3205 # which responds to the $file_magic_cmd with a given extended regex.
3206 # If you have `file' or equivalent on your system and you're not sure
3207 # whether `pass_all' will *always* work, you probably want this one.
3467 # that responds to the $file_magic_cmd with a given extended regex.
3468 # If you have 'file' or equivalent on your system and you're not sure
3469 # whether 'pass_all' will *always* work, you probably want this one.
32083470
32093471 case $host_os in
32103472 aix[[4-9]]*)
32313493 # Base MSYS/MinGW do not provide the 'file' command needed by
32323494 # func_win32_libid shell function, so use a weaker test based on 'objdump',
32333495 # unless we find 'file', for example because we are cross-compiling.
3234 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3235 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3496 if ( file / ) >/dev/null 2>&1; then
32363497 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
32373498 lt_cv_file_magic_cmd='func_win32_libid'
32383499 else
32663527 else
32673528 lt_cv_deplibs_check_method=pass_all
32683529 fi
3269 ;;
3270
3271 gnu*)
3272 lt_cv_deplibs_check_method=pass_all
32733530 ;;
32743531
32753532 haiku*)
33103567 ;;
33113568
33123569 # This must be glibc/ELF.
3313 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3570 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
33143571 lt_cv_deplibs_check_method=pass_all
33153572 ;;
33163573
33323589 lt_cv_deplibs_check_method=pass_all
33333590 ;;
33343591
3335 openbsd*)
3336 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3592 openbsd* | bitrig*)
3593 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
33373594 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
33383595 else
33393596 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
33863643 tpf*)
33873644 lt_cv_deplibs_check_method=pass_all
33883645 ;;
3646 os2*)
3647 lt_cv_deplibs_check_method=pass_all
3648 ;;
33893649 esac
33903650 ])
33913651
34263686 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
34273687 [if test -n "$NM"; then
34283688 # Let the user override the test.
3429 lt_cv_path_NM="$NM"
3689 lt_cv_path_NM=$NM
34303690 else
3431 lt_nm_to_check="${ac_tool_prefix}nm"
3691 lt_nm_to_check=${ac_tool_prefix}nm
34323692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
34333693 lt_nm_to_check="$lt_nm_to_check nm"
34343694 fi
34353695 for lt_tmp_nm in $lt_nm_to_check; do
3436 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3696 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
34373697 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3438 IFS="$lt_save_ifs"
3698 IFS=$lt_save_ifs
34393699 test -z "$ac_dir" && ac_dir=.
3440 tmp_nm="$ac_dir/$lt_tmp_nm"
3441 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3700 tmp_nm=$ac_dir/$lt_tmp_nm
3701 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
34423702 # Check to see if the nm accepts a BSD-compat flag.
3443 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3703 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
34443704 # nm: unknown option "B" ignored
34453705 # Tru64's nm complains that /dev/null is an invalid object file
3446 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3447 */dev/null* | *'Invalid file or object type'*)
3706 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3707 case $build_os in
3708 mingw*) lt_bad_file=conftest.nm/nofile ;;
3709 *) lt_bad_file=/dev/null ;;
3710 esac
3711 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3712 *$lt_bad_file* | *'Invalid file or object type'*)
34483713 lt_cv_path_NM="$tmp_nm -B"
3449 break
3714 break 2
34503715 ;;
34513716 *)
34523717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
34533718 */dev/null*)
34543719 lt_cv_path_NM="$tmp_nm -p"
3455 break
3720 break 2
34563721 ;;
34573722 *)
34583723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
34633728 esac
34643729 fi
34653730 done
3466 IFS="$lt_save_ifs"
3731 IFS=$lt_save_ifs
34673732 done
34683733 : ${lt_cv_path_NM=no}
34693734 fi])
3470 if test "$lt_cv_path_NM" != "no"; then
3471 NM="$lt_cv_path_NM"
3735 if test no != "$lt_cv_path_NM"; then
3736 NM=$lt_cv_path_NM
34723737 else
34733738 # Didn't find any BSD compatible name lister, look for dumpbin.
34743739 if test -n "$DUMPBIN"; then :
34753740 # Let the user override the test.
34763741 else
34773742 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3478 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
3743 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
34793744 *COFF*)
3480 DUMPBIN="$DUMPBIN -symbols"
3745 DUMPBIN="$DUMPBIN -symbols -headers"
34813746 ;;
34823747 *)
34833748 DUMPBIN=:
34853750 esac
34863751 fi
34873752 AC_SUBST([DUMPBIN])
3488 if test "$DUMPBIN" != ":"; then
3489 NM="$DUMPBIN"
3753 if test : != "$DUMPBIN"; then
3754 NM=$DUMPBIN
34903755 fi
34913756 fi
34923757 test -z "$NM" && NM=nm
35323797
35333798 case $host_os in
35343799 cygwin* | mingw* | pw32* | cegcc*)
3535 # two different shell functions defined in ltmain.sh
3536 # decide which to use based on capabilities of $DLLTOOL
3800 # two different shell functions defined in ltmain.sh;
3801 # decide which one to use based on capabilities of $DLLTOOL
35373802 case `$DLLTOOL --help 2>&1` in
35383803 *--identify-strict*)
35393804 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
35453810 ;;
35463811 *)
35473812 # fallback: assume linklib IS sharedlib
3548 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
3813 lt_cv_sharedlib_from_linklib_cmd=$ECHO
35493814 ;;
35503815 esac
35513816 ])
35723837 lt_cv_path_mainfest_tool=yes
35733838 fi
35743839 rm -f conftest*])
3575 if test "x$lt_cv_path_mainfest_tool" != xyes; then
3840 if test yes != "$lt_cv_path_mainfest_tool"; then
35763841 MANIFEST_TOOL=:
35773842 fi
35783843 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
35793844 ])# _LT_PATH_MANIFEST_TOOL
3845
3846
3847 # _LT_DLL_DEF_P([FILE])
3848 # ---------------------
3849 # True iff FILE is a Windows DLL '.def' file.
3850 # Keep in sync with func_dll_def_p in the libtool script
3851 AC_DEFUN([_LT_DLL_DEF_P],
3852 [dnl
3853 test DEF = "`$SED -n dnl
3854 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3855 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3856 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3857 -e q dnl Only consider the first "real" line
3858 $1`" dnl
3859 ])# _LT_DLL_DEF_P
35803860
35813861
35823862 # LT_LIB_M
35903870 # These system don't have libm, or don't need it
35913871 ;;
35923872 *-ncr-sysv4.3*)
3593 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3873 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
35943874 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
35953875 ;;
35963876 *)
3597 AC_CHECK_LIB(m, cos, LIBM="-lm")
3877 AC_CHECK_LIB(m, cos, LIBM=-lm)
35983878 ;;
35993879 esac
36003880 AC_SUBST([LIBM])
36133893
36143894 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
36153895
3616 if test "$GCC" = yes; then
3896 if test yes = "$GCC"; then
36173897 case $cc_basename in
36183898 nvcc*)
36193899 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
36653945 symcode='[[ABCDGISTW]]'
36663946 ;;
36673947 hpux*)
3668 if test "$host_cpu" = ia64; then
3948 if test ia64 = "$host_cpu"; then
36693949 symcode='[[ABCDEGRST]]'
36703950 fi
36713951 ;;
36983978 symcode='[[ABCDGIRSTW]]' ;;
36993979 esac
37003980
3981 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3982 # Gets list of data symbols to import.
3983 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3984 # Adjust the below global symbol transforms to fixup imported variables.
3985 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3986 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3987 lt_c_name_lib_hook="\
3988 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3989 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3990 else
3991 # Disable hooks by default.
3992 lt_cv_sys_global_symbol_to_import=
3993 lt_cdecl_hook=
3994 lt_c_name_hook=
3995 lt_c_name_lib_hook=
3996 fi
3997
37013998 # Transform an extracted symbol line into a proper C declaration.
37023999 # Some systems (esp. on ia64) link data and code symbols differently,
37034000 # so use this general approach.
3704 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4001 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
4002 $lt_cdecl_hook\
4003 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
4004 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
37054005
37064006 # Transform an extracted symbol line into symbol name and symbol address
3707 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
3708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4007 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
4008 $lt_c_name_hook\
4009 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4010 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
4011
4012 # Transform an extracted symbol line into symbol name with lib prefix and
4013 # symbol address.
4014 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4015 $lt_c_name_lib_hook\
4016 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4017 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4018 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
37094019
37104020 # Handle CRLF in mingw tool chain
37114021 opt_cr=
37234033
37244034 # Write the raw and C identifiers.
37254035 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3726 # Fake it for dumpbin and say T for any non-static function
3727 # and D for any global variable.
4036 # Fake it for dumpbin and say T for any non-static function,
4037 # D for any global variable and I for any imported variable.
37284038 # Also find C++ and __fastcall symbols from MSVC++,
37294039 # which start with @ or ?.
37304040 lt_cv_sys_global_symbol_pipe="$AWK ['"\
37314041 " {last_section=section; section=\$ 3};"\
37324042 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
37334043 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4044 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4045 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4046 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
37344047 " \$ 0!~/External *\|/{next};"\
37354048 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
37364049 " {if(hide[section]) next};"\
3737 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
3738 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
3739 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
3740 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4050 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4051 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4052 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4053 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
37414054 " ' prfx=^$ac_symprfx]"
37424055 else
37434056 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
37774090 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
37784091 cat <<_LT_EOF > conftest.$ac_ext
37794092 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3780 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3781 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4093 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4094 /* DATA imports from DLLs on WIN32 can't be const, because runtime
37824095 relocations are performed -- see ld's documentation on pseudo-relocs. */
37834096 # define LT@&t@_DLSYM_CONST
3784 #elif defined(__osf__)
4097 #elif defined __osf__
37854098 /* This system does not cope well with relocations in const data. */
37864099 # define LT@&t@_DLSYM_CONST
37874100 #else
38074120 {
38084121 { "@PROGRAM@", (void *) 0 },
38094122 _LT_EOF
3810 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4123 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
38114124 cat <<\_LT_EOF >> conftest.$ac_ext
38124125 {0, (void *) 0}
38134126 };
38274140 mv conftest.$ac_objext conftstm.$ac_objext
38284141 lt_globsym_save_LIBS=$LIBS
38294142 lt_globsym_save_CFLAGS=$CFLAGS
3830 LIBS="conftstm.$ac_objext"
4143 LIBS=conftstm.$ac_objext
38314144 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
3832 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4145 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
38334146 pipe_works=yes
38344147 fi
38354148 LIBS=$lt_globsym_save_LIBS
38504163 rm -rf conftest* conftst*
38514164
38524165 # Do not use the global_symbol_pipe unless it works.
3853 if test "$pipe_works" = yes; then
4166 if test yes = "$pipe_works"; then
38544167 break
38554168 else
38564169 lt_cv_sys_global_symbol_pipe=
38774190 [Take the output of nm and produce a listing of raw symbols and C names])
38784191 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
38794192 [Transform the output of nm in a proper C declaration])
4193 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4194 [Transform the output of nm into a list of symbols to manually relocate])
38804195 _LT_DECL([global_symbol_to_c_name_address],
38814196 [lt_cv_sys_global_symbol_to_c_name_address], [1],
38824197 [Transform the output of nm in a C name address pair])
38834198 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
38844199 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
38854200 [Transform the output of nm in a C name address pair when lib prefix is needed])
4201 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4202 [The name lister interface])
38864203 _LT_DECL([], [nm_file_list_spec], [1],
38874204 [Specify filename containing input files for $NM])
38884205 ]) # _LT_CMD_GLOBAL_SYMBOLS
38984215
38994216 m4_if([$1], [CXX], [
39004217 # C++ specific cases for pic, static, wl, etc.
3901 if test "$GXX" = yes; then
4218 if test yes = "$GXX"; then
39024219 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
39034220 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
39044221
39054222 case $host_os in
39064223 aix*)
39074224 # All AIX code is PIC.
3908 if test "$host_cpu" = ia64; then
4225 if test ia64 = "$host_cpu"; then
39094226 # AIX 5 now supports IA64 processor
39104227 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39114228 fi
4229 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
39124230 ;;
39134231
39144232 amigaos*)
39194237 ;;
39204238 m68k)
39214239 # FIXME: we need at least 68020 code to build shared libraries, but
3922 # adding the `-m68020' flag to GCC prevents building anything better,
3923 # like `-m68040'.
4240 # adding the '-m68020' flag to GCC prevents building anything better,
4241 # like '-m68040'.
39244242 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
39254243 ;;
39264244 esac
39364254 # (--disable-auto-import) libraries
39374255 m4_if([$1], [GCJ], [],
39384256 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4257 case $host_os in
4258 os2*)
4259 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4260 ;;
4261 esac
39394262 ;;
39404263 darwin* | rhapsody*)
39414264 # PIC is the default on this platform
39854308 case $host_os in
39864309 aix[[4-9]]*)
39874310 # All AIX code is PIC.
3988 if test "$host_cpu" = ia64; then
4311 if test ia64 = "$host_cpu"; then
39894312 # AIX 5 now supports IA64 processor
39904313 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
39914314 else
40264349 case $cc_basename in
40274350 CC*)
40284351 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4029 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4030 if test "$host_cpu" != ia64; then
4352 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4353 if test ia64 != "$host_cpu"; then
40314354 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
40324355 fi
40334356 ;;
40344357 aCC*)
40354358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4036 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
40374360 case $host_cpu in
40384361 hppa*64*|ia64*)
40394362 # +Z the default
40624385 ;;
40634386 esac
40644387 ;;
4065 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4388 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
40664389 case $cc_basename in
40674390 KCC*)
40684391 # KAI C++ Compiler
40704393 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
40714394 ;;
40724395 ecpc* )
4073 # old Intel C++ for x86_64 which still supported -KPIC.
4396 # old Intel C++ for x86_64, which still supported -KPIC.
40744397 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
40754398 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
40764399 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42154538 fi
42164539 ],
42174540 [
4218 if test "$GCC" = yes; then
4541 if test yes = "$GCC"; then
42194542 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
42204543 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
42214544
42224545 case $host_os in
42234546 aix*)
42244547 # All AIX code is PIC.
4225 if test "$host_cpu" = ia64; then
4548 if test ia64 = "$host_cpu"; then
42264549 # AIX 5 now supports IA64 processor
42274550 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
42284551 fi
4552 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
42294553 ;;
42304554
42314555 amigaos*)
42364560 ;;
42374561 m68k)
42384562 # FIXME: we need at least 68020 code to build shared libraries, but
4239 # adding the `-m68020' flag to GCC prevents building anything better,
4240 # like `-m68040'.
4563 # adding the '-m68020' flag to GCC prevents building anything better,
4564 # like '-m68040'.
42414565 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
42424566 ;;
42434567 esac
42544578 # (--disable-auto-import) libraries
42554579 m4_if([$1], [GCJ], [],
42564580 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4581 case $host_os in
4582 os2*)
4583 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4584 ;;
4585 esac
42574586 ;;
42584587
42594588 darwin* | rhapsody*)
43244653 case $host_os in
43254654 aix*)
43264655 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4327 if test "$host_cpu" = ia64; then
4656 if test ia64 = "$host_cpu"; then
43284657 # AIX 5 now supports IA64 processor
43294658 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
43304659 else
43324661 fi
43334662 ;;
43344663
4664 darwin* | rhapsody*)
4665 # PIC is the default on this platform
4666 # Common symbols not allowed in MH_DYLIB files
4667 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4668 case $cc_basename in
4669 nagfor*)
4670 # NAG Fortran compiler
4671 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4672 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4673 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4674 ;;
4675 esac
4676 ;;
4677
43354678 mingw* | cygwin* | pw32* | os2* | cegcc*)
43364679 # This hack is so that the source file can tell whether it is being
43374680 # built for inclusion in a dll (and should export symbols for example).
43384681 m4_if([$1], [GCJ], [],
43394682 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4683 case $host_os in
4684 os2*)
4685 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4686 ;;
4687 esac
43404688 ;;
43414689
43424690 hpux9* | hpux10* | hpux11*)
43524700 ;;
43534701 esac
43544702 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4355 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
43564704 ;;
43574705
43584706 irix5* | irix6* | nonstopux*)
43614709 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
43624710 ;;
43634711
4364 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4712 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
43654713 case $cc_basename in
4366 # old Intel for x86_64 which still supported -KPIC.
4714 # old Intel for x86_64, which still supported -KPIC.
43674715 ecc*)
43684716 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
43694717 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
43874735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
43884736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
43894737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4738 ;;
4739 tcc*)
4740 # Fabrice Bellard et al's Tiny C Compiler
4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4743 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
43904744 ;;
43914745 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
43924746 # Portland Group compilers (*not* the Pentium gcc compiler,
44854839 ;;
44864840
44874841 sysv4*MP*)
4488 if test -d /usr/nec ;then
4842 if test -d /usr/nec; then
44894843 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
44904844 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
44914845 fi
45144868 fi
45154869 ])
45164870 case $host_os in
4517 # For platforms which do not support PIC, -DPIC is meaningless:
4871 # For platforms that do not support PIC, -DPIC is meaningless:
45184872 *djgpp*)
45194873 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
45204874 ;;
45804934 case $host_os in
45814935 aix[[4-9]]*)
45824936 # If we're using GNU nm, then we don't want the "-C" option.
4583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4584 # Also, AIX nm treats weak defined symbols like other global defined
4585 # symbols, whereas GNU nm marks them as "W".
4937 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4938 # Without the "-l" option, or with the "-B" option, AIX nm treats
4939 # weak defined symbols like other global defined symbols, whereas
4940 # GNU nm marks them as "W".
4941 # While the 'weak' keyword is ignored in the Export File, we need
4942 # it in the Import File for the 'aix-soname' feature, so we have
4943 # to replace the "-B" option with "-P" for AIX nm.
45864944 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4587 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4945 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
45884946 else
4589 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
4947 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
45904948 fi
45914949 ;;
45924950 pw32*)
4593 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4951 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
45944952 ;;
45954953 cygwin* | mingw* | cegcc*)
45964954 case $cc_basename in
46394997 # included in the symbol list
46404998 _LT_TAGVAR(include_expsyms, $1)=
46414999 # exclude_expsyms can be an extended regexp of symbols to exclude
4642 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4643 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4644 # as well as any symbol that contains `d'.
5000 # it will be wrapped by ' (' and ')$', so one must not match beginning or
5001 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
5002 # as well as any symbol that contains 'd'.
46455003 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
46465004 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
46475005 # platforms (ab)use it in PIC code, but their linkers get confused if
46575015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
46585016 # When not using gcc, we currently assume that we are using
46595017 # Microsoft Visual C++.
4660 if test "$GCC" != yes; then
5018 if test yes != "$GCC"; then
46615019 with_gnu_ld=no
46625020 fi
46635021 ;;
46655023 # we just hope/assume this is gcc and not c89 (= MSVC++)
46665024 with_gnu_ld=yes
46675025 ;;
4668 openbsd*)
5026 openbsd* | bitrig*)
46695027 with_gnu_ld=no
46705028 ;;
46715029 linux* | k*bsd*-gnu | gnu*)
46785036 # On some targets, GNU ld is compatible enough with the native linker
46795037 # that we're better off using the native interface for both.
46805038 lt_use_gnu_ld_interface=no
4681 if test "$with_gnu_ld" = yes; then
5039 if test yes = "$with_gnu_ld"; then
46825040 case $host_os in
46835041 aix*)
46845042 # The AIX port of GNU ld has always aspired to compatibility
47005058 esac
47015059 fi
47025060
4703 if test "$lt_use_gnu_ld_interface" = yes; then
5061 if test yes = "$lt_use_gnu_ld_interface"; then
47045062 # If archive_cmds runs LD, not CC, wlarc should be empty
4705 wlarc='${wl}'
5063 wlarc='$wl'
47065064
47075065 # Set some defaults for GNU ld with shared library support. These
47085066 # are reset later if shared libraries are not supported. Putting them
47095067 # here allows them to be overridden if necessary.
47105068 runpath_var=LD_RUN_PATH
4711 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4712 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5070 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
47135071 # ancient GNU ld didn't support --whole-archive et. al.
47145072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4715 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5073 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
47165074 else
47175075 _LT_TAGVAR(whole_archive_flag_spec, $1)=
47185076 fi
47195077 supports_anon_versioning=no
4720 case `$LD -v 2>&1` in
5078 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
47215079 *GNU\ gold*) supports_anon_versioning=yes ;;
47225080 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
47235081 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
47305088 case $host_os in
47315089 aix[[3-9]]*)
47325090 # On AIX/PPC, the GNU linker is very broken
4733 if test "$host_cpu" != ia64; then
5091 if test ia64 != "$host_cpu"; then
47345092 _LT_TAGVAR(ld_shlibs, $1)=no
47355093 cat <<_LT_EOF 1>&2
47365094
47495107 case $host_cpu in
47505108 powerpc)
47515109 # see comment about AmigaOS4 .so support
4752 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5110 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47535111 _LT_TAGVAR(archive_expsym_cmds, $1)=''
47545112 ;;
47555113 m68k)
47655123 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47665124 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
47675125 # support --undefined. This deserves some investigation. FIXME
4768 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5126 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
47695127 else
47705128 _LT_TAGVAR(ld_shlibs, $1)=no
47715129 fi
47755133 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
47765134 # as there is no search path for DLLs.
47775135 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4778 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
5136 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
47795137 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
47805138 _LT_TAGVAR(always_export_symbols, $1)=no
47815139 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
47835141 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
47845142
47855143 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4786 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4787 # If the export-symbols file already is a .def file (1st line
4788 # is EXPORTS), use it as is; otherwise, prepend...
4789 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4790 cp $export_symbols $output_objdir/$soname.def;
4791 else
4792 echo EXPORTS > $output_objdir/$soname.def;
4793 cat $export_symbols >> $output_objdir/$soname.def;
4794 fi~
4795 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5144 _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'
5145 # If the export-symbols file already is a .def file, use it as
5146 # is; otherwise, prepend EXPORTS...
5147 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5148 cp $export_symbols $output_objdir/$soname.def;
5149 else
5150 echo EXPORTS > $output_objdir/$soname.def;
5151 cat $export_symbols >> $output_objdir/$soname.def;
5152 fi~
5153 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
47965154 else
47975155 _LT_TAGVAR(ld_shlibs, $1)=no
47985156 fi
47995157 ;;
48005158
48015159 haiku*)
4802 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5160 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
48035161 _LT_TAGVAR(link_all_deplibs, $1)=yes
5162 ;;
5163
5164 os2*)
5165 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5166 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5167 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5168 shrext_cmds=.dll
5169 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5170 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5171 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5172 $ECHO EXPORTS >> $output_objdir/$libname.def~
5173 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5174 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5175 emximp -o $lib $output_objdir/$libname.def'
5176 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5177 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5178 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5179 $ECHO EXPORTS >> $output_objdir/$libname.def~
5180 prefix_cmds="$SED"~
5181 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5182 prefix_cmds="$prefix_cmds -e 1d";
5183 fi~
5184 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5185 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5187 emximp -o $lib $output_objdir/$libname.def'
5188 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5189 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
48045190 ;;
48055191
48065192 interix[[3-9]]*)
48075193 _LT_TAGVAR(hardcode_direct, $1)=no
48085194 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4809 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4810 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5195 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5196 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
48115197 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
48125198 # Instead, shared libraries are loaded at an image base (0x10000000 by
48135199 # default) and relocated if they conflict, which is a slow very memory
48145200 # consuming and fragmenting process. To avoid this, we pick a random,
48155201 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
48165202 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4817 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4818 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5203 _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'
5204 _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'
48195205 ;;
48205206
48215207 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
48225208 tmp_diet=no
4823 if test "$host_os" = linux-dietlibc; then
5209 if test linux-dietlibc = "$host_os"; then
48245210 case $cc_basename in
48255211 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
48265212 esac
48275213 fi
48285214 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
4829 && test "$tmp_diet" = no
5215 && test no = "$tmp_diet"
48305216 then
48315217 tmp_addflag=' $pic_flag'
48325218 tmp_sharedflag='-shared'
48335219 case $cc_basename,$host_cpu in
48345220 pgcc*) # Portland Group C compiler
4835 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5221 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48365222 tmp_addflag=' $pic_flag'
48375223 ;;
48385224 pgf77* | pgf90* | pgf95* | pgfortran*)
48395225 # Portland Group f77 and f90 compilers
4840 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5226 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48415227 tmp_addflag=' $pic_flag -Mnomain' ;;
48425228 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
48435229 tmp_addflag=' -i_dynamic' ;;
48485234 lf95*) # Lahey Fortran 8.1
48495235 _LT_TAGVAR(whole_archive_flag_spec, $1)=
48505236 tmp_sharedflag='--shared' ;;
5237 nagfor*) # NAGFOR 5.3
5238 tmp_sharedflag='-Wl,-shared' ;;
48515239 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
48525240 tmp_sharedflag='-qmkshrobj'
48535241 tmp_addflag= ;;
48545242 nvcc*) # Cuda Compiler Driver 2.2
4855 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5243 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48565244 _LT_TAGVAR(compiler_needs_object, $1)=yes
48575245 ;;
48585246 esac
48595247 case `$CC -V 2>&1 | sed 5q` in
48605248 *Sun\ C*) # Sun C 5.9
4861 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
5249 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
48625250 _LT_TAGVAR(compiler_needs_object, $1)=yes
48635251 tmp_sharedflag='-G' ;;
48645252 *Sun\ F*) # Sun Fortran 8.3
48655253 tmp_sharedflag='-G' ;;
48665254 esac
4867 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4868
4869 if test "x$supports_anon_versioning" = xyes; then
5255 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5256
5257 if test yes = "$supports_anon_versioning"; then
48705258 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4872 echo "local: *; };" >> $output_objdir/$libname.ver~
4873 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5259 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5260 echo "local: *; };" >> $output_objdir/$libname.ver~
5261 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
48745262 fi
48755263
48765264 case $cc_basename in
5265 tcc*)
5266 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5267 ;;
48775268 xlf* | bgf* | bgxlf* | mpixlf*)
48785269 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
48795270 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
4880 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5271 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
48815272 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
4882 if test "x$supports_anon_versioning" = xyes; then
5273 if test yes = "$supports_anon_versioning"; then
48835274 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
4884 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
4885 echo "local: *; };" >> $output_objdir/$libname.ver~
4886 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5276 echo "local: *; };" >> $output_objdir/$libname.ver~
5277 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
48875278 fi
48885279 ;;
48895280 esac
48975288 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
48985289 wlarc=
48995290 else
4900 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4901 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5292 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
49025293 fi
49035294 ;;
49045295
49165307
49175308 _LT_EOF
49185309 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4919 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4920 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5310 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5311 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
49215312 else
49225313 _LT_TAGVAR(ld_shlibs, $1)=no
49235314 fi
49295320 _LT_TAGVAR(ld_shlibs, $1)=no
49305321 cat <<_LT_EOF 1>&2
49315322
4932 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5323 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
49335324 *** reliably create shared libraries on SCO systems. Therefore, libtool
49345325 *** is disabling shared libraries support. We urge you to upgrade GNU
49355326 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
49445335 # DT_RUNPATH tag from executables and libraries. But doing so
49455336 # requires that you compile everything twice, which is a pain.
49465337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4947 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4948 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4949 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5338 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5339 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5340 _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'
49505341 else
49515342 _LT_TAGVAR(ld_shlibs, $1)=no
49525343 fi
49635354
49645355 *)
49655356 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4966 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4967 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5358 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
49685359 else
49695360 _LT_TAGVAR(ld_shlibs, $1)=no
49705361 fi
49715362 ;;
49725363 esac
49735364
4974 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5365 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
49755366 runpath_var=
49765367 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
49775368 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
49875378 # Note: this linker hardcodes the directories in LIBPATH if there
49885379 # are no directories specified by -L.
49895380 _LT_TAGVAR(hardcode_minus_L, $1)=yes
4990 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5381 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
49915382 # Neither direct hardcoding nor static linking is supported with a
49925383 # broken collect2.
49935384 _LT_TAGVAR(hardcode_direct, $1)=unsupported
49955386 ;;
49965387
49975388 aix[[4-9]]*)
4998 if test "$host_cpu" = ia64; then
5389 if test ia64 = "$host_cpu"; then
49995390 # On IA64, the linker does run time linking by default, so we don't
50005391 # have to do anything special.
50015392 aix_use_runtimelinking=no
50025393 exp_sym_flag='-Bexport'
5003 no_entry_flag=""
5394 no_entry_flag=
50045395 else
50055396 # If we're using GNU nm, then we don't want the "-C" option.
5006 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5007 # Also, AIX nm treats weak defined symbols like other global
5008 # defined symbols, whereas GNU nm marks them as "W".
5397 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5398 # Without the "-l" option, or with the "-B" option, AIX nm treats
5399 # weak defined symbols like other global defined symbols, whereas
5400 # GNU nm marks them as "W".
5401 # While the 'weak' keyword is ignored in the Export File, we need
5402 # it in the Import File for the 'aix-soname' feature, so we have
5403 # to replace the "-B" option with "-P" for AIX nm.
50095404 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5010 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5405 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
50115406 else
5012 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5407 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
50135408 fi
50145409 aix_use_runtimelinking=no
50155410
50165411 # Test if we are trying to use run time linking or normal
50175412 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5018 # need to do runtime linking.
5413 # have runtime linking enabled, and use it for executables.
5414 # For shared libraries, we enable/disable runtime linking
5415 # depending on the kind of the shared library created -
5416 # when "with_aix_soname,aix_use_runtimelinking" is:
5417 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5418 # "aix,yes" lib.so shared, rtl:yes, for executables
5419 # lib.a static archive
5420 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5421 # lib.a(lib.so.V) shared, rtl:no, for executables
5422 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5423 # lib.a(lib.so.V) shared, rtl:no
5424 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5425 # lib.a static archive
50195426 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
50205427 for ld_flag in $LDFLAGS; do
5021 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5428 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
50225429 aix_use_runtimelinking=yes
50235430 break
50245431 fi
50255432 done
5433 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5434 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5435 # so we don't have lib.a shared libs to link our executables.
5436 # We have to force runtime linking in this case.
5437 aix_use_runtimelinking=yes
5438 LDFLAGS="$LDFLAGS -Wl,-brtl"
5439 fi
50265440 ;;
50275441 esac
50285442
50415455 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
50425456 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
50435457 _LT_TAGVAR(link_all_deplibs, $1)=yes
5044 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5045
5046 if test "$GCC" = yes; then
5458 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5459 case $with_aix_soname,$aix_use_runtimelinking in
5460 aix,*) ;; # traditional, no import file
5461 svr4,* | *,yes) # use import file
5462 # The Import File defines what to hardcode.
5463 _LT_TAGVAR(hardcode_direct, $1)=no
5464 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5465 ;;
5466 esac
5467
5468 if test yes = "$GCC"; then
50475469 case $host_os in aix4.[[012]]|aix4.[[012]].*)
50485470 # We only want to do this on AIX 4.2 and lower, the check
50495471 # below for broken collect2 doesn't work under 4.3+
5050 collect2name=`${CC} -print-prog-name=collect2`
5472 collect2name=`$CC -print-prog-name=collect2`
50515473 if test -f "$collect2name" &&
50525474 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
50535475 then
50665488 ;;
50675489 esac
50685490 shared_flag='-shared'
5069 if test "$aix_use_runtimelinking" = yes; then
5070 shared_flag="$shared_flag "'${wl}-G'
5491 if test yes = "$aix_use_runtimelinking"; then
5492 shared_flag="$shared_flag "'$wl-G'
50715493 fi
5072 _LT_TAGVAR(link_all_deplibs, $1)=no
5494 # Need to ensure runtime linking is disabled for the traditional
5495 # shared library, or the linker may eventually find shared libraries
5496 # /with/ Import File - we do not want to mix them.
5497 shared_flag_aix='-shared'
5498 shared_flag_svr4='-shared $wl-G'
50735499 else
50745500 # not using gcc
5075 if test "$host_cpu" = ia64; then
5501 if test ia64 = "$host_cpu"; then
50765502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
50775503 # chokes on -Wl,-G. The following line is correct:
50785504 shared_flag='-G'
50795505 else
5080 if test "$aix_use_runtimelinking" = yes; then
5081 shared_flag='${wl}-G'
5506 if test yes = "$aix_use_runtimelinking"; then
5507 shared_flag='$wl-G'
50825508 else
5083 shared_flag='${wl}-bM:SRE'
5509 shared_flag='$wl-bM:SRE'
50845510 fi
5511 shared_flag_aix='$wl-bM:SRE'
5512 shared_flag_svr4='$wl-G'
50855513 fi
50865514 fi
50875515
5088 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5516 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
50895517 # It seems that -bexpall does not export symbols beginning with
50905518 # underscore (_), so it is better to generate a list of symbols to export.
50915519 _LT_TAGVAR(always_export_symbols, $1)=yes
5092 if test "$aix_use_runtimelinking" = yes; then
5520 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
50935521 # Warning - without using the other runtime loading flags (-brtl),
50945522 # -berok will link without error, but may produce a broken library.
50955523 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
50965524 # Determine the default libpath from the value encoded in an
50975525 # empty executable.
50985526 _LT_SYS_MODULE_PATH_AIX([$1])
5099 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5100 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5527 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5528 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
51015529 else
5102 if test "$host_cpu" = ia64; then
5103 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5530 if test ia64 = "$host_cpu"; then
5531 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
51045532 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5105 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5533 _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"
51065534 else
51075535 # Determine the default libpath from the value encoded in an
51085536 # empty executable.
51095537 _LT_SYS_MODULE_PATH_AIX([$1])
5110 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5538 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
51115539 # Warning - without using the other run time loading flags,
51125540 # -berok will link without error, but may produce a broken library.
5113 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5114 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5115 if test "$with_gnu_ld" = yes; then
5541 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5542 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5543 if test yes = "$with_gnu_ld"; then
51165544 # We only use this code for GNU lds that support --whole-archive.
5117 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5545 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
51185546 else
51195547 # Exported symbols can be pulled into shared objects from archives
51205548 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
51215549 fi
51225550 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5123 # This is similar to how AIX traditionally builds its shared libraries.
5124 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5551 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5552 # -brtl affects multiple linker settings, -berok does not and is overridden later
5553 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5554 if test svr4 != "$with_aix_soname"; then
5555 # This is similar to how AIX traditionally builds its shared libraries.
5556 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5557 fi
5558 if test aix != "$with_aix_soname"; then
5559 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5560 else
5561 # used by -dlpreopen to get the symbols
5562 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5563 fi
5564 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
51255565 fi
51265566 fi
51275567 ;;
51305570 case $host_cpu in
51315571 powerpc)
51325572 # see comment about AmigaOS4 .so support
5133 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5573 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
51345574 _LT_TAGVAR(archive_expsym_cmds, $1)=''
51355575 ;;
51365576 m68k)
51605600 # Tell ltmain to make .lib files, not .a files.
51615601 libext=lib
51625602 # Tell ltmain to make .dll files, not .so files.
5163 shrext_cmds=".dll"
5603 shrext_cmds=.dll
51645604 # FIXME: Setting linknames here is a bad hack.
5165 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
5166 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5167 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
5168 else
5169 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
5170 fi~
5171 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5172 linknames='
5605 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5606 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5607 cp "$export_symbols" "$output_objdir/$soname.def";
5608 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5609 else
5610 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5611 fi~
5612 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5613 linknames='
51735614 # The linker will not automatically build a static lib if we build a DLL.
51745615 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
51755616 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
51785619 # Don't use ranlib
51795620 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
51805621 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5181 lt_tool_outputfile="@TOOL_OUTPUT@"~
5182 case $lt_outputfile in
5183 *.exe|*.EXE) ;;
5184 *)
5185 lt_outputfile="$lt_outputfile.exe"
5186 lt_tool_outputfile="$lt_tool_outputfile.exe"
5187 ;;
5188 esac~
5189 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
5190 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5191 $RM "$lt_outputfile.manifest";
5192 fi'
5622 lt_tool_outputfile="@TOOL_OUTPUT@"~
5623 case $lt_outputfile in
5624 *.exe|*.EXE) ;;
5625 *)
5626 lt_outputfile=$lt_outputfile.exe
5627 lt_tool_outputfile=$lt_tool_outputfile.exe
5628 ;;
5629 esac~
5630 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5631 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5632 $RM "$lt_outputfile.manifest";
5633 fi'
51935634 ;;
51945635 *)
51955636 # Assume MSVC wrapper
51985639 # Tell ltmain to make .lib files, not .a files.
51995640 libext=lib
52005641 # Tell ltmain to make .dll files, not .so files.
5201 shrext_cmds=".dll"
5642 shrext_cmds=.dll
52025643 # FIXME: Setting linknames here is a bad hack.
52035644 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
52045645 # The linker will automatically build a .lib file if we build a DLL.
52485689 ;;
52495690
52505691 hpux9*)
5251 if test "$GCC" = yes; then
5252 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5692 if test yes = "$GCC"; then
5693 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52535694 else
5254 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5695 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
52555696 fi
5256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52575698 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52585699 _LT_TAGVAR(hardcode_direct, $1)=yes
52595700
52605701 # hardcode_minus_L: Not really in the search PATH,
52615702 # but as the default location of the library.
52625703 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5263 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5704 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52645705 ;;
52655706
52665707 hpux10*)
5267 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5268 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5708 if test yes,no = "$GCC,$with_gnu_ld"; then
5709 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52695710 else
52705711 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
52715712 fi
5272 if test "$with_gnu_ld" = no; then
5273 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5713 if test no = "$with_gnu_ld"; then
5714 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
52745715 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
52755716 _LT_TAGVAR(hardcode_direct, $1)=yes
52765717 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5277 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5718 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
52785719 # hardcode_minus_L: Not really in the search PATH,
52795720 # but as the default location of the library.
52805721 _LT_TAGVAR(hardcode_minus_L, $1)=yes
52825723 ;;
52835724
52845725 hpux11*)
5285 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
5726 if test yes,no = "$GCC,$with_gnu_ld"; then
52865727 case $host_cpu in
52875728 hppa*64*)
5288 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5729 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
52895730 ;;
52905731 ia64*)
5291 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5732 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
52925733 ;;
52935734 *)
5294 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5735 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
52955736 ;;
52965737 esac
52975738 else
52985739 case $host_cpu in
52995740 hppa*64*)
5300 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5741 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
53015742 ;;
53025743 ia64*)
5303 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5744 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
53045745 ;;
53055746 *)
53065747 m4_if($1, [], [
53085749 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
53095750 _LT_LINKER_OPTION([if $CC understands -b],
53105751 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5311 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5752 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
53125753 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5313 [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5754 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
53145755 ;;
53155756 esac
53165757 fi
5317 if test "$with_gnu_ld" = no; then
5318 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5758 if test no = "$with_gnu_ld"; then
5759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
53195760 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53205761
53215762 case $host_cpu in
53265767 *)
53275768 _LT_TAGVAR(hardcode_direct, $1)=yes
53285769 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5329 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5770 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
53305771
53315772 # hardcode_minus_L: Not really in the search PATH,
53325773 # but as the default location of the library.
53375778 ;;
53385779
53395780 irix5* | irix6* | nonstopux*)
5340 if test "$GCC" = yes; then
5341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5781 if test yes = "$GCC"; then
5782 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
53425783 # Try to use the -exported_symbol ld option, if it does not
53435784 # work, assume that -exports_file does not work either and
53445785 # implicitly export all symbols.
53455786 # This should be the same for all languages, so no per-tag cache variable.
53465787 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
53475788 [lt_cv_irix_exported_symbol],
5348 [save_LDFLAGS="$LDFLAGS"
5349 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5789 [save_LDFLAGS=$LDFLAGS
5790 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
53505791 AC_LINK_IFELSE(
53515792 [AC_LANG_SOURCE(
53525793 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
53595800 end]])])],
53605801 [lt_cv_irix_exported_symbol=yes],
53615802 [lt_cv_irix_exported_symbol=no])
5362 LDFLAGS="$save_LDFLAGS"])
5363 if test "$lt_cv_irix_exported_symbol" = yes; then
5364 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5803 LDFLAGS=$save_LDFLAGS])
5804 if test yes = "$lt_cv_irix_exported_symbol"; then
5805 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
53655806 fi
5807 _LT_TAGVAR(link_all_deplibs, $1)=no
53665808 else
5367 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5368 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5809 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5810 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
53695811 fi
53705812 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5371 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5813 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53725814 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53735815 _LT_TAGVAR(inherit_rpath, $1)=yes
53745816 _LT_TAGVAR(link_all_deplibs, $1)=yes
5817 ;;
5818
5819 linux*)
5820 case $cc_basename in
5821 tcc*)
5822 # Fabrice Bellard et al's Tiny C Compiler
5823 _LT_TAGVAR(ld_shlibs, $1)=yes
5824 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5825 ;;
5826 esac
53755827 ;;
53765828
53775829 netbsd* | netbsdelf*-gnu)
53885840 newsos6)
53895841 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
53905842 _LT_TAGVAR(hardcode_direct, $1)=yes
5391 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5843 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
53925844 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
53935845 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
53945846 ;;
53965848 *nto* | *qnx*)
53975849 ;;
53985850
5399 openbsd*)
5851 openbsd* | bitrig*)
54005852 if test -f /usr/libexec/ld.so; then
54015853 _LT_TAGVAR(hardcode_direct, $1)=yes
54025854 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
54035855 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
54055857 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5406 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5407 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5408 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5858 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5859 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5860 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
54095861 else
5410 case $host_os in
5411 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5412 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5413 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5414 ;;
5415 *)
5416 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5417 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5418 ;;
5419 esac
5862 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5863 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
54205864 fi
54215865 else
54225866 _LT_TAGVAR(ld_shlibs, $1)=no
54275871 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
54285872 _LT_TAGVAR(hardcode_minus_L, $1)=yes
54295873 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5430 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
5431 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5874 shrext_cmds=.dll
5875 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5876 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5877 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5878 $ECHO EXPORTS >> $output_objdir/$libname.def~
5879 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5880 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5881 emximp -o $lib $output_objdir/$libname.def'
5882 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5883 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5884 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5885 $ECHO EXPORTS >> $output_objdir/$libname.def~
5886 prefix_cmds="$SED"~
5887 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5888 prefix_cmds="$prefix_cmds -e 1d";
5889 fi~
5890 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5891 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5892 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5893 emximp -o $lib $output_objdir/$libname.def'
5894 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5895 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
54325896 ;;
54335897
54345898 osf3*)
5435 if test "$GCC" = yes; then
5436 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5437 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5899 if test yes = "$GCC"; then
5900 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
54385902 else
54395903 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5440 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54415905 fi
54425906 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5443 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5907 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54445908 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
54455909 ;;
54465910
54475911 osf4* | osf5*) # as osf3* with the addition of -msym flag
5448 if test "$GCC" = yes; then
5449 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5450 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5912 if test yes = "$GCC"; then
5913 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5914 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5915 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
54525916 else
54535917 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5454 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
5918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
54555919 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5456 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5920 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
54575921
54585922 # Both c and cxx compiler support -rpath directly
54595923 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
54645928
54655929 solaris*)
54665930 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5467 if test "$GCC" = yes; then
5468 wlarc='${wl}'
5469 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5931 if test yes = "$GCC"; then
5932 wlarc='$wl'
5933 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
54705934 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5471 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5935 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54725936 else
54735937 case `$CC -V 2>&1` in
54745938 *"Compilers 5.0"*)
54755939 wlarc=''
5476 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5940 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
54775941 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5942 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
54795943 ;;
54805944 *)
5481 wlarc='${wl}'
5482 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5945 wlarc='$wl'
5946 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
54835947 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5484 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5948 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
54855949 ;;
54865950 esac
54875951 fi
54915955 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
54925956 *)
54935957 # The compiler driver will combine and reorder linker options,
5494 # but understands `-z linker_flag'. GCC discards it without `$wl',
5958 # but understands '-z linker_flag'. GCC discards it without '$wl',
54955959 # but is careful enough not to reorder.
54965960 # Supported since Solaris 2.6 (maybe 2.5.1?)
5497 if test "$GCC" = yes; then
5498 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5961 if test yes = "$GCC"; then
5962 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
54995963 else
55005964 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
55015965 fi
55055969 ;;
55065970
55075971 sunos4*)
5508 if test "x$host_vendor" = xsequent; then
5972 if test sequent = "$host_vendor"; then
55095973 # Use $CC to link under sequent, because it throws in some extra .o
55105974 # files that make .init and .fini sections work.
5511 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5975 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
55125976 else
55135977 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
55145978 fi
55576021 ;;
55586022
55596023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5560 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6024 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
55616025 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55626026 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
55636027 runpath_var='LD_RUN_PATH'
55646028
5565 if test "$GCC" = yes; then
5566 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5567 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6029 if test yes = "$GCC"; then
6030 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6031 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55686032 else
5569 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5570 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6033 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6034 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55716035 fi
55726036 ;;
55736037
55746038 sysv5* | sco3.2v5* | sco5v6*)
5575 # Note: We can NOT use -z defs as we might desire, because we do not
6039 # Note: We CANNOT use -z defs as we might desire, because we do not
55766040 # link with -lc, and that would cause any symbols used from libc to
55776041 # always be unresolved, which means just about no library would
55786042 # ever link correctly. If we're not using GNU ld we use -z text
55796043 # though, which does catch some bad symbols but isn't as heavy-handed
55806044 # as -z defs.
5581 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5582 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6045 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6046 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
55836047 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
55846048 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6049 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
55866050 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
55876051 _LT_TAGVAR(link_all_deplibs, $1)=yes
5588 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6052 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
55896053 runpath_var='LD_RUN_PATH'
55906054
5591 if test "$GCC" = yes; then
5592 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5593 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6055 if test yes = "$GCC"; then
6056 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6057 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55946058 else
5595 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5596 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6059 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6060 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
55976061 fi
55986062 ;;
55996063
56086072 ;;
56096073 esac
56106074
5611 if test x$host_vendor = xsni; then
6075 if test sni = "$host_vendor"; then
56126076 case $host in
56136077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5614 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6078 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
56156079 ;;
56166080 esac
56176081 fi
56186082 fi
56196083 ])
56206084 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5621 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6085 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
56226086
56236087 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
56246088
56356099 # Assume -lc should be added
56366100 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
56376101
5638 if test "$enable_shared" = yes && test "$GCC" = yes; then
6102 if test yes,yes = "$GCC,$enable_shared"; then
56396103 case $_LT_TAGVAR(archive_cmds, $1) in
56406104 *'~'*)
56416105 # FIXME: we may have to deal with multi-command sequences.
57156179 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
57166180 [Whether we need a single "-rpath" flag with a separated argument])
57176181 _LT_TAGDECL([], [hardcode_direct], [0],
5718 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6182 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57196183 DIR into the resulting binary])
57206184 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5721 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6185 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
57226186 DIR into the resulting binary and the resulting library dependency is
5723 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
6187 "absolute", i.e impossible to change by setting $shlibpath_var if the
57246188 library is relocated])
57256189 _LT_TAGDECL([], [hardcode_minus_L], [0],
57266190 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
57616225 # ------------------------
57626226 # Ensure that the configuration variables for a C compiler are suitably
57636227 # defined. These variables are subsequently used by _LT_CONFIG to write
5764 # the compiler configuration to `libtool'.
6228 # the compiler configuration to 'libtool'.
57656229 m4_defun([_LT_LANG_C_CONFIG],
57666230 [m4_require([_LT_DECL_EGREP])dnl
5767 lt_save_CC="$CC"
6231 lt_save_CC=$CC
57686232 AC_LANG_PUSH(C)
57696233
57706234 # Source file extension for C test sources.
58006264 LT_SYS_DLOPEN_SELF
58016265 _LT_CMD_STRIPLIB
58026266
5803 # Report which library types will actually be built
6267 # Report what library types will actually be built
58046268 AC_MSG_CHECKING([if libtool supports shared libraries])
58056269 AC_MSG_RESULT([$can_build_shared])
58066270
58076271 AC_MSG_CHECKING([whether to build shared libraries])
5808 test "$can_build_shared" = "no" && enable_shared=no
6272 test no = "$can_build_shared" && enable_shared=no
58096273
58106274 # On AIX, shared libraries and static libraries use the same namespace, and
58116275 # are all built from PIC.
58126276 case $host_os in
58136277 aix3*)
5814 test "$enable_shared" = yes && enable_static=no
6278 test yes = "$enable_shared" && enable_static=no
58156279 if test -n "$RANLIB"; then
58166280 archive_cmds="$archive_cmds~\$RANLIB \$lib"
58176281 postinstall_cmds='$RANLIB $lib'
58196283 ;;
58206284
58216285 aix[[4-9]]*)
5822 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5823 test "$enable_shared" = yes && enable_static=no
6286 if test ia64 != "$host_cpu"; then
6287 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6288 yes,aix,yes) ;; # shared object as lib.so file only
6289 yes,svr4,*) ;; # shared object as lib.so archive member only
6290 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6291 esac
58246292 fi
58256293 ;;
58266294 esac
58286296
58296297 AC_MSG_CHECKING([whether to build static libraries])
58306298 # Make sure either enable_shared or enable_static is yes.
5831 test "$enable_shared" = yes || enable_static=yes
6299 test yes = "$enable_shared" || enable_static=yes
58326300 AC_MSG_RESULT([$enable_static])
58336301
58346302 _LT_CONFIG($1)
58356303 fi
58366304 AC_LANG_POP
5837 CC="$lt_save_CC"
6305 CC=$lt_save_CC
58386306 ])# _LT_LANG_C_CONFIG
58396307
58406308
58426310 # --------------------------
58436311 # Ensure that the configuration variables for a C++ compiler are suitably
58446312 # defined. These variables are subsequently used by _LT_CONFIG to write
5845 # the compiler configuration to `libtool'.
6313 # the compiler configuration to 'libtool'.
58466314 m4_defun([_LT_LANG_CXX_CONFIG],
58476315 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
58486316 m4_require([_LT_DECL_EGREP])dnl
58496317 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5850 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5851 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5852 (test "X$CXX" != "Xg++"))) ; then
6318 if test -n "$CXX" && ( test no != "$CXX" &&
6319 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6320 (test g++ != "$CXX"))); then
58536321 AC_PROG_CXXCPP
58546322 else
58556323 _lt_caught_CXX_error=yes
58916359 # the CXX compiler isn't working. Some variables (like enable_shared)
58926360 # are currently assumed to apply to all compilers on this platform,
58936361 # and will be corrupted by setting them based on a non-working compiler.
5894 if test "$_lt_caught_CXX_error" != yes; then
6362 if test yes != "$_lt_caught_CXX_error"; then
58956363 # Code to be used in simple compile tests
58966364 lt_simple_compile_test_code="int some_variable = 0;"
58976365
59336401 if test -n "$compiler"; then
59346402 # We don't want -fno-exception when compiling C++ code, so set the
59356403 # no_builtin_flag separately
5936 if test "$GXX" = yes; then
6404 if test yes = "$GXX"; then
59376405 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
59386406 else
59396407 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
59406408 fi
59416409
5942 if test "$GXX" = yes; then
6410 if test yes = "$GXX"; then
59436411 # Set up default GNU C++ configuration
59446412
59456413 LT_PATH_LD
59466414
59476415 # Check if GNU C++ uses GNU ld as the underlying linker, since the
59486416 # archiving commands below assume that GNU ld is being used.
5949 if test "$with_gnu_ld" = yes; then
5950 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5951 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5952
5953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5954 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6417 if test yes = "$with_gnu_ld"; then
6418 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6419 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6420
6421 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6422 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
59556423
59566424 # If archive_cmds runs LD, not CC, wlarc should be empty
59576425 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
59586426 # investigate it a little bit more. (MM)
5959 wlarc='${wl}'
6427 wlarc='$wl'
59606428
59616429 # ancient GNU ld didn't support --whole-archive et. al.
59626430 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
59636431 $GREP 'no-whole-archive' > /dev/null; then
5964 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6432 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
59656433 else
59666434 _LT_TAGVAR(whole_archive_flag_spec, $1)=
59676435 fi
59976465 _LT_TAGVAR(ld_shlibs, $1)=no
59986466 ;;
59996467 aix[[4-9]]*)
6000 if test "$host_cpu" = ia64; then
6468 if test ia64 = "$host_cpu"; then
60016469 # On IA64, the linker does run time linking by default, so we don't
60026470 # have to do anything special.
60036471 aix_use_runtimelinking=no
60046472 exp_sym_flag='-Bexport'
6005 no_entry_flag=""
6473 no_entry_flag=
60066474 else
60076475 aix_use_runtimelinking=no
60086476
60096477 # Test if we are trying to use run time linking or normal
60106478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6011 # need to do runtime linking.
6479 # have runtime linking enabled, and use it for executables.
6480 # For shared libraries, we enable/disable runtime linking
6481 # depending on the kind of the shared library created -
6482 # when "with_aix_soname,aix_use_runtimelinking" is:
6483 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6484 # "aix,yes" lib.so shared, rtl:yes, for executables
6485 # lib.a static archive
6486 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6487 # lib.a(lib.so.V) shared, rtl:no, for executables
6488 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6489 # lib.a(lib.so.V) shared, rtl:no
6490 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6491 # lib.a static archive
60126492 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
60136493 for ld_flag in $LDFLAGS; do
60146494 case $ld_flag in
60186498 ;;
60196499 esac
60206500 done
6501 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6502 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6503 # so we don't have lib.a shared libs to link our executables.
6504 # We have to force runtime linking in this case.
6505 aix_use_runtimelinking=yes
6506 LDFLAGS="$LDFLAGS -Wl,-brtl"
6507 fi
60216508 ;;
60226509 esac
60236510
60366523 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
60376524 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
60386525 _LT_TAGVAR(link_all_deplibs, $1)=yes
6039 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6040
6041 if test "$GXX" = yes; then
6526 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6527 case $with_aix_soname,$aix_use_runtimelinking in
6528 aix,*) ;; # no import file
6529 svr4,* | *,yes) # use import file
6530 # The Import File defines what to hardcode.
6531 _LT_TAGVAR(hardcode_direct, $1)=no
6532 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6533 ;;
6534 esac
6535
6536 if test yes = "$GXX"; then
60426537 case $host_os in aix4.[[012]]|aix4.[[012]].*)
60436538 # We only want to do this on AIX 4.2 and lower, the check
60446539 # below for broken collect2 doesn't work under 4.3+
6045 collect2name=`${CC} -print-prog-name=collect2`
6540 collect2name=`$CC -print-prog-name=collect2`
60466541 if test -f "$collect2name" &&
60476542 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
60486543 then
60606555 fi
60616556 esac
60626557 shared_flag='-shared'
6063 if test "$aix_use_runtimelinking" = yes; then
6064 shared_flag="$shared_flag "'${wl}-G'
6558 if test yes = "$aix_use_runtimelinking"; then
6559 shared_flag=$shared_flag' $wl-G'
60656560 fi
6561 # Need to ensure runtime linking is disabled for the traditional
6562 # shared library, or the linker may eventually find shared libraries
6563 # /with/ Import File - we do not want to mix them.
6564 shared_flag_aix='-shared'
6565 shared_flag_svr4='-shared $wl-G'
60666566 else
60676567 # not using gcc
6068 if test "$host_cpu" = ia64; then
6568 if test ia64 = "$host_cpu"; then
60696569 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
60706570 # chokes on -Wl,-G. The following line is correct:
60716571 shared_flag='-G'
60726572 else
6073 if test "$aix_use_runtimelinking" = yes; then
6074 shared_flag='${wl}-G'
6573 if test yes = "$aix_use_runtimelinking"; then
6574 shared_flag='$wl-G'
60756575 else
6076 shared_flag='${wl}-bM:SRE'
6576 shared_flag='$wl-bM:SRE'
60776577 fi
6578 shared_flag_aix='$wl-bM:SRE'
6579 shared_flag_svr4='$wl-G'
60786580 fi
60796581 fi
60806582
6081 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6583 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
60826584 # It seems that -bexpall does not export symbols beginning with
60836585 # underscore (_), so it is better to generate a list of symbols to
60846586 # export.
60856587 _LT_TAGVAR(always_export_symbols, $1)=yes
6086 if test "$aix_use_runtimelinking" = yes; then
6588 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
60876589 # Warning - without using the other runtime loading flags (-brtl),
60886590 # -berok will link without error, but may produce a broken library.
6089 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6591 # The "-G" linker flag allows undefined symbols.
6592 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
60906593 # Determine the default libpath from the value encoded in an empty
60916594 # executable.
60926595 _LT_SYS_MODULE_PATH_AIX([$1])
6093 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6094
6095 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6596 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6597
6598 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
60966599 else
6097 if test "$host_cpu" = ia64; then
6098 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6600 if test ia64 = "$host_cpu"; then
6601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
60996602 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6100 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6603 _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"
61016604 else
61026605 # Determine the default libpath from the value encoded in an
61036606 # empty executable.
61046607 _LT_SYS_MODULE_PATH_AIX([$1])
6105 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6608 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
61066609 # Warning - without using the other run time loading flags,
61076610 # -berok will link without error, but may produce a broken library.
6108 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6109 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6110 if test "$with_gnu_ld" = yes; then
6611 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6612 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6613 if test yes = "$with_gnu_ld"; then
61116614 # We only use this code for GNU lds that support --whole-archive.
6112 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6615 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
61136616 else
61146617 # Exported symbols can be pulled into shared objects from archives
61156618 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
61166619 fi
61176620 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6118 # This is similar to how AIX traditionally builds its shared
6119 # libraries.
6120 _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6621 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6622 # -brtl affects multiple linker settings, -berok does not and is overridden later
6623 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6624 if test svr4 != "$with_aix_soname"; then
6625 # This is similar to how AIX traditionally builds its shared
6626 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6627 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6628 fi
6629 if test aix != "$with_aix_soname"; then
6630 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6631 else
6632 # used by -dlpreopen to get the symbols
6633 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6634 fi
6635 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
61216636 fi
61226637 fi
61236638 ;;
61276642 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61286643 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
61296644 # support --undefined. This deserves some investigation. FIXME
6130 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6645 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
61316646 else
61326647 _LT_TAGVAR(ld_shlibs, $1)=no
61336648 fi
61556670 # Tell ltmain to make .lib files, not .a files.
61566671 libext=lib
61576672 # Tell ltmain to make .dll files, not .so files.
6158 shrext_cmds=".dll"
6673 shrext_cmds=.dll
61596674 # FIXME: Setting linknames here is a bad hack.
6160 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
6161 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6162 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
6163 else
6164 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
6165 fi~
6166 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6167 linknames='
6675 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6676 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6677 cp "$export_symbols" "$output_objdir/$soname.def";
6678 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6679 else
6680 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6681 fi~
6682 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6683 linknames='
61686684 # The linker will not automatically build a static lib if we build a DLL.
61696685 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
61706686 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61716687 # Don't use ranlib
61726688 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
61736689 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6174 lt_tool_outputfile="@TOOL_OUTPUT@"~
6175 case $lt_outputfile in
6176 *.exe|*.EXE) ;;
6177 *)
6178 lt_outputfile="$lt_outputfile.exe"
6179 lt_tool_outputfile="$lt_tool_outputfile.exe"
6180 ;;
6181 esac~
6182 func_to_tool_file "$lt_outputfile"~
6183 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
6184 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6185 $RM "$lt_outputfile.manifest";
6186 fi'
6690 lt_tool_outputfile="@TOOL_OUTPUT@"~
6691 case $lt_outputfile in
6692 *.exe|*.EXE) ;;
6693 *)
6694 lt_outputfile=$lt_outputfile.exe
6695 lt_tool_outputfile=$lt_tool_outputfile.exe
6696 ;;
6697 esac~
6698 func_to_tool_file "$lt_outputfile"~
6699 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6700 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6701 $RM "$lt_outputfile.manifest";
6702 fi'
61876703 ;;
61886704 *)
61896705 # g++
61906706 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
61916707 # as there is no search path for DLLs.
61926708 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6193 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
6709 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
61946710 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
61956711 _LT_TAGVAR(always_export_symbols, $1)=no
61966712 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
61976713
61986714 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6199 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6200 # If the export-symbols file already is a .def file (1st line
6201 # is EXPORTS), use it as is; otherwise, prepend...
6202 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6203 cp $export_symbols $output_objdir/$soname.def;
6204 else
6205 echo EXPORTS > $output_objdir/$soname.def;
6206 cat $export_symbols >> $output_objdir/$soname.def;
6207 fi~
6208 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6715 _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'
6716 # If the export-symbols file already is a .def file, use it as
6717 # is; otherwise, prepend EXPORTS...
6718 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6719 cp $export_symbols $output_objdir/$soname.def;
6720 else
6721 echo EXPORTS > $output_objdir/$soname.def;
6722 cat $export_symbols >> $output_objdir/$soname.def;
6723 fi~
6724 $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'
62096725 else
62106726 _LT_TAGVAR(ld_shlibs, $1)=no
62116727 fi
62146730 ;;
62156731 darwin* | rhapsody*)
62166732 _LT_DARWIN_LINKER_FEATURES($1)
6733 ;;
6734
6735 os2*)
6736 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6737 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6738 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6739 shrext_cmds=.dll
6740 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6741 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6742 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6743 $ECHO EXPORTS >> $output_objdir/$libname.def~
6744 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6745 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6746 emximp -o $lib $output_objdir/$libname.def'
6747 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6748 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6749 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6750 $ECHO EXPORTS >> $output_objdir/$libname.def~
6751 prefix_cmds="$SED"~
6752 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6753 prefix_cmds="$prefix_cmds -e 1d";
6754 fi~
6755 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6756 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6757 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6758 emximp -o $lib $output_objdir/$libname.def'
6759 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6760 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
62176761 ;;
62186762
62196763 dgux*)
62506794 _LT_TAGVAR(ld_shlibs, $1)=yes
62516795 ;;
62526796
6253 gnu*)
6254 ;;
6255
62566797 haiku*)
6257 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
62586799 _LT_TAGVAR(link_all_deplibs, $1)=yes
62596800 ;;
62606801
62616802 hpux9*)
6262 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6803 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
62636804 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6264 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6805 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
62656806 _LT_TAGVAR(hardcode_direct, $1)=yes
62666807 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
62676808 # but as the default
62736814 _LT_TAGVAR(ld_shlibs, $1)=no
62746815 ;;
62756816 aCC*)
6276 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6817 _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62776818 # Commands to make compiler produce verbose output that lists
62786819 # what "hidden" libraries, object files and flags are used when
62796820 # linking a shared library.
62826823 # explicitly linking system object files so we need to strip them
62836824 # from the output so that they don't get included in the library
62846825 # dependencies.
6285 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6826 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
62866827 ;;
62876828 *)
6288 if test "$GXX" = yes; then
6289 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
6829 if test yes = "$GXX"; then
6830 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
62906831 else
62916832 # FIXME: insert proper C++ library support
62926833 _LT_TAGVAR(ld_shlibs, $1)=no
62966837 ;;
62976838
62986839 hpux10*|hpux11*)
6299 if test $with_gnu_ld = no; then
6300 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6840 if test no = "$with_gnu_ld"; then
6841 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
63016842 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
63026843
63036844 case $host_cpu in
63046845 hppa*64*|ia64*)
63056846 ;;
63066847 *)
6307 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6848 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63086849 ;;
63096850 esac
63106851 fi
63306871 aCC*)
63316872 case $host_cpu in
63326873 hppa*64*)
6333 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6874 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63346875 ;;
63356876 ia64*)
6336 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6877 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63376878 ;;
63386879 *)
6339 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6880 _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'
63406881 ;;
63416882 esac
63426883 # Commands to make compiler produce verbose output that lists
63476888 # explicitly linking system object files so we need to strip them
63486889 # from the output so that they don't get included in the library
63496890 # dependencies.
6350 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6891 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
63516892 ;;
63526893 *)
6353 if test "$GXX" = yes; then
6354 if test $with_gnu_ld = no; then
6894 if test yes = "$GXX"; then
6895 if test no = "$with_gnu_ld"; then
63556896 case $host_cpu in
63566897 hppa*64*)
6357 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6898 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63586899 ;;
63596900 ia64*)
6360 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63616902 ;;
63626903 *)
6363 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6904 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
63646905 ;;
63656906 esac
63666907 fi
63756916 interix[[3-9]]*)
63766917 _LT_TAGVAR(hardcode_direct, $1)=no
63776918 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6378 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6379 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6919 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6920 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
63806921 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
63816922 # Instead, shared libraries are loaded at an image base (0x10000000 by
63826923 # default) and relocated if they conflict, which is a slow very memory
63836924 # consuming and fragmenting process. To avoid this, we pick a random,
63846925 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
63856926 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6386 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6387 _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6927 _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'
6928 _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'
63886929 ;;
63896930 irix5* | irix6*)
63906931 case $cc_basename in
63916932 CC*)
63926933 # SGI C++
6393 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
63946935
63956936 # Archives containing C++ object files must be created using
63966937 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
63996940 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
64006941 ;;
64016942 *)
6402 if test "$GXX" = yes; then
6403 if test "$with_gnu_ld" = no; then
6404 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6943 if test yes = "$GXX"; then
6944 if test no = "$with_gnu_ld"; then
6945 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
64056946 else
6406 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
6947 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
64076948 fi
64086949 fi
64096950 _LT_TAGVAR(link_all_deplibs, $1)=yes
64106951 ;;
64116952 esac
6412 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6953 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
64136954 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
64146955 _LT_TAGVAR(inherit_rpath, $1)=yes
64156956 ;;
64166957
6417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6958 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
64186959 case $cc_basename in
64196960 KCC*)
64206961 # Kuck and Associates, Inc. (KAI) C++ Compiler
64226963 # KCC will only create a shared library if the output file
64236964 # ends with ".so" (or ".sl" for HP-UX), so rename the library
64246965 # to its proper name (with version) after linking.
6425 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6426 _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
6966 _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'
6967 _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'
64276968 # Commands to make compiler produce verbose output that lists
64286969 # what "hidden" libraries, object files and flags are used when
64296970 # linking a shared library.
64326973 # explicitly linking system object files so we need to strip them
64336974 # from the output so that they don't get included in the library
64346975 # dependencies.
6435 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6436
6437 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6438 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6976 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6977
6978 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6979 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
64396980
64406981 # Archives containing C++ object files must be created using
64416982 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
64496990 # earlier do not add the objects themselves.
64506991 case `$CC -V 2>&1` in
64516992 *"Version 7."*)
6452 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6453 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6993 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6994 _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'
64546995 ;;
64556996 *) # Version 8.0 or newer
64566997 tmp_idyn=
64576998 case $host_cpu in
64586999 ia64*) tmp_idyn=' -i_dynamic';;
64597000 esac
6460 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6461 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7001 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7002 _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'
64627003 ;;
64637004 esac
64647005 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6465 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6466 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6467 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
7006 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7007 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7008 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
64687009 ;;
64697010 pgCC* | pgcpp*)
64707011 # Portland Group C++ compiler
64717012 case `$CC -V` in
64727013 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
64737014 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6474 rm -rf $tpldir~
6475 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6476 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7015 rm -rf $tpldir~
7016 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7017 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
64777018 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6478 rm -rf $tpldir~
6479 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6480 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
6481 $RANLIB $oldlib'
7019 rm -rf $tpldir~
7020 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7021 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7022 $RANLIB $oldlib'
64827023 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6483 rm -rf $tpldir~
6484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7024 rm -rf $tpldir~
7025 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7026 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
64867027 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6487 rm -rf $tpldir~
6488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7028 rm -rf $tpldir~
7029 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7030 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
64907031 ;;
64917032 *) # Version 6 and above use weak symbols
6492 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6493 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7033 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7034 _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'
64947035 ;;
64957036 esac
64967037
6497 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6498 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6499 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7038 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7039 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7040 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
65007041 ;;
65017042 cxx*)
65027043 # Compaq C++
6503 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6504 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
7044 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7045 _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'
65057046
65067047 runpath_var=LD_RUN_PATH
65077048 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
65157056 # explicitly linking system object files so we need to strip them
65167057 # from the output so that they don't get included in the library
65177058 # dependencies.
6518 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
7059 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
65197060 ;;
65207061 xl* | mpixl* | bgxl*)
65217062 # IBM XL 8.0 on PPC, with GNU ld
6522 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6523 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6524 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6525 if test "x$supports_anon_versioning" = xyes; then
7063 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7064 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7065 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7066 if test yes = "$supports_anon_versioning"; then
65267067 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6528 echo "local: *; };" >> $output_objdir/$libname.ver~
6529 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7069 echo "local: *; };" >> $output_objdir/$libname.ver~
7070 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
65307071 fi
65317072 ;;
65327073 *)
65347075 *Sun\ C*)
65357076 # Sun C++ 5.9
65367077 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6537 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6538 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
7078 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7079 _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'
65397080 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6540 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
7081 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
65417082 _LT_TAGVAR(compiler_needs_object, $1)=yes
65427083
65437084 # Not sure whether something based on
65957136 _LT_TAGVAR(ld_shlibs, $1)=yes
65967137 ;;
65977138
6598 openbsd2*)
6599 # C++ shared libraries are fairly broken
6600 _LT_TAGVAR(ld_shlibs, $1)=no
6601 ;;
6602
6603 openbsd*)
7139 openbsd* | bitrig*)
66047140 if test -f /usr/libexec/ld.so; then
66057141 _LT_TAGVAR(hardcode_direct, $1)=yes
66067142 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
66077143 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
66087144 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6609 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6611 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
6612 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6613 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7145 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7147 _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'
7148 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7149 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
66147150 fi
66157151 output_verbose_link_cmd=func_echo_all
66167152 else
66267162 # KCC will only create a shared library if the output file
66277163 # ends with ".so" (or ".sl" for HP-UX), so rename the library
66287164 # to its proper name (with version) after linking.
6629 _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
6630
6631 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7165 _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'
7166
7167 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
66327168 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66337169
66347170 # Archives containing C++ object files must be created using
66467182 cxx*)
66477183 case $host in
66487184 osf3*)
6649 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6650 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6651 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7185 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7186 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7187 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66527188 ;;
66537189 *)
66547190 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6655 _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
7191 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
66567192 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6657 echo "-hidden">> $lib.exp~
6658 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
6659 $RM $lib.exp'
7193 echo "-hidden">> $lib.exp~
7194 $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~
7195 $RM $lib.exp'
66607196 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
66617197 ;;
66627198 esac
66717207 # explicitly linking system object files so we need to strip them
66727208 # from the output so that they don't get included in the library
66737209 # dependencies.
6674 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
7210 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
66757211 ;;
66767212 *)
6677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6678 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7213 if test yes,no = "$GXX,$with_gnu_ld"; then
7214 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
66797215 case $host in
66807216 osf3*)
6681 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7217 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
66827218 ;;
66837219 *)
6684 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7220 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
66857221 ;;
66867222 esac
66877223
6688 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7224 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
66897225 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
66907226
66917227 # Commands to make compiler produce verbose output that lists
67317267 # Sun C++ 4.2, 5.x and Centerline C++
67327268 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
67337269 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6734 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7270 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
67357271 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6736 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7272 $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'
67377273
67387274 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
67397275 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
67417277 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67427278 *)
67437279 # The compiler driver will combine and reorder linker options,
6744 # but understands `-z linker_flag'.
7280 # but understands '-z linker_flag'.
67457281 # Supported since Solaris 2.6 (maybe 2.5.1?)
67467282 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
67477283 ;;
67587294 ;;
67597295 gcx*)
67607296 # Green Hills C++ Compiler
6761 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7297 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67627298
67637299 # The C++ compiler must be used to create the archive.
67647300 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
67657301 ;;
67667302 *)
67677303 # GNU C++ compiler with Solaris linker
6768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6769 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7304 if test yes,no = "$GXX,$with_gnu_ld"; then
7305 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
67707306 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6771 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7307 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67727308 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6773 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7309 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67747310
67757311 # Commands to make compiler produce verbose output that lists
67767312 # what "hidden" libraries, object files and flags are used when
67777313 # linking a shared library.
67787314 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67797315 else
6780 # g++ 2.7 appears to require `-G' NOT `-shared' on this
7316 # g++ 2.7 appears to require '-G' NOT '-shared' on this
67817317 # platform.
6782 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7318 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
67837319 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6784 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7320 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
67857321
67867322 # Commands to make compiler produce verbose output that lists
67877323 # what "hidden" libraries, object files and flags are used when
67897325 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
67907326 fi
67917327
6792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7328 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
67937329 case $host_os in
67947330 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
67957331 *)
6796 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7332 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
67977333 ;;
67987334 esac
67997335 fi
68027338 ;;
68037339
68047340 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6805 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7341 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
68067342 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68077343 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
68087344 runpath_var='LD_RUN_PATH'
68097345
68107346 case $cc_basename in
68117347 CC*)
6812 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6813 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7348 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7349 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68147350 ;;
68157351 *)
6816 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6817 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7352 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7353 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68187354 ;;
68197355 esac
68207356 ;;
68217357
68227358 sysv5* | sco3.2v5* | sco5v6*)
6823 # Note: We can NOT use -z defs as we might desire, because we do not
7359 # Note: We CANNOT use -z defs as we might desire, because we do not
68247360 # link with -lc, and that would cause any symbols used from libc to
68257361 # always be unresolved, which means just about no library would
68267362 # ever link correctly. If we're not using GNU ld we use -z text
68277363 # though, which does catch some bad symbols but isn't as heavy-handed
68287364 # as -z defs.
6829 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6830 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7365 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7366 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
68317367 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
68327368 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6833 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7369 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
68347370 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
68357371 _LT_TAGVAR(link_all_deplibs, $1)=yes
6836 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7372 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
68377373 runpath_var='LD_RUN_PATH'
68387374
68397375 case $cc_basename in
68407376 CC*)
6841 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6842 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7377 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7378 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68437379 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
6844 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7380 '"$_LT_TAGVAR(old_archive_cmds, $1)"
68457381 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
6846 '"$_LT_TAGVAR(reload_cmds, $1)"
7382 '"$_LT_TAGVAR(reload_cmds, $1)"
68477383 ;;
68487384 *)
6849 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6850 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7386 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
68517387 ;;
68527388 esac
68537389 ;;
68787414 esac
68797415
68807416 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6881 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6882
6883 _LT_TAGVAR(GCC, $1)="$GXX"
6884 _LT_TAGVAR(LD, $1)="$LD"
7417 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7418
7419 _LT_TAGVAR(GCC, $1)=$GXX
7420 _LT_TAGVAR(LD, $1)=$LD
68857421
68867422 ## CAVEAT EMPTOR:
68877423 ## There is no encapsulation within the following macros, do not change
69087444 lt_cv_path_LD=$lt_save_path_LD
69097445 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
69107446 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6911 fi # test "$_lt_caught_CXX_error" != yes
7447 fi # test yes != "$_lt_caught_CXX_error"
69127448
69137449 AC_LANG_POP
69147450 ])# _LT_LANG_CXX_CONFIG
69307466 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
69317467 func_stripname_cnf ()
69327468 {
6933 case ${2} in
6934 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
6935 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
7469 case @S|@2 in
7470 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7471 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
69367472 esac
69377473 } # func_stripname_cnf
69387474 ])# _LT_FUNC_STRIPNAME_CNF
7475
69397476
69407477 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
69417478 # ---------------------------------
70207557 pre_test_object_deps_done=no
70217558
70227559 for p in `eval "$output_verbose_link_cmd"`; do
7023 case ${prev}${p} in
7560 case $prev$p in
70247561
70257562 -L* | -R* | -l*)
70267563 # Some compilers place space between "-{L,R}" and the path.
70277564 # Remove the space.
7028 if test $p = "-L" ||
7029 test $p = "-R"; then
7565 if test x-L = "$p" ||
7566 test x-R = "$p"; then
70307567 prev=$p
70317568 continue
70327569 fi
70427579 case $p in
70437580 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
70447581 esac
7045 if test "$pre_test_object_deps_done" = no; then
7046 case ${prev} in
7582 if test no = "$pre_test_object_deps_done"; then
7583 case $prev in
70477584 -L | -R)
70487585 # Internal compiler library paths should come after those
70497586 # provided the user. The postdeps already come after the
70507587 # user supplied libs so there is no need to process them.
70517588 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7052 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7589 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
70537590 else
7054 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7591 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
70557592 fi
70567593 ;;
70577594 # The "-l" case would never come before the object being
70597596 esac
70607597 else
70617598 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7062 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7599 _LT_TAGVAR(postdeps, $1)=$prev$p
70637600 else
7064 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7601 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
70657602 fi
70667603 fi
70677604 prev=
70767613 continue
70777614 fi
70787615
7079 if test "$pre_test_object_deps_done" = no; then
7616 if test no = "$pre_test_object_deps_done"; then
70807617 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7081 _LT_TAGVAR(predep_objects, $1)="$p"
7618 _LT_TAGVAR(predep_objects, $1)=$p
70827619 else
70837620 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
70847621 fi
70857622 else
70867623 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7087 _LT_TAGVAR(postdep_objects, $1)="$p"
7624 _LT_TAGVAR(postdep_objects, $1)=$p
70887625 else
70897626 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
70907627 fi
71157652 _LT_TAGVAR(postdep_objects,$1)=
71167653 _LT_TAGVAR(postdeps,$1)=
71177654 ;;
7118
7119 linux*)
7120 case `$CC -V 2>&1 | sed 5q` in
7121 *Sun\ C*)
7122 # Sun C++ 5.9
7123
7124 # The more standards-conforming stlport4 library is
7125 # incompatible with the Cstd library. Avoid specifying
7126 # it if it's in CXXFLAGS. Ignore libCrun as
7127 # -library=stlport4 depends on it.
7128 case " $CXX $CXXFLAGS " in
7129 *" -library=stlport4 "*)
7130 solaris_use_stlport4=yes
7131 ;;
7132 esac
7133
7134 if test "$solaris_use_stlport4" != yes; then
7135 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7136 fi
7137 ;;
7138 esac
7139 ;;
7140
7141 solaris*)
7142 case $cc_basename in
7143 CC* | sunCC*)
7144 # The more standards-conforming stlport4 library is
7145 # incompatible with the Cstd library. Avoid specifying
7146 # it if it's in CXXFLAGS. Ignore libCrun as
7147 # -library=stlport4 depends on it.
7148 case " $CXX $CXXFLAGS " in
7149 *" -library=stlport4 "*)
7150 solaris_use_stlport4=yes
7151 ;;
7152 esac
7153
7154 # Adding this requires a known-good setup of shared libraries for
7155 # Sun compiler versions before 5.6, else PIC objects from an old
7156 # archive will be linked into the output, leading to subtle bugs.
7157 if test "$solaris_use_stlport4" != yes; then
7158 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7159 fi
7160 ;;
7161 esac
7162 ;;
71637655 esac
71647656 ])
71657657
71687660 esac
71697661 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
71707662 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7171 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7663 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
71727664 fi
71737665 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
71747666 [The directories searched by this compiler when creating a shared library])
71887680 # --------------------------
71897681 # Ensure that the configuration variables for a Fortran 77 compiler are
71907682 # suitably defined. These variables are subsequently used by _LT_CONFIG
7191 # to write the compiler configuration to `libtool'.
7683 # to write the compiler configuration to 'libtool'.
71927684 m4_defun([_LT_LANG_F77_CONFIG],
71937685 [AC_LANG_PUSH(Fortran 77)
7194 if test -z "$F77" || test "X$F77" = "Xno"; then
7686 if test -z "$F77" || test no = "$F77"; then
71957687 _lt_disable_F77=yes
71967688 fi
71977689
72287720 # the F77 compiler isn't working. Some variables (like enable_shared)
72297721 # are currently assumed to apply to all compilers on this platform,
72307722 # and will be corrupted by setting them based on a non-working compiler.
7231 if test "$_lt_disable_F77" != yes; then
7723 if test yes != "$_lt_disable_F77"; then
72327724 # Code to be used in simple compile tests
72337725 lt_simple_compile_test_code="\
72347726 subroutine t
72507742 _LT_LINKER_BOILERPLATE
72517743
72527744 # Allow CC to be a program name with arguments.
7253 lt_save_CC="$CC"
7745 lt_save_CC=$CC
72547746 lt_save_GCC=$GCC
72557747 lt_save_CFLAGS=$CFLAGS
72567748 CC=${F77-"f77"}
72647756 AC_MSG_RESULT([$can_build_shared])
72657757
72667758 AC_MSG_CHECKING([whether to build shared libraries])
7267 test "$can_build_shared" = "no" && enable_shared=no
7759 test no = "$can_build_shared" && enable_shared=no
72687760
72697761 # On AIX, shared libraries and static libraries use the same namespace, and
72707762 # are all built from PIC.
72717763 case $host_os in
72727764 aix3*)
7273 test "$enable_shared" = yes && enable_static=no
7765 test yes = "$enable_shared" && enable_static=no
72747766 if test -n "$RANLIB"; then
72757767 archive_cmds="$archive_cmds~\$RANLIB \$lib"
72767768 postinstall_cmds='$RANLIB $lib'
72777769 fi
72787770 ;;
72797771 aix[[4-9]]*)
7280 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7281 test "$enable_shared" = yes && enable_static=no
7772 if test ia64 != "$host_cpu"; then
7773 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7774 yes,aix,yes) ;; # shared object as lib.so file only
7775 yes,svr4,*) ;; # shared object as lib.so archive member only
7776 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7777 esac
72827778 fi
72837779 ;;
72847780 esac
72867782
72877783 AC_MSG_CHECKING([whether to build static libraries])
72887784 # Make sure either enable_shared or enable_static is yes.
7289 test "$enable_shared" = yes || enable_static=yes
7785 test yes = "$enable_shared" || enable_static=yes
72907786 AC_MSG_RESULT([$enable_static])
72917787
7292 _LT_TAGVAR(GCC, $1)="$G77"
7293 _LT_TAGVAR(LD, $1)="$LD"
7788 _LT_TAGVAR(GCC, $1)=$G77
7789 _LT_TAGVAR(LD, $1)=$LD
72947790
72957791 ## CAVEAT EMPTOR:
72967792 ## There is no encapsulation within the following macros, do not change
73077803 fi # test -n "$compiler"
73087804
73097805 GCC=$lt_save_GCC
7310 CC="$lt_save_CC"
7311 CFLAGS="$lt_save_CFLAGS"
7312 fi # test "$_lt_disable_F77" != yes
7806 CC=$lt_save_CC
7807 CFLAGS=$lt_save_CFLAGS
7808 fi # test yes != "$_lt_disable_F77"
73137809
73147810 AC_LANG_POP
73157811 ])# _LT_LANG_F77_CONFIG
73197815 # -------------------------
73207816 # Ensure that the configuration variables for a Fortran compiler are
73217817 # suitably defined. These variables are subsequently used by _LT_CONFIG
7322 # to write the compiler configuration to `libtool'.
7818 # to write the compiler configuration to 'libtool'.
73237819 m4_defun([_LT_LANG_FC_CONFIG],
73247820 [AC_LANG_PUSH(Fortran)
73257821
7326 if test -z "$FC" || test "X$FC" = "Xno"; then
7822 if test -z "$FC" || test no = "$FC"; then
73277823 _lt_disable_FC=yes
73287824 fi
73297825
73607856 # the FC compiler isn't working. Some variables (like enable_shared)
73617857 # are currently assumed to apply to all compilers on this platform,
73627858 # and will be corrupted by setting them based on a non-working compiler.
7363 if test "$_lt_disable_FC" != yes; then
7859 if test yes != "$_lt_disable_FC"; then
73647860 # Code to be used in simple compile tests
73657861 lt_simple_compile_test_code="\
73667862 subroutine t
73827878 _LT_LINKER_BOILERPLATE
73837879
73847880 # Allow CC to be a program name with arguments.
7385 lt_save_CC="$CC"
7881 lt_save_CC=$CC
73867882 lt_save_GCC=$GCC
73877883 lt_save_CFLAGS=$CFLAGS
73887884 CC=${FC-"f95"}
73987894 AC_MSG_RESULT([$can_build_shared])
73997895
74007896 AC_MSG_CHECKING([whether to build shared libraries])
7401 test "$can_build_shared" = "no" && enable_shared=no
7897 test no = "$can_build_shared" && enable_shared=no
74027898
74037899 # On AIX, shared libraries and static libraries use the same namespace, and
74047900 # are all built from PIC.
74057901 case $host_os in
74067902 aix3*)
7407 test "$enable_shared" = yes && enable_static=no
7903 test yes = "$enable_shared" && enable_static=no
74087904 if test -n "$RANLIB"; then
74097905 archive_cmds="$archive_cmds~\$RANLIB \$lib"
74107906 postinstall_cmds='$RANLIB $lib'
74117907 fi
74127908 ;;
74137909 aix[[4-9]]*)
7414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7415 test "$enable_shared" = yes && enable_static=no
7910 if test ia64 != "$host_cpu"; then
7911 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7912 yes,aix,yes) ;; # shared object as lib.so file only
7913 yes,svr4,*) ;; # shared object as lib.so archive member only
7914 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7915 esac
74167916 fi
74177917 ;;
74187918 esac
74207920
74217921 AC_MSG_CHECKING([whether to build static libraries])
74227922 # Make sure either enable_shared or enable_static is yes.
7423 test "$enable_shared" = yes || enable_static=yes
7923 test yes = "$enable_shared" || enable_static=yes
74247924 AC_MSG_RESULT([$enable_static])
74257925
7426 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7427 _LT_TAGVAR(LD, $1)="$LD"
7926 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7927 _LT_TAGVAR(LD, $1)=$LD
74287928
74297929 ## CAVEAT EMPTOR:
74307930 ## There is no encapsulation within the following macros, do not change
74447944 GCC=$lt_save_GCC
74457945 CC=$lt_save_CC
74467946 CFLAGS=$lt_save_CFLAGS
7447 fi # test "$_lt_disable_FC" != yes
7947 fi # test yes != "$_lt_disable_FC"
74487948
74497949 AC_LANG_POP
74507950 ])# _LT_LANG_FC_CONFIG
74547954 # --------------------------
74557955 # Ensure that the configuration variables for the GNU Java Compiler compiler
74567956 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7457 # to write the compiler configuration to `libtool'.
7957 # to write the compiler configuration to 'libtool'.
74587958 m4_defun([_LT_LANG_GCJ_CONFIG],
74597959 [AC_REQUIRE([LT_PROG_GCJ])dnl
74607960 AC_LANG_SAVE
74887988 CFLAGS=$GCJFLAGS
74897989 compiler=$CC
74907990 _LT_TAGVAR(compiler, $1)=$CC
7491 _LT_TAGVAR(LD, $1)="$LD"
7991 _LT_TAGVAR(LD, $1)=$LD
74927992 _LT_CC_BASENAME([$compiler])
74937993
74947994 # GCJ did not exist at the time GCC didn't implicitly link libc in.
75218021 # --------------------------
75228022 # Ensure that the configuration variables for the GNU Go compiler
75238023 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7524 # to write the compiler configuration to `libtool'.
8024 # to write the compiler configuration to 'libtool'.
75258025 m4_defun([_LT_LANG_GO_CONFIG],
75268026 [AC_REQUIRE([LT_PROG_GO])dnl
75278027 AC_LANG_SAVE
75558055 CFLAGS=$GOFLAGS
75568056 compiler=$CC
75578057 _LT_TAGVAR(compiler, $1)=$CC
7558 _LT_TAGVAR(LD, $1)="$LD"
8058 _LT_TAGVAR(LD, $1)=$LD
75598059 _LT_CC_BASENAME([$compiler])
75608060
75618061 # Go did not exist at the time GCC didn't implicitly link libc in.
75888088 # -------------------------
75898089 # Ensure that the configuration variables for the Windows resource compiler
75908090 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7591 # to write the compiler configuration to `libtool'.
8091 # to write the compiler configuration to 'libtool'.
75928092 m4_defun([_LT_LANG_RC_CONFIG],
75938093 [AC_REQUIRE([LT_PROG_RC])dnl
75948094 AC_LANG_SAVE
76048104 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
76058105
76068106 # Code to be used in simple link tests
7607 lt_simple_link_test_code="$lt_simple_compile_test_code"
8107 lt_simple_link_test_code=$lt_simple_compile_test_code
76088108
76098109 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
76108110 _LT_TAG_COMPILER
76148114 _LT_LINKER_BOILERPLATE
76158115
76168116 # Allow CC to be a program name with arguments.
7617 lt_save_CC="$CC"
8117 lt_save_CC=$CC
76188118 lt_save_CFLAGS=$CFLAGS
76198119 lt_save_GCC=$GCC
76208120 GCC=
76438143 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
76448144 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
76458145 [AC_CHECK_TOOL(GCJ, gcj,)
7646 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
8146 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
76478147 AC_SUBST(GCJFLAGS)])])[]dnl
76488148 ])
76498149
77528252 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
77538253 # along with /bin/sed that truncates output.
77548254 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7755 test ! -f $lt_ac_sed && continue
8255 test ! -f "$lt_ac_sed" && continue
77568256 cat /dev/null > conftest.in
77578257 lt_ac_count=0
77588258 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
77698269 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
77708270 cmp -s conftest.out conftest.nl || break
77718271 # 10000 chars as input seems more than enough
7772 test $lt_ac_count -gt 10 && break
8272 test 10 -lt "$lt_ac_count" && break
77738273 lt_ac_count=`expr $lt_ac_count + 1`
7774 if test $lt_ac_count -gt $lt_ac_max; then
8274 if test "$lt_ac_count" -gt "$lt_ac_max"; then
77758275 lt_ac_max=$lt_ac_count
77768276 lt_cv_path_SED=$lt_ac_sed
77778277 fi
77958295 # Find out whether the shell is Bourne or XSI compatible,
77968296 # or has some other useful features.
77978297 m4_defun([_LT_CHECK_SHELL_FEATURES],
7798 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7799 # Try some XSI features
7800 xsi_shell=no
7801 ( _lt_dummy="a/b/c"
7802 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7803 = c,a/b,b/c, \
7804 && eval 'test $(( 1 + 1 )) -eq 2 \
7805 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7806 && xsi_shell=yes
7807 AC_MSG_RESULT([$xsi_shell])
7808 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7809
7810 AC_MSG_CHECKING([whether the shell understands "+="])
7811 lt_shell_append=no
7812 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7813 >/dev/null 2>&1 \
7814 && lt_shell_append=yes
7815 AC_MSG_RESULT([$lt_shell_append])
7816 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7817
7818 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8298 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
78198299 lt_unset=unset
78208300 else
78218301 lt_unset=false
78398319 ])# _LT_CHECK_SHELL_FEATURES
78408320
78418321
7842 # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
7843 # ------------------------------------------------------
7844 # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
7845 # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
7846 m4_defun([_LT_PROG_FUNCTION_REPLACE],
7847 [dnl {
7848 sed -e '/^$1 ()$/,/^} # $1 /c\
7849 $1 ()\
7850 {\
7851 m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
7852 } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
7853 && mv -f "$cfgfile.tmp" "$cfgfile" \
7854 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7855 test 0 -eq $? || _lt_function_replace_fail=:
7856 ])
7857
7858
7859 # _LT_PROG_REPLACE_SHELLFNS
7860 # -------------------------
7861 # Replace existing portable implementations of several shell functions with
7862 # equivalent extended shell implementations where those features are available..
7863 m4_defun([_LT_PROG_REPLACE_SHELLFNS],
7864 [if test x"$xsi_shell" = xyes; then
7865 _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
7866 case ${1} in
7867 */*) func_dirname_result="${1%/*}${2}" ;;
7868 * ) func_dirname_result="${3}" ;;
7869 esac])
7870
7871 _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
7872 func_basename_result="${1##*/}"])
7873
7874 _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
7875 case ${1} in
7876 */*) func_dirname_result="${1%/*}${2}" ;;
7877 * ) func_dirname_result="${3}" ;;
7878 esac
7879 func_basename_result="${1##*/}"])
7880
7881 _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
7882 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7883 # positional parameters, so assign one to ordinary parameter first.
7884 func_stripname_result=${3}
7885 func_stripname_result=${func_stripname_result#"${1}"}
7886 func_stripname_result=${func_stripname_result%"${2}"}])
7887
7888 _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
7889 func_split_long_opt_name=${1%%=*}
7890 func_split_long_opt_arg=${1#*=}])
7891
7892 _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
7893 func_split_short_opt_arg=${1#??}
7894 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
7895
7896 _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
7897 case ${1} in
7898 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7899 *) func_lo2o_result=${1} ;;
7900 esac])
7901
7902 _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
7903
7904 _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
7905
7906 _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
7907 fi
7908
7909 if test x"$lt_shell_append" = xyes; then
7910 _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
7911
7912 _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
7913 func_quote_for_eval "${2}"
7914 dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
7915 eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
7916
7917 # Save a `func_append' function call where possible by direct use of '+='
7918 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
7919 && mv -f "$cfgfile.tmp" "$cfgfile" \
7920 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7921 test 0 -eq $? || _lt_function_replace_fail=:
7922 else
7923 # Save a `func_append' function call even when '+=' is not available
7924 sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
7925 && mv -f "$cfgfile.tmp" "$cfgfile" \
7926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
7927 test 0 -eq $? || _lt_function_replace_fail=:
7928 fi
7929
7930 if test x"$_lt_function_replace_fail" = x":"; then
7931 AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
7932 fi
7933 ])
7934
79358322 # _LT_PATH_CONVERSION_FUNCTIONS
79368323 # -----------------------------
7937 # Determine which file name conversion functions should be used by
8324 # Determine what file name conversion functions should be used by
79388325 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
79398326 # for certain cross-compile configurations and native mingw.
79408327 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
80018388
80028389 # Helper functions for option handling. -*- Autoconf -*-
80038390 #
8004 # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
8005 # Inc.
8391 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
8392 # Foundation, Inc.
80068393 # Written by Gary V. Vaughan, 2004
80078394 #
80088395 # This file is free software; the Free Software Foundation gives
80098396 # unlimited permission to copy and/or distribute it, with or without
80108397 # modifications, as long as this notice is preserved.
80118398
8012 # serial 7 ltoptions.m4
8399 # serial 8 ltoptions.m4
80138400
80148401 # This is to help aclocal find these macros, as it can't see m4_define.
80158402 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
80308417 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
80318418 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
80328419 _LT_MANGLE_DEFUN([$1], [$2]),
8033 [m4_warning([Unknown $1 option `$2'])])[]dnl
8420 [m4_warning([Unknown $1 option '$2'])])[]dnl
80348421 ])
80358422
80368423
80768463 dnl
80778464 dnl If no reference was made to various pairs of opposing options, then
80788465 dnl we run the default mode handler for the pair. For example, if neither
8079 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8466 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
80808467 dnl archives by default:
80818468 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80828469 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
80838470 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
80848471 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8085 [_LT_ENABLE_FAST_INSTALL])
8472 [_LT_ENABLE_FAST_INSTALL])
8473 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
8474 [_LT_WITH_AIX_SONAME([aix])])
80868475 ])
80878476 ])# _LT_SET_OPTIONS
80888477
81108499 [_LT_SET_OPTION([LT_INIT], [dlopen])
81118500 AC_DIAGNOSE([obsolete],
81128501 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8113 put the `dlopen' option into LT_INIT's first parameter.])
8502 put the 'dlopen' option into LT_INIT's first parameter.])
81148503 ])
81158504
81168505 dnl aclocal-1.4 backwards compatibility:
81468535 _LT_SET_OPTION([LT_INIT], [win32-dll])
81478536 AC_DIAGNOSE([obsolete],
81488537 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8149 put the `win32-dll' option into LT_INIT's first parameter.])
8538 put the 'win32-dll' option into LT_INIT's first parameter.])
81508539 ])
81518540
81528541 dnl aclocal-1.4 backwards compatibility:
81558544
81568545 # _LT_ENABLE_SHARED([DEFAULT])
81578546 # ----------------------------
8158 # implement the --enable-shared flag, and supports the `shared' and
8159 # `disable-shared' LT_INIT options.
8160 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8547 # implement the --enable-shared flag, and supports the 'shared' and
8548 # 'disable-shared' LT_INIT options.
8549 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
81618550 m4_define([_LT_ENABLE_SHARED],
81628551 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
81638552 AC_ARG_ENABLE([shared],
81708559 *)
81718560 enable_shared=no
81728561 # Look at the argument we got. We use all the common list separators.
8173 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8562 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
81748563 for pkg in $enableval; do
8175 IFS="$lt_save_ifs"
8564 IFS=$lt_save_ifs
81768565 if test "X$pkg" = "X$p"; then
81778566 enable_shared=yes
81788567 fi
81798568 done
8180 IFS="$lt_save_ifs"
8569 IFS=$lt_save_ifs
81818570 ;;
81828571 esac],
81838572 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
82098598
82108599 # _LT_ENABLE_STATIC([DEFAULT])
82118600 # ----------------------------
8212 # implement the --enable-static flag, and support the `static' and
8213 # `disable-static' LT_INIT options.
8214 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8601 # implement the --enable-static flag, and support the 'static' and
8602 # 'disable-static' LT_INIT options.
8603 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
82158604 m4_define([_LT_ENABLE_STATIC],
82168605 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
82178606 AC_ARG_ENABLE([static],
82248613 *)
82258614 enable_static=no
82268615 # Look at the argument we got. We use all the common list separators.
8227 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8616 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82288617 for pkg in $enableval; do
8229 IFS="$lt_save_ifs"
8618 IFS=$lt_save_ifs
82308619 if test "X$pkg" = "X$p"; then
82318620 enable_static=yes
82328621 fi
82338622 done
8234 IFS="$lt_save_ifs"
8623 IFS=$lt_save_ifs
82358624 ;;
82368625 esac],
82378626 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
82638652
82648653 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
82658654 # ----------------------------------
8266 # implement the --enable-fast-install flag, and support the `fast-install'
8267 # and `disable-fast-install' LT_INIT options.
8268 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8655 # implement the --enable-fast-install flag, and support the 'fast-install'
8656 # and 'disable-fast-install' LT_INIT options.
8657 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
82698658 m4_define([_LT_ENABLE_FAST_INSTALL],
82708659 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
82718660 AC_ARG_ENABLE([fast-install],
82788667 *)
82798668 enable_fast_install=no
82808669 # Look at the argument we got. We use all the common list separators.
8281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8670 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
82828671 for pkg in $enableval; do
8283 IFS="$lt_save_ifs"
8672 IFS=$lt_save_ifs
82848673 if test "X$pkg" = "X$p"; then
82858674 enable_fast_install=yes
82868675 fi
82878676 done
8288 IFS="$lt_save_ifs"
8677 IFS=$lt_save_ifs
82898678 ;;
82908679 esac],
82918680 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
83028691 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
83038692 AC_DIAGNOSE([obsolete],
83048693 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8305 the `fast-install' option into LT_INIT's first parameter.])
8694 the 'fast-install' option into LT_INIT's first parameter.])
83068695 ])
83078696
83088697 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
83098698 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
83108699 AC_DIAGNOSE([obsolete],
83118700 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8312 the `disable-fast-install' option into LT_INIT's first parameter.])
8701 the 'disable-fast-install' option into LT_INIT's first parameter.])
83138702 ])
83148703
83158704 dnl aclocal-1.4 backwards compatibility:
83178706 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
83188707
83198708
8709 # _LT_WITH_AIX_SONAME([DEFAULT])
8710 # ----------------------------------
8711 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
8712 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
8713 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
8714 m4_define([_LT_WITH_AIX_SONAME],
8715 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
8716 shared_archive_member_spec=
8717 case $host,$enable_shared in
8718 power*-*-aix[[5-9]]*,yes)
8719 AC_MSG_CHECKING([which variant of shared library versioning to provide])
8720 AC_ARG_WITH([aix-soname],
8721 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
8722 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
8723 [case $withval in
8724 aix|svr4|both)
8725 ;;
8726 *)
8727 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
8728 ;;
8729 esac
8730 lt_cv_with_aix_soname=$with_aix_soname],
8731 [AC_CACHE_VAL([lt_cv_with_aix_soname],
8732 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
8733 with_aix_soname=$lt_cv_with_aix_soname])
8734 AC_MSG_RESULT([$with_aix_soname])
8735 if test aix != "$with_aix_soname"; then
8736 # For the AIX way of multilib, we name the shared archive member
8737 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8738 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8739 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8740 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8741 if test 64 = "${OBJECT_MODE-32}"; then
8742 shared_archive_member_spec=shr_64
8743 else
8744 shared_archive_member_spec=shr
8745 fi
8746 fi
8747 ;;
8748 *)
8749 with_aix_soname=aix
8750 ;;
8751 esac
8752
8753 _LT_DECL([], [shared_archive_member_spec], [0],
8754 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
8755 ])# _LT_WITH_AIX_SONAME
8756
8757 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
8758 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
8759 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
8760
8761
83208762 # _LT_WITH_PIC([MODE])
83218763 # --------------------
8322 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8764 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
83238765 # LT_INIT options.
8324 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8766 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
83258767 m4_define([_LT_WITH_PIC],
83268768 [AC_ARG_WITH([pic],
83278769 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
83328774 *)
83338775 pic_mode=default
83348776 # Look at the argument we got. We use all the common list separators.
8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8777 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
83368778 for lt_pkg in $withval; do
8337 IFS="$lt_save_ifs"
8779 IFS=$lt_save_ifs
83388780 if test "X$lt_pkg" = "X$lt_p"; then
83398781 pic_mode=yes
83408782 fi
83418783 done
8342 IFS="$lt_save_ifs"
8784 IFS=$lt_save_ifs
83438785 ;;
83448786 esac],
8345 [pic_mode=default])
8346
8347 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8787 [pic_mode=m4_default([$1], [default])])
83488788
83498789 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
83508790 ])# _LT_WITH_PIC
83578797 [_LT_SET_OPTION([LT_INIT], [pic-only])
83588798 AC_DIAGNOSE([obsolete],
83598799 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8360 put the `pic-only' option into LT_INIT's first parameter.])
8800 put the 'pic-only' option into LT_INIT's first parameter.])
83618801 ])
83628802
83638803 dnl aclocal-1.4 backwards compatibility:
83808820
83818821 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
83828822 #
8383 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8823 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
8824 # Foundation, Inc.
83848825 # Written by Gary V. Vaughan, 2004
83858826 #
83868827 # This file is free software; the Free Software Foundation gives
84138854 # ------------
84148855 # Manipulate m4 lists.
84158856 # These macros are necessary as long as will still need to support
8416 # Autoconf-2.59 which quotes differently.
8857 # Autoconf-2.59, which quotes differently.
84178858 m4_define([lt_car], [[$1]])
84188859 m4_define([lt_cdr],
84198860 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
84248865
84258866 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
84268867 # ------------------------------------------
8427 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8868 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
84288869 # Note that neither SEPARATOR nor STRING are expanded; they are appended
84298870 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
84308871 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
85048945
85058946 # ltversion.m4 -- version numbers -*- Autoconf -*-
85068947 #
8507 # Copyright (C) 2004 Free Software Foundation, Inc.
8948 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
85088949 # Written by Scott James Remnant, 2004
85098950 #
85108951 # This file is free software; the Free Software Foundation gives
85138954
85148955 # @configure_input@
85158956
8516 # serial 3337 ltversion.m4
8957 # serial 4179 ltversion.m4
85178958 # This file is part of GNU Libtool
85188959
8519 m4_define([LT_PACKAGE_VERSION], [2.4.2])
8520 m4_define([LT_PACKAGE_REVISION], [1.3337])
8960 m4_define([LT_PACKAGE_VERSION], [2.4.6])
8961 m4_define([LT_PACKAGE_REVISION], [2.4.6])
85218962
85228963 AC_DEFUN([LTVERSION_VERSION],
8523 [macro_version='2.4.2'
8524 macro_revision='1.3337'
8964 [macro_version='2.4.6'
8965 macro_revision='2.4.6'
85258966 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
85268967 _LT_DECL(, macro_revision, 0)
85278968 ])
85288969
85298970 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
85308971 #
8531 # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
8972 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
8973 # Foundation, Inc.
85328974 # Written by Scott James Remnant, 2004.
85338975 #
85348976 # This file is free software; the Free Software Foundation gives
85398981
85408982 # These exist entirely to fool aclocal when bootstrapping libtool.
85418983 #
8542 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8984 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
85438985 # which have later been changed to m4_define as they aren't part of the
85448986 # exported API, or moved to Autoconf or Automake where they belong.
85458987 #
85538995 # included after everything else. This provides aclocal with the
85548996 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
85558997 # because those macros already exist, or will be overwritten later.
8556 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8998 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
85578999 #
85589000 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
85599001 # Yes, that means every name once taken will need to remain here until
86259067 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
86269068 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
86279069
8628 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software
8629 # Foundation, Inc.
9070 # Copyright (C) 2002-2014 Free Software Foundation, Inc.
86309071 #
86319072 # This file is free software; the Free Software Foundation
86329073 # gives unlimited permission to copy and/or distribute it,
86339074 # with or without modifications, as long as this notice is preserved.
8634
8635 # serial 1
86369075
86379076 # AM_AUTOMAKE_VERSION(VERSION)
86389077 # ----------------------------
86409079 # generated from the m4 files accompanying Automake X.Y.
86419080 # (This private macro should not be called outside this file.)
86429081 AC_DEFUN([AM_AUTOMAKE_VERSION],
8643 [am__api_version='1.11'
9082 [am__api_version='1.15'
86449083 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
86459084 dnl require some minimum version. Point them to the right macro.
8646 m4_if([$1], [1.11.3], [],
9085 m4_if([$1], [1.15], [],
86479086 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
86489087 ])
86499088
86599098 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
86609099 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
86619100 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8662 [AM_AUTOMAKE_VERSION([1.11.3])dnl
9101 [AM_AUTOMAKE_VERSION([1.15])dnl
86639102 m4_ifndef([AC_AUTOCONF_VERSION],
86649103 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
86659104 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
86669105
86679106 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
86689107
8669 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9108 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
86709109 #
86719110 # This file is free software; the Free Software Foundation
86729111 # gives unlimited permission to copy and/or distribute it,
86739112 # with or without modifications, as long as this notice is preserved.
86749113
8675 # serial 1
8676
86779114 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8678 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8679 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9115 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
9116 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
86809117 #
86819118 # Of course, Automake must honor this variable whenever it calls a
86829119 # tool from the auxiliary directory. The problem is that $srcdir (and
86959132 #
86969133 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
86979134 # are both prefixed by $srcdir. In an in-source build this is usually
8698 # harmless because $srcdir is `.', but things will broke when you
9135 # harmless because $srcdir is '.', but things will broke when you
86999136 # start a VPATH build or use an absolute $srcdir.
87009137 #
87019138 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
87139150 # configured tree to be moved without reconfiguration.
87149151
87159152 AC_DEFUN([AM_AUX_DIR_EXPAND],
8716 [dnl Rely on autoconf to set up CDPATH properly.
8717 AC_PREREQ([2.50])dnl
8718 # expand $ac_aux_dir to an absolute path
8719 am_aux_dir=`cd $ac_aux_dir && pwd`
9153 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
9154 # Expand $ac_aux_dir to an absolute path.
9155 am_aux_dir=`cd "$ac_aux_dir" && pwd`
87209156 ])
87219157
87229158 # AM_CONDITIONAL -*- Autoconf -*-
87239159
8724 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8725 # Free Software Foundation, Inc.
9160 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
87269161 #
87279162 # This file is free software; the Free Software Foundation
87289163 # gives unlimited permission to copy and/or distribute it,
87299164 # with or without modifications, as long as this notice is preserved.
87309165
8731 # serial 9
8732
87339166 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
87349167 # -------------------------------------
87359168 # Define a conditional.
87369169 AC_DEFUN([AM_CONDITIONAL],
8737 [AC_PREREQ(2.52)dnl
8738 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8739 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9170 [AC_PREREQ([2.52])dnl
9171 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9172 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
87409173 AC_SUBST([$1_TRUE])dnl
87419174 AC_SUBST([$1_FALSE])dnl
87429175 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
87559188 Usually this means the macro was only invoked conditionally.]])
87569189 fi])])
87579190
8758 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009,
8759 # 2010, 2011 Free Software Foundation, Inc.
9191 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
87609192 #
87619193 # This file is free software; the Free Software Foundation
87629194 # gives unlimited permission to copy and/or distribute it,
87639195 # with or without modifications, as long as this notice is preserved.
87649196
8765 # serial 12
8766
8767 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9197
9198 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
87689199 # written in clear, in which case automake, when reading aclocal.m4,
87699200 # will think it sees a *use*, and therefore will trigger all it's
87709201 # C support machinery. Also note that it means that autoscan, seeing
87749205 # _AM_DEPENDENCIES(NAME)
87759206 # ----------------------
87769207 # See how the compiler implements dependency checking.
8777 # NAME is "CC", "CXX", "GCJ", or "OBJC".
9208 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
87789209 # We try a few techniques and use that to set a single cache variable.
87799210 #
87809211 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
87879218 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
87889219 AC_REQUIRE([AM_DEP_TRACK])dnl
87899220
8790 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8791 [$1], CXX, [depcc="$CXX" am_compiler_list=],
8792 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8793 [$1], UPC, [depcc="$UPC" am_compiler_list=],
8794 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8795 [depcc="$$1" am_compiler_list=])
9221 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
9222 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
9223 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9224 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
9225 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
9226 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9227 [depcc="$$1" am_compiler_list=])
87969228
87979229 AC_CACHE_CHECK([dependency style of $depcc],
87989230 [am_cv_$1_dependencies_compiler_type],
88009232 # We make a subdir and do the tests there. Otherwise we can end up
88019233 # making bogus files that we don't know about and never remove. For
88029234 # instance it was reported that on HP-UX the gcc test will end up
8803 # making a dummy file named `D' -- because `-MD' means `put the output
8804 # in D'.
9235 # making a dummy file named 'D' -- because '-MD' means "put the output
9236 # in D".
88059237 rm -rf conftest.dir
88069238 mkdir conftest.dir
88079239 # Copy depcomp to subdir because otherwise we won't find it if we're
88419273 : > sub/conftest.c
88429274 for i in 1 2 3 4 5 6; do
88439275 echo '#include "conftst'$i'.h"' >> sub/conftest.c
8844 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8845 # Solaris 8's {/usr,}/bin/sh.
8846 touch sub/conftst$i.h
9276 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
9277 # Solaris 10 /bin/sh.
9278 echo '/* dummy */' > sub/conftst$i.h
88479279 done
88489280 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
88499281
8850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9282 # We check with '-c' and '-o' for the sake of the "dashmstdout"
88519283 # mode. It turns out that the SunPro C++ compiler does not properly
8852 # handle `-M -o', and we need to detect this. Also, some Intel
8853 # versions had trouble with output in subdirs
9284 # handle '-M -o', and we need to detect this. Also, some Intel
9285 # versions had trouble with output in subdirs.
88549286 am__obj=sub/conftest.${OBJEXT-o}
88559287 am__minus_obj="-o $am__obj"
88569288 case $depmode in
88599291 test "$am__universal" = false || continue
88609292 ;;
88619293 nosideeffect)
8862 # after this tag, mechanisms are not by side-effect, so they'll
8863 # only be used when explicitly requested
9294 # After this tag, mechanisms are not by side-effect, so they'll
9295 # only be used when explicitly requested.
88649296 if test "x$enable_dependency_tracking" = xyes; then
88659297 continue
88669298 else
88689300 fi
88699301 ;;
88709302 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
8871 # This compiler won't grok `-c -o', but also, the minuso test has
9303 # This compiler won't grok '-c -o', but also, the minuso test has
88729304 # not run yet. These depmodes are late enough in the game, and
88739305 # so weak that their functioning should not be impacted.
88749306 am__obj=conftest.${OBJEXT-o}
89169348 # AM_SET_DEPDIR
89179349 # -------------
89189350 # Choose a directory name for dependency files.
8919 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9351 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
89209352 AC_DEFUN([AM_SET_DEPDIR],
89219353 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
89229354 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
89269358 # AM_DEP_TRACK
89279359 # ------------
89289360 AC_DEFUN([AM_DEP_TRACK],
8929 [AC_ARG_ENABLE(dependency-tracking,
8930 [ --disable-dependency-tracking speeds up one-time build
8931 --enable-dependency-tracking do not reject slow dependency extractors])
9361 [AC_ARG_ENABLE([dependency-tracking], [dnl
9362 AS_HELP_STRING(
9363 [--enable-dependency-tracking],
9364 [do not reject slow dependency extractors])
9365 AS_HELP_STRING(
9366 [--disable-dependency-tracking],
9367 [speeds up one-time build])])
89329368 if test "x$enable_dependency_tracking" != xno; then
89339369 am_depcomp="$ac_aux_dir/depcomp"
89349370 AMDEPBACKSLASH='\'
89439379
89449380 # Generate code to set up dependency tracking. -*- Autoconf -*-
89459381
8946 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
8947 # Free Software Foundation, Inc.
9382 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
89489383 #
89499384 # This file is free software; the Free Software Foundation
89509385 # gives unlimited permission to copy and/or distribute it,
89519386 # with or without modifications, as long as this notice is preserved.
89529387
8953 #serial 5
89549388
89559389 # _AM_OUTPUT_DEPENDENCY_COMMANDS
89569390 # ------------------------------
89579391 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
89589392 [{
8959 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9393 # Older Autoconf quotes --file arguments for eval, but not when files
89609394 # are listed without --file. Let's play safe and only enable the eval
89619395 # if we detect the quoting.
89629396 case $CONFIG_FILES in
89699403 # Strip MF so we end up with the name of the file.
89709404 mf=`echo "$mf" | sed -e 's/:.*$//'`
89719405 # Check whether this is an Automake generated Makefile or not.
8972 # We used to match only the files named `Makefile.in', but
9406 # We used to match only the files named 'Makefile.in', but
89739407 # some people rename them; so instead we look at the file content.
89749408 # Grep'ing the first line is not enough: some people post-process
89759409 # each Makefile.in and add a new line on top of each file to say so.
89819415 continue
89829416 fi
89839417 # Extract the definition of DEPDIR, am__include, and am__quote
8984 # from the Makefile without running `make'.
9418 # from the Makefile without running 'make'.
89859419 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
89869420 test -z "$DEPDIR" && continue
89879421 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8988 test -z "am__include" && continue
9422 test -z "$am__include" && continue
89899423 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8990 # When using ansi2knr, U may be empty or an underscore; expand it
8991 U=`sed -n 's/^U = //p' < "$mf"`
89929424 # Find all dependency output files, they are included files with
89939425 # $(DEPDIR) in their names. We invoke sed twice because it is the
89949426 # simplest approach to changing $(DEPDIR) to its actual value in the
89959427 # expansion.
89969428 for file in `sed -n "
89979429 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8998 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9430 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
89999431 # Make sure the directory exists.
90009432 test -f "$dirpart/$file" && continue
90019433 fdir=`AS_DIRNAME(["$file"])`
90139445 # This macro should only be invoked once -- use via AC_REQUIRE.
90149446 #
90159447 # This code is only required when automatic dependency tracking
9016 # is enabled. FIXME. This creates each `.P' file that we will
9448 # is enabled. FIXME. This creates each '.P' file that we will
90179449 # need in order to bootstrap the dependency handling code.
90189450 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
90199451 [AC_CONFIG_COMMANDS([depfiles],
90219453 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
90229454 ])
90239455
9024 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9025 # Free Software Foundation, Inc.
9456 # Do all the work for Automake. -*- Autoconf -*-
9457
9458 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
90269459 #
90279460 # This file is free software; the Free Software Foundation
90289461 # gives unlimited permission to copy and/or distribute it,
90299462 # with or without modifications, as long as this notice is preserved.
90309463
9031 # serial 8
9032
9033 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9034 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9035
9036 # Do all the work for Automake. -*- Autoconf -*-
9037
9038 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9039 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9040 #
9041 # This file is free software; the Free Software Foundation
9042 # gives unlimited permission to copy and/or distribute it,
9043 # with or without modifications, as long as this notice is preserved.
9044
9045 # serial 16
9046
90479464 # This macro actually does too much. Some checks are only needed if
90489465 # your package does certain things. But this isn't really a big deal.
9466
9467 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
9468 m4_define([AC_PROG_CC],
9469 m4_defn([AC_PROG_CC])
9470 [_AM_PROG_CC_C_O
9471 ])
90499472
90509473 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
90519474 # AM_INIT_AUTOMAKE([OPTIONS])
90599482 # arguments mandatory, and then we can depend on a new Autoconf
90609483 # release and drop the old call support.
90619484 AC_DEFUN([AM_INIT_AUTOMAKE],
9062 [AC_PREREQ([2.62])dnl
9485 [AC_PREREQ([2.65])dnl
90639486 dnl Autoconf wants to disallow AM_ names. We explicitly allow
90649487 dnl the ones we care about.
90659488 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
90889511 # Define the identity of the package.
90899512 dnl Distinguish between old-style and new-style calls.
90909513 m4_ifval([$2],
9091 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9514 [AC_DIAGNOSE([obsolete],
9515 [$0: two- and three-arguments forms are deprecated.])
9516 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
90929517 AC_SUBST([PACKAGE], [$1])dnl
90939518 AC_SUBST([VERSION], [$2])],
90949519 [_AM_SET_OPTIONS([$1])dnl
90959520 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9096 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9521 m4_if(
9522 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
9523 [ok:ok],,
90979524 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
90989525 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
90999526 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
91009527
91019528 _AM_IF_OPTION([no-define],,
9102 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9103 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9529 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
9530 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
91049531
91059532 # Some tools Automake needs.
91069533 AC_REQUIRE([AM_SANITY_CHECK])dnl
91079534 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9108 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9109 AM_MISSING_PROG(AUTOCONF, autoconf)
9110 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9111 AM_MISSING_PROG(AUTOHEADER, autoheader)
9112 AM_MISSING_PROG(MAKEINFO, makeinfo)
9535 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
9536 AM_MISSING_PROG([AUTOCONF], [autoconf])
9537 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
9538 AM_MISSING_PROG([AUTOHEADER], [autoheader])
9539 AM_MISSING_PROG([MAKEINFO], [makeinfo])
91139540 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
91149541 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9115 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9116 # We need awk for the "check" target. The system "awk" is bad on
9117 # some platforms.
9542 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9543 # For better backward compatibility. To be removed once Automake 1.9.x
9544 # dies out for good. For more background, see:
9545 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
9546 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
9547 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
9548 # We need awk for the "check" target (and possibly the TAP driver). The
9549 # system "awk" is bad on some platforms.
91189550 AC_REQUIRE([AC_PROG_AWK])dnl
91199551 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
91209552 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
91239555 [_AM_PROG_TAR([v7])])])
91249556 _AM_IF_OPTION([no-dependencies],,
91259557 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9126 [_AM_DEPENDENCIES(CC)],
9127 [define([AC_PROG_CC],
9128 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9558 [_AM_DEPENDENCIES([CC])],
9559 [m4_define([AC_PROG_CC],
9560 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
91299561 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9130 [_AM_DEPENDENCIES(CXX)],
9131 [define([AC_PROG_CXX],
9132 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9562 [_AM_DEPENDENCIES([CXX])],
9563 [m4_define([AC_PROG_CXX],
9564 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
91339565 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9134 [_AM_DEPENDENCIES(OBJC)],
9135 [define([AC_PROG_OBJC],
9136 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9566 [_AM_DEPENDENCIES([OBJC])],
9567 [m4_define([AC_PROG_OBJC],
9568 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
9569 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
9570 [_AM_DEPENDENCIES([OBJCXX])],
9571 [m4_define([AC_PROG_OBJCXX],
9572 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
91379573 ])
9138 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9139 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9140 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9141 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9574 AC_REQUIRE([AM_SILENT_RULES])dnl
9575 dnl The testsuite driver may need to know about EXEEXT, so add the
9576 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
9577 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
91429578 AC_CONFIG_COMMANDS_PRE(dnl
91439579 [m4_provide_if([_AM_COMPILER_EXEEXT],
91449580 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9581
9582 # POSIX will say in a future version that running "rm -f" with no argument
9583 # is OK; and we want to be able to make that assumption in our Makefile
9584 # recipes. So use an aggressive probe to check that the usage we want is
9585 # actually supported "in the wild" to an acceptable degree.
9586 # See automake bug#10828.
9587 # To make any issue more visible, cause the running configure to be aborted
9588 # by default if the 'rm' program in use doesn't match our expectations; the
9589 # user can still override this though.
9590 if rm -f && rm -fr && rm -rf; then : OK; else
9591 cat >&2 <<'END'
9592 Oops!
9593
9594 Your 'rm' program seems unable to run without file operands specified
9595 on the command line, even when the '-f' option is present. This is contrary
9596 to the behaviour of most rm programs out there, and not conforming with
9597 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
9598
9599 Please tell bug-automake@gnu.org about your system, including the value
9600 of your $PATH and any error possibly output before this message. This
9601 can help us improve future automake versions.
9602
9603 END
9604 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
9605 echo 'Configuration will proceed anyway, since you have set the' >&2
9606 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
9607 echo >&2
9608 else
9609 cat >&2 <<'END'
9610 Aborting the configuration process, to ensure you take notice of the issue.
9611
9612 You can download and install GNU coreutils to get an 'rm' implementation
9613 that behaves properly: <http://www.gnu.org/software/coreutils/>.
9614
9615 If you want to complete the configuration process using your problematic
9616 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
9617 to "yes", and re-run configure.
9618
9619 END
9620 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
9621 fi
9622 fi
9623 dnl The trailing newline in this macro's definition is deliberate, for
9624 dnl backward compatibility and to allow trailing 'dnl'-style comments
9625 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
91459626 ])
91469627
9147 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9628 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
91489629 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
91499630 dnl mangled by Autoconf and run in a shell conditional statement.
91509631 m4_define([_AC_COMPILER_EXEEXT],
91519632 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9152
91539633
91549634 # When config.status generates a header, we must update the stamp-h file.
91559635 # This file resides in the same directory as the config header
91729652 done
91739653 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
91749654
9175 # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation,
9176 # Inc.
9655 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
91779656 #
91789657 # This file is free software; the Free Software Foundation
91799658 # gives unlimited permission to copy and/or distribute it,
91809659 # with or without modifications, as long as this notice is preserved.
9181
9182 # serial 1
91839660
91849661 # AM_PROG_INSTALL_SH
91859662 # ------------------
91869663 # Define $install_sh.
91879664 AC_DEFUN([AM_PROG_INSTALL_SH],
91889665 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9189 if test x"${install_sh}" != xset; then
9666 if test x"${install_sh+set}" != xset; then
91909667 case $am_aux_dir in
91919668 *\ * | *\ *)
91929669 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
91949671 install_sh="\${SHELL} $am_aux_dir/install-sh"
91959672 esac
91969673 fi
9197 AC_SUBST(install_sh)])
9198
9199 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9674 AC_SUBST([install_sh])])
9675
9676 # Copyright (C) 2003-2014 Free Software Foundation, Inc.
92009677 #
92019678 # This file is free software; the Free Software Foundation
92029679 # gives unlimited permission to copy and/or distribute it,
92039680 # with or without modifications, as long as this notice is preserved.
9204
9205 # serial 2
92069681
92079682 # Check whether the underlying file-system supports filenames
92089683 # with a leading dot. For instance MS-DOS doesn't.
92199694
92209695 # Check to see how 'make' treats includes. -*- Autoconf -*-
92219696
9222 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9697 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
92239698 #
92249699 # This file is free software; the Free Software Foundation
92259700 # gives unlimited permission to copy and/or distribute it,
92269701 # with or without modifications, as long as this notice is preserved.
9227
9228 # serial 4
92299702
92309703 # AM_MAKE_INCLUDE()
92319704 # -----------------
92449717 _am_result=none
92459718 # First try GNU make style include.
92469719 echo "include confinc" > confmf
9247 # Ignore all kinds of additional output from `make'.
9720 # Ignore all kinds of additional output from 'make'.
92489721 case `$am_make -s -f confmf 2> /dev/null` in #(
92499722 *the\ am__doit\ target*)
92509723 am__include=include
92719744
92729745 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
92739746
9274 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9275 # Free Software Foundation, Inc.
9747 # Copyright (C) 1997-2014 Free Software Foundation, Inc.
92769748 #
92779749 # This file is free software; the Free Software Foundation
92789750 # gives unlimited permission to copy and/or distribute it,
92799751 # with or without modifications, as long as this notice is preserved.
9280
9281 # serial 6
92829752
92839753 # AM_MISSING_PROG(NAME, PROGRAM)
92849754 # ------------------------------
92879757 $1=${$1-"${am_missing_run}$2"}
92889758 AC_SUBST($1)])
92899759
9290
92919760 # AM_MISSING_HAS_RUN
92929761 # ------------------
9293 # Define MISSING if not defined so far and test if it supports --run.
9294 # If it does, set am_missing_run to use it, otherwise, to nothing.
9762 # Define MISSING if not defined so far and test if it is modern enough.
9763 # If it is, set am_missing_run to use it, otherwise, to nothing.
92959764 AC_DEFUN([AM_MISSING_HAS_RUN],
92969765 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
92979766 AC_REQUIRE_AUX_FILE([missing])dnl
93049773 esac
93059774 fi
93069775 # Use eval to expand $SHELL
9307 if eval "$MISSING --run true"; then
9308 am_missing_run="$MISSING --run "
9776 if eval "$MISSING --is-lightweight"; then
9777 am_missing_run="$MISSING "
93099778 else
93109779 am_missing_run=
9311 AC_MSG_WARN([`missing' script is too old or missing])
9780 AC_MSG_WARN(['missing' script is too old or missing])
93129781 fi
93139782 ])
93149783
9315 # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation,
9316 # Inc.
9784 # -*- Autoconf -*-
9785 # Obsolete and "removed" macros, that must however still report explicit
9786 # error messages when used, to smooth transition.
9787 #
9788 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
93179789 #
93189790 # This file is free software; the Free Software Foundation
93199791 # gives unlimited permission to copy and/or distribute it,
93209792 # with or without modifications, as long as this notice is preserved.
93219793
9322 # serial 1
9323
9324 # AM_PROG_MKDIR_P
9325 # ---------------
9326 # Check for `mkdir -p'.
9327 AC_DEFUN([AM_PROG_MKDIR_P],
9328 [AC_PREREQ([2.60])dnl
9329 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9330 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9331 dnl while keeping a definition of mkdir_p for backward compatibility.
9332 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9333 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9334 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9335 dnl adjustment using top_builddir (which is defined more often than
9336 dnl MKDIR_P).
9337 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9338 case $mkdir_p in
9339 [[\\/$]]* | ?:[[\\/]]*) ;;
9340 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9341 esac
9342 ])
9794 AC_DEFUN([AM_CONFIG_HEADER],
9795 [AC_DIAGNOSE([obsolete],
9796 ['$0': this macro is obsolete.
9797 You should use the 'AC][_CONFIG_HEADERS' macro instead.])dnl
9798 AC_CONFIG_HEADERS($@)])
9799
9800 AC_DEFUN([AM_PROG_CC_STDC],
9801 [AC_PROG_CC
9802 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
9803 AC_DIAGNOSE([obsolete],
9804 ['$0': this macro is obsolete.
9805 You should simply use the 'AC][_PROG_CC' macro instead.
9806 Also, your code should no longer depend upon 'am_cv_prog_cc_stdc',
9807 but upon 'ac_cv_prog_cc_stdc'.])])
9808
9809 AC_DEFUN([AM_C_PROTOTYPES],
9810 [AC_FATAL([automatic de-ANSI-fication support has been removed])])
9811 AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES])
93439812
93449813 # Helper functions for option handling. -*- Autoconf -*-
93459814
9346 # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software
9347 # Foundation, Inc.
9815 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
93489816 #
93499817 # This file is free software; the Free Software Foundation
93509818 # gives unlimited permission to copy and/or distribute it,
93519819 # with or without modifications, as long as this notice is preserved.
93529820
9353 # serial 5
9354
93559821 # _AM_MANGLE_OPTION(NAME)
93569822 # -----------------------
93579823 AC_DEFUN([_AM_MANGLE_OPTION],
93619827 # --------------------
93629828 # Set option NAME. Presently that only means defining a flag for this option.
93639829 AC_DEFUN([_AM_SET_OPTION],
9364 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9830 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
93659831
93669832 # _AM_SET_OPTIONS(OPTIONS)
93679833 # ------------------------
93759841 AC_DEFUN([_AM_IF_OPTION],
93769842 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
93779843
9378 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9379
9380 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9381 # Free Software Foundation, Inc.
9844 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
93829845 #
93839846 # This file is free software; the Free Software Foundation
93849847 # gives unlimited permission to copy and/or distribute it,
93859848 # with or without modifications, as long as this notice is preserved.
93869849
9387 # serial 5
9850 # _AM_PROG_CC_C_O
9851 # ---------------
9852 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
9853 # to automatically call this.
9854 AC_DEFUN([_AM_PROG_CC_C_O],
9855 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9856 AC_REQUIRE_AUX_FILE([compile])dnl
9857 AC_LANG_PUSH([C])dnl
9858 AC_CACHE_CHECK(
9859 [whether $CC understands -c and -o together],
9860 [am_cv_prog_cc_c_o],
9861 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
9862 # Make sure it works both with $CC and with simple cc.
9863 # Following AC_PROG_CC_C_O, we do the test twice because some
9864 # compilers refuse to overwrite an existing .o file with -o,
9865 # though they will create one.
9866 am_cv_prog_cc_c_o=yes
9867 for am_i in 1 2; do
9868 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
9869 && test -f conftest2.$ac_objext; then
9870 : OK
9871 else
9872 am_cv_prog_cc_c_o=no
9873 break
9874 fi
9875 done
9876 rm -f core conftest*
9877 unset am_i])
9878 if test "$am_cv_prog_cc_c_o" != yes; then
9879 # Losing compiler, so override with the script.
9880 # FIXME: It is wrong to rewrite CC.
9881 # But if we don't then we get into trouble of one sort or another.
9882 # A longer-term fix would be to have automake use am__CC in this case,
9883 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9884 CC="$am_aux_dir/compile $CC"
9885 fi
9886 AC_LANG_POP([C])])
9887
9888 # For backward compatibility.
9889 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
9890
9891 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
9892 #
9893 # This file is free software; the Free Software Foundation
9894 # gives unlimited permission to copy and/or distribute it,
9895 # with or without modifications, as long as this notice is preserved.
9896
9897 # AM_RUN_LOG(COMMAND)
9898 # -------------------
9899 # Run COMMAND, save the exit status in ac_status, and log it.
9900 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
9901 AC_DEFUN([AM_RUN_LOG],
9902 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
9903 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
9904 ac_status=$?
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
9906 (exit $ac_status); }])
9907
9908 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9909
9910 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
9911 #
9912 # This file is free software; the Free Software Foundation
9913 # gives unlimited permission to copy and/or distribute it,
9914 # with or without modifications, as long as this notice is preserved.
93889915
93899916 # AM_SANITY_CHECK
93909917 # ---------------
93919918 AC_DEFUN([AM_SANITY_CHECK],
93929919 [AC_MSG_CHECKING([whether build environment is sane])
9393 # Just in case
9394 sleep 1
9395 echo timestamp > conftest.file
93969920 # Reject unsafe characters in $srcdir or the absolute working directory
93979921 # name. Accept space and tab only in the latter.
93989922 am_lf='
94039927 esac
94049928 case $srcdir in
94059929 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9406 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9930 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
94079931 esac
94089932
9409 # Do `set' in a subshell so we don't clobber the current shell's
9933 # Do 'set' in a subshell so we don't clobber the current shell's
94109934 # arguments. Must try -L first in case configure is actually a
94119935 # symlink; some systems play weird games with the mod time of symlinks
94129936 # (eg FreeBSD returns the mod time of the symlink's containing
94139937 # directory).
94149938 if (
9415 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9416 if test "$[*]" = "X"; then
9417 # -L didn't work.
9418 set X `ls -t "$srcdir/configure" conftest.file`
9419 fi
9420 rm -f conftest.file
9421 if test "$[*]" != "X $srcdir/configure conftest.file" \
9422 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9423
9424 # If neither matched, then we have a broken ls. This can happen
9425 # if, for instance, CONFIG_SHELL is bash and it inherits a
9426 # broken ls alias from the environment. This has actually
9427 # happened. Such a system could not be considered "sane".
9428 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9429 alias in your environment])
9430 fi
9431
9939 am_has_slept=no
9940 for am_try in 1 2; do
9941 echo "timestamp, slept: $am_has_slept" > conftest.file
9942 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9943 if test "$[*]" = "X"; then
9944 # -L didn't work.
9945 set X `ls -t "$srcdir/configure" conftest.file`
9946 fi
9947 if test "$[*]" != "X $srcdir/configure conftest.file" \
9948 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9949
9950 # If neither matched, then we have a broken ls. This can happen
9951 # if, for instance, CONFIG_SHELL is bash and it inherits a
9952 # broken ls alias from the environment. This has actually
9953 # happened. Such a system could not be considered "sane".
9954 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9955 alias in your environment])
9956 fi
9957 if test "$[2]" = conftest.file || test $am_try -eq 2; then
9958 break
9959 fi
9960 # Just in case.
9961 sleep 1
9962 am_has_slept=yes
9963 done
94329964 test "$[2]" = conftest.file
94339965 )
94349966 then
94389970 AC_MSG_ERROR([newly created file is older than distributed files!
94399971 Check your system clock])
94409972 fi
9441 AC_MSG_RESULT(yes)])
9442
9443 # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc.
9973 AC_MSG_RESULT([yes])
9974 # If we didn't sleep, we still need to ensure time stamps of config.status and
9975 # generated files are strictly newer.
9976 am_sleep_pid=
9977 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
9978 ( sleep 1 ) &
9979 am_sleep_pid=$!
9980 fi
9981 AC_CONFIG_COMMANDS_PRE(
9982 [AC_MSG_CHECKING([that generated files are newer than configure])
9983 if test -n "$am_sleep_pid"; then
9984 # Hide warnings about reused PIDs.
9985 wait $am_sleep_pid 2>/dev/null
9986 fi
9987 AC_MSG_RESULT([done])])
9988 rm -f conftest.file
9989 ])
9990
9991 # Copyright (C) 2009-2014 Free Software Foundation, Inc.
94449992 #
94459993 # This file is free software; the Free Software Foundation
94469994 # gives unlimited permission to copy and/or distribute it,
94479995 # with or without modifications, as long as this notice is preserved.
94489996
9449 # serial 1
9997 # AM_SILENT_RULES([DEFAULT])
9998 # --------------------------
9999 # Enable less verbose build rules; with the default set to DEFAULT
10000 # ("yes" being less verbose, "no" or empty being verbose).
10001 AC_DEFUN([AM_SILENT_RULES],
10002 [AC_ARG_ENABLE([silent-rules], [dnl
10003 AS_HELP_STRING(
10004 [--enable-silent-rules],
10005 [less verbose build output (undo: "make V=1")])
10006 AS_HELP_STRING(
10007 [--disable-silent-rules],
10008 [verbose build output (undo: "make V=0")])dnl
10009 ])
10010 case $enable_silent_rules in @%:@ (((
10011 yes) AM_DEFAULT_VERBOSITY=0;;
10012 no) AM_DEFAULT_VERBOSITY=1;;
10013 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
10014 esac
10015 dnl
10016 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
10017 dnl do not support nested variable expansions.
10018 dnl See automake bug#9928 and bug#10237.
10019 am_make=${MAKE-make}
10020 AC_CACHE_CHECK([whether $am_make supports nested variables],
10021 [am_cv_make_support_nested_variables],
10022 [if AS_ECHO([['TRUE=$(BAR$(V))
10023 BAR0=false
10024 BAR1=true
10025 V=1
10026 am__doit:
10027 @$(TRUE)
10028 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
10029 am_cv_make_support_nested_variables=yes
10030 else
10031 am_cv_make_support_nested_variables=no
10032 fi])
10033 if test $am_cv_make_support_nested_variables = yes; then
10034 dnl Using '$V' instead of '$(V)' breaks IRIX make.
10035 AM_V='$(V)'
10036 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10037 else
10038 AM_V=$AM_DEFAULT_VERBOSITY
10039 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10040 fi
10041 AC_SUBST([AM_V])dnl
10042 AM_SUBST_NOTMAKE([AM_V])dnl
10043 AC_SUBST([AM_DEFAULT_V])dnl
10044 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
10045 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
10046 AM_BACKSLASH='\'
10047 AC_SUBST([AM_BACKSLASH])dnl
10048 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
10049 ])
10050
10051 # Copyright (C) 2001-2014 Free Software Foundation, Inc.
10052 #
10053 # This file is free software; the Free Software Foundation
10054 # gives unlimited permission to copy and/or distribute it,
10055 # with or without modifications, as long as this notice is preserved.
945010056
945110057 # AM_PROG_INSTALL_STRIP
945210058 # ---------------------
9453 # One issue with vendor `install' (even GNU) is that you can't
10059 # One issue with vendor 'install' (even GNU) is that you can't
945410060 # specify the program used to strip binaries. This is especially
945510061 # annoying in cross-compiling environments, where the build's strip
945610062 # is unlikely to handle the host's binaries.
945710063 # Fortunately install-sh will honor a STRIPPROG variable, so we
9458 # always use install-sh in `make install-strip', and initialize
10064 # always use install-sh in "make install-strip", and initialize
945910065 # STRIPPROG with the value of the STRIP variable (set by the user).
946010066 AC_DEFUN([AM_PROG_INSTALL_STRIP],
946110067 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9462 # Installed binaries are usually stripped using `strip' when the user
9463 # run `make install-strip'. However `strip' might not be the right
10068 # Installed binaries are usually stripped using 'strip' when the user
10069 # run "make install-strip". However 'strip' might not be the right
946410070 # tool to use in cross-compilation environments, therefore Automake
9465 # will honor the `STRIP' environment variable to overrule this program.
9466 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10071 # will honor the 'STRIP' environment variable to overrule this program.
10072 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
946710073 if test "$cross_compiling" != no; then
946810074 AC_CHECK_TOOL([STRIP], [strip], :)
946910075 fi
947010076 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
947110077 AC_SUBST([INSTALL_STRIP_PROGRAM])])
947210078
9473 # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc.
10079 # Copyright (C) 2006-2014 Free Software Foundation, Inc.
947410080 #
947510081 # This file is free software; the Free Software Foundation
947610082 # gives unlimited permission to copy and/or distribute it,
947710083 # with or without modifications, as long as this notice is preserved.
9478
9479 # serial 3
948010084
948110085 # _AM_SUBST_NOTMAKE(VARIABLE)
948210086 # ---------------------------
949110095
949210096 # Check how to create a tarball. -*- Autoconf -*-
949310097
9494 # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc.
10098 # Copyright (C) 2004-2014 Free Software Foundation, Inc.
949510099 #
949610100 # This file is free software; the Free Software Foundation
949710101 # gives unlimited permission to copy and/or distribute it,
949810102 # with or without modifications, as long as this notice is preserved.
949910103
9500 # serial 2
9501
950210104 # _AM_PROG_TAR(FORMAT)
950310105 # --------------------
950410106 # Check how to create a tarball in format FORMAT.
9505 # FORMAT should be one of `v7', `ustar', or `pax'.
10107 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
950610108 #
950710109 # Substitute a variable $(am__tar) that is a command
950810110 # writing to stdout a FORMAT-tarball containing the directory
951210114 # Substitute a variable $(am__untar) that extract such
951310115 # a tarball read from stdin.
951410116 # $(am__untar) < result.tar
10117 #
951510118 AC_DEFUN([_AM_PROG_TAR],
951610119 [# Always define AMTAR for backward compatibility. Yes, it's still used
951710120 # in the wild :-( We should find a proper way to deprecate it ...
951810121 AC_SUBST([AMTAR], ['$${TAR-tar}'])
10122
10123 # We'll loop over all known methods to create a tar archive until one works.
10124 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10125
951910126 m4_if([$1], [v7],
9520 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
9521 [m4_case([$1], [ustar],, [pax],,
9522 [m4_fatal([Unknown tar format])])
9523 AC_MSG_CHECKING([how to create a $1 tar archive])
9524 # Loop over all known methods to create a tar archive until one works.
9525 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9526 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9527 # Do not fold the above two line into one, because Tru64 sh and
9528 # Solaris sh will not grok spaces in the rhs of `-'.
9529 for _am_tool in $_am_tools
9530 do
9531 case $_am_tool in
9532 gnutar)
9533 for _am_tar in tar gnutar gtar;
9534 do
9535 AM_RUN_LOG([$_am_tar --version]) && break
9536 done
9537 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9538 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9539 am__untar="$_am_tar -xf -"
9540 ;;
9541 plaintar)
9542 # Must skip GNU tar: if it does not support --format= it doesn't create
9543 # ustar tarball either.
9544 (tar --version) >/dev/null 2>&1 && continue
9545 am__tar='tar chf - "$$tardir"'
9546 am__tar_='tar chf - "$tardir"'
9547 am__untar='tar xf -'
9548 ;;
9549 pax)
9550 am__tar='pax -L -x $1 -w "$$tardir"'
9551 am__tar_='pax -L -x $1 -w "$tardir"'
9552 am__untar='pax -r'
9553 ;;
9554 cpio)
9555 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9556 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9557 am__untar='cpio -i -H $1 -d'
9558 ;;
9559 none)
9560 am__tar=false
9561 am__tar_=false
9562 am__untar=false
9563 ;;
9564 esac
9565
9566 # If the value was cached, stop now. We just wanted to have am__tar
9567 # and am__untar set.
9568 test -n "${am_cv_prog_tar_$1}" && break
9569
9570 # tar/untar a dummy directory, and stop if the command works
10127 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
10128
10129 [m4_case([$1],
10130 [ustar],
10131 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
10132 # There is notably a 21 bits limit for the UID and the GID. In fact,
10133 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
10134 # and bug#13588).
10135 am_max_uid=2097151 # 2^21 - 1
10136 am_max_gid=$am_max_uid
10137 # The $UID and $GID variables are not portable, so we need to resort
10138 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
10139 # below are definitely unexpected, so allow the users to see them
10140 # (that is, avoid stderr redirection).
10141 am_uid=`id -u || echo unknown`
10142 am_gid=`id -g || echo unknown`
10143 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
10144 if test $am_uid -le $am_max_uid; then
10145 AC_MSG_RESULT([yes])
10146 else
10147 AC_MSG_RESULT([no])
10148 _am_tools=none
10149 fi
10150 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
10151 if test $am_gid -le $am_max_gid; then
10152 AC_MSG_RESULT([yes])
10153 else
10154 AC_MSG_RESULT([no])
10155 _am_tools=none
10156 fi],
10157
10158 [pax],
10159 [],
10160
10161 [m4_fatal([Unknown tar format])])
10162
10163 AC_MSG_CHECKING([how to create a $1 tar archive])
10164
10165 # Go ahead even if we have the value already cached. We do so because we
10166 # need to set the values for the 'am__tar' and 'am__untar' variables.
10167 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
10168
10169 for _am_tool in $_am_tools; do
10170 case $_am_tool in
10171 gnutar)
10172 for _am_tar in tar gnutar gtar; do
10173 AM_RUN_LOG([$_am_tar --version]) && break
10174 done
10175 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10176 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10177 am__untar="$_am_tar -xf -"
10178 ;;
10179 plaintar)
10180 # Must skip GNU tar: if it does not support --format= it doesn't create
10181 # ustar tarball either.
10182 (tar --version) >/dev/null 2>&1 && continue
10183 am__tar='tar chf - "$$tardir"'
10184 am__tar_='tar chf - "$tardir"'
10185 am__untar='tar xf -'
10186 ;;
10187 pax)
10188 am__tar='pax -L -x $1 -w "$$tardir"'
10189 am__tar_='pax -L -x $1 -w "$tardir"'
10190 am__untar='pax -r'
10191 ;;
10192 cpio)
10193 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10194 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10195 am__untar='cpio -i -H $1 -d'
10196 ;;
10197 none)
10198 am__tar=false
10199 am__tar_=false
10200 am__untar=false
10201 ;;
10202 esac
10203
10204 # If the value was cached, stop now. We just wanted to have am__tar
10205 # and am__untar set.
10206 test -n "${am_cv_prog_tar_$1}" && break
10207
10208 # tar/untar a dummy directory, and stop if the command works.
10209 rm -rf conftest.dir
10210 mkdir conftest.dir
10211 echo GrepMe > conftest.dir/file
10212 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10213 rm -rf conftest.dir
10214 if test -s conftest.tar; then
10215 AM_RUN_LOG([$am__untar <conftest.tar])
10216 AM_RUN_LOG([cat conftest.dir/file])
10217 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10218 fi
10219 done
957110220 rm -rf conftest.dir
9572 mkdir conftest.dir
9573 echo GrepMe > conftest.dir/file
9574 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9575 rm -rf conftest.dir
9576 if test -s conftest.tar; then
9577 AM_RUN_LOG([$am__untar <conftest.tar])
9578 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9579 fi
9580 done
9581 rm -rf conftest.dir
9582
9583 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9584 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10221
10222 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10223 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10224
958510225 AC_SUBST([am__tar])
958610226 AC_SUBST([am__untar])
958710227 ]) # _AM_PROG_TAR
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program. If not, see <http://www.gnu.org/licenses/>.
20
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 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
00 #! /bin/sh
11 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-10'
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-03-23'
75
86 # This file is free software; you can redistribute it and/or modify it
97 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
8 # the Free Software Foundation; either version 3 of the License, or
119 # (at your option) any later version.
1210 #
1311 # This program is distributed in the hope that it will be useful, but
1614 # General Public License for more details.
1715 #
1816 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2218 #
2319 # As a special exception to the GNU General Public License, if you
2420 # distribute this file as part of a program that contains a
2521 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
3225 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
26 # Originally written by Per Bothner.
3627 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
28 # You can get the latest version of this script from:
29 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
30 #
31 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
32
3933
4034 me=`echo "$0" | sed -e 's,.*/,,'`
4135
5549 GNU config.guess ($timestamp)
5650
5751 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
52 Copyright 1992-2014 Free Software Foundation, Inc.
6053
6154 This is free software; see the source for copying conditions. There is NO
6255 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
138131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140133
134 case "${UNAME_SYSTEM}" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval $set_cc_for_build
141 cat <<-EOF > $dummy.c
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
152 ;;
153 esac
154
141155 # Note: order is significant - the case branches are not exclusive.
142156
143157 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144158 *:NetBSD:*:*)
145159 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
160 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
147161 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148162 # switched to ELF, *-*-netbsd* would select the old
149163 # object file format. This provides both forward
179193 fi
180194 ;;
181195 *)
182 os=netbsd
196 os=netbsd
183197 ;;
184198 esac
185199 # The OS release
200214 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
201215 echo "${machine}-${os}${release}"
202216 exit ;;
217 *:Bitrig:*:*)
218 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
219 echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
220 exit ;;
203221 *:OpenBSD:*:*)
204222 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
205223 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
222240 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
223241 ;;
224242 *5.*)
225 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
243 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
226244 ;;
227245 esac
228246 # According to Compaq, /usr/sbin/psrinfo has been available on
268286 # A Xn.n version is an unreleased experimental baselevel.
269287 # 1.2 uses "1.2" for uname -r.
270288 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271 exit ;;
289 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
290 exitcode=$?
291 trap '' 0
292 exit $exitcode ;;
272293 Alpha\ *:Windows_NT*:*)
273294 # How do we know it's Interix rather than the generic POSIX subsystem?
274295 # Should we change UNAME_MACHINE based on the output of uname instead
294315 echo s390-ibm-zvmoe
295316 exit ;;
296317 *:OS400:*:*)
297 echo powerpc-ibm-os400
318 echo powerpc-ibm-os400
298319 exit ;;
299320 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
300321 echo arm-acorn-riscix${UNAME_RELEASE}
301322 exit ;;
302 arm:riscos:*:*|arm:RISCOS:*:*)
323 arm*:riscos:*:*|arm*:RISCOS:*:*)
303324 echo arm-unknown-riscos
304325 exit ;;
305326 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
331352 exit ;;
332353 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
333354 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
355 exit ;;
356 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
357 echo i386-pc-auroraux${UNAME_RELEASE}
334358 exit ;;
335359 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
336360 eval $set_cc_for_build
390414 # MiNT. But MiNT is downward compatible to TOS, so this should
391415 # be no problem.
392416 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
393 echo m68k-atari-mint${UNAME_RELEASE}
417 echo m68k-atari-mint${UNAME_RELEASE}
394418 exit ;;
395419 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
396420 echo m68k-atari-mint${UNAME_RELEASE}
397 exit ;;
421 exit ;;
398422 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
399 echo m68k-atari-mint${UNAME_RELEASE}
423 echo m68k-atari-mint${UNAME_RELEASE}
400424 exit ;;
401425 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
402 echo m68k-milan-mint${UNAME_RELEASE}
403 exit ;;
426 echo m68k-milan-mint${UNAME_RELEASE}
427 exit ;;
404428 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
405 echo m68k-hades-mint${UNAME_RELEASE}
406 exit ;;
429 echo m68k-hades-mint${UNAME_RELEASE}
430 exit ;;
407431 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
408 echo m68k-unknown-mint${UNAME_RELEASE}
409 exit ;;
432 echo m68k-unknown-mint${UNAME_RELEASE}
433 exit ;;
410434 m68k:machten:*:*)
411435 echo m68k-apple-machten${UNAME_RELEASE}
412436 exit ;;
476500 echo m88k-motorola-sysv3
477501 exit ;;
478502 AViiON:dgux:*:*)
479 # DG/UX returns AViiON for all architectures
480 UNAME_PROCESSOR=`/usr/bin/uname -p`
503 # DG/UX returns AViiON for all architectures
504 UNAME_PROCESSOR=`/usr/bin/uname -p`
481505 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
482506 then
483507 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
490514 else
491515 echo i586-dg-dgux${UNAME_RELEASE}
492516 fi
493 exit ;;
517 exit ;;
494518 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
495519 echo m88k-dolphin-sysv3
496520 exit ;;
547571 echo rs6000-ibm-aix3.2
548572 fi
549573 exit ;;
550 *:AIX:*:[456])
574 *:AIX:*:[4567])
551575 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
552576 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
553577 IBM_ARCH=rs6000
590614 9000/[678][0-9][0-9])
591615 if [ -x /usr/bin/getconf ]; then
592616 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
593 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
594 case "${sc_cpu_version}" in
595 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
596 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
597 532) # CPU_PA_RISC2_0
598 case "${sc_kernel_bits}" in
599 32) HP_ARCH="hppa2.0n" ;;
600 64) HP_ARCH="hppa2.0w" ;;
617 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
618 case "${sc_cpu_version}" in
619 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
620 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
621 532) # CPU_PA_RISC2_0
622 case "${sc_kernel_bits}" in
623 32) HP_ARCH="hppa2.0n" ;;
624 64) HP_ARCH="hppa2.0w" ;;
601625 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
602 esac ;;
603 esac
626 esac ;;
627 esac
604628 fi
605629 if [ "${HP_ARCH}" = "" ]; then
606630 eval $set_cc_for_build
607 sed 's/^ //' << EOF >$dummy.c
608
609 #define _HPUX_SOURCE
610 #include <stdlib.h>
611 #include <unistd.h>
612
613 int main ()
614 {
615 #if defined(_SC_KERNEL_BITS)
616 long bits = sysconf(_SC_KERNEL_BITS);
617 #endif
618 long cpu = sysconf (_SC_CPU_VERSION);
619
620 switch (cpu)
621 {
622 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
623 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
624 case CPU_PA_RISC2_0:
625 #if defined(_SC_KERNEL_BITS)
626 switch (bits)
627 {
628 case 64: puts ("hppa2.0w"); break;
629 case 32: puts ("hppa2.0n"); break;
630 default: puts ("hppa2.0"); break;
631 } break;
632 #else /* !defined(_SC_KERNEL_BITS) */
633 puts ("hppa2.0"); break;
634 #endif
635 default: puts ("hppa1.0"); break;
636 }
637 exit (0);
638 }
631 sed 's/^ //' << EOF >$dummy.c
632
633 #define _HPUX_SOURCE
634 #include <stdlib.h>
635 #include <unistd.h>
636
637 int main ()
638 {
639 #if defined(_SC_KERNEL_BITS)
640 long bits = sysconf(_SC_KERNEL_BITS);
641 #endif
642 long cpu = sysconf (_SC_CPU_VERSION);
643
644 switch (cpu)
645 {
646 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
647 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
648 case CPU_PA_RISC2_0:
649 #if defined(_SC_KERNEL_BITS)
650 switch (bits)
651 {
652 case 64: puts ("hppa2.0w"); break;
653 case 32: puts ("hppa2.0n"); break;
654 default: puts ("hppa2.0"); break;
655 } break;
656 #else /* !defined(_SC_KERNEL_BITS) */
657 puts ("hppa2.0"); break;
658 #endif
659 default: puts ("hppa1.0"); break;
660 }
661 exit (0);
662 }
639663 EOF
640664 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
641665 test -z "$HP_ARCH" && HP_ARCH=hppa
726750 exit ;;
727751 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
728752 echo c1-convex-bsd
729 exit ;;
753 exit ;;
730754 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
731755 if getsysinfo -f scalar_acc
732756 then echo c32-convex-bsd
733757 else echo c2-convex-bsd
734758 fi
735 exit ;;
759 exit ;;
736760 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
737761 echo c34-convex-bsd
738 exit ;;
762 exit ;;
739763 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
740764 echo c38-convex-bsd
741 exit ;;
765 exit ;;
742766 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
743767 echo c4-convex-bsd
744 exit ;;
768 exit ;;
745769 CRAY*Y-MP:*:*:*)
746770 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
747771 exit ;;
765789 exit ;;
766790 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
767791 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
768 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
769 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
770 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
771 exit ;;
792 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
793 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
794 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
795 exit ;;
772796 5000:UNIX_System_V:4.*:*)
773 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
775 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
797 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
798 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
799 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
776800 exit ;;
777801 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
778802 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
784808 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
785809 exit ;;
786810 *:FreeBSD:*:*)
787 case ${UNAME_MACHINE} in
788 pc98)
789 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
811 UNAME_PROCESSOR=`/usr/bin/uname -p`
812 case ${UNAME_PROCESSOR} in
790813 amd64)
791814 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792815 *)
793 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
816 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794817 esac
795818 exit ;;
796819 i*:CYGWIN*:*)
797820 echo ${UNAME_MACHINE}-pc-cygwin
798821 exit ;;
822 *:MINGW64*:*)
823 echo ${UNAME_MACHINE}-pc-mingw64
824 exit ;;
799825 *:MINGW*:*)
800826 echo ${UNAME_MACHINE}-pc-mingw32
801827 exit ;;
828 *:MSYS*:*)
829 echo ${UNAME_MACHINE}-pc-msys
830 exit ;;
802831 i*:windows32*:*)
803 # uname -m includes "-pc" on this system.
804 echo ${UNAME_MACHINE}-mingw32
832 # uname -m includes "-pc" on this system.
833 echo ${UNAME_MACHINE}-mingw32
805834 exit ;;
806835 i*:PW*:*)
807836 echo ${UNAME_MACHINE}-pc-pw32
808837 exit ;;
809 *:Interix*:[3456]*)
810 case ${UNAME_MACHINE} in
838 *:Interix*:*)
839 case ${UNAME_MACHINE} in
811840 x86)
812841 echo i586-pc-interix${UNAME_RELEASE}
813842 exit ;;
814 EM64T | authenticamd | genuineintel)
843 authenticamd | genuineintel | EM64T)
815844 echo x86_64-unknown-interix${UNAME_RELEASE}
816845 exit ;;
817846 IA64)
844873 exit ;;
845874 *:GNU:*:*)
846875 # the GNU system
847 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
876 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
848877 exit ;;
849878 *:GNU/*:*:*)
850879 # other systems with GNU libc and userland
851 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
880 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
852881 exit ;;
853882 i*86:Minix:*:*)
854883 echo ${UNAME_MACHINE}-pc-minix
884 exit ;;
885 aarch64:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
887 exit ;;
888 aarch64_be:Linux:*:*)
889 UNAME_MACHINE=aarch64_be
890 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
891 exit ;;
892 alpha:Linux:*:*)
893 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
894 EV5) UNAME_MACHINE=alphaev5 ;;
895 EV56) UNAME_MACHINE=alphaev56 ;;
896 PCA56) UNAME_MACHINE=alphapca56 ;;
897 PCA57) UNAME_MACHINE=alphapca56 ;;
898 EV6) UNAME_MACHINE=alphaev6 ;;
899 EV67) UNAME_MACHINE=alphaev67 ;;
900 EV68*) UNAME_MACHINE=alphaev68 ;;
901 esac
902 objdump --private-headers /bin/sh | grep -q ld.so.1
903 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
904 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
905 exit ;;
906 arc:Linux:*:* | arceb:Linux:*:*)
907 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
855908 exit ;;
856909 arm*:Linux:*:*)
857910 eval $set_cc_for_build
858911 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
859912 | grep -q __ARM_EABI__
860913 then
861 echo ${UNAME_MACHINE}-unknown-linux-gnu
914 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
862915 else
863 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
916 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
917 | grep -q __ARM_PCS_VFP
918 then
919 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
920 else
921 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
922 fi
864923 fi
865924 exit ;;
866925 avr32*:Linux:*:*)
867 echo ${UNAME_MACHINE}-unknown-linux-gnu
926 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
868927 exit ;;
869928 cris:Linux:*:*)
870 echo cris-axis-linux-gnu
929 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
871930 exit ;;
872931 crisv32:Linux:*:*)
873 echo crisv32-axis-linux-gnu
932 echo ${UNAME_MACHINE}-axis-linux-${LIBC}
874933 exit ;;
875934 frv:Linux:*:*)
876 echo frv-unknown-linux-gnu
935 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
936 exit ;;
937 hexagon:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939 exit ;;
940 i*86:Linux:*:*)
941 echo ${UNAME_MACHINE}-pc-linux-${LIBC}
877942 exit ;;
878943 ia64:Linux:*:*)
879 echo ${UNAME_MACHINE}-unknown-linux-gnu
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
880945 exit ;;
881946 m32r*:Linux:*:*)
882 echo ${UNAME_MACHINE}-unknown-linux-gnu
947 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
883948 exit ;;
884949 m68*:Linux:*:*)
885 echo ${UNAME_MACHINE}-unknown-linux-gnu
950 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
886951 exit ;;
887952 mips:Linux:*:* | mips64:Linux:*:*)
888953 eval $set_cc_for_build
900965 #endif
901966 #endif
902967 EOF
903 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
904 /^CPU/{
905 s: ::g
906 p
907 }'`"
908 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
968 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
969 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
909970 ;;
910 or32:Linux:*:*)
911 echo or32-unknown-linux-gnu
912 exit ;;
913 ppc:Linux:*:*)
914 echo powerpc-unknown-linux-gnu
915 exit ;;
916 ppc64:Linux:*:*)
917 echo powerpc64-unknown-linux-gnu
918 exit ;;
919 alpha:Linux:*:*)
920 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
921 EV5) UNAME_MACHINE=alphaev5 ;;
922 EV56) UNAME_MACHINE=alphaev56 ;;
923 PCA56) UNAME_MACHINE=alphapca56 ;;
924 PCA57) UNAME_MACHINE=alphapca56 ;;
925 EV6) UNAME_MACHINE=alphaev6 ;;
926 EV67) UNAME_MACHINE=alphaev67 ;;
927 EV68*) UNAME_MACHINE=alphaev68 ;;
928 esac
929 objdump --private-headers /bin/sh | grep -q ld.so.1
930 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
931 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
971 openrisc*:Linux:*:*)
972 echo or1k-unknown-linux-${LIBC}
973 exit ;;
974 or32:Linux:*:* | or1k*:Linux:*:*)
975 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
932976 exit ;;
933977 padre:Linux:*:*)
934 echo sparc-unknown-linux-gnu
978 echo sparc-unknown-linux-${LIBC}
979 exit ;;
980 parisc64:Linux:*:* | hppa64:Linux:*:*)
981 echo hppa64-unknown-linux-${LIBC}
935982 exit ;;
936983 parisc:Linux:*:* | hppa:Linux:*:*)
937984 # Look for CPU level
938985 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
939 PA7*) echo hppa1.1-unknown-linux-gnu ;;
940 PA8*) echo hppa2.0-unknown-linux-gnu ;;
941 *) echo hppa-unknown-linux-gnu ;;
986 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
987 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
988 *) echo hppa-unknown-linux-${LIBC} ;;
942989 esac
943990 exit ;;
944 parisc64:Linux:*:* | hppa64:Linux:*:*)
945 echo hppa64-unknown-linux-gnu
991 ppc64:Linux:*:*)
992 echo powerpc64-unknown-linux-${LIBC}
993 exit ;;
994 ppc:Linux:*:*)
995 echo powerpc-unknown-linux-${LIBC}
996 exit ;;
997 ppc64le:Linux:*:*)
998 echo powerpc64le-unknown-linux-${LIBC}
999 exit ;;
1000 ppcle:Linux:*:*)
1001 echo powerpcle-unknown-linux-${LIBC}
9461002 exit ;;
9471003 s390:Linux:*:* | s390x:Linux:*:*)
948 echo ${UNAME_MACHINE}-ibm-linux
1004 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
9491005 exit ;;
9501006 sh64*:Linux:*:*)
951 echo ${UNAME_MACHINE}-unknown-linux-gnu
1007 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9521008 exit ;;
9531009 sh*:Linux:*:*)
954 echo ${UNAME_MACHINE}-unknown-linux-gnu
1010 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9551011 exit ;;
9561012 sparc:Linux:*:* | sparc64:Linux:*:*)
957 echo ${UNAME_MACHINE}-unknown-linux-gnu
1013 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1014 exit ;;
1015 tile*:Linux:*:*)
1016 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9581017 exit ;;
9591018 vax:Linux:*:*)
960 echo ${UNAME_MACHINE}-dec-linux-gnu
1019 echo ${UNAME_MACHINE}-dec-linux-${LIBC}
9611020 exit ;;
9621021 x86_64:Linux:*:*)
963 echo x86_64-unknown-linux-gnu
1022 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9641023 exit ;;
9651024 xtensa*:Linux:*:*)
966 echo ${UNAME_MACHINE}-unknown-linux-gnu
967 exit ;;
968 i*86:Linux:*:*)
969 # The BFD linker knows what the default object file format is, so
970 # first see if it will tell us. cd to the root directory to prevent
971 # problems with other programs or directories called `ld' in the path.
972 # Set LC_ALL=C to ensure ld outputs messages in English.
973 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
974 | sed -ne '/supported targets:/!d
975 s/[ ][ ]*/ /g
976 s/.*supported targets: *//
977 s/ .*//
978 p'`
979 case "$ld_supported_targets" in
980 elf32-i386)
981 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
982 ;;
983 esac
984 # Determine whether the default compiler is a.out or elf
985 eval $set_cc_for_build
986 sed 's/^ //' << EOF >$dummy.c
987 #include <features.h>
988 #ifdef __ELF__
989 # ifdef __GLIBC__
990 # if __GLIBC__ >= 2
991 LIBC=gnu
992 # else
993 LIBC=gnulibc1
994 # endif
995 # else
996 LIBC=gnulibc1
997 # endif
998 #else
999 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1000 LIBC=gnu
1001 #else
1002 LIBC=gnuaout
1003 #endif
1004 #endif
1005 #ifdef __dietlibc__
1006 LIBC=dietlibc
1007 #endif
1008 EOF
1009 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1010 /^LIBC/{
1011 s: ::g
1012 p
1013 }'`"
1014 test x"${LIBC}" != x && {
1015 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1016 exit
1017 }
1018 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1019 ;;
1025 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1026 exit ;;
10201027 i*86:DYNIX/ptx:4*:*)
10211028 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10221029 # earlier versions are messed up and put the nodename in both
10241031 echo i386-sequent-sysv4
10251032 exit ;;
10261033 i*86:UNIX_SV:4.2MP:2.*)
1027 # Unixware is an offshoot of SVR4, but it has its own version
1028 # number series starting with 2...
1029 # I am not positive that other SVR4 systems won't match this,
1034 # Unixware is an offshoot of SVR4, but it has its own version
1035 # number series starting with 2...
1036 # I am not positive that other SVR4 systems won't match this,
10301037 # I just have to hope. -- rms.
1031 # Use sysv4.2uw... so that sysv4* matches it.
1038 # Use sysv4.2uw... so that sysv4* matches it.
10321039 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
10331040 exit ;;
10341041 i*86:OS/2:*:*)
10601067 fi
10611068 exit ;;
10621069 i*86:*:5:[678]*)
1063 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1070 # UnixWare 7.x, OpenUNIX and OpenServer 6.
10641071 case `/bin/uname -X | grep "^Machine"` in
10651072 *486*) UNAME_MACHINE=i486 ;;
10661073 *Pentium) UNAME_MACHINE=i586 ;;
10881095 exit ;;
10891096 pc:*:*:*)
10901097 # Left here for compatibility:
1091 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1092 # the processor, so we play safe by assuming i586.
1098 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1099 # the processor, so we play safe by assuming i586.
10931100 # Note: whatever this is, it MUST be the same as what config.sub
10941101 # prints for the "djgpp" host, or else GDB configury will decide that
10951102 # this is a cross-build.
10961103 echo i586-pc-msdosdjgpp
1097 exit ;;
1104 exit ;;
10981105 Intel:Mach:3*:*)
10991106 echo i386-pc-mach3
11001107 exit ;;
11291136 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11301137 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11311138 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133 && { echo i486-ncr-sysv4; exit; } ;;
1139 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140 && { echo i486-ncr-sysv4; exit; } ;;
11341141 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
11351142 OS_REL='.3'
11361143 test -r /etc/.relid \
11731180 echo ns32k-sni-sysv
11741181 fi
11751182 exit ;;
1176 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1177 # says <Richard.M.Bartel@ccMail.Census.GOV>
1178 echo i586-unisys-sysv4
1179 exit ;;
1183 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1184 # says <Richard.M.Bartel@ccMail.Census.GOV>
1185 echo i586-unisys-sysv4
1186 exit ;;
11801187 *:UNIX_System_V:4*:FTX*)
11811188 # From Gerald Hewes <hewes@openmarket.com>.
11821189 # How about differentiating between stratus architectures? -djm
12021209 exit ;;
12031210 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
12041211 if [ -d /usr/nec ]; then
1205 echo mips-nec-sysv${UNAME_RELEASE}
1212 echo mips-nec-sysv${UNAME_RELEASE}
12061213 else
1207 echo mips-unknown-sysv${UNAME_RELEASE}
1208 fi
1209 exit ;;
1214 echo mips-unknown-sysv${UNAME_RELEASE}
1215 fi
1216 exit ;;
12101217 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
12111218 echo powerpc-be-beos
12121219 exit ;;
12191226 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
12201227 echo i586-pc-haiku
12211228 exit ;;
1229 x86_64:Haiku:*:*)
1230 echo x86_64-unknown-haiku
1231 exit ;;
12221232 SX-4:SUPER-UX:*:*)
12231233 echo sx4-nec-superux${UNAME_RELEASE}
12241234 exit ;;
12451255 exit ;;
12461256 *:Darwin:*:*)
12471257 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1248 case $UNAME_PROCESSOR in
1249 unknown) UNAME_PROCESSOR=powerpc ;;
1250 esac
1258 eval $set_cc_for_build
1259 if test "$UNAME_PROCESSOR" = unknown ; then
1260 UNAME_PROCESSOR=powerpc
1261 fi
1262 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266 grep IS_64BIT_ARCH >/dev/null
1267 then
1268 case $UNAME_PROCESSOR in
1269 i386) UNAME_PROCESSOR=x86_64 ;;
1270 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1271 esac
1272 fi
1273 fi
1274 elif test "$UNAME_PROCESSOR" = i386 ; then
1275 # Avoid executing cc on OS X 10.9, as it ships with a stub
1276 # that puts up a graphical alert prompting to install
1277 # developer tools. Any system running Mac OS X 10.7 or
1278 # later (Darwin 11 and later) is required to have a 64-bit
1279 # processor. This is not true of the ARM version of Darwin
1280 # that Apple uses in portable devices.
1281 UNAME_PROCESSOR=x86_64
1282 fi
12511283 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12521284 exit ;;
12531285 *:procnto*:*:* | *:QNX:[0123456789]*:*)
12611293 *:QNX:*:4*)
12621294 echo i386-pc-qnx
12631295 exit ;;
1264 NSE-?:NONSTOP_KERNEL:*:*)
1296 NEO-?:NONSTOP_KERNEL:*:*)
1297 echo neo-tandem-nsk${UNAME_RELEASE}
1298 exit ;;
1299 NSE-*:NONSTOP_KERNEL:*:*)
12651300 echo nse-tandem-nsk${UNAME_RELEASE}
12661301 exit ;;
12671302 NSR-?:NONSTOP_KERNEL:*:*)
13061341 echo pdp10-unknown-its
13071342 exit ;;
13081343 SEI:*:*:SEIUX)
1309 echo mips-sei-seiux${UNAME_RELEASE}
1344 echo mips-sei-seiux${UNAME_RELEASE}
13101345 exit ;;
13111346 *:DragonFly:*:*)
13121347 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
13131348 exit ;;
13141349 *:*VMS:*:*)
1315 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1350 UNAME_MACHINE=`(uname -p) 2>/dev/null`
13161351 case "${UNAME_MACHINE}" in
13171352 A*) echo alpha-dec-vms ; exit ;;
13181353 I*) echo ia64-dec-vms ; exit ;;
13301365 i*86:AROS:*:*)
13311366 echo ${UNAME_MACHINE}-pc-aros
13321367 exit ;;
1368 x86_64:VMkernel:*:*)
1369 echo ${UNAME_MACHINE}-unknown-esx
1370 exit ;;
13331371 esac
1334
1335 #echo '(No uname command or uname output not recognized.)' 1>&2
1336 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1337
1338 eval $set_cc_for_build
1339 cat >$dummy.c <<EOF
1340 #ifdef _SEQUENT_
1341 # include <sys/types.h>
1342 # include <sys/utsname.h>
1343 #endif
1344 main ()
1345 {
1346 #if defined (sony)
1347 #if defined (MIPSEB)
1348 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1349 I don't know.... */
1350 printf ("mips-sony-bsd\n"); exit (0);
1351 #else
1352 #include <sys/param.h>
1353 printf ("m68k-sony-newsos%s\n",
1354 #ifdef NEWSOS4
1355 "4"
1356 #else
1357 ""
1358 #endif
1359 ); exit (0);
1360 #endif
1361 #endif
1362
1363 #if defined (__arm) && defined (__acorn) && defined (__unix)
1364 printf ("arm-acorn-riscix\n"); exit (0);
1365 #endif
1366
1367 #if defined (hp300) && !defined (hpux)
1368 printf ("m68k-hp-bsd\n"); exit (0);
1369 #endif
1370
1371 #if defined (NeXT)
1372 #if !defined (__ARCHITECTURE__)
1373 #define __ARCHITECTURE__ "m68k"
1374 #endif
1375 int version;
1376 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1377 if (version < 4)
1378 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1379 else
1380 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1381 exit (0);
1382 #endif
1383
1384 #if defined (MULTIMAX) || defined (n16)
1385 #if defined (UMAXV)
1386 printf ("ns32k-encore-sysv\n"); exit (0);
1387 #else
1388 #if defined (CMU)
1389 printf ("ns32k-encore-mach\n"); exit (0);
1390 #else
1391 printf ("ns32k-encore-bsd\n"); exit (0);
1392 #endif
1393 #endif
1394 #endif
1395
1396 #if defined (__386BSD__)
1397 printf ("i386-pc-bsd\n"); exit (0);
1398 #endif
1399
1400 #if defined (sequent)
1401 #if defined (i386)
1402 printf ("i386-sequent-dynix\n"); exit (0);
1403 #endif
1404 #if defined (ns32000)
1405 printf ("ns32k-sequent-dynix\n"); exit (0);
1406 #endif
1407 #endif
1408
1409 #if defined (_SEQUENT_)
1410 struct utsname un;
1411
1412 uname(&un);
1413
1414 if (strncmp(un.version, "V2", 2) == 0) {
1415 printf ("i386-sequent-ptx2\n"); exit (0);
1416 }
1417 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1418 printf ("i386-sequent-ptx1\n"); exit (0);
1419 }
1420 printf ("i386-sequent-ptx\n"); exit (0);
1421
1422 #endif
1423
1424 #if defined (vax)
1425 # if !defined (ultrix)
1426 # include <sys/param.h>
1427 # if defined (BSD)
1428 # if BSD == 43
1429 printf ("vax-dec-bsd4.3\n"); exit (0);
1430 # else
1431 # if BSD == 199006
1432 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1433 # else
1434 printf ("vax-dec-bsd\n"); exit (0);
1435 # endif
1436 # endif
1437 # else
1438 printf ("vax-dec-bsd\n"); exit (0);
1439 # endif
1440 # else
1441 printf ("vax-dec-ultrix\n"); exit (0);
1442 # endif
1443 #endif
1444
1445 #if defined (alliant) && defined (i860)
1446 printf ("i860-alliant-bsd\n"); exit (0);
1447 #endif
1448
1449 exit (1);
1450 }
1451 EOF
1452
1453 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1454 { echo "$SYSTEM_NAME"; exit; }
1455
1456 # Apollos put the system type in the environment.
1457
1458 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1459
1460 # Convex versions that predate uname can use getsysinfo(1)
1461
1462 if [ -x /usr/convex/getsysinfo ]
1463 then
1464 case `getsysinfo -f cpu_type` in
1465 c1*)
1466 echo c1-convex-bsd
1467 exit ;;
1468 c2*)
1469 if getsysinfo -f scalar_acc
1470 then echo c32-convex-bsd
1471 else echo c2-convex-bsd
1472 fi
1473 exit ;;
1474 c34*)
1475 echo c34-convex-bsd
1476 exit ;;
1477 c38*)
1478 echo c38-convex-bsd
1479 exit ;;
1480 c4*)
1481 echo c4-convex-bsd
1482 exit ;;
1483 esac
1484 fi
14851372
14861373 cat >&2 <<EOF
14871374 $0: unable to guess system type
00 #! /bin/sh
11 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
4 # Free Software Foundation, Inc.
5
6 timestamp='2009-06-11'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
2 # Copyright 1992-2014 Free Software Foundation, Inc.
3
4 timestamp='2014-09-11'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
159 # (at your option) any later version.
1610 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
2115 #
2216 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
17 # along with this program; if not, see <http://www.gnu.org/licenses/>.
2618 #
2719 # As a special exception to the GNU General Public License, if you
2820 # distribute this file as part of a program that contains a
2921 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches with a ChangeLog entry to config-patches@gnu.org.
3528 #
3629 # Configuration subroutine to validate and canonicalize a configuration type.
3730 # Supply the specified configuration type as an argument.
3831 # If it is invalid, we print an error message on stderr and exit with code 1.
3932 # Otherwise, we print the canonical config type on stdout and succeed.
33
34 # You can get the latest version of this script from:
35 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
4036
4137 # This file is supposed to be the same for all GNU packages
4238 # and recognize all the CPU types, system types and aliases
7167 version="\
7268 GNU config.sub ($timestamp)
7369
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
75 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
70 Copyright 1992-2014 Free Software Foundation, Inc.
7671
7772 This is free software; see the source for copying conditions. There is NO
7873 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
119114 # Here we must recognize all the valid KERNEL-OS combinations.
120115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121116 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
119 knetbsd*-gnu* | netbsd*-gnu* | \
124120 kopensolaris*-gnu* | \
125121 storm-chaos* | os2-emx* | rtmk-nova*)
126122 os=-$maybe_os
127123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;
125 android-linux)
126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128128 ;;
129129 *)
130130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
148148 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149149 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150150 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151 -apple | -axis | -knuth | -cray)
151 -apple | -axis | -knuth | -cray | -microblaze*)
152152 os=
153153 basic_machine=$1
154154 ;;
155 -bluegene*)
156 os=-cnk
155 -bluegene*)
156 os=-cnk
157157 ;;
158158 -sim | -cisco | -oki | -wec | -winbond)
159159 os=
169169 os=-chorusos
170170 basic_machine=$1
171171 ;;
172 -chorusrdb)
173 os=-chorusrdb
172 -chorusrdb)
173 os=-chorusrdb
174174 basic_machine=$1
175 ;;
175 ;;
176176 -hiux*)
177177 os=-hiuxwe2
178178 ;;
216216 ;;
217217 -isc*)
218218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
219 ;;
220 -lynx*178)
221 os=-lynxos178
222 ;;
223 -lynx*5)
224 os=-lynxos5
219225 ;;
220226 -lynx*)
221227 os=-lynxos
241247 # Some are omitted here because they have special meanings below.
242248 1750a | 580 \
243249 | a29k \
250 | aarch64 | aarch64_be \
244251 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
245252 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
246253 | am33_2.0 \
247 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
254 | arc | arceb \
255 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
256 | avr | avr32 \
257 | be32 | be64 \
248258 | bfin \
249 | c4x | clipper \
259 | c4x | c8051 | clipper \
250260 | d10v | d30v | dlx | dsp16xx \
261 | epiphany \
251262 | fido | fr30 | frv \
252263 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
264 | hexagon \
253265 | i370 | i860 | i960 | ia64 \
254266 | ip2k | iq2000 \
267 | k1om \
268 | le32 | le64 \
255269 | lm32 \
256270 | m32c | m32r | m32rle | m68000 | m68k | m88k \
257 | maxq | mb | microblaze | mcore | mep | metag \
271 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
258272 | mips | mipsbe | mipseb | mipsel | mipsle \
259273 | mips16 \
260274 | mips64 | mips64el \
268282 | mips64vr5900 | mips64vr5900el \
269283 | mipsisa32 | mipsisa32el \
270284 | mipsisa32r2 | mipsisa32r2el \
285 | mipsisa32r6 | mipsisa32r6el \
271286 | mipsisa64 | mipsisa64el \
272287 | mipsisa64r2 | mipsisa64r2el \
288 | mipsisa64r6 | mipsisa64r6el \
273289 | mipsisa64sb1 | mipsisa64sb1el \
274290 | mipsisa64sr71k | mipsisa64sr71kel \
291 | mipsr5900 | mipsr5900el \
275292 | mipstx39 | mipstx39el \
276293 | mn10200 | mn10300 \
277294 | moxie \
278295 | mt \
279296 | msp430 \
280 | nios | nios2 \
297 | nds32 | nds32le | nds32be \
298 | nios | nios2 | nios2eb | nios2el \
281299 | ns16k | ns32k \
282 | or32 \
300 | open8 | or1k | or1knd | or32 \
283301 | pdp10 | pdp11 | pj | pjl \
284 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
302 | powerpc | powerpc64 | powerpc64le | powerpcle \
285303 | pyramid \
304 | riscv32 | riscv64 \
305 | rl78 | rx \
286306 | score \
287307 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
288308 | sh64 | sh64le \
289309 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
290310 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
291 | spu | strongarm \
292 | tahoe | thumb | tic4x | tic80 | tron \
293 | v850 | v850e \
311 | spu \
312 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
313 | ubicom32 \
314 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
294315 | we32k \
295 | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
316 | x86 | xc16x | xstormy16 | xtensa \
296317 | z8k | z80)
297318 basic_machine=$basic_machine-unknown
298319 ;;
299 m6811 | m68hc11 | m6812 | m68hc12)
300 # Motorola 68HC11/12.
320 c54x)
321 basic_machine=tic54x-unknown
322 ;;
323 c55x)
324 basic_machine=tic55x-unknown
325 ;;
326 c6x)
327 basic_machine=tic6x-unknown
328 ;;
329 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
301330 basic_machine=$basic_machine-unknown
302331 os=-none
303332 ;;
305334 ;;
306335 ms1)
307336 basic_machine=mt-unknown
337 ;;
338
339 strongarm | thumb | xscale)
340 basic_machine=arm-unknown
341 ;;
342 xgate)
343 basic_machine=$basic_machine-unknown
344 os=-none
345 ;;
346 xscaleeb)
347 basic_machine=armeb-unknown
348 ;;
349
350 xscaleel)
351 basic_machine=armel-unknown
308352 ;;
309353
310354 # We use `pc' rather than `unknown'
321365 # Recognize the basic CPU types with company name.
322366 580-* \
323367 | a29k-* \
368 | aarch64-* | aarch64_be-* \
324369 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
325370 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
326 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
371 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
327372 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
328373 | avr-* | avr32-* \
374 | be32-* | be64-* \
329375 | bfin-* | bs2000-* \
330 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
331 | clipper-* | craynv-* | cydra-* \
376 | c[123]* | c30-* | [cjt]90-* | c4x-* \
377 | c8051-* | clipper-* | craynv-* | cydra-* \
332378 | d10v-* | d30v-* | dlx-* \
333379 | elxsi-* \
334380 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
335381 | h8300-* | h8500-* \
336382 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
383 | hexagon-* \
337384 | i*86-* | i860-* | i960-* | ia64-* \
338385 | ip2k-* | iq2000-* \
386 | k1om-* \
387 | le32-* | le64-* \
339388 | lm32-* \
340389 | m32c-* | m32r-* | m32rle-* \
341390 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
342391 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
392 | microblaze-* | microblazeel-* \
343393 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
344394 | mips16-* \
345395 | mips64-* | mips64el-* \
353403 | mips64vr5900-* | mips64vr5900el-* \
354404 | mipsisa32-* | mipsisa32el-* \
355405 | mipsisa32r2-* | mipsisa32r2el-* \
406 | mipsisa32r6-* | mipsisa32r6el-* \
356407 | mipsisa64-* | mipsisa64el-* \
357408 | mipsisa64r2-* | mipsisa64r2el-* \
409 | mipsisa64r6-* | mipsisa64r6el-* \
358410 | mipsisa64sb1-* | mipsisa64sb1el-* \
359411 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
412 | mipsr5900-* | mipsr5900el-* \
360413 | mipstx39-* | mipstx39el-* \
361414 | mmix-* \
362415 | mt-* \
363416 | msp430-* \
364 | nios-* | nios2-* \
417 | nds32-* | nds32le-* | nds32be-* \
418 | nios-* | nios2-* | nios2eb-* | nios2el-* \
365419 | none-* | np1-* | ns16k-* | ns32k-* \
420 | open8-* \
421 | or1k*-* \
366422 | orion-* \
367423 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
368 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
424 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
369425 | pyramid-* \
370 | romp-* | rs6000-* \
426 | rl78-* | romp-* | rs6000-* | rx-* \
371427 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
372428 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
373429 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
374430 | sparclite-* \
375 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
376 | tahoe-* | thumb-* \
377 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
431 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
432 | tahoe-* \
433 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
434 | tile*-* \
378435 | tron-* \
379 | v850-* | v850e-* | vax-* \
436 | ubicom32-* \
437 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
438 | vax-* \
380439 | we32k-* \
381 | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
440 | x86-* | x86_64-* | xc16x-* | xps100-* \
382441 | xstormy16-* | xtensa*-* \
383442 | ymp-* \
384443 | z8k-* | z80-*)
403462 basic_machine=a29k-amd
404463 os=-udi
405464 ;;
406 abacus)
465 abacus)
407466 basic_machine=abacus-unknown
408467 ;;
409468 adobe68k)
473532 basic_machine=powerpc-ibm
474533 os=-cnk
475534 ;;
535 c54x-*)
536 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
537 ;;
538 c55x-*)
539 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
540 ;;
541 c6x-*)
542 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
543 ;;
476544 c90)
477545 basic_machine=c90-cray
478546 os=-unicos
479547 ;;
480 cegcc)
548 cegcc)
481549 basic_machine=arm-unknown
482550 os=-cegcc
483551 ;;
509577 basic_machine=craynv-cray
510578 os=-unicosmp
511579 ;;
512 cr16)
580 cr16 | cr16-*)
513581 basic_machine=cr16-unknown
514582 os=-elf
515583 ;;
667735 i370-ibm* | ibm*)
668736 basic_machine=i370-ibm
669737 ;;
670 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
671738 i*86v32)
672739 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
673740 os=-sysv32
725792 basic_machine=ns32k-utek
726793 os=-sysv
727794 ;;
795 microblaze*)
796 basic_machine=microblaze-xilinx
797 ;;
798 mingw64)
799 basic_machine=x86_64-pc
800 os=-mingw64
801 ;;
728802 mingw32)
729 basic_machine=i386-pc
803 basic_machine=i686-pc
730804 os=-mingw32
731805 ;;
732806 mingw32ce)
754828 basic_machine=powerpc-unknown
755829 os=-morphos
756830 ;;
831 moxiebox)
832 basic_machine=moxie-unknown
833 os=-moxiebox
834 ;;
757835 msdos)
758836 basic_machine=i386-pc
759837 os=-msdos
761839 ms1-*)
762840 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
763841 ;;
842 msys)
843 basic_machine=i686-pc
844 os=-msys
845 ;;
764846 mvs)
765847 basic_machine=i370-ibm
766848 os=-mvs
849 ;;
850 nacl)
851 basic_machine=le32-unknown
852 os=-nacl
767853 ;;
768854 ncr3000)
769855 basic_machine=i486-ncr
829915 np1)
830916 basic_machine=np1-gould
831917 ;;
918 neo-tandem)
919 basic_machine=neo-tandem
920 ;;
921 nse-tandem)
922 basic_machine=nse-tandem
923 ;;
832924 nsr-tandem)
833925 basic_machine=nsr-tandem
834926 ;;
9111003 ;;
9121004 power) basic_machine=power-ibm
9131005 ;;
914 ppc) basic_machine=powerpc-unknown
915 ;;
916 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1006 ppc | ppcbe) basic_machine=powerpc-unknown
1007 ;;
1008 ppc-* | ppcbe-*)
1009 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
9171010 ;;
9181011 ppcle | powerpclittle | ppc-le | powerpc-little)
9191012 basic_machine=powerpcle-unknown
9381031 basic_machine=i586-unknown
9391032 os=-pw32
9401033 ;;
941 rdos)
1034 rdos | rdos64)
1035 basic_machine=x86_64-pc
1036 os=-rdos
1037 ;;
1038 rdos32)
9421039 basic_machine=i386-pc
9431040 os=-rdos
9441041 ;;
10071104 basic_machine=i860-stratus
10081105 os=-sysv4
10091106 ;;
1107 strongarm-* | thumb-*)
1108 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1109 ;;
10101110 sun2)
10111111 basic_machine=m68000-sun
10121112 ;;
10631163 basic_machine=t90-cray
10641164 os=-unicos
10651165 ;;
1066 tic54x | c54x*)
1067 basic_machine=tic54x-unknown
1068 os=-coff
1069 ;;
1070 tic55x | c55x*)
1071 basic_machine=tic55x-unknown
1072 os=-coff
1073 ;;
1074 tic6x | c6x*)
1075 basic_machine=tic6x-unknown
1076 os=-coff
1077 ;;
10781166 tile*)
1079 basic_machine=tile-unknown
1167 basic_machine=$basic_machine-unknown
10801168 os=-linux-gnu
10811169 ;;
10821170 tx39)
11451233 ;;
11461234 xps | xps100)
11471235 basic_machine=xps100-honeywell
1236 ;;
1237 xscale-* | xscalee[bl]-*)
1238 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
11481239 ;;
11491240 ymp)
11501241 basic_machine=ymp-cray
12431334 if [ x"$os" != x"" ]
12441335 then
12451336 case $os in
1246 # First match some system type aliases
1247 # that might get confused with valid system types.
1337 # First match some system type aliases
1338 # that might get confused with valid system types.
12481339 # -solaris* is a basic system type, with this one exception.
1340 -auroraux)
1341 os=-auroraux
1342 ;;
12491343 -solaris1 | -solaris1.*)
12501344 os=`echo $os | sed -e 's|solaris1|sunos4|'`
12511345 ;;
12671361 # -sysv* is not here because it comes later, after sysvr4.
12681362 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
12691363 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1270 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1271 | -kopensolaris* \
1364 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1365 | -sym* | -kopensolaris* | -plan9* \
12721366 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
12731367 | -aos* | -aros* \
12741368 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
12751369 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
12761370 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1277 | -openbsd* | -solidbsd* \
1371 | -bitrig* | -openbsd* | -solidbsd* \
12781372 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
12791373 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
12801374 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
12811375 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
12821376 | -chorusos* | -chorusrdb* | -cegcc* \
1283 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1284 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1285 | -uxpv* | -beos* | -mpeix* | -udk* \
1377 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1378 | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1379 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1380 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
12861381 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
12871382 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
12881383 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
12891384 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
12901385 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
12911386 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1292 | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1387 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
12931388 # Remember, each alternative MUST END IN *, to match a version number.
12941389 ;;
12951390 -qnx*)
13281423 -opened*)
13291424 os=-openedition
13301425 ;;
1331 -os400*)
1426 -os400*)
13321427 os=-os400
13331428 ;;
13341429 -wince*)
13771472 -sinix*)
13781473 os=-sysv4
13791474 ;;
1380 -tpf*)
1475 -tpf*)
13811476 os=-tpf
13821477 ;;
13831478 -triton*)
14131508 -aros*)
14141509 os=-aros
14151510 ;;
1416 -kaos*)
1417 os=-kaos
1418 ;;
14191511 -zvmoe)
14201512 os=-zvmoe
14211513 ;;
14221514 -dicos*)
14231515 os=-dicos
1516 ;;
1517 -nacl*)
14241518 ;;
14251519 -none)
14261520 ;;
14441538 # system, and we'll never get to this point.
14451539
14461540 case $basic_machine in
1447 score-*)
1541 score-*)
14481542 os=-elf
14491543 ;;
1450 spu-*)
1544 spu-*)
14511545 os=-elf
14521546 ;;
14531547 *-acorn)
14591553 arm*-semi)
14601554 os=-aout
14611555 ;;
1462 c4x-* | tic4x-*)
1463 os=-coff
1556 c4x-* | tic4x-*)
1557 os=-coff
1558 ;;
1559 c8051-*)
1560 os=-elf
1561 ;;
1562 hexagon-*)
1563 os=-elf
1564 ;;
1565 tic54x-*)
1566 os=-coff
1567 ;;
1568 tic55x-*)
1569 os=-coff
1570 ;;
1571 tic6x-*)
1572 os=-coff
14641573 ;;
14651574 # This must come before the *-dec entry.
14661575 pdp10-*)
14801589 ;;
14811590 m68000-sun)
14821591 os=-sunos3
1483 # This also exists in the configure program, but was not the
1484 # default.
1485 # os=-sunos4
14861592 ;;
14871593 m68*-cisco)
14881594 os=-aout
14891595 ;;
1490 mep-*)
1596 mep-*)
14911597 os=-elf
14921598 ;;
14931599 mips*-cisco)
15141620 *-ibm)
15151621 os=-aix
15161622 ;;
1517 *-knuth)
1623 *-knuth)
15181624 os=-mmixware
15191625 ;;
15201626 *-wec)
+1679
-1076
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.68 for libotf 0.9.13.
2 # Generated by GNU Autoconf 2.69 for libotf 0.9.16.
33 #
44 # Report bugs to <handa@m17n.org>.
55 #
66 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
9 # Foundation, Inc.
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
108 #
119 #
1210 # This configure script is free software; the Free Software Foundation
135133 # CDPATH.
136134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
138161 if test "x$CONFIG_SHELL" = x; then
139162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140163 emulate sh
168191 else
169192 exitcode=1; echo positional parameters were not saved.
170193 fi
171 test x\$exitcode = x0 || exit 1"
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
172196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
221245
222246
223247 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 export CONFIG_SHELL
232 case $- in # ((((
233 *v*x* | *x*v* ) as_opts=-vx ;;
234 *v* ) as_opts=-v ;;
235 *x* ) as_opts=-x ;;
236 * ) as_opts= ;;
237 esac
238 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
239267 fi
240268
241269 if test x$as_have_required = xno; then :
338366
339367
340368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
341377 # as_fn_append VAR VALUE
342378 # ----------------------
343379 # Append the text in VALUE to the end of the definition contained in VAR. Take
459495 chmod +x "$as_me.lineno" ||
460496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
461497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
462502 # Don't try to exec as it changes $[0], causing all sort of problems
463503 # (the dirname of $[0] is not the place where we might find the
464504 # original and so on. Autoconf is especially sensitive to this).
493533 # ... but there are two gotchas:
494534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
536 # In both cases, we have to default to `cp -pR'.
497537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
498 as_ln_s='cp -p'
538 as_ln_s='cp -pR'
499539 elif ln conf$$.file conf$$ 2>/dev/null; then
500540 as_ln_s=ln
501541 else
502 as_ln_s='cp -p'
542 as_ln_s='cp -pR'
503543 fi
504544 else
505 as_ln_s='cp -p'
545 as_ln_s='cp -pR'
506546 fi
507547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508548 rmdir conf$$.dir 2>/dev/null
514554 as_mkdir_p=false
515555 fi
516556
517 if test -x / >/dev/null 2>&1; then
518 as_test_x='test -x'
519 else
520 if ls -dL / >/dev/null 2>&1; then
521 as_ls_L_option=L
522 else
523 as_ls_L_option=
524 fi
525 as_test_x='
526 eval sh -c '\''
527 if test -d "$1"; then
528 test -d "$1/.";
529 else
530 case $1 in #(
531 -*)set "./$1";;
532 esac;
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
535 '\'' sh
536 '
537 fi
538 as_executable_p=$as_test_x
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
539559
540560 # Sed expression to map a string onto a valid CPP name.
541561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569589 # Identity of this package.
570590 PACKAGE_NAME='libotf'
571591 PACKAGE_TARNAME='libotf'
572 PACKAGE_VERSION='0.9.13'
573 PACKAGE_STRING='libotf 0.9.13'
592 PACKAGE_VERSION='0.9.16'
593 PACKAGE_STRING='libotf 0.9.16'
574594 PACKAGE_BUGREPORT='handa@m17n.org'
575595 PACKAGE_URL=''
576596
627647 X_CFLAGS
628648 XMKMF
629649 CPP
650 LT_SYS_LIBRARY_PATH
630651 OTOOL64
631652 OTOOL
632653 LIPO
673694 LDFLAGS
674695 CFLAGS
675696 CC
697 AM_BACKSLASH
698 AM_DEFAULT_VERBOSITY
699 AM_DEFAULT_V
700 AM_V
676701 am__untar
677702 am__tar
678703 AMTAR
715740 docdir
716741 oldincludedir
717742 includedir
743 runstatedir
718744 localstatedir
719745 sharedstatedir
720746 sysconfdir
737763 ac_subst_files=''
738764 ac_user_opts='
739765 enable_option_checking
766 enable_silent_rules
740767 enable_dependency_tracking
741768 enable_shared
742769 enable_static
743770 with_pic
744771 enable_fast_install
772 with_aix_soname
745773 with_gnu_ld
746774 with_sysroot
747775 enable_libtool_lock
755783 LDFLAGS
756784 LIBS
757785 CPPFLAGS
786 LT_SYS_LIBRARY_PATH
758787 CPP
759788 XMKMF'
760789
795824 sysconfdir='${prefix}/etc'
796825 sharedstatedir='${prefix}/com'
797826 localstatedir='${prefix}/var'
827 runstatedir='${localstatedir}/run'
798828 includedir='${prefix}/include'
799829 oldincludedir='/usr/include'
800830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
10471077 | -silent | --silent | --silen | --sile | --sil)
10481078 silent=yes ;;
10491079
1080 -runstatedir | --runstatedir | --runstatedi | --runstated \
1081 | --runstate | --runstat | --runsta | --runst | --runs \
1082 | --run | --ru | --r)
1083 ac_prev=runstatedir ;;
1084 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1085 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1086 | --run=* | --ru=* | --r=*)
1087 runstatedir=$ac_optarg ;;
1088
10501089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
10511090 ac_prev=sbindir ;;
10521091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
11841223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
11851224 datadir sysconfdir sharedstatedir localstatedir includedir \
11861225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1226 libdir localedir mandir runstatedir
11881227 do
11891228 eval ac_val=\$$ac_var
11901229 # Remove trailing slashes.
12121251 if test "x$host_alias" != x; then
12131252 if test "x$build_alias" = x; then
12141253 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used" >&2
12171254 elif test "x$build_alias" != "x$host_alias"; then
12181255 cross_compiling=yes
12191256 fi
12991336 # Omit some internal or obsolete options to make the list less imposing.
13001337 # This message is too long to be a string in the A/UX 3.1 sh.
13011338 cat <<_ACEOF
1302 \`configure' configures libotf 0.9.13 to adapt to many kinds of systems.
1339 \`configure' configures libotf 0.9.16 to adapt to many kinds of systems.
13031340
13041341 Usage: $0 [OPTION]... [VAR=VALUE]...
13051342
13391376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
13401377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
13411378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
13421380 --libdir=DIR object code libraries [EPREFIX/lib]
13431381 --includedir=DIR C header files [PREFIX/include]
13441382 --oldincludedir=DIR C header files for non-gcc [/usr/include]
13731411
13741412 if test -n "$ac_init_help"; then
13751413 case $ac_init_help in
1376 short | recursive ) echo "Configuration of libotf 0.9.13:";;
1414 short | recursive ) echo "Configuration of libotf 0.9.16:";;
13771415 esac
13781416 cat <<\_ACEOF
13791417
13811419 --disable-option-checking ignore unrecognized --enable/--with options
13821420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
13831421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --disable-dependency-tracking speeds up one-time build
1385 --enable-dependency-tracking do not reject slow dependency extractors
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
13861428 --enable-shared[=PKGS] build shared libraries [default=yes]
13871429 --enable-static[=PKGS] build static libraries [default=yes]
13881430 --enable-fast-install[=PKGS]
13941436 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
13951437 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
13961438 both]
1439 --with-aix-soname=aix|svr4|both
1440 shared library versioning (aka "SONAME") variant to
1441 provide on AIX, [default=aix].
13971442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398 --with-sysroot=DIR Search for dependent libraries within DIR
1399 (or the compiler's sysroot if not specified).
1443 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1444 compiler's sysroot if not specified).
14001445 --with-x use the X Window System
14011446
14021447 Some influential environment variables:
14071452 LIBS libraries to pass to the linker, e.g. -l<library>
14081453 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
14091454 you have headers in a nonstandard directory <include dir>
1455 LT_SYS_LIBRARY_PATH
1456 User-defined run-time library search path.
14101457 CPP C preprocessor
14111458 XMKMF Path to xmkmf, Makefile generator for X Window System
14121459
14761523 test -n "$ac_init_help" && exit $ac_status
14771524 if $ac_init_version; then
14781525 cat <<\_ACEOF
1479 libotf configure 0.9.13
1480 generated by GNU Autoconf 2.68
1481
1482 Copyright (C) 2010 Free Software Foundation, Inc.
1526 libotf configure 0.9.16
1527 generated by GNU Autoconf 2.69
1528
1529 Copyright (C) 2012 Free Software Foundation, Inc.
14831530 This configure script is free software; the Free Software Foundation
14841531 gives unlimited permission to copy, distribute and modify it.
14851532 _ACEOF
15551602 test ! -s conftest.err
15561603 } && test -s conftest$ac_exeext && {
15571604 test "$cross_compiling" = yes ||
1558 $as_test_x conftest$ac_exeext
1605 test -x conftest$ac_exeext
15591606 }; then :
15601607 ac_retval=0
15611608 else
18991946 This file contains any messages produced by compilers while
19001947 running configure, to aid debugging if configure makes a mistake.
19011948
1902 It was created by libotf $as_me 0.9.13, which was
1903 generated by GNU Autoconf 2.68. Invocation command line was
1949 It was created by libotf $as_me 0.9.16, which was
1950 generated by GNU Autoconf 2.69. Invocation command line was
19041951
19051952 $ $0 $@
19061953
22472294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22482295
22492296
2250 am__api_version='1.11'
2297 am__api_version='1.15'
22512298
22522299 ac_aux_dir=
22532300 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
23152362 # by default.
23162363 for ac_prog in ginstall scoinst install; do
23172364 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2365 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
23192366 if test $ac_prog = install &&
23202367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23212368 # AIX install. It has an incompatible calling convention.
23732420
23742421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
23752422 $as_echo_n "checking whether build environment is sane... " >&6; }
2376 # Just in case
2377 sleep 1
2378 echo timestamp > conftest.file
23792423 # Reject unsafe characters in $srcdir or the absolute working directory
23802424 # name. Accept space and tab only in the latter.
23812425 am_lf='
23862430 esac
23872431 case $srcdir in
23882432 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2389 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2433 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
23902434 esac
23912435
2392 # Do `set' in a subshell so we don't clobber the current shell's
2436 # Do 'set' in a subshell so we don't clobber the current shell's
23932437 # arguments. Must try -L first in case configure is actually a
23942438 # symlink; some systems play weird games with the mod time of symlinks
23952439 # (eg FreeBSD returns the mod time of the symlink's containing
23962440 # directory).
23972441 if (
2398 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2399 if test "$*" = "X"; then
2400 # -L didn't work.
2401 set X `ls -t "$srcdir/configure" conftest.file`
2402 fi
2403 rm -f conftest.file
2404 if test "$*" != "X $srcdir/configure conftest.file" \
2405 && test "$*" != "X conftest.file $srcdir/configure"; then
2406
2407 # If neither matched, then we have a broken ls. This can happen
2408 # if, for instance, CONFIG_SHELL is bash and it inherits a
2409 # broken ls alias from the environment. This has actually
2410 # happened. Such a system could not be considered "sane".
2411 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2412 alias in your environment" "$LINENO" 5
2413 fi
2414
2442 am_has_slept=no
2443 for am_try in 1 2; do
2444 echo "timestamp, slept: $am_has_slept" > conftest.file
2445 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2446 if test "$*" = "X"; then
2447 # -L didn't work.
2448 set X `ls -t "$srcdir/configure" conftest.file`
2449 fi
2450 if test "$*" != "X $srcdir/configure conftest.file" \
2451 && test "$*" != "X conftest.file $srcdir/configure"; then
2452
2453 # If neither matched, then we have a broken ls. This can happen
2454 # if, for instance, CONFIG_SHELL is bash and it inherits a
2455 # broken ls alias from the environment. This has actually
2456 # happened. Such a system could not be considered "sane".
2457 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2458 alias in your environment" "$LINENO" 5
2459 fi
2460 if test "$2" = conftest.file || test $am_try -eq 2; then
2461 break
2462 fi
2463 # Just in case.
2464 sleep 1
2465 am_has_slept=yes
2466 done
24152467 test "$2" = conftest.file
24162468 )
24172469 then
24232475 fi
24242476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24252477 $as_echo "yes" >&6; }
2478 # If we didn't sleep, we still need to ensure time stamps of config.status and
2479 # generated files are strictly newer.
2480 am_sleep_pid=
2481 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2482 ( sleep 1 ) &
2483 am_sleep_pid=$!
2484 fi
2485
2486 rm -f conftest.file
2487
24262488 test "$program_prefix" != NONE &&
24272489 program_transform_name="s&^&$program_prefix&;$program_transform_name"
24282490 # Use a double $ so make ignores it.
24332495 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
24342496 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
24352497
2436 # expand $ac_aux_dir to an absolute path
2437 am_aux_dir=`cd $ac_aux_dir && pwd`
2498 # Expand $ac_aux_dir to an absolute path.
2499 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24382500
24392501 if test x"${MISSING+set}" != xset; then
24402502 case $am_aux_dir in
24452507 esac
24462508 fi
24472509 # Use eval to expand $SHELL
2448 if eval "$MISSING --run true"; then
2449 am_missing_run="$MISSING --run "
2510 if eval "$MISSING --is-lightweight"; then
2511 am_missing_run="$MISSING "
24502512 else
24512513 am_missing_run=
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2453 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2454 fi
2455
2456 if test x"${install_sh}" != xset; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2515 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2516 fi
2517
2518 if test x"${install_sh+set}" != xset; then
24572519 case $am_aux_dir in
24582520 *\ * | *\ *)
24592521 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
24622524 esac
24632525 fi
24642526
2465 # Installed binaries are usually stripped using `strip' when the user
2466 # run `make install-strip'. However `strip' might not be the right
2527 # Installed binaries are usually stripped using 'strip' when the user
2528 # run "make install-strip". However 'strip' might not be the right
24672529 # tool to use in cross-compilation environments, therefore Automake
2468 # will honor the `STRIP' environment variable to overrule this program.
2530 # will honor the 'STRIP' environment variable to overrule this program.
24692531 if test "$cross_compiling" != no; then
24702532 if test -n "$ac_tool_prefix"; then
24712533 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24842546 IFS=$as_save_IFS
24852547 test -z "$as_dir" && as_dir=.
24862548 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24882550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
24892551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24902552 break 2
25242586 IFS=$as_save_IFS
25252587 test -z "$as_dir" && as_dir=.
25262588 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25282590 ac_cv_prog_ac_ct_STRIP="strip"
25292591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25302592 break 2
25752637 test -z "$as_dir" && as_dir=.
25762638 for ac_prog in mkdir gmkdir; do
25772639 for ac_exec_ext in '' $ac_executable_extensions; do
2578 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2640 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
25792641 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
25802642 'mkdir (GNU coreutils) '* | \
25812643 'mkdir (coreutils) '* | \
26042666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
26052667 $as_echo "$MKDIR_P" >&6; }
26062668
2607 mkdir_p="$MKDIR_P"
2608 case $mkdir_p in
2609 [\\/$]* | ?:[\\/]*) ;;
2610 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2611 esac
2612
26132669 for ac_prog in gawk mawk nawk awk
26142670 do
26152671 # Extract the first word of "$ac_prog", so it can be a program name with args.
26282684 IFS=$as_save_IFS
26292685 test -z "$as_dir" && as_dir=.
26302686 for ac_exec_ext in '' $ac_executable_extensions; do
2631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26322688 ac_cv_prog_AWK="$ac_prog"
26332689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26342690 break 2
26922748 fi
26932749 rmdir .tst 2>/dev/null
26942750
2751 # Check whether --enable-silent-rules was given.
2752 if test "${enable_silent_rules+set}" = set; then :
2753 enableval=$enable_silent_rules;
2754 fi
2755
2756 case $enable_silent_rules in # (((
2757 yes) AM_DEFAULT_VERBOSITY=0;;
2758 no) AM_DEFAULT_VERBOSITY=1;;
2759 *) AM_DEFAULT_VERBOSITY=1;;
2760 esac
2761 am_make=${MAKE-make}
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2763 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2764 if ${am_cv_make_support_nested_variables+:} false; then :
2765 $as_echo_n "(cached) " >&6
2766 else
2767 if $as_echo 'TRUE=$(BAR$(V))
2768 BAR0=false
2769 BAR1=true
2770 V=1
2771 am__doit:
2772 @$(TRUE)
2773 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2774 am_cv_make_support_nested_variables=yes
2775 else
2776 am_cv_make_support_nested_variables=no
2777 fi
2778 fi
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2780 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2781 if test $am_cv_make_support_nested_variables = yes; then
2782 AM_V='$(V)'
2783 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2784 else
2785 AM_V=$AM_DEFAULT_VERBOSITY
2786 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2787 fi
2788 AM_BACKSLASH='\'
2789
26952790 if test "`cd $srcdir && pwd`" != "`pwd`"; then
26962791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
26972792 # is not polluted with repeated "-I."
27132808
27142809
27152810 # Define the identity of the package.
2811
27162812 PACKAGE=libotf
2717 VERSION=0.9.13
2813 VERSION=0.9.16
27182814
27192815
27202816 cat >>confdefs.h <<_ACEOF
27422838
27432839 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
27442840
2745 # We need awk for the "check" target. The system "awk" is bad on
2746 # some platforms.
2841 # For better backward compatibility. To be removed once Automake 1.9.x
2842 # dies out for good. For more background, see:
2843 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2844 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2845 mkdir_p='$(MKDIR_P)'
2846
2847 # We need awk for the "check" target (and possibly the TAP driver). The
2848 # system "awk" is bad on some platforms.
27472849 # Always define AMTAR for backward compatibility. Yes, it's still used
27482850 # in the wild :-( We should find a proper way to deprecate it ...
27492851 AMTAR='$${TAR-tar}'
27502852
2853
2854 # We'll loop over all known methods to create a tar archive until one works.
2855 _am_tools='gnutar pax cpio none'
2856
27512857 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
27522858
27532859
27542860
27552861
2862
2863
2864 # POSIX will say in a future version that running "rm -f" with no argument
2865 # is OK; and we want to be able to make that assumption in our Makefile
2866 # recipes. So use an aggressive probe to check that the usage we want is
2867 # actually supported "in the wild" to an acceptable degree.
2868 # See automake bug#10828.
2869 # To make any issue more visible, cause the running configure to be aborted
2870 # by default if the 'rm' program in use doesn't match our expectations; the
2871 # user can still override this though.
2872 if rm -f && rm -fr && rm -rf; then : OK; else
2873 cat >&2 <<'END'
2874 Oops!
2875
2876 Your 'rm' program seems unable to run without file operands specified
2877 on the command line, even when the '-f' option is present. This is contrary
2878 to the behaviour of most rm programs out there, and not conforming with
2879 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2880
2881 Please tell bug-automake@gnu.org about your system, including the value
2882 of your $PATH and any error possibly output before this message. This
2883 can help us improve future automake versions.
2884
2885 END
2886 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2887 echo 'Configuration will proceed anyway, since you have set the' >&2
2888 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2889 echo >&2
2890 else
2891 cat >&2 <<'END'
2892 Aborting the configuration process, to ensure you take notice of the issue.
2893
2894 You can download and install GNU coreutils to get an 'rm' implementation
2895 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2896
2897 If you want to complete the configuration process using your problematic
2898 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2899 to "yes", and re-run configure.
2900
2901 END
2902 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2903 fi
2904 fi
27562905
27572906 ac_config_headers="$ac_config_headers src/config.h"
27582907
27802929 IFS=$as_save_IFS
27812930 test -z "$as_dir" && as_dir=.
27822931 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27842933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
27852934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27862935 break 2
28202969 IFS=$as_save_IFS
28212970 test -z "$as_dir" && as_dir=.
28222971 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28242973 ac_cv_prog_ac_ct_CC="gcc"
28252974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28262975 break 2
28733022 IFS=$as_save_IFS
28743023 test -z "$as_dir" && as_dir=.
28753024 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28773026 ac_cv_prog_CC="${ac_tool_prefix}cc"
28783027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28793028 break 2
29143063 IFS=$as_save_IFS
29153064 test -z "$as_dir" && as_dir=.
29163065 for ac_exec_ext in '' $ac_executable_extensions; do
2917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29183067 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
29193068 ac_prog_rejected=yes
29203069 continue
29723121 IFS=$as_save_IFS
29733122 test -z "$as_dir" && as_dir=.
29743123 for ac_exec_ext in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29763125 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
29773126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29783127 break 2
30163165 IFS=$as_save_IFS
30173166 test -z "$as_dir" && as_dir=.
30183167 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30203169 ac_cv_prog_ac_ct_CC="$ac_prog"
30213170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30223171 break 2
34623611 /* end confdefs.h. */
34633612 #include <stdarg.h>
34643613 #include <stdio.h>
3465 #include <sys/types.h>
3466 #include <sys/stat.h>
3614 struct stat;
34673615 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
34683616 struct buf { int x; };
34693617 FILE * (*rcsopen) (struct buf *, struct stat *, int);
35473695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35483696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35493697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699 ac_ext=c
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3705 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3706 if ${am_cv_prog_cc_c_o+:} false; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3711
3712 int
3713 main ()
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 # Make sure it works both with $CC and with simple cc.
3721 # Following AC_PROG_CC_C_O, we do the test twice because some
3722 # compilers refuse to overwrite an existing .o file with -o,
3723 # though they will create one.
3724 am_cv_prog_cc_c_o=yes
3725 for am_i in 1 2; do
3726 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3727 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } \
3731 && test -f conftest2.$ac_objext; then
3732 : OK
3733 else
3734 am_cv_prog_cc_c_o=no
3735 break
3736 fi
3737 done
3738 rm -f core conftest*
3739 unset am_i
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3742 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3743 if test "$am_cv_prog_cc_c_o" != yes; then
3744 # Losing compiler, so override with the script.
3745 # FIXME: It is wrong to rewrite CC.
3746 # But if we don't then we get into trouble of one sort or another.
3747 # A longer-term fix would be to have automake use am__CC in this case,
3748 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3749 CC="$am_aux_dir/compile $CC"
3750 fi
3751 ac_ext=c
3752 ac_cpp='$CPP $CPPFLAGS'
3753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756
35503757 DEPDIR="${am__leading_dot}deps"
35513758
35523759 ac_config_commands="$ac_config_commands depfiles"
35663773 _am_result=none
35673774 # First try GNU make style include.
35683775 echo "include confinc" > confmf
3569 # Ignore all kinds of additional output from `make'.
3776 # Ignore all kinds of additional output from 'make'.
35703777 case `$am_make -s -f confmf 2> /dev/null` in #(
35713778 *the\ am__doit\ target*)
35723779 am__include=include
36223829 # We make a subdir and do the tests there. Otherwise we can end up
36233830 # making bogus files that we don't know about and never remove. For
36243831 # instance it was reported that on HP-UX the gcc test will end up
3625 # making a dummy file named `D' -- because `-MD' means `put the output
3626 # in D'.
3832 # making a dummy file named 'D' -- because '-MD' means "put the output
3833 # in D".
36273834 rm -rf conftest.dir
36283835 mkdir conftest.dir
36293836 # Copy depcomp to subdir because otherwise we won't find it if we're
36583865 : > sub/conftest.c
36593866 for i in 1 2 3 4 5 6; do
36603867 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3661 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3662 # Solaris 8's {/usr,}/bin/sh.
3663 touch sub/conftst$i.h
3868 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3869 # Solaris 10 /bin/sh.
3870 echo '/* dummy */' > sub/conftst$i.h
36643871 done
36653872 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
36663873
3667 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3874 # We check with '-c' and '-o' for the sake of the "dashmstdout"
36683875 # mode. It turns out that the SunPro C++ compiler does not properly
3669 # handle `-M -o', and we need to detect this. Also, some Intel
3670 # versions had trouble with output in subdirs
3876 # handle '-M -o', and we need to detect this. Also, some Intel
3877 # versions had trouble with output in subdirs.
36713878 am__obj=sub/conftest.${OBJEXT-o}
36723879 am__minus_obj="-o $am__obj"
36733880 case $depmode in
36763883 test "$am__universal" = false || continue
36773884 ;;
36783885 nosideeffect)
3679 # after this tag, mechanisms are not by side-effect, so they'll
3680 # only be used when explicitly requested
3886 # After this tag, mechanisms are not by side-effect, so they'll
3887 # only be used when explicitly requested.
36813888 if test "x$enable_dependency_tracking" = xyes; then
36823889 continue
36833890 else
36853892 fi
36863893 ;;
36873894 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3688 # This compiler won't grok `-c -o', but also, the minuso test has
3895 # This compiler won't grok '-c -o', but also, the minuso test has
36893896 # not run yet. These depmodes are late enough in the game, and
36903897 # so weak that their functioning should not be impacted.
36913898 am__obj=conftest.${OBJEXT-o}
37473954
37483955
37493956
3750 macro_version='2.4.2'
3751 macro_revision='1.3337'
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765 ltmain="$ac_aux_dir/ltmain.sh"
3957 macro_version='2.4.6'
3958 macro_revision='2.4.6'
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972 ltmain=$ac_aux_dir/ltmain.sh
37663973
37673974 # Make sure we can run config.sub.
37683975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
38824089 $ECHO ""
38834090 }
38844091
3885 case "$ECHO" in
4092 case $ECHO in
38864093 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
38874094 $as_echo "printf" >&6; } ;;
38884095 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
39264133 for ac_prog in sed gsed; do
39274134 for ac_exec_ext in '' $ac_executable_extensions; do
39284135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3929 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4136 as_fn_executable_p "$ac_path_SED" || continue
39304137 # Check for GNU ac_path_SED and select it if it is found.
39314138 # Check for GNU $ac_path_SED
39324139 case `"$ac_path_SED" --version 2>&1` in
40024209 for ac_prog in grep ggrep; do
40034210 for ac_exec_ext in '' $ac_executable_extensions; do
40044211 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4005 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4212 as_fn_executable_p "$ac_path_GREP" || continue
40064213 # Check for GNU ac_path_GREP and select it if it is found.
40074214 # Check for GNU $ac_path_GREP
40084215 case `"$ac_path_GREP" --version 2>&1` in
40684275 for ac_prog in egrep; do
40694276 for ac_exec_ext in '' $ac_executable_extensions; do
40704277 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4071 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4278 as_fn_executable_p "$ac_path_EGREP" || continue
40724279 # Check for GNU ac_path_EGREP and select it if it is found.
40734280 # Check for GNU $ac_path_EGREP
40744281 case `"$ac_path_EGREP" --version 2>&1` in
41354342 for ac_prog in fgrep; do
41364343 for ac_exec_ext in '' $ac_executable_extensions; do
41374344 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4138 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4345 as_fn_executable_p "$ac_path_FGREP" || continue
41394346 # Check for GNU ac_path_FGREP and select it if it is found.
41404347 # Check for GNU $ac_path_FGREP
41414348 case `"$ac_path_FGREP" --version 2>&1` in
42054412
42064413 # Check whether --with-gnu-ld was given.
42074414 if test "${with_gnu_ld+set}" = set; then :
4208 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4415 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
42094416 else
42104417 with_gnu_ld=no
42114418 fi
42124419
42134420 ac_prog=ld
4214 if test "$GCC" = yes; then
4421 if test yes = "$GCC"; then
42154422 # Check if gcc -print-prog-name=ld gives a path.
42164423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
42174424 $as_echo_n "checking for ld used by $CC... " >&6; }
42184425 case $host in
42194426 *-*-mingw*)
4220 # gcc leaves a trailing carriage return which upsets mingw
4427 # gcc leaves a trailing carriage return, which upsets mingw
42214428 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
42224429 *)
42234430 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
42314438 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
42324439 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
42334440 done
4234 test -z "$LD" && LD="$ac_prog"
4441 test -z "$LD" && LD=$ac_prog
42354442 ;;
42364443 "")
42374444 # If it fails, then pretend we aren't using GCC.
42424449 with_gnu_ld=unknown
42434450 ;;
42444451 esac
4245 elif test "$with_gnu_ld" = yes; then
4452 elif test yes = "$with_gnu_ld"; then
42464453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
42474454 $as_echo_n "checking for GNU ld... " >&6; }
42484455 else
42534460 $as_echo_n "(cached) " >&6
42544461 else
42554462 if test -z "$LD"; then
4256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4463 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
42574464 for ac_dir in $PATH; do
4258 IFS="$lt_save_ifs"
4465 IFS=$lt_save_ifs
42594466 test -z "$ac_dir" && ac_dir=.
42604467 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4261 lt_cv_path_LD="$ac_dir/$ac_prog"
4468 lt_cv_path_LD=$ac_dir/$ac_prog
42624469 # Check to see if the program is GNU ld. I'd rather use --version,
42634470 # but apparently some variants of GNU ld only accept -v.
42644471 # Break only if it was the GNU/non-GNU ld that we prefer.
42654472 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
42664473 *GNU* | *'with BFD'*)
4267 test "$with_gnu_ld" != no && break
4474 test no != "$with_gnu_ld" && break
42684475 ;;
42694476 *)
4270 test "$with_gnu_ld" != yes && break
4477 test yes != "$with_gnu_ld" && break
42714478 ;;
42724479 esac
42734480 fi
42744481 done
4275 IFS="$lt_save_ifs"
4276 else
4277 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4278 fi
4279 fi
4280
4281 LD="$lt_cv_path_LD"
4482 IFS=$lt_save_ifs
4483 else
4484 lt_cv_path_LD=$LD # Let the user override the test with a path.
4485 fi
4486 fi
4487
4488 LD=$lt_cv_path_LD
42824489 if test -n "$LD"; then
42834490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
42844491 $as_echo "$LD" >&6; }
43214528 else
43224529 if test -n "$NM"; then
43234530 # Let the user override the test.
4324 lt_cv_path_NM="$NM"
4325 else
4326 lt_nm_to_check="${ac_tool_prefix}nm"
4531 lt_cv_path_NM=$NM
4532 else
4533 lt_nm_to_check=${ac_tool_prefix}nm
43274534 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
43284535 lt_nm_to_check="$lt_nm_to_check nm"
43294536 fi
43304537 for lt_tmp_nm in $lt_nm_to_check; do
4331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4538 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
43324539 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4333 IFS="$lt_save_ifs"
4540 IFS=$lt_save_ifs
43344541 test -z "$ac_dir" && ac_dir=.
4335 tmp_nm="$ac_dir/$lt_tmp_nm"
4336 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4542 tmp_nm=$ac_dir/$lt_tmp_nm
4543 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
43374544 # Check to see if the nm accepts a BSD-compat flag.
4338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4545 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
43394546 # nm: unknown option "B" ignored
43404547 # Tru64's nm complains that /dev/null is an invalid object file
4341 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4342 */dev/null* | *'Invalid file or object type'*)
4548 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4549 case $build_os in
4550 mingw*) lt_bad_file=conftest.nm/nofile ;;
4551 *) lt_bad_file=/dev/null ;;
4552 esac
4553 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4554 *$lt_bad_file* | *'Invalid file or object type'*)
43434555 lt_cv_path_NM="$tmp_nm -B"
4344 break
4556 break 2
43454557 ;;
43464558 *)
43474559 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
43484560 */dev/null*)
43494561 lt_cv_path_NM="$tmp_nm -p"
4350 break
4562 break 2
43514563 ;;
43524564 *)
43534565 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
43584570 esac
43594571 fi
43604572 done
4361 IFS="$lt_save_ifs"
4573 IFS=$lt_save_ifs
43624574 done
43634575 : ${lt_cv_path_NM=no}
43644576 fi
43654577 fi
43664578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
43674579 $as_echo "$lt_cv_path_NM" >&6; }
4368 if test "$lt_cv_path_NM" != "no"; then
4369 NM="$lt_cv_path_NM"
4580 if test no != "$lt_cv_path_NM"; then
4581 NM=$lt_cv_path_NM
43704582 else
43714583 # Didn't find any BSD compatible name lister, look for dumpbin.
43724584 if test -n "$DUMPBIN"; then :
43914603 IFS=$as_save_IFS
43924604 test -z "$as_dir" && as_dir=.
43934605 for ac_exec_ext in '' $ac_executable_extensions; do
4394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43954607 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
43964608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43974609 break 2
44354647 IFS=$as_save_IFS
44364648 test -z "$as_dir" && as_dir=.
44374649 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
44394651 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
44404652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
44414653 break 2
44724684 fi
44734685 fi
44744686
4475 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4687 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
44764688 *COFF*)
4477 DUMPBIN="$DUMPBIN -symbols"
4689 DUMPBIN="$DUMPBIN -symbols -headers"
44784690 ;;
44794691 *)
44804692 DUMPBIN=:
44824694 esac
44834695 fi
44844696
4485 if test "$DUMPBIN" != ":"; then
4486 NM="$DUMPBIN"
4697 if test : != "$DUMPBIN"; then
4698 NM=$DUMPBIN
44874699 fi
44884700 fi
44894701 test -z "$NM" && NM=nm
45344746 $as_echo_n "(cached) " >&6
45354747 else
45364748 i=0
4537 teststring="ABCD"
4749 teststring=ABCD
45384750
45394751 case $build_os in
45404752 msdosdjgpp*)
45744786 lt_cv_sys_max_cmd_len=8192;
45754787 ;;
45764788
4577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4789 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
45784790 # This has been around since 386BSD, at least. Likely further.
45794791 if test -x /sbin/sysctl; then
45804792 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
46244836 ;;
46254837 *)
46264838 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4627 if test -n "$lt_cv_sys_max_cmd_len"; then
4839 if test -n "$lt_cv_sys_max_cmd_len" && \
4840 test undefined != "$lt_cv_sys_max_cmd_len"; then
46284841 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
46294842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
46304843 else
46314844 # Make teststring a little bigger before we do anything with it.
46324845 # a 1K string should be a reasonable start.
4633 for i in 1 2 3 4 5 6 7 8 ; do
4846 for i in 1 2 3 4 5 6 7 8; do
46344847 teststring=$teststring$teststring
46354848 done
46364849 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
46374850 # If test is not a shell built-in, we'll probably end up computing a
46384851 # maximum length that is only half of the actual maximum length, but
46394852 # we can't tell.
4640 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4853 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
46414854 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4642 test $i != 17 # 1/2 MB should be enough
4855 test 17 != "$i" # 1/2 MB should be enough
46434856 do
46444857 i=`expr $i + 1`
46454858 teststring=$teststring$teststring
46574870
46584871 fi
46594872
4660 if test -n $lt_cv_sys_max_cmd_len ; then
4873 if test -n "$lt_cv_sys_max_cmd_len"; then
46614874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
46624875 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
46634876 else
46744887 : ${CP="cp -f"}
46754888 : ${MV="mv -f"}
46764889 : ${RM="rm -f"}
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4680 # Try some XSI features
4681 xsi_shell=no
4682 ( _lt_dummy="a/b/c"
4683 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4684 = c,a/b,b/c, \
4685 && eval 'test $(( 1 + 1 )) -eq 2 \
4686 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4687 && xsi_shell=yes
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4689 $as_echo "$xsi_shell" >&6; }
4690
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4694 lt_shell_append=no
4695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4696 >/dev/null 2>&1 \
4697 && lt_shell_append=yes
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4699 $as_echo "$lt_shell_append" >&6; }
4700
47014890
47024891 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47034892 lt_unset=unset
48215010 reload_cmds='$LD$reload_flag -o $output$reload_objs'
48225011 case $host_os in
48235012 cygwin* | mingw* | pw32* | cegcc*)
4824 if test "$GCC" != yes; then
5013 if test yes != "$GCC"; then
48255014 reload_cmds=false
48265015 fi
48275016 ;;
48285017 darwin*)
4829 if test "$GCC" = yes; then
4830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5018 if test yes = "$GCC"; then
5019 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
48315020 else
48325021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
48335022 fi
48595048 IFS=$as_save_IFS
48605049 test -z "$as_dir" && as_dir=.
48615050 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
48635052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
48645053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
48655054 break 2
48995088 IFS=$as_save_IFS
49005089 test -z "$as_dir" && as_dir=.
49015090 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
49035092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
49045093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
49055094 break 2
49555144 # Need to set the preceding variable on all platforms that support
49565145 # interlibrary dependencies.
49575146 # 'none' -- dependencies not supported.
4958 # `unknown' -- same as none, but documents that we really don't know.
5147 # 'unknown' -- same as none, but documents that we really don't know.
49595148 # 'pass_all' -- all dependencies passed with no checks.
49605149 # 'test_compile' -- check by making test program.
49615150 # 'file_magic [[regex]]' -- check by looking for files in library path
4962 # which responds to the $file_magic_cmd with a given extended regex.
4963 # If you have `file' or equivalent on your system and you're not sure
4964 # whether `pass_all' will *always* work, you probably want this one.
5151 # that responds to the $file_magic_cmd with a given extended regex.
5152 # If you have 'file' or equivalent on your system and you're not sure
5153 # whether 'pass_all' will *always* work, you probably want this one.
49655154
49665155 case $host_os in
49675156 aix[4-9]*)
49885177 # Base MSYS/MinGW do not provide the 'file' command needed by
49895178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
49905179 # unless we find 'file', for example because we are cross-compiling.
4991 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4992 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5180 if ( file / ) >/dev/null 2>&1; then
49935181 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
49945182 lt_cv_file_magic_cmd='func_win32_libid'
49955183 else
50235211 else
50245212 lt_cv_deplibs_check_method=pass_all
50255213 fi
5026 ;;
5027
5028 gnu*)
5029 lt_cv_deplibs_check_method=pass_all
50305214 ;;
50315215
50325216 haiku*)
50675251 ;;
50685252
50695253 # This must be glibc/ELF.
5070 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5254 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
50715255 lt_cv_deplibs_check_method=pass_all
50725256 ;;
50735257
50895273 lt_cv_deplibs_check_method=pass_all
50905274 ;;
50915275
5092 openbsd*)
5093 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5276 openbsd* | bitrig*)
5277 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
50945278 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
50955279 else
50965280 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
51435327 tpf*)
51445328 lt_cv_deplibs_check_method=pass_all
51455329 ;;
5330 os2*)
5331 lt_cv_deplibs_check_method=pass_all
5332 ;;
51465333 esac
51475334
51485335 fi
52055392 IFS=$as_save_IFS
52065393 test -z "$as_dir" && as_dir=.
52075394 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52095396 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
52105397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52115398 break 2
52455432 IFS=$as_save_IFS
52465433 test -z "$as_dir" && as_dir=.
52475434 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
52495436 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
52505437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
52515438 break 2
53005487
53015488 case $host_os in
53025489 cygwin* | mingw* | pw32* | cegcc*)
5303 # two different shell functions defined in ltmain.sh
5304 # decide which to use based on capabilities of $DLLTOOL
5490 # two different shell functions defined in ltmain.sh;
5491 # decide which one to use based on capabilities of $DLLTOOL
53055492 case `$DLLTOOL --help 2>&1` in
53065493 *--identify-strict*)
53075494 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
53135500 ;;
53145501 *)
53155502 # fallback: assume linklib IS sharedlib
5316 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5503 lt_cv_sharedlib_from_linklib_cmd=$ECHO
53175504 ;;
53185505 esac
53195506
53495536 IFS=$as_save_IFS
53505537 test -z "$as_dir" && as_dir=.
53515538 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53535540 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
53545541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53555542 break 2
53935580 IFS=$as_save_IFS
53945581 test -z "$as_dir" && as_dir=.
53955582 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
53975584 ac_cv_prog_ac_ct_AR="$ac_prog"
53985585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
53995586 break 2
54685655 ac_status=$?
54695656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54705657 test $ac_status = 0; }
5471 if test "$ac_status" -eq 0; then
5658 if test 0 -eq "$ac_status"; then
54725659 # Ensure the archiver fails upon bogus file names.
54735660 rm -f conftest.$ac_objext libconftest.a
54745661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
54765663 ac_status=$?
54775664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
54785665 test $ac_status = 0; }
5479 if test "$ac_status" -ne 0; then
5666 if test 0 -ne "$ac_status"; then
54805667 lt_cv_ar_at_file=@
54815668 fi
54825669 fi
54895676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
54905677 $as_echo "$lt_cv_ar_at_file" >&6; }
54915678
5492 if test "x$lt_cv_ar_at_file" = xno; then
5679 if test no = "$lt_cv_ar_at_file"; then
54935680 archiver_list_spec=
54945681 else
54955682 archiver_list_spec=$lt_cv_ar_at_file
55185705 IFS=$as_save_IFS
55195706 test -z "$as_dir" && as_dir=.
55205707 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55225709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
55235710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55245711 break 2
55585745 IFS=$as_save_IFS
55595746 test -z "$as_dir" && as_dir=.
55605747 for ac_exec_ext in '' $ac_executable_extensions; do
5561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
55625749 ac_cv_prog_ac_ct_STRIP="strip"
55635750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
55645751 break 2
56175804 IFS=$as_save_IFS
56185805 test -z "$as_dir" && as_dir=.
56195806 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56215808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
56225809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56235810 break 2
56575844 IFS=$as_save_IFS
56585845 test -z "$as_dir" && as_dir=.
56595846 for ac_exec_ext in '' $ac_executable_extensions; do
5660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
56615848 ac_cv_prog_ac_ct_RANLIB="ranlib"
56625849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
56635850 break 2
57065893
57075894 if test -n "$RANLIB"; then
57085895 case $host_os in
5709 openbsd*)
5896 bitrig* | openbsd*)
57105897 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
57115898 ;;
57125899 *)
57965983 symcode='[ABCDGISTW]'
57975984 ;;
57985985 hpux*)
5799 if test "$host_cpu" = ia64; then
5986 if test ia64 = "$host_cpu"; then
58005987 symcode='[ABCDEGRST]'
58015988 fi
58025989 ;;
58296016 symcode='[ABCDGIRSTW]' ;;
58306017 esac
58316018
6019 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6020 # Gets list of data symbols to import.
6021 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6022 # Adjust the below global symbol transforms to fixup imported variables.
6023 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6024 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6025 lt_c_name_lib_hook="\
6026 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6027 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6028 else
6029 # Disable hooks by default.
6030 lt_cv_sys_global_symbol_to_import=
6031 lt_cdecl_hook=
6032 lt_c_name_hook=
6033 lt_c_name_lib_hook=
6034 fi
6035
58326036 # Transform an extracted symbol line into a proper C declaration.
58336037 # Some systems (esp. on ia64) link data and code symbols differently,
58346038 # so use this general approach.
5835 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6039 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6040 $lt_cdecl_hook\
6041 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6042 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
58366043
58376044 # Transform an extracted symbol line into symbol name and symbol address
5838 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5839 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'"
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6046 $lt_c_name_hook\
6047 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6048 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6049
6050 # Transform an extracted symbol line into symbol name with lib prefix and
6051 # symbol address.
6052 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6053 $lt_c_name_lib_hook\
6054 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6055 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6056 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
58406057
58416058 # Handle CRLF in mingw tool chain
58426059 opt_cr=
58546071
58556072 # Write the raw and C identifiers.
58566073 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5857 # Fake it for dumpbin and say T for any non-static function
5858 # and D for any global variable.
6074 # Fake it for dumpbin and say T for any non-static function,
6075 # D for any global variable and I for any imported variable.
58596076 # Also find C++ and __fastcall symbols from MSVC++,
58606077 # which start with @ or ?.
58616078 lt_cv_sys_global_symbol_pipe="$AWK '"\
58626079 " {last_section=section; section=\$ 3};"\
58636080 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
58646081 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6082 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6083 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6084 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
58656085 " \$ 0!~/External *\|/{next};"\
58666086 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
58676087 " {if(hide[section]) next};"\
5868 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5869 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5870 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5871 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6088 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6089 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6090 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6091 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
58726092 " ' prfx=^$ac_symprfx"
58736093 else
58746094 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
59166136 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
59176137 cat <<_LT_EOF > conftest.$ac_ext
59186138 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5919 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5920 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6139 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6140 /* DATA imports from DLLs on WIN32 can't be const, because runtime
59216141 relocations are performed -- see ld's documentation on pseudo-relocs. */
59226142 # define LT_DLSYM_CONST
5923 #elif defined(__osf__)
6143 #elif defined __osf__
59246144 /* This system does not cope well with relocations in const data. */
59256145 # define LT_DLSYM_CONST
59266146 #else
59466166 {
59476167 { "@PROGRAM@", (void *) 0 },
59486168 _LT_EOF
5949 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6169 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
59506170 cat <<\_LT_EOF >> conftest.$ac_ext
59516171 {0, (void *) 0}
59526172 };
59666186 mv conftest.$ac_objext conftstm.$ac_objext
59676187 lt_globsym_save_LIBS=$LIBS
59686188 lt_globsym_save_CFLAGS=$CFLAGS
5969 LIBS="conftstm.$ac_objext"
6189 LIBS=conftstm.$ac_objext
59706190 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
59716191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
59726192 (eval $ac_link) 2>&5
59736193 ac_status=$?
59746194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5975 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6195 test $ac_status = 0; } && test -s conftest$ac_exeext; then
59766196 pipe_works=yes
59776197 fi
59786198 LIBS=$lt_globsym_save_LIBS
59936213 rm -rf conftest* conftst*
59946214
59956215 # Do not use the global_symbol_pipe unless it works.
5996 if test "$pipe_works" = yes; then
6216 if test yes = "$pipe_works"; then
59976217 break
59986218 else
59996219 lt_cv_sys_global_symbol_pipe=
60466266
60476267
60486268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
60496279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
60506280 $as_echo_n "checking for sysroot... " >&6; }
60516281
60586288
60596289
60606290 lt_sysroot=
6061 case ${with_sysroot} in #(
6291 case $with_sysroot in #(
60626292 yes)
6063 if test "$GCC" = yes; then
6293 if test yes = "$GCC"; then
60646294 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
60656295 fi
60666296 ;; #(
60706300 no|'')
60716301 ;; #(
60726302 *)
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6074 $as_echo "${with_sysroot}" >&6; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6304 $as_echo "$with_sysroot" >&6; }
60756305 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
60766306 ;;
60776307 esac
60836313
60846314
60856315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6317 $as_echo_n "checking for a working dd... " >&6; }
6318 if ${ac_cv_path_lt_DD+:} false; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 printf 0123456789abcdef0123456789abcdef >conftest.i
6322 cat conftest.i conftest.i >conftest2.i
6323 : ${lt_DD:=$DD}
6324 if test -z "$lt_DD"; then
6325 ac_path_lt_DD_found=false
6326 # Loop through the user's path and test for each of PROGNAME-LIST
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_prog in dd; do
6333 for ac_exec_ext in '' $ac_executable_extensions; do
6334 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6335 as_fn_executable_p "$ac_path_lt_DD" || continue
6336 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6337 cmp -s conftest.i conftest.out \
6338 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6339 fi
6340 $ac_path_lt_DD_found && break 3
6341 done
6342 done
6343 done
6344 IFS=$as_save_IFS
6345 if test -z "$ac_cv_path_lt_DD"; then
6346 :
6347 fi
6348 else
6349 ac_cv_path_lt_DD=$lt_DD
6350 fi
6351
6352 rm -f conftest.i conftest2.i conftest.out
6353 fi
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6355 $as_echo "$ac_cv_path_lt_DD" >&6; }
6356
6357
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6359 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6360 if ${lt_cv_truncate_bin+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 printf 0123456789abcdef0123456789abcdef >conftest.i
6364 cat conftest.i conftest.i >conftest2.i
6365 lt_cv_truncate_bin=
6366 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6367 cmp -s conftest.i conftest.out \
6368 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6369 fi
6370 rm -f conftest.i conftest2.i conftest.out
6371 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6372 fi
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6374 $as_echo "$lt_cv_truncate_bin" >&6; }
6375
6376
6377
6378
6379
6380
6381
6382 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6383 func_cc_basename ()
6384 {
6385 for cc_temp in $*""; do
6386 case $cc_temp in
6387 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6388 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6389 \-*) ;;
6390 *) break;;
6391 esac
6392 done
6393 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6394 }
6395
60866396 # Check whether --enable-libtool-lock was given.
60876397 if test "${enable_libtool_lock+set}" = set; then :
60886398 enableval=$enable_libtool_lock;
60896399 fi
60906400
6091 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6401 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
60926402
60936403 # Some flags need to be propagated to the compiler or linker for good
60946404 # libtool support.
60956405 case $host in
60966406 ia64-*-hpux*)
6097 # Find out which ABI we are using.
6407 # Find out what ABI is being produced by ac_compile, and set mode
6408 # options accordingly.
60986409 echo 'int i;' > conftest.$ac_ext
60996410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61006411 (eval $ac_compile) 2>&5
61036414 test $ac_status = 0; }; then
61046415 case `/usr/bin/file conftest.$ac_objext` in
61056416 *ELF-32*)
6106 HPUX_IA64_MODE="32"
6417 HPUX_IA64_MODE=32
61076418 ;;
61086419 *ELF-64*)
6109 HPUX_IA64_MODE="64"
6420 HPUX_IA64_MODE=64
61106421 ;;
61116422 esac
61126423 fi
61136424 rm -rf conftest*
61146425 ;;
61156426 *-*-irix6*)
6116 # Find out which ABI we are using.
6427 # Find out what ABI is being produced by ac_compile, and set linker
6428 # options accordingly.
61176429 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
61186430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61196431 (eval $ac_compile) 2>&5
61206432 ac_status=$?
61216433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61226434 test $ac_status = 0; }; then
6123 if test "$lt_cv_prog_gnu_ld" = yes; then
6435 if test yes = "$lt_cv_prog_gnu_ld"; then
61246436 case `/usr/bin/file conftest.$ac_objext` in
61256437 *32-bit*)
61266438 LD="${LD-ld} -melf32bsmip"
61496461 rm -rf conftest*
61506462 ;;
61516463
6152 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6464 mips64*-*linux*)
6465 # Find out what ABI is being produced by ac_compile, and set linker
6466 # options accordingly.
6467 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6469 (eval $ac_compile) 2>&5
6470 ac_status=$?
6471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6472 test $ac_status = 0; }; then
6473 emul=elf
6474 case `/usr/bin/file conftest.$ac_objext` in
6475 *32-bit*)
6476 emul="${emul}32"
6477 ;;
6478 *64-bit*)
6479 emul="${emul}64"
6480 ;;
6481 esac
6482 case `/usr/bin/file conftest.$ac_objext` in
6483 *MSB*)
6484 emul="${emul}btsmip"
6485 ;;
6486 *LSB*)
6487 emul="${emul}ltsmip"
6488 ;;
6489 esac
6490 case `/usr/bin/file conftest.$ac_objext` in
6491 *N32*)
6492 emul="${emul}n32"
6493 ;;
6494 esac
6495 LD="${LD-ld} -m $emul"
6496 fi
6497 rm -rf conftest*
6498 ;;
6499
6500 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
61536501 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6154 # Find out which ABI we are using.
6502 # Find out what ABI is being produced by ac_compile, and set linker
6503 # options accordingly. Note that the listed cases only cover the
6504 # situations where additional linker options are needed (such as when
6505 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6506 # vice versa); the common cases where no linker options are needed do
6507 # not appear in the list.
61556508 echo 'int i;' > conftest.$ac_ext
61566509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
61576510 (eval $ac_compile) 2>&5
61656518 LD="${LD-ld} -m elf_i386_fbsd"
61666519 ;;
61676520 x86_64-*linux*)
6168 LD="${LD-ld} -m elf_i386"
6521 case `/usr/bin/file conftest.o` in
6522 *x86-64*)
6523 LD="${LD-ld} -m elf32_x86_64"
6524 ;;
6525 *)
6526 LD="${LD-ld} -m elf_i386"
6527 ;;
6528 esac
61696529 ;;
6170 ppc64-*linux*|powerpc64-*linux*)
6530 powerpc64le-*linux*)
6531 LD="${LD-ld} -m elf32lppclinux"
6532 ;;
6533 powerpc64-*linux*)
61716534 LD="${LD-ld} -m elf32ppclinux"
61726535 ;;
61736536 s390x-*linux*)
61866549 x86_64-*linux*)
61876550 LD="${LD-ld} -m elf_x86_64"
61886551 ;;
6189 ppc*-*linux*|powerpc*-*linux*)
6552 powerpcle-*linux*)
6553 LD="${LD-ld} -m elf64lppc"
6554 ;;
6555 powerpc-*linux*)
61906556 LD="${LD-ld} -m elf64ppc"
61916557 ;;
61926558 s390*-*linux*|s390*-*tpf*)
62046570
62056571 *-*-sco3.2v5*)
62066572 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6207 SAVE_CFLAGS="$CFLAGS"
6573 SAVE_CFLAGS=$CFLAGS
62086574 CFLAGS="$CFLAGS -belf"
62096575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
62106576 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
62446610 fi
62456611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
62466612 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6247 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6613 if test yes != "$lt_cv_cc_needs_belf"; then
62486614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6249 CFLAGS="$SAVE_CFLAGS"
6615 CFLAGS=$SAVE_CFLAGS
62506616 fi
62516617 ;;
62526618 *-*solaris*)
6253 # Find out which ABI we are using.
6619 # Find out what ABI is being produced by ac_compile, and set linker
6620 # options accordingly.
62546621 echo 'int i;' > conftest.$ac_ext
62556622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
62566623 (eval $ac_compile) 2>&5
62626629 case $lt_cv_prog_gnu_ld in
62636630 yes*)
62646631 case $host in
6265 i?86-*-solaris*)
6632 i?86-*-solaris*|x86_64-*-solaris*)
62666633 LD="${LD-ld} -m elf_x86_64"
62676634 ;;
62686635 sparc*-*-solaris*)
62716638 esac
62726639 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
62736640 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6274 LD="${LD-ld}_sol2"
6641 LD=${LD-ld}_sol2
62756642 fi
62766643 ;;
62776644 *)
62876654 ;;
62886655 esac
62896656
6290 need_locks="$enable_libtool_lock"
6657 need_locks=$enable_libtool_lock
62916658
62926659 if test -n "$ac_tool_prefix"; then
62936660 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
63066673 IFS=$as_save_IFS
63076674 test -z "$as_dir" && as_dir=.
63086675 for ac_exec_ext in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63106677 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
63116678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63126679 break 2
63466713 IFS=$as_save_IFS
63476714 test -z "$as_dir" && as_dir=.
63486715 for ac_exec_ext in '' $ac_executable_extensions; do
6349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
63506717 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
63516718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
63526719 break 2
63986765 fi
63996766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
64006767 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6401 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6768 if test yes != "$lt_cv_path_mainfest_tool"; then
64026769 MANIFEST_TOOL=:
64036770 fi
64046771
64266793 IFS=$as_save_IFS
64276794 test -z "$as_dir" && as_dir=.
64286795 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64306797 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
64316798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64326799 break 2
64666833 IFS=$as_save_IFS
64676834 test -z "$as_dir" && as_dir=.
64686835 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
64706837 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
64716838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
64726839 break 2
65186885 IFS=$as_save_IFS
65196886 test -z "$as_dir" && as_dir=.
65206887 for ac_exec_ext in '' $ac_executable_extensions; do
6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
65226889 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
65236890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65246891 break 2
65586925 IFS=$as_save_IFS
65596926 test -z "$as_dir" && as_dir=.
65606927 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
65626929 ac_cv_prog_ac_ct_NMEDIT="nmedit"
65636930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
65646931 break 2
66106977 IFS=$as_save_IFS
66116978 test -z "$as_dir" && as_dir=.
66126979 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66146981 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
66156982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66166983 break 2
66507017 IFS=$as_save_IFS
66517018 test -z "$as_dir" && as_dir=.
66527019 for ac_exec_ext in '' $ac_executable_extensions; do
6653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
66547021 ac_cv_prog_ac_ct_LIPO="lipo"
66557022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
66567023 break 2
67027069 IFS=$as_save_IFS
67037070 test -z "$as_dir" && as_dir=.
67047071 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67067073 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
67077074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67087075 break 2
67427109 IFS=$as_save_IFS
67437110 test -z "$as_dir" && as_dir=.
67447111 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67467113 ac_cv_prog_ac_ct_OTOOL="otool"
67477114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
67487115 break 2
67947161 IFS=$as_save_IFS
67957162 test -z "$as_dir" && as_dir=.
67967163 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
67987165 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
67997166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68007167 break 2
68347201 IFS=$as_save_IFS
68357202 test -z "$as_dir" && as_dir=.
68367203 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
68387205 ac_cv_prog_ac_ct_OTOOL64="otool64"
68397206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
68407207 break 2
69017268 $as_echo_n "(cached) " >&6
69027269 else
69037270 lt_cv_apple_cc_single_mod=no
6904 if test -z "${LT_MULTI_MODULE}"; then
7271 if test -z "$LT_MULTI_MODULE"; then
69057272 # By default we will add the -single_module flag. You can override
69067273 # by either setting the environment variable LT_MULTI_MODULE
69077274 # non-empty at configure time, or by adding -multi_module to the
69197286 cat conftest.err >&5
69207287 # Otherwise, if the output was created with a 0 exit code from
69217288 # the compiler, it worked.
6922 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7289 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
69237290 lt_cv_apple_cc_single_mod=yes
69247291 else
69257292 cat conftest.err >&5
69587325 fi
69597326 rm -f core conftest.err conftest.$ac_objext \
69607327 conftest$ac_exeext conftest.$ac_ext
6961 LDFLAGS="$save_LDFLAGS"
7328 LDFLAGS=$save_LDFLAGS
69627329
69637330 fi
69647331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
69877354 _lt_result=$?
69887355 if test -s conftest.err && $GREP force_load conftest.err; then
69897356 cat conftest.err >&5
6990 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7357 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
69917358 lt_cv_ld_force_load=yes
69927359 else
69937360 cat conftest.err >&5
70007367 $as_echo "$lt_cv_ld_force_load" >&6; }
70017368 case $host_os in
70027369 rhapsody* | darwin1.[012])
7003 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7370 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
70047371 darwin1.*)
7005 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7372 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
70067373 darwin*) # darwin 5.x on
70077374 # if running on 10.5 or later, the deployment target defaults
70087375 # to the OS version, if on x86, and 10.4, the deployment
70097376 # target defaults to 10.4. Don't you love it?
70107377 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
70117378 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7012 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7013 10.[012]*)
7014 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7379 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7380 10.[012][,.]*)
7381 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
70157382 10.*)
7016 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7383 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
70177384 esac
70187385 ;;
70197386 esac
7020 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7387 if test yes = "$lt_cv_apple_cc_single_mod"; then
70217388 _lt_dar_single_mod='$single_module'
70227389 fi
7023 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7024 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7390 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7391 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
70257392 else
7026 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7393 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
70277394 fi
7028 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7395 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
70297396 _lt_dsymutil='~$DSYMUTIL $lib || :'
70307397 else
70317398 _lt_dsymutil=
70327399 fi
70337400 ;;
70347401 esac
7402
7403 # func_munge_path_list VARIABLE PATH
7404 # -----------------------------------
7405 # VARIABLE is name of variable containing _space_ separated list of
7406 # directories to be munged by the contents of PATH, which is string
7407 # having a format:
7408 # "DIR[:DIR]:"
7409 # string "DIR[ DIR]" will be prepended to VARIABLE
7410 # ":DIR[:DIR]"
7411 # string "DIR[ DIR]" will be appended to VARIABLE
7412 # "DIRP[:DIRP]::[DIRA:]DIRA"
7413 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7414 # "DIRA[ DIRA]" will be appended to VARIABLE
7415 # "DIR[:DIR]"
7416 # VARIABLE will be replaced by "DIR[ DIR]"
7417 func_munge_path_list ()
7418 {
7419 case x$2 in
7420 x)
7421 ;;
7422 *:)
7423 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7424 ;;
7425 x:*)
7426 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7427 ;;
7428 *::*)
7429 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7430 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7431 ;;
7432 *)
7433 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7434 ;;
7435 esac
7436 }
70357437
70367438 ac_ext=c
70377439 ac_cpp='$CPP $CPPFLAGS'
73367738 *)
73377739 enable_shared=no
73387740 # Look at the argument we got. We use all the common list separators.
7339 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7741 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
73407742 for pkg in $enableval; do
7341 IFS="$lt_save_ifs"
7743 IFS=$lt_save_ifs
73427744 if test "X$pkg" = "X$p"; then
73437745 enable_shared=yes
73447746 fi
73457747 done
7346 IFS="$lt_save_ifs"
7748 IFS=$lt_save_ifs
73477749 ;;
73487750 esac
73497751 else
73677769 *)
73687770 enable_static=no
73697771 # Look at the argument we got. We use all the common list separators.
7370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7772 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
73717773 for pkg in $enableval; do
7372 IFS="$lt_save_ifs"
7774 IFS=$lt_save_ifs
73737775 if test "X$pkg" = "X$p"; then
73747776 enable_static=yes
73757777 fi
73767778 done
7377 IFS="$lt_save_ifs"
7779 IFS=$lt_save_ifs
73787780 ;;
73797781 esac
73807782 else
73987800 *)
73997801 pic_mode=default
74007802 # Look at the argument we got. We use all the common list separators.
7401 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
74027804 for lt_pkg in $withval; do
7403 IFS="$lt_save_ifs"
7805 IFS=$lt_save_ifs
74047806 if test "X$lt_pkg" = "X$lt_p"; then
74057807 pic_mode=yes
74067808 fi
74077809 done
7408 IFS="$lt_save_ifs"
7810 IFS=$lt_save_ifs
74097811 ;;
74107812 esac
74117813 else
74127814 pic_mode=default
74137815 fi
74147816
7415
7416 test -z "$pic_mode" && pic_mode=default
74177817
74187818
74197819
74307830 *)
74317831 enable_fast_install=no
74327832 # Look at the argument we got. We use all the common list separators.
7433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7833 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
74347834 for pkg in $enableval; do
7435 IFS="$lt_save_ifs"
7835 IFS=$lt_save_ifs
74367836 if test "X$pkg" = "X$p"; then
74377837 enable_fast_install=yes
74387838 fi
74397839 done
7440 IFS="$lt_save_ifs"
7840 IFS=$lt_save_ifs
74417841 ;;
74427842 esac
74437843 else
74517851
74527852
74537853
7854 shared_archive_member_spec=
7855 case $host,$enable_shared in
7856 power*-*-aix[5-9]*,yes)
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7858 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7859
7860 # Check whether --with-aix-soname was given.
7861 if test "${with_aix_soname+set}" = set; then :
7862 withval=$with_aix_soname; case $withval in
7863 aix|svr4|both)
7864 ;;
7865 *)
7866 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7867 ;;
7868 esac
7869 lt_cv_with_aix_soname=$with_aix_soname
7870 else
7871 if ${lt_cv_with_aix_soname+:} false; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 lt_cv_with_aix_soname=aix
7875 fi
7876
7877 with_aix_soname=$lt_cv_with_aix_soname
7878 fi
7879
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7881 $as_echo "$with_aix_soname" >&6; }
7882 if test aix != "$with_aix_soname"; then
7883 # For the AIX way of multilib, we name the shared archive member
7884 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7885 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7886 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7887 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7888 if test 64 = "${OBJECT_MODE-32}"; then
7889 shared_archive_member_spec=shr_64
7890 else
7891 shared_archive_member_spec=shr
7892 fi
7893 fi
7894 ;;
7895 *)
7896 with_aix_soname=aix
7897 ;;
7898 esac
7899
7900
7901
7902
7903
7904
7905
74547906
74557907
74567908
74577909 # This can be used to rebuild libtool when needed
7458 LIBTOOL_DEPS="$ltmain"
7910 LIBTOOL_DEPS=$ltmain
74597911
74607912 # Always use our own libtool.
74617913 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
75047956
75057957
75067958
7507 if test -n "${ZSH_VERSION+set}" ; then
7959 if test -n "${ZSH_VERSION+set}"; then
75087960 setopt NO_GLOB_SUBST
75097961 fi
75107962
75437995 # AIX sometimes has problems with the GCC collect2 program. For some
75447996 # reason, if we set the COLLECT_NAMES environment variable, the problems
75457997 # vanish in a puff of smoke.
7546 if test "X${COLLECT_NAMES+set}" != Xset; then
7998 if test set != "${COLLECT_NAMES+set}"; then
75477999 COLLECT_NAMES=
75488000 export COLLECT_NAMES
75498001 fi
75548006 ofile=libtool
75558007 can_build_shared=yes
75568008
7557 # All known linkers require a `.a' archive for static linking (except MSVC,
8009 # All known linkers require a '.a' archive for static linking (except MSVC,
75588010 # which needs '.lib').
75598011 libext=a
75608012
7561 with_gnu_ld="$lt_cv_prog_gnu_ld"
7562
7563 old_CC="$CC"
7564 old_CFLAGS="$CFLAGS"
8013 with_gnu_ld=$lt_cv_prog_gnu_ld
8014
8015 old_CC=$CC
8016 old_CFLAGS=$CFLAGS
75658017
75668018 # Set sane defaults for various variables
75678019 test -z "$CC" && CC=cc
75708022 test -z "$LD" && LD=ld
75718023 test -z "$ac_objext" && ac_objext=o
75728024
7573 for cc_temp in $compiler""; do
7574 case $cc_temp in
7575 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7576 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7577 \-*) ;;
7578 *) break;;
7579 esac
7580 done
7581 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8025 func_cc_basename $compiler
8026 cc_basename=$func_cc_basename_result
75828027
75838028
75848029 # Only perform the check for file, if the check method requires it
75938038 else
75948039 case $MAGIC_CMD in
75958040 [\\/*] | ?:[\\/]*)
7596 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8041 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
75978042 ;;
75988043 *)
7599 lt_save_MAGIC_CMD="$MAGIC_CMD"
7600 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8044 lt_save_MAGIC_CMD=$MAGIC_CMD
8045 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
76018046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
76028047 for ac_dir in $ac_dummy; do
7603 IFS="$lt_save_ifs"
8048 IFS=$lt_save_ifs
76048049 test -z "$ac_dir" && ac_dir=.
7605 if test -f $ac_dir/${ac_tool_prefix}file; then
7606 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8050 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8051 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
76078052 if test -n "$file_magic_test_file"; then
76088053 case $deplibs_check_method in
76098054 "file_magic "*)
76108055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8056 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76128057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
76138058 $EGREP "$file_magic_regex" > /dev/null; then
76148059 :
76318076 break
76328077 fi
76338078 done
7634 IFS="$lt_save_ifs"
7635 MAGIC_CMD="$lt_save_MAGIC_CMD"
8079 IFS=$lt_save_ifs
8080 MAGIC_CMD=$lt_save_MAGIC_CMD
76368081 ;;
76378082 esac
76388083 fi
76398084
7640 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8085 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76418086 if test -n "$MAGIC_CMD"; then
76428087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
76438088 $as_echo "$MAGIC_CMD" >&6; }
76598104 else
76608105 case $MAGIC_CMD in
76618106 [\\/*] | ?:[\\/]*)
7662 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8107 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
76638108 ;;
76648109 *)
7665 lt_save_MAGIC_CMD="$MAGIC_CMD"
7666 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8110 lt_save_MAGIC_CMD=$MAGIC_CMD
8111 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
76678112 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
76688113 for ac_dir in $ac_dummy; do
7669 IFS="$lt_save_ifs"
8114 IFS=$lt_save_ifs
76708115 test -z "$ac_dir" && ac_dir=.
7671 if test -f $ac_dir/file; then
7672 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8116 if test -f "$ac_dir/file"; then
8117 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
76738118 if test -n "$file_magic_test_file"; then
76748119 case $deplibs_check_method in
76758120 "file_magic "*)
76768121 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7677 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8122 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
76788123 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
76798124 $EGREP "$file_magic_regex" > /dev/null; then
76808125 :
76978142 break
76988143 fi
76998144 done
7700 IFS="$lt_save_ifs"
7701 MAGIC_CMD="$lt_save_MAGIC_CMD"
8145 IFS=$lt_save_ifs
8146 MAGIC_CMD=$lt_save_MAGIC_CMD
77028147 ;;
77038148 esac
77048149 fi
77058150
7706 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8151 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
77078152 if test -n "$MAGIC_CMD"; then
77088153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
77098154 $as_echo "$MAGIC_CMD" >&6; }
77248169
77258170 # Use C for the default configuration in the libtool script
77268171
7727 lt_save_CC="$CC"
8172 lt_save_CC=$CC
77288173 ac_ext=c
77298174 ac_cpp='$CPP $CPPFLAGS'
77308175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
77828227
77838228 lt_prog_compiler_no_builtin_flag=
77848229
7785 if test "$GCC" = yes; then
8230 if test yes = "$GCC"; then
77868231 case $cc_basename in
77878232 nvcc*)
77888233 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
77988243 lt_cv_prog_compiler_rtti_exceptions=no
77998244 ac_outfile=conftest.$ac_objext
78008245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7801 lt_compiler_flag="-fno-rtti -fno-exceptions"
8246 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
78028247 # Insert the option either (1) after the last *FLAGS variable, or
78038248 # (2) before a word containing "conftest.", or (3) at the end.
78048249 # Note that $ac_compile itself does not contain backslashes and begins
78288273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
78298274 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
78308275
7831 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8276 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
78328277 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
78338278 else
78348279 :
78468291 lt_prog_compiler_static=
78478292
78488293
7849 if test "$GCC" = yes; then
8294 if test yes = "$GCC"; then
78508295 lt_prog_compiler_wl='-Wl,'
78518296 lt_prog_compiler_static='-static'
78528297
78538298 case $host_os in
78548299 aix*)
78558300 # All AIX code is PIC.
7856 if test "$host_cpu" = ia64; then
8301 if test ia64 = "$host_cpu"; then
78578302 # AIX 5 now supports IA64 processor
78588303 lt_prog_compiler_static='-Bstatic'
78598304 fi
8305 lt_prog_compiler_pic='-fPIC'
78608306 ;;
78618307
78628308 amigaos*)
78678313 ;;
78688314 m68k)
78698315 # FIXME: we need at least 68020 code to build shared libraries, but
7870 # adding the `-m68020' flag to GCC prevents building anything better,
7871 # like `-m68040'.
8316 # adding the '-m68020' flag to GCC prevents building anything better,
8317 # like '-m68040'.
78728318 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
78738319 ;;
78748320 esac
78848330 # Although the cygwin gcc ignores -fPIC, still need this for old-style
78858331 # (--disable-auto-import) libraries
78868332 lt_prog_compiler_pic='-DDLL_EXPORT'
8333 case $host_os in
8334 os2*)
8335 lt_prog_compiler_static='$wl-static'
8336 ;;
8337 esac
78878338 ;;
78888339
78898340 darwin* | rhapsody*)
79548405 case $host_os in
79558406 aix*)
79568407 lt_prog_compiler_wl='-Wl,'
7957 if test "$host_cpu" = ia64; then
8408 if test ia64 = "$host_cpu"; then
79588409 # AIX 5 now supports IA64 processor
79598410 lt_prog_compiler_static='-Bstatic'
79608411 else
79628413 fi
79638414 ;;
79648415
8416 darwin* | rhapsody*)
8417 # PIC is the default on this platform
8418 # Common symbols not allowed in MH_DYLIB files
8419 lt_prog_compiler_pic='-fno-common'
8420 case $cc_basename in
8421 nagfor*)
8422 # NAG Fortran compiler
8423 lt_prog_compiler_wl='-Wl,-Wl,,'
8424 lt_prog_compiler_pic='-PIC'
8425 lt_prog_compiler_static='-Bstatic'
8426 ;;
8427 esac
8428 ;;
8429
79658430 mingw* | cygwin* | pw32* | os2* | cegcc*)
79668431 # This hack is so that the source file can tell whether it is being
79678432 # built for inclusion in a dll (and should export symbols for example).
79688433 lt_prog_compiler_pic='-DDLL_EXPORT'
8434 case $host_os in
8435 os2*)
8436 lt_prog_compiler_static='$wl-static'
8437 ;;
8438 esac
79698439 ;;
79708440
79718441 hpux9* | hpux10* | hpux11*)
79818451 ;;
79828452 esac
79838453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7984 lt_prog_compiler_static='${wl}-a ${wl}archive'
8454 lt_prog_compiler_static='$wl-a ${wl}archive'
79858455 ;;
79868456
79878457 irix5* | irix6* | nonstopux*)
79908460 lt_prog_compiler_static='-non_shared'
79918461 ;;
79928462
7993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8463 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
79948464 case $cc_basename in
7995 # old Intel for x86_64 which still supported -KPIC.
8465 # old Intel for x86_64, which still supported -KPIC.
79968466 ecc*)
79978467 lt_prog_compiler_wl='-Wl,'
79988468 lt_prog_compiler_pic='-KPIC'
80168486 lt_prog_compiler_wl='-Wl,-Wl,,'
80178487 lt_prog_compiler_pic='-PIC'
80188488 lt_prog_compiler_static='-Bstatic'
8489 ;;
8490 tcc*)
8491 # Fabrice Bellard et al's Tiny C Compiler
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-fPIC'
8494 lt_prog_compiler_static='-static'
80198495 ;;
80208496 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
80218497 # Portland Group compilers (*not* the Pentium gcc compiler,
81148590 ;;
81158591
81168592 sysv4*MP*)
8117 if test -d /usr/nec ;then
8593 if test -d /usr/nec; then
81188594 lt_prog_compiler_pic='-Kconform_pic'
81198595 lt_prog_compiler_static='-Bstatic'
81208596 fi
81438619 fi
81448620
81458621 case $host_os in
8146 # For platforms which do not support PIC, -DPIC is meaningless:
8622 # For platforms that do not support PIC, -DPIC is meaningless:
81478623 *djgpp*)
81488624 lt_prog_compiler_pic=
81498625 ;;
81758651 lt_cv_prog_compiler_pic_works=no
81768652 ac_outfile=conftest.$ac_objext
81778653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8178 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8654 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
81798655 # Insert the option either (1) after the last *FLAGS variable, or
81808656 # (2) before a word containing "conftest.", or (3) at the end.
81818657 # Note that $ac_compile itself does not contain backslashes and begins
82058681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
82068682 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
82078683
8208 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8684 if test yes = "$lt_cv_prog_compiler_pic_works"; then
82098685 case $lt_prog_compiler_pic in
82108686 "" | " "*) ;;
82118687 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
82378713 $as_echo_n "(cached) " >&6
82388714 else
82398715 lt_cv_prog_compiler_static_works=no
8240 save_LDFLAGS="$LDFLAGS"
8716 save_LDFLAGS=$LDFLAGS
82418717 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
82428718 echo "$lt_simple_link_test_code" > conftest.$ac_ext
82438719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
82568732 fi
82578733 fi
82588734 $RM -r conftest*
8259 LDFLAGS="$save_LDFLAGS"
8735 LDFLAGS=$save_LDFLAGS
82608736
82618737 fi
82628738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
82638739 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
82648740
8265 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8741 if test yes = "$lt_cv_prog_compiler_static_works"; then
82668742 :
82678743 else
82688744 lt_prog_compiler_static=
83828858
83838859
83848860
8385 hard_links="nottested"
8386 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8861 hard_links=nottested
8862 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
83878863 # do not overwrite the value of need_locks provided by the user
83888864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
83898865 $as_echo_n "checking if we can lock with hard links... " >&6; }
83958871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
83968872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
83978873 $as_echo "$hard_links" >&6; }
8398 if test "$hard_links" = no; then
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8874 if test no = "$hard_links"; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8876 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
84018877 need_locks=warn
84028878 fi
84038879 else
84408916 # included in the symbol list
84418917 include_expsyms=
84428918 # exclude_expsyms can be an extended regexp of symbols to exclude
8443 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8444 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8445 # as well as any symbol that contains `d'.
8919 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8920 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8921 # as well as any symbol that contains 'd'.
84468922 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
84478923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
84488924 # platforms (ab)use it in PIC code, but their linkers get confused if
84578933 # FIXME: the MSVC++ port hasn't been tested in a loooong time
84588934 # When not using gcc, we currently assume that we are using
84598935 # Microsoft Visual C++.
8460 if test "$GCC" != yes; then
8936 if test yes != "$GCC"; then
84618937 with_gnu_ld=no
84628938 fi
84638939 ;;
84658941 # we just hope/assume this is gcc and not c89 (= MSVC++)
84668942 with_gnu_ld=yes
84678943 ;;
8468 openbsd*)
8944 openbsd* | bitrig*)
84698945 with_gnu_ld=no
84708946 ;;
84718947 linux* | k*bsd*-gnu | gnu*)
84788954 # On some targets, GNU ld is compatible enough with the native linker
84798955 # that we're better off using the native interface for both.
84808956 lt_use_gnu_ld_interface=no
8481 if test "$with_gnu_ld" = yes; then
8957 if test yes = "$with_gnu_ld"; then
84828958 case $host_os in
84838959 aix*)
84848960 # The AIX port of GNU ld has always aspired to compatibility
85008976 esac
85018977 fi
85028978
8503 if test "$lt_use_gnu_ld_interface" = yes; then
8979 if test yes = "$lt_use_gnu_ld_interface"; then
85048980 # If archive_cmds runs LD, not CC, wlarc should be empty
8505 wlarc='${wl}'
8981 wlarc='$wl'
85068982
85078983 # Set some defaults for GNU ld with shared library support. These
85088984 # are reset later if shared libraries are not supported. Putting them
85098985 # here allows them to be overridden if necessary.
85108986 runpath_var=LD_RUN_PATH
8511 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8512 export_dynamic_flag_spec='${wl}--export-dynamic'
8987 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8988 export_dynamic_flag_spec='$wl--export-dynamic'
85138989 # ancient GNU ld didn't support --whole-archive et. al.
85148990 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8515 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8991 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
85168992 else
85178993 whole_archive_flag_spec=
85188994 fi
85198995 supports_anon_versioning=no
8520 case `$LD -v 2>&1` in
8996 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
85218997 *GNU\ gold*) supports_anon_versioning=yes ;;
85228998 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
85238999 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
85309006 case $host_os in
85319007 aix[3-9]*)
85329008 # On AIX/PPC, the GNU linker is very broken
8533 if test "$host_cpu" != ia64; then
9009 if test ia64 != "$host_cpu"; then
85349010 ld_shlibs=no
85359011 cat <<_LT_EOF 1>&2
85369012
85499025 case $host_cpu in
85509026 powerpc)
85519027 # see comment about AmigaOS4 .so support
8552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9028 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85539029 archive_expsym_cmds=''
85549030 ;;
85559031 m68k)
85659041 allow_undefined_flag=unsupported
85669042 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
85679043 # support --undefined. This deserves some investigation. FIXME
8568 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9044 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
85699045 else
85709046 ld_shlibs=no
85719047 fi
85759051 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
85769052 # as there is no search path for DLLs.
85779053 hardcode_libdir_flag_spec='-L$libdir'
8578 export_dynamic_flag_spec='${wl}--export-all-symbols'
9054 export_dynamic_flag_spec='$wl--export-all-symbols'
85799055 allow_undefined_flag=unsupported
85809056 always_export_symbols=no
85819057 enable_shared_with_static_runtimes=yes
85839059 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
85849060
85859061 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8587 # If the export-symbols file already is a .def file (1st line
8588 # is EXPORTS), use it as is; otherwise, prepend...
8589 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8590 cp $export_symbols $output_objdir/$soname.def;
8591 else
8592 echo EXPORTS > $output_objdir/$soname.def;
8593 cat $export_symbols >> $output_objdir/$soname.def;
8594 fi~
8595 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9062 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9063 # If the export-symbols file already is a .def file, use it as
9064 # is; otherwise, prepend EXPORTS...
9065 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9066 cp $export_symbols $output_objdir/$soname.def;
9067 else
9068 echo EXPORTS > $output_objdir/$soname.def;
9069 cat $export_symbols >> $output_objdir/$soname.def;
9070 fi~
9071 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
85969072 else
85979073 ld_shlibs=no
85989074 fi
85999075 ;;
86009076
86019077 haiku*)
8602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
86039079 link_all_deplibs=yes
9080 ;;
9081
9082 os2*)
9083 hardcode_libdir_flag_spec='-L$libdir'
9084 hardcode_minus_L=yes
9085 allow_undefined_flag=unsupported
9086 shrext_cmds=.dll
9087 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9088 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9089 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9090 $ECHO EXPORTS >> $output_objdir/$libname.def~
9091 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9092 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9093 emximp -o $lib $output_objdir/$libname.def'
9094 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9095 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9096 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9097 $ECHO EXPORTS >> $output_objdir/$libname.def~
9098 prefix_cmds="$SED"~
9099 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9100 prefix_cmds="$prefix_cmds -e 1d";
9101 fi~
9102 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9103 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9104 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9105 emximp -o $lib $output_objdir/$libname.def'
9106 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9107 enable_shared_with_static_runtimes=yes
86049108 ;;
86059109
86069110 interix[3-9]*)
86079111 hardcode_direct=no
86089112 hardcode_shlibpath_var=no
8609 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8610 export_dynamic_flag_spec='${wl}-E'
9113 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9114 export_dynamic_flag_spec='$wl-E'
86119115 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
86129116 # Instead, shared libraries are loaded at an image base (0x10000000 by
86139117 # default) and relocated if they conflict, which is a slow very memory
86149118 # consuming and fragmenting process. To avoid this, we pick a random,
86159119 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
86169120 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8617 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8618 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'
9121 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9122 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'
86199123 ;;
86209124
86219125 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
86229126 tmp_diet=no
8623 if test "$host_os" = linux-dietlibc; then
9127 if test linux-dietlibc = "$host_os"; then
86249128 case $cc_basename in
86259129 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
86269130 esac
86279131 fi
86289132 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8629 && test "$tmp_diet" = no
9133 && test no = "$tmp_diet"
86309134 then
86319135 tmp_addflag=' $pic_flag'
86329136 tmp_sharedflag='-shared'
86339137 case $cc_basename,$host_cpu in
86349138 pgcc*) # Portland Group C compiler
8635 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9139 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
86369140 tmp_addflag=' $pic_flag'
86379141 ;;
86389142 pgf77* | pgf90* | pgf95* | pgfortran*)
86399143 # Portland Group f77 and f90 compilers
8640 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9144 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
86419145 tmp_addflag=' $pic_flag -Mnomain' ;;
86429146 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
86439147 tmp_addflag=' -i_dynamic' ;;
86489152 lf95*) # Lahey Fortran 8.1
86499153 whole_archive_flag_spec=
86509154 tmp_sharedflag='--shared' ;;
9155 nagfor*) # NAGFOR 5.3
9156 tmp_sharedflag='-Wl,-shared' ;;
86519157 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
86529158 tmp_sharedflag='-qmkshrobj'
86539159 tmp_addflag= ;;
86549160 nvcc*) # Cuda Compiler Driver 2.2
8655 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9161 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
86569162 compiler_needs_object=yes
86579163 ;;
86589164 esac
86599165 case `$CC -V 2>&1 | sed 5q` in
86609166 *Sun\ C*) # Sun C 5.9
8661 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9167 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
86629168 compiler_needs_object=yes
86639169 tmp_sharedflag='-G' ;;
86649170 *Sun\ F*) # Sun Fortran 8.3
86659171 tmp_sharedflag='-G' ;;
86669172 esac
8667 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668
8669 if test "x$supports_anon_versioning" = xyes; then
9173 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9174
9175 if test yes = "$supports_anon_versioning"; then
86709176 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8672 echo "local: *; };" >> $output_objdir/$libname.ver~
8673 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9177 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178 echo "local: *; };" >> $output_objdir/$libname.ver~
9179 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
86749180 fi
86759181
86769182 case $cc_basename in
9183 tcc*)
9184 export_dynamic_flag_spec='-rdynamic'
9185 ;;
86779186 xlf* | bgf* | bgxlf* | mpixlf*)
86789187 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
86799188 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8680 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
86819190 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8682 if test "x$supports_anon_versioning" = xyes; then
9191 if test yes = "$supports_anon_versioning"; then
86839192 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8684 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8685 echo "local: *; };" >> $output_objdir/$libname.ver~
8686 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9193 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9194 echo "local: *; };" >> $output_objdir/$libname.ver~
9195 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
86879196 fi
86889197 ;;
86899198 esac
86979206 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
86989207 wlarc=
86999208 else
8700 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9209 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87029211 fi
87039212 ;;
87049213
87169225
87179226 _LT_EOF
87189227 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8719 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8720 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9228 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9229 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87219230 else
87229231 ld_shlibs=no
87239232 fi
87299238 ld_shlibs=no
87309239 cat <<_LT_EOF 1>&2
87319240
8732 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9241 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
87339242 *** reliably create shared libraries on SCO systems. Therefore, libtool
87349243 *** is disabling shared libraries support. We urge you to upgrade GNU
87359244 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
87449253 # DT_RUNPATH tag from executables and libraries. But doing so
87459254 # requires that you compile everything twice, which is a pain.
87469255 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8747 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8748 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8749 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9256 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87509259 else
87519260 ld_shlibs=no
87529261 fi
87639272
87649273 *)
87659274 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8766 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8767 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
87689277 else
87699278 ld_shlibs=no
87709279 fi
87719280 ;;
87729281 esac
87739282
8774 if test "$ld_shlibs" = no; then
9283 if test no = "$ld_shlibs"; then
87759284 runpath_var=
87769285 hardcode_libdir_flag_spec=
87779286 export_dynamic_flag_spec=
87879296 # Note: this linker hardcodes the directories in LIBPATH if there
87889297 # are no directories specified by -L.
87899298 hardcode_minus_L=yes
8790 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9299 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
87919300 # Neither direct hardcoding nor static linking is supported with a
87929301 # broken collect2.
87939302 hardcode_direct=unsupported
87959304 ;;
87969305
87979306 aix[4-9]*)
8798 if test "$host_cpu" = ia64; then
9307 if test ia64 = "$host_cpu"; then
87999308 # On IA64, the linker does run time linking by default, so we don't
88009309 # have to do anything special.
88019310 aix_use_runtimelinking=no
88029311 exp_sym_flag='-Bexport'
8803 no_entry_flag=""
9312 no_entry_flag=
88049313 else
88059314 # If we're using GNU nm, then we don't want the "-C" option.
8806 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8807 # Also, AIX nm treats weak defined symbols like other global
8808 # defined symbols, whereas GNU nm marks them as "W".
9315 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9316 # Without the "-l" option, or with the "-B" option, AIX nm treats
9317 # weak defined symbols like other global defined symbols, whereas
9318 # GNU nm marks them as "W".
9319 # While the 'weak' keyword is ignored in the Export File, we need
9320 # it in the Import File for the 'aix-soname' feature, so we have
9321 # to replace the "-B" option with "-P" for AIX nm.
88099322 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8810 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9323 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
88119324 else
8812 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'
9325 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
88139326 fi
88149327 aix_use_runtimelinking=no
88159328
88169329 # Test if we are trying to use run time linking or normal
88179330 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818 # need to do runtime linking.
9331 # have runtime linking enabled, and use it for executables.
9332 # For shared libraries, we enable/disable runtime linking
9333 # depending on the kind of the shared library created -
9334 # when "with_aix_soname,aix_use_runtimelinking" is:
9335 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9336 # "aix,yes" lib.so shared, rtl:yes, for executables
9337 # lib.a static archive
9338 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9339 # lib.a(lib.so.V) shared, rtl:no, for executables
9340 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9341 # lib.a(lib.so.V) shared, rtl:no
9342 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9343 # lib.a static archive
88199344 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
88209345 for ld_flag in $LDFLAGS; do
8821 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9346 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
88229347 aix_use_runtimelinking=yes
88239348 break
88249349 fi
88259350 done
9351 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9352 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9353 # so we don't have lib.a shared libs to link our executables.
9354 # We have to force runtime linking in this case.
9355 aix_use_runtimelinking=yes
9356 LDFLAGS="$LDFLAGS -Wl,-brtl"
9357 fi
88269358 ;;
88279359 esac
88289360
88419373 hardcode_direct_absolute=yes
88429374 hardcode_libdir_separator=':'
88439375 link_all_deplibs=yes
8844 file_list_spec='${wl}-f,'
8845
8846 if test "$GCC" = yes; then
9376 file_list_spec='$wl-f,'
9377 case $with_aix_soname,$aix_use_runtimelinking in
9378 aix,*) ;; # traditional, no import file
9379 svr4,* | *,yes) # use import file
9380 # The Import File defines what to hardcode.
9381 hardcode_direct=no
9382 hardcode_direct_absolute=no
9383 ;;
9384 esac
9385
9386 if test yes = "$GCC"; then
88479387 case $host_os in aix4.[012]|aix4.[012].*)
88489388 # We only want to do this on AIX 4.2 and lower, the check
88499389 # below for broken collect2 doesn't work under 4.3+
8850 collect2name=`${CC} -print-prog-name=collect2`
9390 collect2name=`$CC -print-prog-name=collect2`
88519391 if test -f "$collect2name" &&
88529392 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
88539393 then
88669406 ;;
88679407 esac
88689408 shared_flag='-shared'
8869 if test "$aix_use_runtimelinking" = yes; then
8870 shared_flag="$shared_flag "'${wl}-G'
9409 if test yes = "$aix_use_runtimelinking"; then
9410 shared_flag="$shared_flag "'$wl-G'
88719411 fi
8872 link_all_deplibs=no
9412 # Need to ensure runtime linking is disabled for the traditional
9413 # shared library, or the linker may eventually find shared libraries
9414 # /with/ Import File - we do not want to mix them.
9415 shared_flag_aix='-shared'
9416 shared_flag_svr4='-shared $wl-G'
88739417 else
88749418 # not using gcc
8875 if test "$host_cpu" = ia64; then
9419 if test ia64 = "$host_cpu"; then
88769420 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
88779421 # chokes on -Wl,-G. The following line is correct:
88789422 shared_flag='-G'
88799423 else
8880 if test "$aix_use_runtimelinking" = yes; then
8881 shared_flag='${wl}-G'
9424 if test yes = "$aix_use_runtimelinking"; then
9425 shared_flag='$wl-G'
88829426 else
8883 shared_flag='${wl}-bM:SRE'
9427 shared_flag='$wl-bM:SRE'
88849428 fi
9429 shared_flag_aix='$wl-bM:SRE'
9430 shared_flag_svr4='$wl-G'
88859431 fi
88869432 fi
88879433
8888 export_dynamic_flag_spec='${wl}-bexpall'
9434 export_dynamic_flag_spec='$wl-bexpall'
88899435 # It seems that -bexpall does not export symbols beginning with
88909436 # underscore (_), so it is better to generate a list of symbols to export.
88919437 always_export_symbols=yes
8892 if test "$aix_use_runtimelinking" = yes; then
9438 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
88939439 # Warning - without using the other runtime loading flags (-brtl),
88949440 # -berok will link without error, but may produce a broken library.
88959441 allow_undefined_flag='-berok'
88969442 # Determine the default libpath from the value encoded in an
88979443 # empty executable.
8898 if test "${lt_cv_aix_libpath+set}" = set; then
9444 if test set = "${lt_cv_aix_libpath+set}"; then
88999445 aix_libpath=$lt_cv_aix_libpath
89009446 else
89019447 if ${lt_cv_aix_libpath_+:} false; then :
89309476 rm -f core conftest.err conftest.$ac_objext \
89319477 conftest$ac_exeext conftest.$ac_ext
89329478 if test -z "$lt_cv_aix_libpath_"; then
8933 lt_cv_aix_libpath_="/usr/lib:/lib"
9479 lt_cv_aix_libpath_=/usr/lib:/lib
89349480 fi
89359481
89369482 fi
89389484 aix_libpath=$lt_cv_aix_libpath_
89399485 fi
89409486
8941 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8942 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9487 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9488 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
89439489 else
8944 if test "$host_cpu" = ia64; then
8945 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9490 if test ia64 = "$host_cpu"; then
9491 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
89469492 allow_undefined_flag="-z nodefs"
8947 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"
9493 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"
89489494 else
89499495 # Determine the default libpath from the value encoded in an
89509496 # empty executable.
8951 if test "${lt_cv_aix_libpath+set}" = set; then
9497 if test set = "${lt_cv_aix_libpath+set}"; then
89529498 aix_libpath=$lt_cv_aix_libpath
89539499 else
89549500 if ${lt_cv_aix_libpath_+:} false; then :
89839529 rm -f core conftest.err conftest.$ac_objext \
89849530 conftest$ac_exeext conftest.$ac_ext
89859531 if test -z "$lt_cv_aix_libpath_"; then
8986 lt_cv_aix_libpath_="/usr/lib:/lib"
9532 lt_cv_aix_libpath_=/usr/lib:/lib
89879533 fi
89889534
89899535 fi
89919537 aix_libpath=$lt_cv_aix_libpath_
89929538 fi
89939539
8994 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9540 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
89959541 # Warning - without using the other run time loading flags,
89969542 # -berok will link without error, but may produce a broken library.
8997 no_undefined_flag=' ${wl}-bernotok'
8998 allow_undefined_flag=' ${wl}-berok'
8999 if test "$with_gnu_ld" = yes; then
9543 no_undefined_flag=' $wl-bernotok'
9544 allow_undefined_flag=' $wl-berok'
9545 if test yes = "$with_gnu_ld"; then
90009546 # We only use this code for GNU lds that support --whole-archive.
9001 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9547 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
90029548 else
90039549 # Exported symbols can be pulled into shared objects from archives
90049550 whole_archive_flag_spec='$convenience'
90059551 fi
90069552 archive_cmds_need_lc=yes
9007 # This is similar to how AIX traditionally builds its shared libraries.
9008 archive_expsym_cmds="\$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'
9553 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9554 # -brtl affects multiple linker settings, -berok does not and is overridden later
9555 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9556 if test svr4 != "$with_aix_soname"; then
9557 # This is similar to how AIX traditionally builds its shared libraries.
9558 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9559 fi
9560 if test aix != "$with_aix_soname"; then
9561 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9562 else
9563 # used by -dlpreopen to get the symbols
9564 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9565 fi
9566 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
90099567 fi
90109568 fi
90119569 ;;
90149572 case $host_cpu in
90159573 powerpc)
90169574 # see comment about AmigaOS4 .so support
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
90189576 archive_expsym_cmds=''
90199577 ;;
90209578 m68k)
90449602 # Tell ltmain to make .lib files, not .a files.
90459603 libext=lib
90469604 # Tell ltmain to make .dll files, not .so files.
9047 shrext_cmds=".dll"
9605 shrext_cmds=.dll
90489606 # FIXME: Setting linknames here is a bad hack.
9049 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9050 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9051 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9052 else
9053 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9054 fi~
9055 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9056 linknames='
9607 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9608 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9609 cp "$export_symbols" "$output_objdir/$soname.def";
9610 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9611 else
9612 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9613 fi~
9614 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9615 linknames='
90579616 # The linker will not automatically build a static lib if we build a DLL.
90589617 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
90599618 enable_shared_with_static_runtimes=yes
90629621 # Don't use ranlib
90639622 old_postinstall_cmds='chmod 644 $oldlib'
90649623 postlink_cmds='lt_outputfile="@OUTPUT@"~
9065 lt_tool_outputfile="@TOOL_OUTPUT@"~
9066 case $lt_outputfile in
9067 *.exe|*.EXE) ;;
9068 *)
9069 lt_outputfile="$lt_outputfile.exe"
9070 lt_tool_outputfile="$lt_tool_outputfile.exe"
9071 ;;
9072 esac~
9073 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9074 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9075 $RM "$lt_outputfile.manifest";
9076 fi'
9624 lt_tool_outputfile="@TOOL_OUTPUT@"~
9625 case $lt_outputfile in
9626 *.exe|*.EXE) ;;
9627 *)
9628 lt_outputfile=$lt_outputfile.exe
9629 lt_tool_outputfile=$lt_tool_outputfile.exe
9630 ;;
9631 esac~
9632 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9633 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9634 $RM "$lt_outputfile.manifest";
9635 fi'
90779636 ;;
90789637 *)
90799638 # Assume MSVC wrapper
90829641 # Tell ltmain to make .lib files, not .a files.
90839642 libext=lib
90849643 # Tell ltmain to make .dll files, not .so files.
9085 shrext_cmds=".dll"
9644 shrext_cmds=.dll
90869645 # FIXME: Setting linknames here is a bad hack.
90879646 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
90889647 # The linker will automatically build a .lib file if we build a DLL.
91019660 hardcode_direct=no
91029661 hardcode_automatic=yes
91039662 hardcode_shlibpath_var=unsupported
9104 if test "$lt_cv_ld_force_load" = "yes"; then
9105 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9663 if test yes = "$lt_cv_ld_force_load"; then
9664 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
91069665
91079666 else
91089667 whole_archive_flag_spec=''
91099668 fi
91109669 link_all_deplibs=yes
9111 allow_undefined_flag="$_lt_dar_allow_undefined"
9670 allow_undefined_flag=$_lt_dar_allow_undefined
91129671 case $cc_basename in
9113 ifort*) _lt_dar_can_shared=yes ;;
9672 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
91149673 *) _lt_dar_can_shared=$GCC ;;
91159674 esac
9116 if test "$_lt_dar_can_shared" = "yes"; then
9675 if test yes = "$_lt_dar_can_shared"; then
91179676 output_verbose_link_cmd=func_echo_all
9118 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9119 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9120 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}"
9121 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}"
9677 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9678 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9679 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"
9680 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"
91229681
91239682 else
91249683 ld_shlibs=no
91609719 ;;
91619720
91629721 hpux9*)
9163 if test "$GCC" = yes; then
9164 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9722 if test yes = "$GCC"; then
9723 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
91659724 else
9166 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'
9725 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
91679726 fi
9168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9727 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
91699728 hardcode_libdir_separator=:
91709729 hardcode_direct=yes
91719730
91729731 # hardcode_minus_L: Not really in the search PATH,
91739732 # but as the default location of the library.
91749733 hardcode_minus_L=yes
9175 export_dynamic_flag_spec='${wl}-E'
9734 export_dynamic_flag_spec='$wl-E'
91769735 ;;
91779736
91789737 hpux10*)
9179 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9180 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9738 if test yes,no = "$GCC,$with_gnu_ld"; then
9739 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
91819740 else
91829741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
91839742 fi
9184 if test "$with_gnu_ld" = no; then
9185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9743 if test no = "$with_gnu_ld"; then
9744 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
91869745 hardcode_libdir_separator=:
91879746 hardcode_direct=yes
91889747 hardcode_direct_absolute=yes
9189 export_dynamic_flag_spec='${wl}-E'
9748 export_dynamic_flag_spec='$wl-E'
91909749 # hardcode_minus_L: Not really in the search PATH,
91919750 # but as the default location of the library.
91929751 hardcode_minus_L=yes
91949753 ;;
91959754
91969755 hpux11*)
9197 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9756 if test yes,no = "$GCC,$with_gnu_ld"; then
91989757 case $host_cpu in
91999758 hppa*64*)
9200 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9759 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
92019760 ;;
92029761 ia64*)
9203 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9762 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
92049763 ;;
92059764 *)
9206 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9765 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
92079766 ;;
92089767 esac
92099768 else
92109769 case $host_cpu in
92119770 hppa*64*)
9212 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
92139772 ;;
92149773 ia64*)
9215 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
92169775 ;;
92179776 *)
92189777
92249783 $as_echo_n "(cached) " >&6
92259784 else
92269785 lt_cv_prog_compiler__b=no
9227 save_LDFLAGS="$LDFLAGS"
9786 save_LDFLAGS=$LDFLAGS
92289787 LDFLAGS="$LDFLAGS -b"
92299788 echo "$lt_simple_link_test_code" > conftest.$ac_ext
92309789 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
92439802 fi
92449803 fi
92459804 $RM -r conftest*
9246 LDFLAGS="$save_LDFLAGS"
9805 LDFLAGS=$save_LDFLAGS
92479806
92489807 fi
92499808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
92509809 $as_echo "$lt_cv_prog_compiler__b" >&6; }
92519810
9252 if test x"$lt_cv_prog_compiler__b" = xyes; then
9253 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9811 if test yes = "$lt_cv_prog_compiler__b"; then
9812 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
92549813 else
92559814 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
92569815 fi
92589817 ;;
92599818 esac
92609819 fi
9261 if test "$with_gnu_ld" = no; then
9262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9820 if test no = "$with_gnu_ld"; then
9821 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
92639822 hardcode_libdir_separator=:
92649823
92659824 case $host_cpu in
92709829 *)
92719830 hardcode_direct=yes
92729831 hardcode_direct_absolute=yes
9273 export_dynamic_flag_spec='${wl}-E'
9832 export_dynamic_flag_spec='$wl-E'
92749833
92759834 # hardcode_minus_L: Not really in the search PATH,
92769835 # but as the default location of the library.
92819840 ;;
92829841
92839842 irix5* | irix6* | nonstopux*)
9284 if test "$GCC" = yes; then
9285 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9843 if test yes = "$GCC"; then
9844 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
92869845 # Try to use the -exported_symbol ld option, if it does not
92879846 # work, assume that -exports_file does not work either and
92889847 # implicitly export all symbols.
92929851 if ${lt_cv_irix_exported_symbol+:} false; then :
92939852 $as_echo_n "(cached) " >&6
92949853 else
9295 save_LDFLAGS="$LDFLAGS"
9296 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9854 save_LDFLAGS=$LDFLAGS
9855 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
92979856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
92989857 /* end confdefs.h. */
92999858 int foo (void) { return 0; }
93059864 fi
93069865 rm -f core conftest.err conftest.$ac_objext \
93079866 conftest$ac_exeext conftest.$ac_ext
9308 LDFLAGS="$save_LDFLAGS"
9867 LDFLAGS=$save_LDFLAGS
93099868 fi
93109869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
93119870 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9312 if test "$lt_cv_irix_exported_symbol" = yes; then
9313 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9871 if test yes = "$lt_cv_irix_exported_symbol"; then
9872 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
93149873 fi
9874 link_all_deplibs=no
93159875 else
9316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9876 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9877 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
93189878 fi
93199879 archive_cmds_need_lc='no'
9320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9880 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93219881 hardcode_libdir_separator=:
93229882 inherit_rpath=yes
93239883 link_all_deplibs=yes
9884 ;;
9885
9886 linux*)
9887 case $cc_basename in
9888 tcc*)
9889 # Fabrice Bellard et al's Tiny C Compiler
9890 ld_shlibs=yes
9891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9892 ;;
9893 esac
93249894 ;;
93259895
93269896 netbsd* | netbsdelf*-gnu)
93379907 newsos6)
93389908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
93399909 hardcode_direct=yes
9340 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9910 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93419911 hardcode_libdir_separator=:
93429912 hardcode_shlibpath_var=no
93439913 ;;
93459915 *nto* | *qnx*)
93469916 ;;
93479917
9348 openbsd*)
9918 openbsd* | bitrig*)
93499919 if test -f /usr/libexec/ld.so; then
93509920 hardcode_direct=yes
93519921 hardcode_shlibpath_var=no
93529922 hardcode_direct_absolute=yes
9353 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9923 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
93549924 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9355 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9356 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9357 export_dynamic_flag_spec='${wl}-E'
9925 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9926 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9927 export_dynamic_flag_spec='$wl-E'
93589928 else
9359 case $host_os in
9360 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9362 hardcode_libdir_flag_spec='-R$libdir'
9363 ;;
9364 *)
9365 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9366 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9367 ;;
9368 esac
9929 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9930 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
93699931 fi
93709932 else
93719933 ld_shlibs=no
93769938 hardcode_libdir_flag_spec='-L$libdir'
93779939 hardcode_minus_L=yes
93789940 allow_undefined_flag=unsupported
9379 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'
9380 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9941 shrext_cmds=.dll
9942 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9943 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9944 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9945 $ECHO EXPORTS >> $output_objdir/$libname.def~
9946 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9947 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9948 emximp -o $lib $output_objdir/$libname.def'
9949 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9950 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9951 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9952 $ECHO EXPORTS >> $output_objdir/$libname.def~
9953 prefix_cmds="$SED"~
9954 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9955 prefix_cmds="$prefix_cmds -e 1d";
9956 fi~
9957 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9958 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9959 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9960 emximp -o $lib $output_objdir/$libname.def'
9961 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9962 enable_shared_with_static_runtimes=yes
93819963 ;;
93829964
93839965 osf3*)
9384 if test "$GCC" = yes; then
9385 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9386 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9966 if test yes = "$GCC"; then
9967 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9968 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
93879969 else
93889970 allow_undefined_flag=' -expect_unresolved \*'
9389 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9971 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
93909972 fi
93919973 archive_cmds_need_lc='no'
9392 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
93939975 hardcode_libdir_separator=:
93949976 ;;
93959977
93969978 osf4* | osf5*) # as osf3* with the addition of -msym flag
9397 if test "$GCC" = yes; then
9398 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9399 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9400 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979 if test yes = "$GCC"; then
9980 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9981 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9982 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
94019983 else
94029984 allow_undefined_flag=' -expect_unresolved \*'
9403 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9985 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
94049986 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~
9405 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9987 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
94069988
94079989 # Both c and cxx compiler support -rpath directly
94089990 hardcode_libdir_flag_spec='-rpath $libdir'
94139995
94149996 solaris*)
94159997 no_undefined_flag=' -z defs'
9416 if test "$GCC" = yes; then
9417 wlarc='${wl}'
9418 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9998 if test yes = "$GCC"; then
9999 wlarc='$wl'
10000 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
941910001 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9420 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10002 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
942110003 else
942210004 case `$CC -V 2>&1` in
942310005 *"Compilers 5.0"*)
942410006 wlarc=''
9425 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
942610008 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9427 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10009 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
942810010 ;;
942910011 *)
9430 wlarc='${wl}'
9431 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10012 wlarc='$wl'
10013 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
943210014 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9433 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10015 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
943410016 ;;
943510017 esac
943610018 fi
944010022 solaris2.[0-5] | solaris2.[0-5].*) ;;
944110023 *)
944210024 # The compiler driver will combine and reorder linker options,
9443 # but understands `-z linker_flag'. GCC discards it without `$wl',
10025 # but understands '-z linker_flag'. GCC discards it without '$wl',
944410026 # but is careful enough not to reorder.
944510027 # Supported since Solaris 2.6 (maybe 2.5.1?)
9446 if test "$GCC" = yes; then
9447 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10028 if test yes = "$GCC"; then
10029 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
944810030 else
944910031 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
945010032 fi
945410036 ;;
945510037
945610038 sunos4*)
9457 if test "x$host_vendor" = xsequent; then
10039 if test sequent = "$host_vendor"; then
945810040 # Use $CC to link under sequent, because it throws in some extra .o
945910041 # files that make .init and .fini sections work.
9460 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
946110043 else
946210044 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
946310045 fi
950610088 ;;
950710089
950810090 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9509 no_undefined_flag='${wl}-z,text'
10091 no_undefined_flag='$wl-z,text'
951010092 archive_cmds_need_lc=no
951110093 hardcode_shlibpath_var=no
951210094 runpath_var='LD_RUN_PATH'
951310095
9514 if test "$GCC" = yes; then
9515 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9516 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10096 if test yes = "$GCC"; then
10097 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10098 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
951710099 else
9518 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9519 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
952010102 fi
952110103 ;;
952210104
952310105 sysv5* | sco3.2v5* | sco5v6*)
9524 # Note: We can NOT use -z defs as we might desire, because we do not
10106 # Note: We CANNOT use -z defs as we might desire, because we do not
952510107 # link with -lc, and that would cause any symbols used from libc to
952610108 # always be unresolved, which means just about no library would
952710109 # ever link correctly. If we're not using GNU ld we use -z text
952810110 # though, which does catch some bad symbols but isn't as heavy-handed
952910111 # as -z defs.
9530 no_undefined_flag='${wl}-z,text'
9531 allow_undefined_flag='${wl}-z,nodefs'
10112 no_undefined_flag='$wl-z,text'
10113 allow_undefined_flag='$wl-z,nodefs'
953210114 archive_cmds_need_lc=no
953310115 hardcode_shlibpath_var=no
9534 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10116 hardcode_libdir_flag_spec='$wl-R,$libdir'
953510117 hardcode_libdir_separator=':'
953610118 link_all_deplibs=yes
9537 export_dynamic_flag_spec='${wl}-Bexport'
10119 export_dynamic_flag_spec='$wl-Bexport'
953810120 runpath_var='LD_RUN_PATH'
953910121
9540 if test "$GCC" = yes; then
9541 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9542 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 if test yes = "$GCC"; then
10123 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10124 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
954310125 else
9544 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10126 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
954610128 fi
954710129 ;;
954810130
955710139 ;;
955810140 esac
955910141
9560 if test x$host_vendor = xsni; then
10142 if test sni = "$host_vendor"; then
956110143 case $host in
956210144 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9563 export_dynamic_flag_spec='${wl}-Blargedynsym'
10145 export_dynamic_flag_spec='$wl-Blargedynsym'
956410146 ;;
956510147 esac
956610148 fi
956810150
956910151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
957010152 $as_echo "$ld_shlibs" >&6; }
9571 test "$ld_shlibs" = no && can_build_shared=no
10153 test no = "$ld_shlibs" && can_build_shared=no
957210154
957310155 with_gnu_ld=$with_gnu_ld
957410156
959410176 # Assume -lc should be added
959510177 archive_cmds_need_lc=yes
959610178
9597 if test "$enable_shared" = yes && test "$GCC" = yes; then
10179 if test yes,yes = "$GCC,$enable_shared"; then
959810180 case $archive_cmds in
959910181 *'~'*)
960010182 # FIXME: we may have to deal with multi-command sequences.
980910391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
981010392 $as_echo_n "checking dynamic linker characteristics... " >&6; }
981110393
9812 if test "$GCC" = yes; then
10394 if test yes = "$GCC"; then
981310395 case $host_os in
9814 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9815 *) lt_awk_arg="/^libraries:/" ;;
10396 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10397 *) lt_awk_arg='/^libraries:/' ;;
981610398 esac
981710399 case $host_os in
9818 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9819 *) lt_sed_strip_eq="s,=/,/,g" ;;
10400 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10401 *) lt_sed_strip_eq='s|=/|/|g' ;;
982010402 esac
982110403 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
982210404 case $lt_search_path_spec in
983210414 ;;
983310415 esac
983410416 # Ok, now we have the path, separated by spaces, we can step through it
9835 # and add multilib dir if necessary.
10417 # and add multilib dir if necessary...
983610418 lt_tmp_lt_search_path_spec=
9837 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10419 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10420 # ...but if some path component already ends with the multilib dir we assume
10421 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10422 case "$lt_multi_os_dir; $lt_search_path_spec " in
10423 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10424 lt_multi_os_dir=
10425 ;;
10426 esac
983810427 for lt_sys_path in $lt_search_path_spec; do
9839 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9840 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9841 else
10428 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10429 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10430 elif test -n "$lt_multi_os_dir"; then
984210431 test -d "$lt_sys_path" && \
984310432 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
984410433 fi
984510434 done
984610435 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9847 BEGIN {RS=" "; FS="/|\n";} {
9848 lt_foo="";
9849 lt_count=0;
10436 BEGIN {RS = " "; FS = "/|\n";} {
10437 lt_foo = "";
10438 lt_count = 0;
985010439 for (lt_i = NF; lt_i > 0; lt_i--) {
985110440 if ($lt_i != "" && $lt_i != ".") {
985210441 if ($lt_i == "..") {
985310442 lt_count++;
985410443 } else {
985510444 if (lt_count == 0) {
9856 lt_foo="/" $lt_i lt_foo;
10445 lt_foo = "/" $lt_i lt_foo;
985710446 } else {
985810447 lt_count--;
985910448 }
986710456 # for these hosts.
986810457 case $host_os in
986910458 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9870 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10459 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
987110460 esac
987210461 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
987310462 else
987610465 library_names_spec=
987710466 libname_spec='lib$name'
987810467 soname_spec=
9879 shrext_cmds=".so"
10468 shrext_cmds=.so
988010469 postinstall_cmds=
988110470 postuninstall_cmds=
988210471 finish_cmds=
989310482 # flags to be left without arguments
989410483 need_version=unknown
989510484
10485
10486
989610487 case $host_os in
989710488 aix3*)
989810489 version_type=linux # correct to gnu/linux during the next big refactor
9899 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10490 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
990010491 shlibpath_var=LIBPATH
990110492
990210493 # AIX 3 has no versioning support, so we append a major version to the name.
9903 soname_spec='${libname}${release}${shared_ext}$major'
10494 soname_spec='$libname$release$shared_ext$major'
990410495 ;;
990510496
990610497 aix[4-9]*)
990810499 need_lib_prefix=no
990910500 need_version=no
991010501 hardcode_into_libs=yes
9911 if test "$host_cpu" = ia64; then
10502 if test ia64 = "$host_cpu"; then
991210503 # AIX 5 supports IA64
9913 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10504 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
991410505 shlibpath_var=LD_LIBRARY_PATH
991510506 else
991610507 # With GCC up to 2.95.x, collect2 would create an import file
991710508 # for dependence libraries. The import file would start with
9918 # the line `#! .'. This would cause the generated library to
9919 # depend on `.', always an invalid library. This was fixed in
10509 # the line '#! .'. This would cause the generated library to
10510 # depend on '.', always an invalid library. This was fixed in
992010511 # development snapshots of GCC prior to 3.0.
992110512 case $host_os in
992210513 aix4 | aix4.[01] | aix4.[01].*)
992310514 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
992410515 echo ' yes '
9925 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10516 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
992610517 :
992710518 else
992810519 can_build_shared=no
992910520 fi
993010521 ;;
993110522 esac
9932 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10523 # Using Import Files as archive members, it is possible to support
10524 # filename-based versioning of shared library archives on AIX. While
10525 # this would work for both with and without runtime linking, it will
10526 # prevent static linking of such archives. So we do filename-based
10527 # shared library versioning with .so extension only, which is used
10528 # when both runtime linking and shared linking is enabled.
10529 # Unfortunately, runtime linking may impact performance, so we do
10530 # not want this to be the default eventually. Also, we use the
10531 # versioned .so libs for executables only if there is the -brtl
10532 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10533 # To allow for filename-based versioning support, we need to create
10534 # libNAME.so.V as an archive file, containing:
10535 # *) an Import File, referring to the versioned filename of the
10536 # archive as well as the shared archive member, telling the
10537 # bitwidth (32 or 64) of that shared object, and providing the
10538 # list of exported symbols of that shared object, eventually
10539 # decorated with the 'weak' keyword
10540 # *) the shared object with the F_LOADONLY flag set, to really avoid
10541 # it being seen by the linker.
10542 # At run time we better use the real file rather than another symlink,
10543 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10544
10545 case $with_aix_soname,$aix_use_runtimelinking in
10546 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
993310547 # soname into executable. Probably we can add versioning support to
993410548 # collect2, so additional links can be useful in future.
9935 if test "$aix_use_runtimelinking" = yes; then
10549 aix,yes) # traditional libtool
10550 dynamic_linker='AIX unversionable lib.so'
993610551 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
993710552 # instead of lib<name>.a to let people know that these are not
993810553 # typical AIX shared libraries.
9939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9940 else
10554 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10555 ;;
10556 aix,no) # traditional AIX only
10557 dynamic_linker='AIX lib.a(lib.so.V)'
994110558 # We preserve .a as extension for shared libraries through AIX4.2
994210559 # and later when we are not doing run time linking.
9943 library_names_spec='${libname}${release}.a $libname.a'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 fi
10560 library_names_spec='$libname$release.a $libname.a'
10561 soname_spec='$libname$release$shared_ext$major'
10562 ;;
10563 svr4,*) # full svr4 only
10564 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10565 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10566 # We do not specify a path in Import Files, so LIBPATH fires.
10567 shlibpath_overrides_runpath=yes
10568 ;;
10569 *,yes) # both, prefer svr4
10570 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10571 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10572 # unpreferred sharedlib libNAME.a needs extra handling
10573 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10574 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10575 # We do not specify a path in Import Files, so LIBPATH fires.
10576 shlibpath_overrides_runpath=yes
10577 ;;
10578 *,no) # both, prefer aix
10579 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10580 library_names_spec='$libname$release.a $libname.a'
10581 soname_spec='$libname$release$shared_ext$major'
10582 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10583 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10584 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10585 ;;
10586 esac
994610587 shlibpath_var=LIBPATH
994710588 fi
994810589 ;;
995210593 powerpc)
995310594 # Since July 2007 AmigaOS4 officially supports .so libraries.
995410595 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
995610597 ;;
995710598 m68k)
995810599 library_names_spec='$libname.ixlibrary $libname.a'
995910600 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9960 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10601 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
996110602 ;;
996210603 esac
996310604 ;;
996410605
996510606 beos*)
9966 library_names_spec='${libname}${shared_ext}'
10607 library_names_spec='$libname$shared_ext'
996710608 dynamic_linker="$host_os ld.so"
996810609 shlibpath_var=LIBRARY_PATH
996910610 ;;
997110612 bsdi[45]*)
997210613 version_type=linux # correct to gnu/linux during the next big refactor
997310614 need_version=no
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9975 soname_spec='${libname}${release}${shared_ext}$major'
10615 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10616 soname_spec='$libname$release$shared_ext$major'
997610617 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
997710618 shlibpath_var=LD_LIBRARY_PATH
997810619 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
998410625
998510626 cygwin* | mingw* | pw32* | cegcc*)
998610627 version_type=windows
9987 shrext_cmds=".dll"
10628 shrext_cmds=.dll
998810629 need_version=no
998910630 need_lib_prefix=no
999010631
999310634 # gcc
999410635 library_names_spec='$libname.dll.a'
999510636 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9996 postinstall_cmds='base_file=`basename \${file}`~
9997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10637 postinstall_cmds='base_file=`basename \$file`~
10638 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
999810639 dldir=$destdir/`dirname \$dlpath`~
999910640 test -d \$dldir || mkdir -p \$dldir~
1000010641 $install_prog $dir/$dlname \$dldir/$dlname~
1001010651 case $host_os in
1001110652 cygwin*)
1001210653 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10013 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10654 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1001410655
1001510656 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
1001610657 ;;
1001710658 mingw* | cegcc*)
1001810659 # MinGW DLLs use traditional 'lib' prefix
10019 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10660 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1002010661 ;;
1002110662 pw32*)
1002210663 # pw32 DLLs use 'pw' prefix rather than 'lib'
10023 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10664 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
1002410665 ;;
1002510666 esac
1002610667 dynamic_linker='Win32 ld.exe'
1002910670 *,cl*)
1003010671 # Native MSVC
1003110672 libname_spec='$name'
10032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10033 library_names_spec='${libname}.dll.lib'
10673 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10674 library_names_spec='$libname.dll.lib'
1003410675
1003510676 case $build_os in
1003610677 mingw*)
1005710698 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1005810699 ;;
1005910700 *)
10060 sys_lib_search_path_spec="$LIB"
10701 sys_lib_search_path_spec=$LIB
1006110702 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
1006210703 # It is most probably a Windows format PATH.
1006310704 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1007010711 esac
1007110712
1007210713 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10073 postinstall_cmds='base_file=`basename \${file}`~
10074 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10714 postinstall_cmds='base_file=`basename \$file`~
10715 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
1007510716 dldir=$destdir/`dirname \$dlpath`~
1007610717 test -d \$dldir || mkdir -p \$dldir~
1007710718 $install_prog $dir/$dlname \$dldir/$dlname'
1008410725
1008510726 *)
1008610727 # Assume MSVC wrapper
10087 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10728 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
1008810729 dynamic_linker='Win32 ld.exe'
1008910730 ;;
1009010731 esac
1009710738 version_type=darwin
1009810739 need_lib_prefix=no
1009910740 need_version=no
10100 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10101 soname_spec='${libname}${release}${major}$shared_ext'
10741 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10742 soname_spec='$libname$release$major$shared_ext'
1010210743 shlibpath_overrides_runpath=yes
1010310744 shlibpath_var=DYLD_LIBRARY_PATH
1010410745 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1011110752 version_type=linux # correct to gnu/linux during the next big refactor
1011210753 need_lib_prefix=no
1011310754 need_version=no
10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10115 soname_spec='${libname}${release}${shared_ext}$major'
10755 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10756 soname_spec='$libname$release$shared_ext$major'
1011610757 shlibpath_var=LD_LIBRARY_PATH
1011710758 ;;
1011810759
1013010771 version_type=freebsd-$objformat
1013110772 case $version_type in
1013210773 freebsd-elf*)
10133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10775 soname_spec='$libname$release$shared_ext$major'
1013410776 need_version=no
1013510777 need_lib_prefix=no
1013610778 ;;
1013710779 freebsd-*)
10138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10780 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1013910781 need_version=yes
1014010782 ;;
1014110783 esac
1016010802 esac
1016110803 ;;
1016210804
10163 gnu*)
10164 version_type=linux # correct to gnu/linux during the next big refactor
10165 need_lib_prefix=no
10166 need_version=no
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10168 soname_spec='${libname}${release}${shared_ext}$major'
10169 shlibpath_var=LD_LIBRARY_PATH
10170 shlibpath_overrides_runpath=no
10171 hardcode_into_libs=yes
10172 ;;
10173
1017410805 haiku*)
1017510806 version_type=linux # correct to gnu/linux during the next big refactor
1017610807 need_lib_prefix=no
1017710808 need_version=no
1017810809 dynamic_linker="$host_os runtime_loader"
10179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10180 soname_spec='${libname}${release}${shared_ext}$major'
10810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10811 soname_spec='$libname$release$shared_ext$major'
1018110812 shlibpath_var=LIBRARY_PATH
10182 shlibpath_overrides_runpath=yes
10813 shlibpath_overrides_runpath=no
1018310814 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
1018410815 hardcode_into_libs=yes
1018510816 ;;
1019710828 dynamic_linker="$host_os dld.so"
1019810829 shlibpath_var=LD_LIBRARY_PATH
1019910830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 soname_spec='${libname}${release}${shared_ext}$major'
10202 if test "X$HPUX_IA64_MODE" = X32; then
10831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10832 soname_spec='$libname$release$shared_ext$major'
10833 if test 32 = "$HPUX_IA64_MODE"; then
1020310834 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10835 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
1020410836 else
1020510837 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10838 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
1020610839 fi
10207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1020810840 ;;
1020910841 hppa*64*)
1021010842 shrext_cmds='.sl'
1021210844 dynamic_linker="$host_os dld.sl"
1021310845 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1021410846 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10216 soname_spec='${libname}${release}${shared_ext}$major'
10847 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10848 soname_spec='$libname$release$shared_ext$major'
1021710849 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1021810850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1021910851 ;;
1022210854 dynamic_linker="$host_os dld.sl"
1022310855 shlibpath_var=SHLIB_PATH
1022410856 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10226 soname_spec='${libname}${release}${shared_ext}$major'
10857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10858 soname_spec='$libname$release$shared_ext$major'
1022710859 ;;
1022810860 esac
1022910861 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
1023610868 version_type=linux # correct to gnu/linux during the next big refactor
1023710869 need_lib_prefix=no
1023810870 need_version=no
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10872 soname_spec='$libname$release$shared_ext$major'
1024110873 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1024210874 shlibpath_var=LD_LIBRARY_PATH
1024310875 shlibpath_overrides_runpath=no
1024810880 case $host_os in
1024910881 nonstopux*) version_type=nonstopux ;;
1025010882 *)
10251 if test "$lt_cv_prog_gnu_ld" = yes; then
10883 if test yes = "$lt_cv_prog_gnu_ld"; then
1025210884 version_type=linux # correct to gnu/linux during the next big refactor
1025310885 else
1025410886 version_type=irix
1025610888 esac
1025710889 need_lib_prefix=no
1025810890 need_version=no
10259 soname_spec='${libname}${release}${shared_ext}$major'
10260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10891 soname_spec='$libname$release$shared_ext$major'
10892 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
1026110893 case $host_os in
1026210894 irix5* | nonstopux*)
1026310895 libsuff= shlibsuff=
1027610908 esac
1027710909 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1027810910 shlibpath_overrides_runpath=no
10279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10911 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10912 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
1028110913 hardcode_into_libs=yes
1028210914 ;;
1028310915
1028610918 dynamic_linker=no
1028710919 ;;
1028810920
10921 linux*android*)
10922 version_type=none # Android doesn't support versioned libraries.
10923 need_lib_prefix=no
10924 need_version=no
10925 library_names_spec='$libname$release$shared_ext'
10926 soname_spec='$libname$release$shared_ext'
10927 finish_cmds=
10928 shlibpath_var=LD_LIBRARY_PATH
10929 shlibpath_overrides_runpath=yes
10930
10931 # This implies no fast_install, which is unacceptable.
10932 # Some rework will be needed to allow for fast_install
10933 # before this can be enabled.
10934 hardcode_into_libs=yes
10935
10936 dynamic_linker='Android linker'
10937 # Don't embed -rpath directories since the linker doesn't support them.
10938 hardcode_libdir_flag_spec='-L$libdir'
10939 ;;
10940
1028910941 # This must be glibc/ELF.
10290 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10942 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
1029110943 version_type=linux # correct to gnu/linux during the next big refactor
1029210944 need_lib_prefix=no
1029310945 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 soname_spec='${libname}${release}${shared_ext}$major'
10946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 soname_spec='$libname$release$shared_ext$major'
1029610948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1029710949 shlibpath_var=LD_LIBRARY_PATH
1029810950 shlibpath_overrides_runpath=no
1033610988 # before this can be enabled.
1033710989 hardcode_into_libs=yes
1033810990
10339 # Append ld.so.conf contents to the search path
10991 # Ideally, we could use ldconfig to report *all* directores which are
10992 # searched for libraries, however this is still not possible. Aside from not
10993 # being certain /sbin/ldconfig is available, command
10994 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10995 # even though it is searched at run-time. Try to do the best guess by
10996 # appending ld.so.conf contents (and includes) to the search path.
1034010997 if test -f /etc/ld.so.conf; then
1034110998 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
1034210999 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1036811025 need_lib_prefix=no
1036911026 need_version=no
1037011027 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11028 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1037211029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1037311030 dynamic_linker='NetBSD (a.out) ld.so'
1037411031 else
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10376 soname_spec='${libname}${release}${shared_ext}$major'
11032 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033 soname_spec='$libname$release$shared_ext$major'
1037711034 dynamic_linker='NetBSD ld.elf_so'
1037811035 fi
1037911036 shlibpath_var=LD_LIBRARY_PATH
1038311040
1038411041 newsos6)
1038511042 version_type=linux # correct to gnu/linux during the next big refactor
10386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1038711044 shlibpath_var=LD_LIBRARY_PATH
1038811045 shlibpath_overrides_runpath=yes
1038911046 ;;
1039211049 version_type=qnx
1039311050 need_lib_prefix=no
1039411051 need_version=no
10395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10396 soname_spec='${libname}${release}${shared_ext}$major'
11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11053 soname_spec='$libname$release$shared_ext$major'
1039711054 shlibpath_var=LD_LIBRARY_PATH
1039811055 shlibpath_overrides_runpath=no
1039911056 hardcode_into_libs=yes
1040011057 dynamic_linker='ldqnx.so'
1040111058 ;;
1040211059
10403 openbsd*)
11060 openbsd* | bitrig*)
1040411061 version_type=sunos
10405 sys_lib_dlsearch_path_spec="/usr/lib"
11062 sys_lib_dlsearch_path_spec=/usr/lib
1040611063 need_lib_prefix=no
10407 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10408 case $host_os in
10409 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10410 *) need_version=no ;;
10411 esac
10412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11065 need_version=no
11066 else
11067 need_version=yes
11068 fi
11069 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1041311070 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1041411071 shlibpath_var=LD_LIBRARY_PATH
10415 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10416 case $host_os in
10417 openbsd2.[89] | openbsd2.[89].*)
10418 shlibpath_overrides_runpath=no
10419 ;;
10420 *)
10421 shlibpath_overrides_runpath=yes
10422 ;;
10423 esac
10424 else
10425 shlibpath_overrides_runpath=yes
10426 fi
11072 shlibpath_overrides_runpath=yes
1042711073 ;;
1042811074
1042911075 os2*)
1043011076 libname_spec='$name'
10431 shrext_cmds=".dll"
11077 version_type=windows
11078 shrext_cmds=.dll
11079 need_version=no
1043211080 need_lib_prefix=no
10433 library_names_spec='$libname${shared_ext} $libname.a'
11081 # OS/2 can only load a DLL with a base name of 8 characters or less.
11082 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11083 v=$($ECHO $release$versuffix | tr -d .-);
11084 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11085 $ECHO $n$v`$shared_ext'
11086 library_names_spec='${libname}_dll.$libext'
1043411087 dynamic_linker='OS/2 ld.exe'
10435 shlibpath_var=LIBPATH
11088 shlibpath_var=BEGINLIBPATH
11089 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11090 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11091 postinstall_cmds='base_file=`basename \$file`~
11092 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11093 dldir=$destdir/`dirname \$dlpath`~
11094 test -d \$dldir || mkdir -p \$dldir~
11095 $install_prog $dir/$dlname \$dldir/$dlname~
11096 chmod a+x \$dldir/$dlname~
11097 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11098 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11099 fi'
11100 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11101 dlpath=$dir/\$dldll~
11102 $RM \$dlpath'
1043611103 ;;
1043711104
1043811105 osf3* | osf4* | osf5*)
1043911106 version_type=osf
1044011107 need_lib_prefix=no
1044111108 need_version=no
10442 soname_spec='${libname}${release}${shared_ext}$major'
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='$libname$release$shared_ext$major'
11110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1044411111 shlibpath_var=LD_LIBRARY_PATH
1044511112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10446 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11113 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1044711114 ;;
1044811115
1044911116 rdos*)
1045411121 version_type=linux # correct to gnu/linux during the next big refactor
1045511122 need_lib_prefix=no
1045611123 need_version=no
10457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10458 soname_spec='${libname}${release}${shared_ext}$major'
11124 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11125 soname_spec='$libname$release$shared_ext$major'
1045911126 shlibpath_var=LD_LIBRARY_PATH
1046011127 shlibpath_overrides_runpath=yes
1046111128 hardcode_into_libs=yes
1046511132
1046611133 sunos4*)
1046711134 version_type=sunos
10468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11135 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
1046911136 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1047011137 shlibpath_var=LD_LIBRARY_PATH
1047111138 shlibpath_overrides_runpath=yes
10472 if test "$with_gnu_ld" = yes; then
11139 if test yes = "$with_gnu_ld"; then
1047311140 need_lib_prefix=no
1047411141 fi
1047511142 need_version=yes
1047711144
1047811145 sysv4 | sysv4.3*)
1047911146 version_type=linux # correct to gnu/linux during the next big refactor
10480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10481 soname_spec='${libname}${release}${shared_ext}$major'
11147 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11148 soname_spec='$libname$release$shared_ext$major'
1048211149 shlibpath_var=LD_LIBRARY_PATH
1048311150 case $host_vendor in
1048411151 sni)
1049911166 ;;
1050011167
1050111168 sysv4*MP*)
10502 if test -d /usr/nec ;then
11169 if test -d /usr/nec; then
1050311170 version_type=linux # correct to gnu/linux during the next big refactor
10504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10505 soname_spec='$libname${shared_ext}.$major'
11171 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11172 soname_spec='$libname$shared_ext.$major'
1050611173 shlibpath_var=LD_LIBRARY_PATH
1050711174 fi
1050811175 ;;
1050911176
1051011177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10511 version_type=freebsd-elf
11178 version_type=sco
1051211179 need_lib_prefix=no
1051311180 need_version=no
10514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10515 soname_spec='${libname}${release}${shared_ext}$major'
11181 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11182 soname_spec='$libname$release$shared_ext$major'
1051611183 shlibpath_var=LD_LIBRARY_PATH
1051711184 shlibpath_overrides_runpath=yes
1051811185 hardcode_into_libs=yes
10519 if test "$with_gnu_ld" = yes; then
11186 if test yes = "$with_gnu_ld"; then
1052011187 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1052111188 else
1052211189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1053411201 version_type=linux # correct to gnu/linux during the next big refactor
1053511202 need_lib_prefix=no
1053611203 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
1053811205 shlibpath_var=LD_LIBRARY_PATH
1053911206 shlibpath_overrides_runpath=no
1054011207 hardcode_into_libs=yes
1054211209
1054311210 uts4*)
1054411211 version_type=linux # correct to gnu/linux during the next big refactor
10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546 soname_spec='${libname}${release}${shared_ext}$major'
11212 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11213 soname_spec='$libname$release$shared_ext$major'
1054711214 shlibpath_var=LD_LIBRARY_PATH
1054811215 ;;
1054911216
1055311220 esac
1055411221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
1055511222 $as_echo "$dynamic_linker" >&6; }
10556 test "$dynamic_linker" = no && can_build_shared=no
11223 test no = "$dynamic_linker" && can_build_shared=no
1055711224
1055811225 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10559 if test "$GCC" = yes; then
11226 if test yes = "$GCC"; then
1056011227 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1056111228 fi
1056211229
10563 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10565 fi
10566 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10568 fi
11230 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11231 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11232 fi
11233
11234 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11235 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11236 fi
11237
11238 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11239 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11240
11241 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11242 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11243
11244 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11245 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11246
11247
11248
11249
11250
1056911251
1057011252
1057111253
1066311345 hardcode_action=
1066411346 if test -n "$hardcode_libdir_flag_spec" ||
1066511347 test -n "$runpath_var" ||
10666 test "X$hardcode_automatic" = "Xyes" ; then
11348 test yes = "$hardcode_automatic"; then
1066711349
1066811350 # We can hardcode non-existent directories.
10669 if test "$hardcode_direct" != no &&
11351 if test no != "$hardcode_direct" &&
1067011352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1067111353 # have to relink, otherwise we might link with an installed library
1067211354 # when we should be linking with a yet-to-be-installed one
10673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10674 test "$hardcode_minus_L" != no; then
11355 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11356 test no != "$hardcode_minus_L"; then
1067511357 # Linking always hardcodes the temporary library directory.
1067611358 hardcode_action=relink
1067711359 else
1068611368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
1068711369 $as_echo "$hardcode_action" >&6; }
1068811370
10689 if test "$hardcode_action" = relink ||
10690 test "$inherit_rpath" = yes; then
11371 if test relink = "$hardcode_action" ||
11372 test yes = "$inherit_rpath"; then
1069111373 # Fast installation is not supported
1069211374 enable_fast_install=no
10693 elif test "$shlibpath_overrides_runpath" = yes ||
10694 test "$enable_shared" = no; then
11375 elif test yes = "$shlibpath_overrides_runpath" ||
11376 test no = "$enable_shared"; then
1069511377 # Fast installation is not necessary
1069611378 enable_fast_install=needless
1069711379 fi
1070111383
1070211384
1070311385
10704 if test "x$enable_dlopen" != xyes; then
11386 if test yes != "$enable_dlopen"; then
1070511387 enable_dlopen=unknown
1070611388 enable_dlopen_self=unknown
1070711389 enable_dlopen_self_static=unknown
1071111393
1071211394 case $host_os in
1071311395 beos*)
10714 lt_cv_dlopen="load_add_on"
11396 lt_cv_dlopen=load_add_on
1071511397 lt_cv_dlopen_libs=
1071611398 lt_cv_dlopen_self=yes
1071711399 ;;
1071811400
1071911401 mingw* | pw32* | cegcc*)
10720 lt_cv_dlopen="LoadLibrary"
11402 lt_cv_dlopen=LoadLibrary
1072111403 lt_cv_dlopen_libs=
1072211404 ;;
1072311405
1072411406 cygwin*)
10725 lt_cv_dlopen="dlopen"
11407 lt_cv_dlopen=dlopen
1072611408 lt_cv_dlopen_libs=
1072711409 ;;
1072811410
1072911411 darwin*)
10730 # if libdl is installed we need to link against it
11412 # if libdl is installed we need to link against it
1073111413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1073211414 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1073311415 if ${ac_cv_lib_dl_dlopen+:} false; then :
1076511447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1076611448 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1076711449 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10768 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10769 else
10770
10771 lt_cv_dlopen="dyld"
11450 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11451 else
11452
11453 lt_cv_dlopen=dyld
1077211454 lt_cv_dlopen_libs=
1077311455 lt_cv_dlopen_self=yes
1077411456
1077511457 fi
1077611458
11459 ;;
11460
11461 tpf*)
11462 # Don't try to run any link tests for TPF. We know it's impossible
11463 # because TPF is a cross-compiler, and we know how we open DSOs.
11464 lt_cv_dlopen=dlopen
11465 lt_cv_dlopen_libs=
11466 lt_cv_dlopen_self=no
1077711467 ;;
1077811468
1077911469 *)
1078011470 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
1078111471 if test "x$ac_cv_func_shl_load" = xyes; then :
10782 lt_cv_dlopen="shl_load"
11472 lt_cv_dlopen=shl_load
1078311473 else
1078411474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
1078511475 $as_echo_n "checking for shl_load in -ldld... " >&6; }
1081811508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
1081911509 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
1082011510 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10821 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11511 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
1082211512 else
1082311513 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
1082411514 if test "x$ac_cv_func_dlopen" = xyes; then :
10825 lt_cv_dlopen="dlopen"
11515 lt_cv_dlopen=dlopen
1082611516 else
1082711517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
1082811518 $as_echo_n "checking for dlopen in -ldl... " >&6; }
1086111551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
1086211552 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
1086311553 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10864 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11554 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
1086511555 else
1086611556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
1086711557 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
1090011590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
1090111591 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
1090211592 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10903 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11593 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
1090411594 else
1090511595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
1090611596 $as_echo_n "checking for dld_link in -ldld... " >&6; }
1093911629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
1094011630 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
1094111631 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10942 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11632 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
1094311633 fi
1094411634
1094511635
1096011650 ;;
1096111651 esac
1096211652
10963 if test "x$lt_cv_dlopen" != xno; then
11653 if test no = "$lt_cv_dlopen"; then
11654 enable_dlopen=no
11655 else
1096411656 enable_dlopen=yes
10965 else
10966 enable_dlopen=no
1096711657 fi
1096811658
1096911659 case $lt_cv_dlopen in
1097011660 dlopen)
10971 save_CPPFLAGS="$CPPFLAGS"
10972 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10973
10974 save_LDFLAGS="$LDFLAGS"
11661 save_CPPFLAGS=$CPPFLAGS
11662 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11663
11664 save_LDFLAGS=$LDFLAGS
1097511665 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1097611666
10977 save_LIBS="$LIBS"
11667 save_LIBS=$LIBS
1097811668 LIBS="$lt_cv_dlopen_libs $LIBS"
1097911669
1098011670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
1098211672 if ${lt_cv_dlopen_self+:} false; then :
1098311673 $as_echo_n "(cached) " >&6
1098411674 else
10985 if test "$cross_compiling" = yes; then :
11675 if test yes = "$cross_compiling"; then :
1098611676 lt_cv_dlopen_self=cross
1098711677 else
1098811678 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1102911719 # endif
1103011720 #endif
1103111721
11032 /* When -fvisbility=hidden is used, assume the code has been annotated
11722 /* When -fvisibility=hidden is used, assume the code has been annotated
1103311723 correspondingly for the symbols needed. */
11034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11724 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1103511725 int fnord () __attribute__((visibility("default")));
1103611726 #endif
1103711727
1106111751 (eval $ac_link) 2>&5
1106211752 ac_status=$?
1106311753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11754 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1106511755 (./conftest; exit; ) >&5 2>/dev/null
1106611756 lt_status=$?
1106711757 case x$lt_status in
1108111771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
1108211772 $as_echo "$lt_cv_dlopen_self" >&6; }
1108311773
11084 if test "x$lt_cv_dlopen_self" = xyes; then
11774 if test yes = "$lt_cv_dlopen_self"; then
1108511775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1108611776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
1108711777 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
1108811778 if ${lt_cv_dlopen_self_static+:} false; then :
1108911779 $as_echo_n "(cached) " >&6
1109011780 else
11091 if test "$cross_compiling" = yes; then :
11781 if test yes = "$cross_compiling"; then :
1109211782 lt_cv_dlopen_self_static=cross
1109311783 else
1109411784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1113511825 # endif
1113611826 #endif
1113711827
11138 /* When -fvisbility=hidden is used, assume the code has been annotated
11828 /* When -fvisibility=hidden is used, assume the code has been annotated
1113911829 correspondingly for the symbols needed. */
11140 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11830 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1114111831 int fnord () __attribute__((visibility("default")));
1114211832 #endif
1114311833
1116711857 (eval $ac_link) 2>&5
1116811858 ac_status=$?
1116911859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11170 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11860 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
1117111861 (./conftest; exit; ) >&5 2>/dev/null
1117211862 lt_status=$?
1117311863 case x$lt_status in
1118811878 $as_echo "$lt_cv_dlopen_self_static" >&6; }
1118911879 fi
1119011880
11191 CPPFLAGS="$save_CPPFLAGS"
11192 LDFLAGS="$save_LDFLAGS"
11193 LIBS="$save_LIBS"
11881 CPPFLAGS=$save_CPPFLAGS
11882 LDFLAGS=$save_LDFLAGS
11883 LIBS=$save_LIBS
1119411884 ;;
1119511885 esac
1119611886
1123411924 # FIXME - insert some real tests, host_os isn't really good enough
1123511925 case $host_os in
1123611926 darwin*)
11237 if test -n "$STRIP" ; then
11927 if test -n "$STRIP"; then
1123811928 striplib="$STRIP -x"
1123911929 old_striplib="$STRIP -S"
1124011930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
1126211952
1126311953
1126411954
11265 # Report which library types will actually be built
11955 # Report what library types will actually be built
1126611956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
1126711957 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
1126811958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
1127011960
1127111961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
1127211962 $as_echo_n "checking whether to build shared libraries... " >&6; }
11273 test "$can_build_shared" = "no" && enable_shared=no
11963 test no = "$can_build_shared" && enable_shared=no
1127411964
1127511965 # On AIX, shared libraries and static libraries use the same namespace, and
1127611966 # are all built from PIC.
1127711967 case $host_os in
1127811968 aix3*)
11279 test "$enable_shared" = yes && enable_static=no
11969 test yes = "$enable_shared" && enable_static=no
1128011970 if test -n "$RANLIB"; then
1128111971 archive_cmds="$archive_cmds~\$RANLIB \$lib"
1128211972 postinstall_cmds='$RANLIB $lib'
1128411974 ;;
1128511975
1128611976 aix[4-9]*)
11287 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11288 test "$enable_shared" = yes && enable_static=no
11977 if test ia64 != "$host_cpu"; then
11978 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11979 yes,aix,yes) ;; # shared object as lib.so file only
11980 yes,svr4,*) ;; # shared object as lib.so archive member only
11981 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11982 esac
1128911983 fi
1129011984 ;;
1129111985 esac
1129511989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
1129611990 $as_echo_n "checking whether to build static libraries... " >&6; }
1129711991 # Make sure either enable_shared or enable_static is yes.
11298 test "$enable_shared" = yes || enable_static=yes
11992 test yes = "$enable_shared" || enable_static=yes
1129911993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
1130011994 $as_echo "$enable_static" >&6; }
1130111995
1130912003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1131012004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1131112005
11312 CC="$lt_save_CC"
12006 CC=$lt_save_CC
1131312007
1131412008
1131512009
1233513029 /* end confdefs.h. */
1233613030 $ac_includes_default
1233713031 int
12338 find_stack_direction ()
13032 find_stack_direction (int *addr, int depth)
1233913033 {
12340 static char *addr = 0;
12341 auto char dummy;
12342 if (addr == 0)
12343 {
12344 addr = &dummy;
12345 return find_stack_direction ();
12346 }
12347 else
12348 return (&dummy > addr) ? 1 : -1;
13034 int dir, dummy = 0;
13035 if (! addr)
13036 addr = &dummy;
13037 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13038 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13039 return dir + dummy;
1234913040 }
1235013041
1235113042 int
12352 main ()
13043 main (int argc, char **argv)
1235313044 {
12354 return find_stack_direction () < 0;
13045 return find_stack_direction (0, argc + !argv + 20) < 0;
1235513046 }
1235613047 _ACEOF
1235713048 if ac_fn_c_try_run "$LINENO"; then :
1245813149 IFS=$as_save_IFS
1245913150 test -z "$as_dir" && as_dir=.
1246013151 for ac_exec_ext in '' $ac_executable_extensions; do
12461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1246213153 ac_cv_prog_HAVE_FREETYPE_CONFIG="yes"
1246313154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1246413155 break 2
1267213363
1267313364 ac_libobjs=
1267413365 ac_ltlibobjs=
12675 U=
1267613366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
1267713367 # 1. Remove the extension, and $U if already installed.
1267813368 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
1268713377 LTLIBOBJS=$ac_ltlibobjs
1268813378
1268913379
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13381 $as_echo_n "checking that generated files are newer than configure... " >&6; }
13382 if test -n "$am_sleep_pid"; then
13383 # Hide warnings about reused PIDs.
13384 wait $am_sleep_pid 2>/dev/null
13385 fi
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13387 $as_echo "done" >&6; }
1269013388 if test -n "$EXEEXT"; then
1269113389 am__EXEEXT_TRUE=
1269213390 am__EXEEXT_FALSE='#'
1300513703 # ... but there are two gotchas:
1300613704 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
1300713705 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13008 # In both cases, we have to default to `cp -p'.
13706 # In both cases, we have to default to `cp -pR'.
1300913707 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13010 as_ln_s='cp -p'
13708 as_ln_s='cp -pR'
1301113709 elif ln conf$$.file conf$$ 2>/dev/null; then
1301213710 as_ln_s=ln
1301313711 else
13014 as_ln_s='cp -p'
13712 as_ln_s='cp -pR'
1301513713 fi
1301613714 else
13017 as_ln_s='cp -p'
13715 as_ln_s='cp -pR'
1301813716 fi
1301913717 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
1302013718 rmdir conf$$.dir 2>/dev/null
1307413772 as_mkdir_p=false
1307513773 fi
1307613774
13077 if test -x / >/dev/null 2>&1; then
13078 as_test_x='test -x'
13079 else
13080 if ls -dL / >/dev/null 2>&1; then
13081 as_ls_L_option=L
13082 else
13083 as_ls_L_option=
13084 fi
13085 as_test_x='
13086 eval sh -c '\''
13087 if test -d "$1"; then
13088 test -d "$1/.";
13089 else
13090 case $1 in #(
13091 -*)set "./$1";;
13092 esac;
13093 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13094 ???[sx]*):;;*)false;;esac;fi
13095 '\'' sh
13096 '
13097 fi
13098 as_executable_p=$as_test_x
13775
13776 # as_fn_executable_p FILE
13777 # -----------------------
13778 # Test if FILE is an executable regular file.
13779 as_fn_executable_p ()
13780 {
13781 test -f "$1" && test -x "$1"
13782 } # as_fn_executable_p
13783 as_test_x='test -x'
13784 as_executable_p=as_fn_executable_p
1309913785
1310013786 # Sed expression to map a string onto a valid CPP name.
1310113787 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1311613802 # report actual input values of CONFIG_FILES etc. instead of their
1311713803 # values after options handling.
1311813804 ac_log="
13119 This file was extended by libotf $as_me 0.9.13, which was
13120 generated by GNU Autoconf 2.68. Invocation command line was
13805 This file was extended by libotf $as_me 0.9.16, which was
13806 generated by GNU Autoconf 2.69. Invocation command line was
1312113807
1312213808 CONFIG_FILES = $CONFIG_FILES
1312313809 CONFIG_HEADERS = $CONFIG_HEADERS
1318213868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1318313869 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
1318413870 ac_cs_version="\\
13185 libotf config.status 0.9.13
13186 configured by $0, generated by GNU Autoconf 2.68,
13871 libotf config.status 0.9.16
13872 configured by $0, generated by GNU Autoconf 2.69,
1318713873 with options \\"\$ac_cs_config\\"
1318813874
13189 Copyright (C) 2010 Free Software Foundation, Inc.
13875 Copyright (C) 2012 Free Software Foundation, Inc.
1319013876 This config.status script is free software; the Free Software Foundation
1319113877 gives unlimited permission to copy, distribute and modify it."
1319213878
1327713963 _ACEOF
1327813964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1327913965 if \$ac_cs_recheck; then
13280 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13966 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
1328113967 shift
1328213968 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
1328313969 CONFIG_SHELL='$SHELL'
1331714003 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
1331814004 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
1331914005 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14006 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
1332014007 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
1332114008 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1332214009 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1336614053 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
1336714054 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
1336814055 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14056 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
1336914057 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
1337014058 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14059 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
1337114060 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
1337214061 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14062 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
1337314063 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
1337414064 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
1337514065 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
1343414124 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
1343514125 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
1343614126 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13437 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14127 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14128 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
1343814129 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
1343914130 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
1344014131 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
1348514176 compiler \
1348614177 lt_cv_sys_global_symbol_pipe \
1348714178 lt_cv_sys_global_symbol_to_cdecl \
14179 lt_cv_sys_global_symbol_to_import \
1348814180 lt_cv_sys_global_symbol_to_c_name_address \
1348914181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14182 lt_cv_nm_interface \
1349014183 nm_file_list_spec \
14184 lt_cv_truncate_bin \
1349114185 lt_prog_compiler_no_builtin_flag \
1349214186 lt_prog_compiler_pic \
1349314187 lt_prog_compiler_wl \
1352214216 striplib; do
1352314217 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1352414218 *[\\\\\\\`\\"\\\$]*)
13525 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14219 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1352614220 ;;
1352714221 *)
1352814222 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1354914243 postuninstall_cmds \
1355014244 finish_cmds \
1355114245 sys_lib_search_path_spec \
13552 sys_lib_dlsearch_path_spec; do
14246 configure_time_dlsearch_path \
14247 configure_time_lt_sys_library_path; do
1355314248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1355414249 *[\\\\\\\`\\"\\\$]*)
13555 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
1355614251 ;;
1355714252 *)
1355814253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1356114256 done
1356214257
1356314258 ac_aux_dir='$ac_aux_dir'
13564 xsi_shell='$xsi_shell'
13565 lt_shell_append='$lt_shell_append'
13566
13567 # See if we are running on zsh, and set the options which allow our
14259
14260 # See if we are running on zsh, and set the options that allow our
1356814261 # commands through without removal of \ escapes INIT.
13569 if test -n "\${ZSH_VERSION+set}" ; then
14262 if test -n "\${ZSH_VERSION+set}"; then
1357014263 setopt NO_GLOB_SUBST
1357114264 fi
1357214265
1357314266
1357414267 PACKAGE='$PACKAGE'
1357514268 VERSION='$VERSION'
13576 TIMESTAMP='$TIMESTAMP'
1357714269 RM='$RM'
1357814270 ofile='$ofile'
1357914271
1419214884
1419314885 case $ac_file$ac_mode in
1419414886 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14195 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14887 # Older Autoconf quotes --file arguments for eval, but not when files
1419614888 # are listed without --file. Let's play safe and only enable the eval
1419714889 # if we detect the quoting.
1419814890 case $CONFIG_FILES in
1420514897 # Strip MF so we end up with the name of the file.
1420614898 mf=`echo "$mf" | sed -e 's/:.*$//'`
1420714899 # Check whether this is an Automake generated Makefile or not.
14208 # We used to match only the files named `Makefile.in', but
14900 # We used to match only the files named 'Makefile.in', but
1420914901 # some people rename them; so instead we look at the file content.
1421014902 # Grep'ing the first line is not enough: some people post-process
1421114903 # each Makefile.in and add a new line on top of each file to say so.
1423914931 continue
1424014932 fi
1424114933 # Extract the definition of DEPDIR, am__include, and am__quote
14242 # from the Makefile without running `make'.
14934 # from the Makefile without running 'make'.
1424314935 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
1424414936 test -z "$DEPDIR" && continue
1424514937 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14246 test -z "am__include" && continue
14938 test -z "$am__include" && continue
1424714939 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14248 # When using ansi2knr, U may be empty or an underscore; expand it
14249 U=`sed -n 's/^U = //p' < "$mf"`
1425014940 # Find all dependency output files, they are included files with
1425114941 # $(DEPDIR) in their names. We invoke sed twice because it is the
1425214942 # simplest approach to changing $(DEPDIR) to its actual value in the
1425314943 # expansion.
1425414944 for file in `sed -n "
1425514945 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14256 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14946 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
1425714947 # Make sure the directory exists.
1425814948 test -f "$dirpart/$file" && continue
1425914949 fdir=`$as_dirname -- "$file" ||
1428814978 ;;
1428914979 "libtool":C)
1429014980
14291 # See if we are running on zsh, and set the options which allow our
14981 # See if we are running on zsh, and set the options that allow our
1429214982 # commands through without removal of \ escapes.
14293 if test -n "${ZSH_VERSION+set}" ; then
14983 if test -n "${ZSH_VERSION+set}"; then
1429414984 setopt NO_GLOB_SUBST
1429514985 fi
1429614986
14297 cfgfile="${ofile}T"
14987 cfgfile=${ofile}T
1429814988 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1429914989 $RM "$cfgfile"
1430014990
1430114991 cat <<_LT_EOF >> "$cfgfile"
1430214992 #! $SHELL
14303
14304 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14305 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14993 # Generated automatically by $as_me ($PACKAGE) $VERSION
1430614994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1430714995 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14996
14997 # Provide generalized library-building support services.
14998 # Written by Gordon Matzigkeit, 1996
14999
15000 # Copyright (C) 2014 Free Software Foundation, Inc.
15001 # This is free software; see the source for copying conditions. There is NO
15002 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15003
15004 # GNU Libtool is free software; you can redistribute it and/or modify
15005 # it under the terms of the GNU General Public License as published by
15006 # the Free Software Foundation; either version 2 of of the License, or
15007 # (at your option) any later version.
1430815008 #
14309 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14310 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14311 # Foundation, Inc.
14312 # Written by Gordon Matzigkeit, 1996
15009 # As a special exception to the GNU General Public License, if you
15010 # distribute this file as part of a program or library that is built
15011 # using GNU Libtool, you may include this file under the same
15012 # distribution terms that you use for the rest of that program.
1431315013 #
14314 # This file is part of GNU Libtool.
14315 #
14316 # GNU Libtool is free software; you can redistribute it and/or
14317 # modify it under the terms of the GNU General Public License as
14318 # published by the Free Software Foundation; either version 2 of
14319 # the License, or (at your option) any later version.
14320 #
14321 # As a special exception to the GNU General Public License,
14322 # if you distribute this file as part of a program or library that
14323 # is built using GNU Libtool, you may include this file under the
14324 # same distribution terms that you use for the rest of that program.
14325 #
14326 # GNU Libtool is distributed in the hope that it will be useful,
14327 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15014 # GNU Libtool is distributed in the hope that it will be useful, but
15015 # WITHOUT ANY WARRANTY; without even the implied warranty of
1432815016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1432915017 # GNU General Public License for more details.
1433015018 #
1433115019 # You should have received a copy of the GNU General Public License
14332 # along with GNU Libtool; see the file COPYING. If not, a copy
14333 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14334 # obtained by writing to the Free Software Foundation, Inc.,
14335 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15020 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1433615021
1433715022
1433815023 # The names of the tagged configurations supported by this script.
14339 available_tags=""
15024 available_tags=''
15025
15026 # Configured defaults for sys_lib_dlsearch_path munging.
15027 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
1434015028
1434115029 # ### BEGIN LIBTOOL CONFIG
1434215030
1435515043
1435615044 # Whether or not to optimize for fast installation.
1435715045 fast_install=$enable_fast_install
15046
15047 # Shared archive member basename,for filename based shared library versioning on AIX.
15048 shared_archive_member_spec=$shared_archive_member_spec
1435815049
1435915050 # Shell to use when invoking shell scripts.
1436015051 SHELL=$lt_SHELL
1447315164 # Transform the output of nm in a proper C declaration.
1447415165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1447515166
15167 # Transform the output of nm into a list of symbols to manually relocate.
15168 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15169
1447615170 # Transform the output of nm in a C name address pair.
1447715171 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1447815172
1447915173 # Transform the output of nm in a C name address pair when lib prefix is needed.
1448015174 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
1448115175
15176 # The name lister interface.
15177 nm_interface=$lt_lt_cv_nm_interface
15178
1448215179 # Specify filename containing input files for \$NM.
1448315180 nm_file_list_spec=$lt_nm_file_list_spec
1448415181
14485 # The root where to search for dependent libraries,and in which our libraries should be installed.
15182 # The root where to search for dependent libraries,and where our libraries should be installed.
1448615183 lt_sysroot=$lt_sysroot
15184
15185 # Command to truncate a binary pipe.
15186 lt_truncate_bin=$lt_lt_cv_truncate_bin
1448715187
1448815188 # The name of the directory that contains temporary libtool files.
1448915189 objdir=$objdir
1457515275 # Compile-time system search path for libraries.
1457615276 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1457715277
14578 # Run-time system search path for libraries.
14579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15278 # Detected run-time system search path for libraries.
15279 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15280
15281 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15282 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
1458015283
1458115284 # Whether dlopen is supported.
1458215285 dlopen_support=$enable_dlopen
1466915372 # Whether we need a single "-rpath" flag with a separated argument.
1467015373 hardcode_libdir_separator=$lt_hardcode_libdir_separator
1467115374
14672 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15375 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1467315376 # DIR into the resulting binary.
1467415377 hardcode_direct=$hardcode_direct
1467515378
14676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15379 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
1467715380 # DIR into the resulting binary and the resulting library dependency is
14678 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15381 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
1467915382 # library is relocated.
1468015383 hardcode_direct_absolute=$hardcode_direct_absolute
1468115384
1472415427 hardcode_action=$hardcode_action
1472515428
1472615429 # ### END LIBTOOL CONFIG
15430
15431 _LT_EOF
15432
15433 cat <<'_LT_EOF' >> "$cfgfile"
15434
15435 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15436
15437 # func_munge_path_list VARIABLE PATH
15438 # -----------------------------------
15439 # VARIABLE is name of variable containing _space_ separated list of
15440 # directories to be munged by the contents of PATH, which is string
15441 # having a format:
15442 # "DIR[:DIR]:"
15443 # string "DIR[ DIR]" will be prepended to VARIABLE
15444 # ":DIR[:DIR]"
15445 # string "DIR[ DIR]" will be appended to VARIABLE
15446 # "DIRP[:DIRP]::[DIRA:]DIRA"
15447 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15448 # "DIRA[ DIRA]" will be appended to VARIABLE
15449 # "DIR[:DIR]"
15450 # VARIABLE will be replaced by "DIR[ DIR]"
15451 func_munge_path_list ()
15452 {
15453 case x$2 in
15454 x)
15455 ;;
15456 *:)
15457 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15458 ;;
15459 x:*)
15460 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15461 ;;
15462 *::*)
15463 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15464 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15465 ;;
15466 *)
15467 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15468 ;;
15469 esac
15470 }
15471
15472
15473 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15474 func_cc_basename ()
15475 {
15476 for cc_temp in $*""; do
15477 case $cc_temp in
15478 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15479 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15480 \-*) ;;
15481 *) break;;
15482 esac
15483 done
15484 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15485 }
15486
15487
15488 # ### END FUNCTIONS SHARED WITH CONFIGURE
1472715489
1472815490 _LT_EOF
1472915491
1473315495 # AIX sometimes has problems with the GCC collect2 program. For some
1473415496 # reason, if we set the COLLECT_NAMES environment variable, the problems
1473515497 # vanish in a puff of smoke.
14736 if test "X${COLLECT_NAMES+set}" != Xset; then
15498 if test set != "${COLLECT_NAMES+set}"; then
1473715499 COLLECT_NAMES=
1473815500 export COLLECT_NAMES
1473915501 fi
1474215504 esac
1474315505
1474415506
14745 ltmain="$ac_aux_dir/ltmain.sh"
15507 ltmain=$ac_aux_dir/ltmain.sh
1474615508
1474715509
1474815510 # We use sed instead of cat because bash on DJGPP gets confused if
1475115513 # is reportedly fixed, but why not run on old versions too?
1475215514 sed '$q' "$ltmain" >> "$cfgfile" \
1475315515 || (rm -f "$cfgfile"; exit 1)
14754
14755 if test x"$xsi_shell" = xyes; then
14756 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14757 func_dirname ()\
14758 {\
14759 \ case ${1} in\
14760 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14761 \ * ) func_dirname_result="${3}" ;;\
14762 \ esac\
14763 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14764 && mv -f "$cfgfile.tmp" "$cfgfile" \
14765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14766 test 0 -eq $? || _lt_function_replace_fail=:
14767
14768
14769 sed -e '/^func_basename ()$/,/^} # func_basename /c\
14770 func_basename ()\
14771 {\
14772 \ func_basename_result="${1##*/}"\
14773 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14774 && mv -f "$cfgfile.tmp" "$cfgfile" \
14775 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14776 test 0 -eq $? || _lt_function_replace_fail=:
14777
14778
14779 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14780 func_dirname_and_basename ()\
14781 {\
14782 \ case ${1} in\
14783 \ */*) func_dirname_result="${1%/*}${2}" ;;\
14784 \ * ) func_dirname_result="${3}" ;;\
14785 \ esac\
14786 \ func_basename_result="${1##*/}"\
14787 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14788 && mv -f "$cfgfile.tmp" "$cfgfile" \
14789 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14790 test 0 -eq $? || _lt_function_replace_fail=:
14791
14792
14793 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14794 func_stripname ()\
14795 {\
14796 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14797 \ # positional parameters, so assign one to ordinary parameter first.\
14798 \ func_stripname_result=${3}\
14799 \ func_stripname_result=${func_stripname_result#"${1}"}\
14800 \ func_stripname_result=${func_stripname_result%"${2}"}\
14801 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14802 && mv -f "$cfgfile.tmp" "$cfgfile" \
14803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14804 test 0 -eq $? || _lt_function_replace_fail=:
14805
14806
14807 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14808 func_split_long_opt ()\
14809 {\
14810 \ func_split_long_opt_name=${1%%=*}\
14811 \ func_split_long_opt_arg=${1#*=}\
14812 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14813 && mv -f "$cfgfile.tmp" "$cfgfile" \
14814 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14815 test 0 -eq $? || _lt_function_replace_fail=:
14816
14817
14818 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14819 func_split_short_opt ()\
14820 {\
14821 \ func_split_short_opt_arg=${1#??}\
14822 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14823 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14824 && mv -f "$cfgfile.tmp" "$cfgfile" \
14825 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14826 test 0 -eq $? || _lt_function_replace_fail=:
14827
14828
14829 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14830 func_lo2o ()\
14831 {\
14832 \ case ${1} in\
14833 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14834 \ *) func_lo2o_result=${1} ;;\
14835 \ esac\
14836 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14837 && mv -f "$cfgfile.tmp" "$cfgfile" \
14838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14839 test 0 -eq $? || _lt_function_replace_fail=:
14840
14841
14842 sed -e '/^func_xform ()$/,/^} # func_xform /c\
14843 func_xform ()\
14844 {\
14845 func_xform_result=${1%.*}.lo\
14846 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14847 && mv -f "$cfgfile.tmp" "$cfgfile" \
14848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14849 test 0 -eq $? || _lt_function_replace_fail=:
14850
14851
14852 sed -e '/^func_arith ()$/,/^} # func_arith /c\
14853 func_arith ()\
14854 {\
14855 func_arith_result=$(( $* ))\
14856 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14857 && mv -f "$cfgfile.tmp" "$cfgfile" \
14858 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14859 test 0 -eq $? || _lt_function_replace_fail=:
14860
14861
14862 sed -e '/^func_len ()$/,/^} # func_len /c\
14863 func_len ()\
14864 {\
14865 func_len_result=${#1}\
14866 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14867 && mv -f "$cfgfile.tmp" "$cfgfile" \
14868 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14869 test 0 -eq $? || _lt_function_replace_fail=:
14870
14871 fi
14872
14873 if test x"$lt_shell_append" = xyes; then
14874 sed -e '/^func_append ()$/,/^} # func_append /c\
14875 func_append ()\
14876 {\
14877 eval "${1}+=\\${2}"\
14878 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14879 && mv -f "$cfgfile.tmp" "$cfgfile" \
14880 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14881 test 0 -eq $? || _lt_function_replace_fail=:
14882
14883
14884 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14885 func_append_quoted ()\
14886 {\
14887 \ func_quote_for_eval "${2}"\
14888 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14889 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14890 && mv -f "$cfgfile.tmp" "$cfgfile" \
14891 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14892 test 0 -eq $? || _lt_function_replace_fail=:
14893
14894
14895 # Save a `func_append' function call where possible by direct use of '+='
14896 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14897 && mv -f "$cfgfile.tmp" "$cfgfile" \
14898 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14899 test 0 -eq $? || _lt_function_replace_fail=:
14900 else
14901 # Save a `func_append' function call even when '+=' is not available
14902 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14903 && mv -f "$cfgfile.tmp" "$cfgfile" \
14904 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14905 test 0 -eq $? || _lt_function_replace_fail=:
14906 fi
14907
14908 if test x"$_lt_function_replace_fail" = x":"; then
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14910 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14911 fi
14912
1491315516
1491415517 mv -f "$cfgfile" "$ofile" ||
1491515518 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
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.13, handa@m17n.org)
26 AM_INIT_AUTOMAKE(libotf, 0.9.13)
25 AC_INIT(libotf, 0.9.16, handa@m17n.org)
26 AM_INIT_AUTOMAKE(libotf, 0.9.16)
2727 AM_CONFIG_HEADER(src/config.h)
2828
2929 # Checks for programs.
+349
-188
depcomp less more
00 #! /bin/sh
11 # depcomp - compile a program generating dependencies as side-effects
22
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
6 # Software Foundation, Inc.
3 scriptversion=2013-05-30.07; # UTC
4
5 # Copyright (C) 1999-2014 Free Software Foundation, Inc.
76
87 # This program is free software; you can redistribute it and/or modify
98 # it under the terms of the GNU General Public License as published by
2726
2827 case $1 in
2928 '')
30 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
31 exit 1;
32 ;;
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
3332 -h | --h*)
3433 cat <<\EOF
3534 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
3938
4039 Environment variables:
4140 depmode Dependency tracking mode.
42 source Source file read by `PROGRAMS ARGS'.
43 object Object file output by `PROGRAMS ARGS'.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
4443 DEPDIR directory where to store dependencies.
4544 depfile Dependency file to output.
46 tmpdepfile Temporary file to use when outputing dependencies.
45 tmpdepfile Temporary file to use when outputting dependencies.
4746 libtool Whether libtool is used (yes/no).
4847
4948 Report bugs to <bug-automake@gnu.org>.
5655 ;;
5756 esac
5857
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
59118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
60119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
61120 exit 1
67126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
68127
69128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
70132
71133 # Some modes work just like other modes, but use different flags. We
72134 # parameterize here, but still list the modes in the big case below,
79141 fi
80142
81143 if test "$depmode" = dashXmstdout; then
82 # This is just like dashmstdout with a different argument.
83 dashmflag=-xM
84 depmode=dashmstdout
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
85147 fi
86148
87149 cygpath_u="cygpath -u -f -"
88150 if test "$depmode" = msvcmsys; then
89 # This is just like msvisualcpp but w/o cygpath translation.
90 # Just convert the backslash-escaped backslashes to single forward
91 # slashes to satisfy depend.m4
92 cygpath_u="sed s,\\\\\\\\,/,g"
93 depmode=msvisualcpp
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
94170 fi
95171
96172 case "$depmode" in
113189 done
114190 "$@"
115191 stat=$?
116 if test $stat -eq 0; then :
117 else
192 if test $stat -ne 0; then
118193 rm -f "$tmpdepfile"
119194 exit $stat
120195 fi
122197 ;;
123198
124199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
125203 ## There are various ways to get dependency output from gcc. Here's
126204 ## why we pick this rather obscure method:
127205 ## - Don't want to use -MD because we'd like the dependencies to end
128206 ## up in a subdir. Having to rename by hand is ugly.
129207 ## (We might end up doing this anyway to support other compilers.)
130208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
131 ## -MM, not -M (despite what the docs say).
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
132211 ## - Using -M directly means running the compiler twice (even worse
133212 ## than renaming).
134213 if test -z "$gccflag"; then
136215 fi
137216 "$@" -Wp,"$gccflag$tmpdepfile"
138217 stat=$?
139 if test $stat -eq 0; then :
140 else
218 if test $stat -ne 0; then
141219 rm -f "$tmpdepfile"
142220 exit $stat
143221 fi
144222 rm -f "$depfile"
145223 echo "$object : \\" > "$depfile"
146 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
147 ## The second -e expression handles DOS-style file names with drive letters.
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
148226 sed -e 's/^[^:]*: / /' \
149227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
150 ## This next piece of magic avoids the `deleted header file' problem.
228 ## This next piece of magic avoids the "deleted header file" problem.
151229 ## The problem is that when a header file which appears in a .P file
152230 ## is deleted, the dependency causes make to die (because there is
153231 ## typically no way to rebuild the header). We avoid this by adding
154232 ## dummy dependencies for each header file. Too bad gcc doesn't do
155233 ## this for us directly.
156 tr ' ' '
157 ' < "$tmpdepfile" |
158 ## Some versions of gcc put a space before the `:'. On the theory
234 ## Some versions of gcc put a space before the ':'. On the theory
159235 ## that the space means something, we add a space to the output as
160 ## well.
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
161238 ## Some versions of the HPUX 10.20 sed can't process this invocation
162239 ## correctly. Breaking it into two sed invocations is a workaround.
163 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
164243 rm -f "$tmpdepfile"
165244 ;;
166245
178257 "$@" -MDupdate "$tmpdepfile"
179258 fi
180259 stat=$?
181 if test $stat -eq 0; then :
182 else
260 if test $stat -ne 0; then
183261 rm -f "$tmpdepfile"
184262 exit $stat
185263 fi
187265
188266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
189267 echo "$object : \\" > "$depfile"
190
191268 # Clip off the initial element (the dependent). Don't try to be
192269 # clever and replace this with sed code, as IRIX sed won't handle
193270 # lines with more than a fixed number of characters (4096 in
194271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
195 # the IRIX cc adds comments like `#:fec' to the end of the
272 # the IRIX cc adds comments like '#:fec' to the end of the
196273 # dependency line.
197 tr ' ' '
198 ' < "$tmpdepfile" \
199 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
200 tr '
201 ' ' ' >> "$depfile"
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
202277 echo >> "$depfile"
203
204278 # The second pass generates a dummy entry for each header file.
205 tr ' ' '
206 ' < "$tmpdepfile" \
207 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
208 >> "$depfile"
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
209282 else
210 # The sourcefile does not contain any dependencies, so just
211 # store a dummy comment line, to avoid errors with the Makefile
212 # "include basename.Plo" scheme.
213 echo "#dummy" > "$depfile"
283 make_dummy_depfile
214284 fi
215285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
216293 ;;
217294
218295 aix)
219296 # The C for AIX Compiler uses -M and outputs the dependencies
220297 # in a .u file. In older versions, this file always lives in the
221 # current directory. Also, the AIX compiler puts `$object:' at the
298 # current directory. Also, the AIX compiler puts '$object:' at the
222299 # start of each line; $object doesn't have directory information.
223300 # Version 6 uses the directory in both cases.
224 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
225 test "x$dir" = "x$object" && dir=
226 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
301 set_dir_from "$object"
302 set_base_from "$object"
227303 if test "$libtool" = yes; then
228304 tmpdepfile1=$dir$base.u
229305 tmpdepfile2=$base.u
236312 "$@" -M
237313 fi
238314 stat=$?
239
240 if test $stat -eq 0; then :
241 else
315 if test $stat -ne 0; then
242316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
243317 exit $stat
244318 fi
247321 do
248322 test -f "$tmpdepfile" && break
249323 done
250 if test -f "$tmpdepfile"; then
251 # Each line is of the form `foo.o: dependent.h'.
252 # Do two passes, one to just change these to
253 # `$object: dependent.h' and one to simply `dependent.h:'.
254 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
255 # That's a tab and a space in the [].
256 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
257 else
258 # The sourcefile does not contain any dependencies, so just
259 # store a dummy comment line, to avoid errors with the Makefile
260 # "include basename.Plo" scheme.
261 echo "#dummy" > "$depfile"
262 fi
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
263355 rm -f "$tmpdepfile"
264356 ;;
265357
266 icc)
267 # Intel's C compiler understands `-MD -MF file'. However on
268 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
269 # ICC 7.0 will fill foo.d with something like
270 # foo.o: sub/foo.c
271 # foo.o: sub/foo.h
272 # which is wrong. We want:
273 # sub/foo.o: sub/foo.c
274 # sub/foo.o: sub/foo.h
275 # sub/foo.c:
276 # sub/foo.h:
277 # ICC 7.1 will output
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
278368 # foo.o: sub/foo.c sub/foo.h
279 # and will wrap long lines using \ :
369 # and will wrap long lines using '\' :
280370 # foo.o: sub/foo.c ... \
281371 # sub/foo.h ... \
282372 # ...
283
284 "$@" -MD -MF "$tmpdepfile"
285 stat=$?
286 if test $stat -eq 0; then :
287 else
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
288418 rm -f "$tmpdepfile"
289419 exit $stat
290420 fi
296426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
297427 # Some versions of the HPUX 10.20 sed can't process this invocation
298428 # correctly. Breaking it into two sed invocations is a workaround.
299 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
300 sed -e 's/$/ :/' >> "$depfile"
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
301431 rm -f "$tmpdepfile"
302432 ;;
303433
308438 # 'foo.d', which lands next to the object file, wherever that
309439 # happens to be.
310440 # Much of this is similar to the tru64 case; see comments there.
311 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
312 test "x$dir" = "x$object" && dir=
313 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
441 set_dir_from "$object"
442 set_base_from "$object"
314443 if test "$libtool" = yes; then
315444 tmpdepfile1=$dir$base.d
316445 tmpdepfile2=$dir.libs/$base.d
321450 "$@" +Maked
322451 fi
323452 stat=$?
324 if test $stat -eq 0; then :
325 else
453 if test $stat -ne 0; then
326454 rm -f "$tmpdepfile1" "$tmpdepfile2"
327455 exit $stat
328456 fi
332460 test -f "$tmpdepfile" && break
333461 done
334462 if test -f "$tmpdepfile"; then
335 sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
336 # Add `dependent.h:' lines.
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
337465 sed -ne '2,${
338 s/^ *//
339 s/ \\*$//
340 s/$/:/
341 p
342 }' "$tmpdepfile" >> "$depfile"
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
343471 else
344 echo "#dummy" > "$depfile"
472 make_dummy_depfile
345473 fi
346474 rm -f "$tmpdepfile" "$tmpdepfile2"
347475 ;;
348476
349477 tru64)
350 # The Tru64 compiler uses -MD to generate dependencies as a side
351 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
352 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
353 # dependencies in `foo.d' instead, so we check for that too.
354 # Subdirectories are respected.
355 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
356 test "x$dir" = "x$object" && dir=
357 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
358
359 if test "$libtool" = yes; then
360 # With Tru64 cc, shared objects can also be used to make a
361 # static library. This mechanism is used in libtool 1.4 series to
362 # handle both shared and static libraries in a single compilation.
363 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
364 #
365 # With libtool 1.5 this exception was removed, and libtool now
366 # generates 2 separate objects for the 2 libraries. These two
367 # compilations output dependencies in $dir.libs/$base.o.d and
368 # in $dir$base.o.d. We have to check for both files, because
369 # one of the two compilations can be disabled. We should prefer
370 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
371 # automatically cleaned when .libs/ is deleted, while ignoring
372 # the former would cause a distcleancheck panic.
373 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
374 tmpdepfile2=$dir$base.o.d # libtool 1.5
375 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
376 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
377 "$@" -Wc,-MD
378 else
379 tmpdepfile1=$dir$base.o.d
380 tmpdepfile2=$dir$base.d
381 tmpdepfile3=$dir$base.d
382 tmpdepfile4=$dir$base.d
383 "$@" -MD
384 fi
385
386 stat=$?
387 if test $stat -eq 0; then :
388 else
389 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
390 exit $stat
391 fi
392
393 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
394 do
395 test -f "$tmpdepfile" && break
396 done
397 if test -f "$tmpdepfile"; then
398 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
399 # That's a tab and a space in the [].
400 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
401 else
402 echo "#dummy" > "$depfile"
403 fi
404 rm -f "$tmpdepfile"
405 ;;
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
406564
407565 #nosideeffect)
408566 # This comment above is used by automake to tell side-effect
421579 shift
422580 fi
423581
424 # Remove `-o $object'.
582 # Remove '-o $object'.
425583 IFS=" "
426584 for arg
427585 do
441599 done
442600
443601 test -z "$dashmflag" && dashmflag=-M
444 # Require at least two characters before searching for `:'
602 # Require at least two characters before searching for ':'
445603 # in the target name. This is to cope with DOS-style filenames:
446 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
447605 "$@" $dashmflag |
448 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
449607 rm -f "$depfile"
450608 cat < "$tmpdepfile" > "$depfile"
451 tr ' ' '
452 ' < "$tmpdepfile" | \
453 ## Some versions of the HPUX 10.20 sed can't process this invocation
454 ## correctly. Breaking it into two sed invocations is a workaround.
455 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
456614 rm -f "$tmpdepfile"
457615 ;;
458616
502660 touch "$tmpdepfile"
503661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
504662 rm -f "$depfile"
505 cat < "$tmpdepfile" > "$depfile"
506 sed '1,2d' "$tmpdepfile" | tr ' ' '
507 ' | \
508 ## Some versions of the HPUX 10.20 sed can't process this invocation
509 ## correctly. Breaking it into two sed invocations is a workaround.
510 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
511672 rm -f "$tmpdepfile" "$tmpdepfile".bak
512673 ;;
513674
524685 shift
525686 fi
526687
527 # Remove `-o $object'.
688 # Remove '-o $object'.
528689 IFS=" "
529690 for arg
530691 do
543704 esac
544705 done
545706
546 "$@" -E |
547 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
548 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
549 sed '$ s: \\$::' > "$tmpdepfile"
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
550711 rm -f "$depfile"
551712 echo "$object : \\" > "$depfile"
552713 cat < "$tmpdepfile" >> "$depfile"
578739 shift
579740 ;;
580741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
581 set fnord "$@"
582 shift
583 shift
584 ;;
742 set fnord "$@"
743 shift
744 shift
745 ;;
585746 *)
586 set fnord "$@" "$arg"
587 shift
588 shift
589 ;;
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
590751 esac
591752 done
592753 "$@" -E 2>/dev/null |
593754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
594755 rm -f "$depfile"
595756 echo "$object : \\" > "$depfile"
596 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
597 echo " " >> "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
598759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
599760 rm -f "$tmpdepfile"
600761 ;;
(No changes)
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
3736 # 330, Boston, MA 02111-1307, USA
3837
3938 VPATH = @srcdir@
39 am__is_gnu_make = { \
40 if test -z '$(MAKELEVEL)'; then \
41 false; \
42 elif test -n '$(MAKE_HOST)'; then \
43 true; \
44 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
45 true; \
46 else \
47 false; \
48 fi; \
49 }
50 am__make_running_with_option = \
51 case $${target_option-} in \
52 ?) ;; \
53 *) echo "am__make_running_with_option: internal error: invalid" \
54 "target option '$${target_option-}' specified" >&2; \
55 exit 1;; \
56 esac; \
57 has_opt=no; \
58 sane_makeflags=$$MAKEFLAGS; \
59 if $(am__is_gnu_make); then \
60 sane_makeflags=$$MFLAGS; \
61 else \
62 case $$MAKEFLAGS in \
63 *\\[\ \ ]*) \
64 bs=\\; \
65 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
66 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
67 esac; \
68 fi; \
69 skip_next=no; \
70 strip_trailopt () \
71 { \
72 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
73 }; \
74 for flg in $$sane_makeflags; do \
75 test $$skip_next = yes && { skip_next=no; continue; }; \
76 case $$flg in \
77 *=*|--*) continue;; \
78 -*I) strip_trailopt 'I'; skip_next=yes;; \
79 -*I?*) strip_trailopt 'I';; \
80 -*O) strip_trailopt 'O'; skip_next=yes;; \
81 -*O?*) strip_trailopt 'O';; \
82 -*l) strip_trailopt 'l'; skip_next=yes;; \
83 -*l?*) strip_trailopt 'l';; \
84 -[dEDm]) skip_next=yes;; \
85 -[JT]) skip_next=yes;; \
86 esac; \
87 case $$flg in \
88 *$$target_option*) has_opt=yes; break;; \
89 esac; \
90 done; \
91 test $$has_opt = yes
92 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
93 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4094 pkgdatadir = $(datadir)/@PACKAGE@
4195 pkgincludedir = $(includedir)/@PACKAGE@
4296 pkglibdir = $(libdir)/@PACKAGE@
59113 $(am__EXEEXT_1)
60114 @X11_UNAVAILABLE_FALSE@am__append_1 = otfview
61115 subdir = example
62 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
63116 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
64117 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
65118 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
66119 $(ACLOCAL_M4)
120 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
67121 mkinstalldirs = $(install_sh) -d
68122 CONFIG_HEADER = $(top_builddir)/src/config.h
69123 CONFIG_CLEAN_FILES =
74128 otfdump_SOURCES = otfdump.c
75129 otfdump_OBJECTS = otfdump.$(OBJEXT)
76130 otfdump_DEPENDENCIES = $(CommonLDADD)
131 AM_V_lt = $(am__v_lt_@AM_V@)
132 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
133 am__v_lt_0 = --silent
134 am__v_lt_1 =
77135 otflist_SOURCES = otflist.c
78136 otflist_OBJECTS = otflist.$(OBJEXT)
79137 otflist_DEPENDENCIES = $(CommonLDADD)
83141 otfview_SOURCES = otfview.c
84142 otfview_OBJECTS = otfview.$(OBJEXT)
85143 otfview_DEPENDENCIES = $(CommonLDADD)
86 otfview_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
87 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(otfview_LDFLAGS) \
88 $(LDFLAGS) -o $@
144 otfview_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
145 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
146 $(otfview_LDFLAGS) $(LDFLAGS) -o $@
147 AM_V_P = $(am__v_P_@AM_V@)
148 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
149 am__v_P_0 = false
150 am__v_P_1 = :
151 AM_V_GEN = $(am__v_GEN_@AM_V@)
152 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
153 am__v_GEN_0 = @echo " GEN " $@;
154 am__v_GEN_1 =
155 AM_V_at = $(am__v_at_@AM_V@)
156 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
157 am__v_at_0 = @
158 am__v_at_1 =
89159 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/src
90160 depcomp = $(SHELL) $(top_srcdir)/depcomp
91161 am__depfiles_maybe = depfiles
92162 am__mv = mv -f
93163 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
94164 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
95 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
96 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
97 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
165 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
166 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
167 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
168 $(AM_CFLAGS) $(CFLAGS)
169 AM_V_CC = $(am__v_CC_@AM_V@)
170 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
171 am__v_CC_0 = @echo " CC " $@;
172 am__v_CC_1 =
98173 CCLD = $(CC)
99 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
100 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
101 $(LDFLAGS) -o $@
174 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
175 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
176 $(AM_LDFLAGS) $(LDFLAGS) -o $@
177 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
178 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
179 am__v_CCLD_0 = @echo " CCLD " $@;
180 am__v_CCLD_1 =
102181 SOURCES = otfdump.c otflist.c otftobdf.c otfview.c
103182 DIST_SOURCES = otfdump.c otflist.c otftobdf.c otfview.c
183 am__can_run_installinfo = \
184 case $$AM_UPDATE_INFO_DIR in \
185 n|no|NO) false;; \
186 *) (install-info --version) >/dev/null 2>&1;; \
187 esac
188 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
189 # Read a list of newline-separated strings from the standard input,
190 # and print each of them once, without duplicates. Input order is
191 # *not* preserved.
192 am__uniquify_input = $(AWK) '\
193 BEGIN { nonempty = 0; } \
194 { items[$$0] = 1; nonempty = 1; } \
195 END { if (nonempty) { for (i in items) print i; }; } \
196 '
197 # Make sure the list of sources is unique. This is necessary because,
198 # e.g., the same source file might be shared among _SOURCES variables
199 # for different programs/libraries.
200 am__define_uniq_tagged_files = \
201 list='$(am__tagged_files)'; \
202 unique=`for i in $$list; do \
203 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
204 done | $(am__uniquify_input)`
104205 ETAGS = etags
105206 CTAGS = ctags
207 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
106208 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
107209 ACLOCAL = @ACLOCAL@
108210 ALLOCA = @ALLOCA@
109211 AMTAR = @AMTAR@
212 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
110213 AR = @AR@
111214 AUTOCONF = @AUTOCONF@
112215 AUTOHEADER = @AUTOHEADER@
146249 LIPO = @LIPO@
147250 LN_S = @LN_S@
148251 LTLIBOBJS = @LTLIBOBJS@
252 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
149253 MAKEINFO = @MAKEINFO@
150254 MANIFEST_TOOL = @MANIFEST_TOOL@
151255 MKDIR_P = @MKDIR_P@
219323 prefix = @prefix@
220324 program_transform_name = @program_transform_name@
221325 psdir = @psdir@
326 runstatedir = @runstatedir@
222327 sbindir = @sbindir@
223328 sharedstatedir = @sharedstatedir@
224329 srcdir = @srcdir@
253358 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu example/Makefile'; \
254359 $(am__cd) $(top_srcdir) && \
255360 $(AUTOMAKE) --gnu example/Makefile
256 .PRECIOUS: Makefile
257361 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
258362 @case '$?' in \
259363 *config.status*) \
273377 $(am__aclocal_m4_deps):
274378 install-binPROGRAMS: $(bin_PROGRAMS)
275379 @$(NORMAL_INSTALL)
276 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
277380 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
381 if test -n "$$list"; then \
382 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
383 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
384 fi; \
278385 for p in $$list; do echo "$$p $$p"; done | \
279386 sed 's/$(EXEEXT)$$//' | \
280 while read p p1; do if test -f $$p || test -f $$p1; \
281 then echo "$$p"; echo "$$p"; else :; fi; \
387 while read p p1; do if test -f $$p \
388 || test -f $$p1 \
389 ; then echo "$$p"; echo "$$p"; else :; fi; \
282390 done | \
283 sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
391 sed -e 'p;s,.*/,,;n;h' \
392 -e 's|.*|.|' \
284393 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
285394 sed 'N;N;N;s,\n, ,g' | \
286395 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
301410 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
302411 files=`for p in $$list; do echo "$$p"; done | \
303412 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
304 -e 's/$$/$(EXEEXT)/' `; \
413 -e 's/$$/$(EXEEXT)/' \
414 `; \
305415 test -n "$$list" || exit 0; \
306416 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
307417 cd "$(DESTDIR)$(bindir)" && rm -f $$files
314424 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
315425 echo " rm -f" $$list; \
316426 rm -f $$list
427
317428 otfdump$(EXEEXT): $(otfdump_OBJECTS) $(otfdump_DEPENDENCIES) $(EXTRA_otfdump_DEPENDENCIES)
318429 @rm -f otfdump$(EXEEXT)
319 $(LINK) $(otfdump_OBJECTS) $(otfdump_LDADD) $(LIBS)
430 $(AM_V_CCLD)$(LINK) $(otfdump_OBJECTS) $(otfdump_LDADD) $(LIBS)
431
320432 otflist$(EXEEXT): $(otflist_OBJECTS) $(otflist_DEPENDENCIES) $(EXTRA_otflist_DEPENDENCIES)
321433 @rm -f otflist$(EXEEXT)
322 $(LINK) $(otflist_OBJECTS) $(otflist_LDADD) $(LIBS)
434 $(AM_V_CCLD)$(LINK) $(otflist_OBJECTS) $(otflist_LDADD) $(LIBS)
435
323436 otftobdf$(EXEEXT): $(otftobdf_OBJECTS) $(otftobdf_DEPENDENCIES) $(EXTRA_otftobdf_DEPENDENCIES)
324437 @rm -f otftobdf$(EXEEXT)
325 $(LINK) $(otftobdf_OBJECTS) $(otftobdf_LDADD) $(LIBS)
438 $(AM_V_CCLD)$(LINK) $(otftobdf_OBJECTS) $(otftobdf_LDADD) $(LIBS)
439
326440 otfview$(EXEEXT): $(otfview_OBJECTS) $(otfview_DEPENDENCIES) $(EXTRA_otfview_DEPENDENCIES)
327441 @rm -f otfview$(EXEEXT)
328 $(otfview_LINK) $(otfview_OBJECTS) $(otfview_LDADD) $(LIBS)
442 $(AM_V_CCLD)$(otfview_LINK) $(otfview_OBJECTS) $(otfview_LDADD) $(LIBS)
329443
330444 mostlyclean-compile:
331445 -rm -f *.$(OBJEXT)
339453 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/otfview.Po@am__quote@
340454
341455 .c.o:
342 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
343 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
456 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
457 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
458 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
345459 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
346 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
460 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
347461
348462 .c.obj:
349 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
350 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
463 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
464 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
352466 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
353 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
467 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
354468
355469 .c.lo:
356 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
357 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
358 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
470 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
471 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
472 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
359473 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
360 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
474 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
361475
362476 mostlyclean-libtool:
363477 -rm -f *.lo
365479 clean-libtool:
366480 -rm -rf .libs _libs
367481
368 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
369 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
370 unique=`for i in $$list; do \
371 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
372 done | \
373 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
374 END { if (nonempty) { for (i in files) print i; }; }'`; \
375 mkid -fID $$unique
376 tags: TAGS
377
378 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
379 $(TAGS_FILES) $(LISP)
482 ID: $(am__tagged_files)
483 $(am__define_uniq_tagged_files); mkid -fID $$unique
484 tags: tags-am
485 TAGS: tags
486
487 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
380488 set x; \
381489 here=`pwd`; \
382 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
383 unique=`for i in $$list; do \
384 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
385 done | \
386 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
387 END { if (nonempty) { for (i in files) print i; }; }'`; \
490 $(am__define_uniq_tagged_files); \
388491 shift; \
389492 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
390493 test -n "$$unique" || unique=$$empty_fix; \
396499 $$unique; \
397500 fi; \
398501 fi
399 ctags: CTAGS
400 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
401 $(TAGS_FILES) $(LISP)
402 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
403 unique=`for i in $$list; do \
404 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
405 done | \
406 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
407 END { if (nonempty) { for (i in files) print i; }; }'`; \
502 ctags: ctags-am
503
504 CTAGS: ctags
505 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
506 $(am__define_uniq_tagged_files); \
408507 test -z "$(CTAGS_ARGS)$$unique" \
409508 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
410509 $$unique
413512 here=`$(am__cd) $(top_builddir) && pwd` \
414513 && $(am__cd) $(top_srcdir) \
415514 && gtags -i $(GTAGS_ARGS) "$$here"
515 cscopelist: cscopelist-am
516
517 cscopelist-am: $(am__tagged_files)
518 list='$(am__tagged_files)'; \
519 case "$(srcdir)" in \
520 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
521 *) sdir=$(subdir)/$(srcdir) ;; \
522 esac; \
523 for i in $$list; do \
524 if test -f "$$i"; then \
525 echo "$(subdir)/$$i"; \
526 else \
527 echo "$$sdir/$$i"; \
528 fi; \
529 done >> $(top_builddir)/cscope.files
416530
417531 distclean-tags:
418532 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
556670
557671 .MAKE: install-am install-strip
558672
559 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
560 clean-generic clean-libtool ctags distclean distclean-compile \
561 distclean-generic distclean-libtool distclean-tags distdir dvi \
562 dvi-am html html-am info info-am install install-am \
563 install-binPROGRAMS install-data install-data-am install-dvi \
564 install-dvi-am install-exec install-exec-am install-html \
565 install-html-am install-info install-info-am install-man \
566 install-pdf install-pdf-am install-ps install-ps-am \
567 install-strip installcheck installcheck-am installdirs \
568 maintainer-clean maintainer-clean-generic mostlyclean \
569 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
570 pdf pdf-am ps ps-am tags uninstall uninstall-am \
571 uninstall-binPROGRAMS
673 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
674 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
675 ctags ctags-am distclean distclean-compile distclean-generic \
676 distclean-libtool distclean-tags distdir dvi dvi-am html \
677 html-am info info-am install install-am install-binPROGRAMS \
678 install-data install-data-am install-dvi install-dvi-am \
679 install-exec install-exec-am install-html install-html-am \
680 install-info install-info-am install-man install-pdf \
681 install-pdf-am install-ps install-ps-am install-strip \
682 installcheck installcheck-am installdirs maintainer-clean \
683 maintainer-clean-generic mostlyclean mostlyclean-compile \
684 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
685 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
686
687 .PRECIOUS: Makefile
572688
573689
574690 # Tell versions [3.59,3.63) of GNU make to not export all variables.
(No changes)
209209 OTF *otf = OTF_open (filename);
210210 char *name, *family = NULL, *style = NULL;
211211
212 if (otf)
212 if (otf && OTF_get_table (otf, "name") == 0)
213213 {
214 OTF_get_table (otf, "name");
215
216214 if (! (family = otf->name->name[16]))
217215 family = otf->name->name[1];
218216 if (! (style = otf->name->name[17]))
(No changes)
22 Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
5 Copyright (C) 2012, 2013, 2014, 2015 K. Handa <handa@gnu.org>
56
67 This file is part of libotf.
78
379380 if (otf)
380381 {
381382 char *script_name = NULL, *langsys_name = NULL, buf[10];
382 char *str;
383383
384384 if (script_tag)
385385 {
396396 OTF_drive_gdef (otf, &gstring);
397397 if (otf->gsub)
398398 {
399 str = get_features (&otf->gsub->FeatureList, &gsub);
400 if (str)
399 char *gsub_features = get_features (&otf->gsub->FeatureList, &gsub);
400
401 if (gsub_features)
401402 {
402403 if (do_alternate_subst)
403404 OTF_drive_gsub_alternate (otf, &gstring,
404 script_name, langsys_name, str);
405 script_name, langsys_name,
406 gsub_features);
405407 else
406408 {
407 OTF_drive_gsub_with_log (otf, &gstring,
408 script_name, langsys_name, str);
409 OTF_drive_gsub_features (otf, &gstring,
410 script_name, langsys_name,
411 gsub_features);
409412 logsize = gstring.used * 2;
410413 log = alloca (sizeof (OTF_Tag) * logsize);
411414 for (i = 0; i < gstring.used; i++)
412415 {
413 int idx = gstring.glyphs[i].positioning_type >> 4;
416 int idx = OTF_POSITIONING_TYPE_GET_FEATURE (gstring.glyphs + i);
414417 if (idx)
415418 log[i] = otf->gsub->FeatureList.Feature[idx - 1].FeatureTag;
416419 else
417420 log[i] = 0;
418421 }
419422 }
420 free (str);
423 free (gsub_features);
421424 }
422425 }
423426 if (otf->gpos)
424427 {
425 str = get_features (&otf->gpos->FeatureList, &gpos);
426 if (str)
428 char *gpos_features = get_features (&otf->gpos->FeatureList, &gpos);
429 if (gpos_features)
427430 {
428 OTF_drive_gpos_with_log (otf, &gstring,
429 script_name, langsys_name, str);
431 OTF_drive_gpos_features (otf, &gstring,
432 script_name, langsys_name,
433 gpos_features);
430434 if (log)
431435 {
432436 if (logsize < gstring.used)
446450 }
447451 for (i = 0; i < gstring.used; i++)
448452 {
449 int idx = gstring.glyphs[i].positioning_type >> 4;
453 int idx = OTF_POSITIONING_TYPE_GET_FEATURE (gstring.glyphs + i);
450454 if (idx)
451455 log[i] = otf->gpos->FeatureList.Feature[idx - 1].FeatureTag;
452
453456 }
454 free (str);
457 free (gpos_features);
455458 }
456459 }
457460 }
493496 continue;
494497 advance = bmp->advance;
495498 }
496 if (g->positioning_type & 0xF)
499 if (OTF_POSITIONING_TYPE_GET_FORMAT (g))
497500 {
498501 while (1)
499502 {
500 switch (g->positioning_type & 0xF)
503 switch (OTF_POSITIONING_TYPE_GET_FORMAT (g))
501504 {
502505 case 1: case 2:
503506 {
531534 default: /* i.e. case 6 */
532535 if (! mark)
533536 break;
534 prev = mark;
535 prev_width = 0;
537 {
538 int distance = OTF_POSITIONING_TYPE_GET_MARKDISTANCE (g);
539
540 if (distance > 0)
541 {
542 for (prev = g - 1; prev >= gstring.glyphs; prev--)
543 {
544 if (prev->glyph_id > 0)
545 {
546 distance--;
547 if (distance == 0)
548 break;
549 }
550 }
551 if (prev < gstring.glyphs)
552 prev = mark;
553 }
554 else
555 {
556 prev = mark;
557 }
558 prev_width = 0;
559 }
536560 label_adjust_anchor:
537561 {
538562 int base_x, base_y, mark_x, mark_y;
552576 }
553577 if (i + 1 == gstring.used
554578 || gstring.glyphs[i + 1].glyph_id
555 || ! (gstring.glyphs[i + 1].positioning_type & 0xF))
579 || ! (OTF_POSITIONING_TYPE_GET_FORMAT (gstring.glyphs + i + 1)))
556580 break;
557581 i++, g++;
558582 }
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2009-04-28.21; # UTC
3 scriptversion=2013-12-25.23; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
3434 # FSF changes to this file are in the public domain.
3535 #
3636 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
37 # 'make' implicit rules from creating a file called install from it
3838 # when there is no Makefile.
3939 #
4040 # This script is compatible with the BSD install script, but was written
4141 # from scratch.
4242
43 tab=' '
4344 nl='
4445 '
45 IFS=" "" $nl"
46
47 # set DOITPROG to echo to test this script
48
49 # Don't use :- since 4.3BSD and earlier shells don't like it.
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
5050 doit=${DOITPROG-}
51 if test -z "$doit"; then
52 doit_exec=exec
53 else
54 doit_exec=$doit
55 fi
51 doit_exec=${doit:-exec}
5652
5753 # Put in absolute file names if you don't have them in your path;
5854 # or use environment vars.
6763 rmprog=${RMPROG-rm}
6864 stripprog=${STRIPPROG-strip}
6965
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
8166 posix_mkdir=
8267
8368 # Desired mode of installed file.
9681 dst_arg=
9782
9883 copy_on_change=false
99 no_target_directory=
84 is_target_a_directory=possibly
10085
10186 usage="\
10287 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
136121 -d) dir_arg=true;;
137122
138123 -g) chgrpcmd="$chgrpprog $2"
139 shift;;
124 shift;;
140125
141126 --help) echo "$usage"; exit $?;;
142127
143128 -m) mode=$2
144 case $mode in
145 *' '* | *' '* | *'
146 '* | *'*'* | *'?'* | *'['*)
147 echo "$0: invalid mode: $mode" >&2
148 exit 1;;
149 esac
150 shift;;
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
151135
152136 -o) chowncmd="$chownprog $2"
153 shift;;
137 shift;;
154138
155139 -s) stripcmd=$stripprog;;
156140
157 -t) dst_arg=$2
158 shift;;
159
160 -T) no_target_directory=true;;
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
161151
162152 --version) echo "$0 $scriptversion"; exit $?;;
163153
164 --) shift
165 break;;
166
167 -*) echo "$0: invalid option: $1" >&2
168 exit 1;;
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
169159
170160 *) break;;
171161 esac
172162 shift
173163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174174
175175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176176 # When -d is used, all remaining arguments are directories to create.
185185 fi
186186 shift # arg
187187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
188192 done
189193 fi
190194
193197 echo "$0: no input file specified." >&2
194198 exit 1
195199 fi
196 # It's OK to call `install-sh -d' without argument.
200 # It's OK to call 'install-sh -d' without argument.
197201 # This can happen when creating conditional directories.
198202 exit 0
199203 fi
200204
201205 if test -z "$dir_arg"; then
202 trap '(exit $?); exit' 1 2 13 15
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
203220
204221 # Set umask so as not to create temps with too-generous modes.
205222 # However, 'strip' requires both read and write access to temps.
210227
211228 *[0-7])
212229 if test -z "$stripcmd"; then
213 u_plus_rw=
230 u_plus_rw=
214231 else
215 u_plus_rw='% 200'
232 u_plus_rw='% 200'
216233 fi
217234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
218235 *)
219236 if test -z "$stripcmd"; then
220 u_plus_rw=
237 u_plus_rw=
221238 else
222 u_plus_rw=,u+rw
239 u_plus_rw=,u+rw
223240 fi
224241 cp_umask=$mode$u_plus_rw;;
225242 esac
227244
228245 for src
229246 do
230 # Protect names starting with `-'.
247 # Protect names problematic for 'test' and other utilities.
231248 case $src in
232 -*) src=./$src;;
249 -* | [=\(\)!]) src=./$src;;
233250 esac
234251
235252 if test -n "$dir_arg"; then
251268 echo "$0: no destination specified." >&2
252269 exit 1
253270 fi
254
255271 dst=$dst_arg
256 # Protect names starting with `-'.
257 case $dst in
258 -*) dst=./$dst;;
259 esac
260272
261273 # If destination is a directory, append the input filename; won't work
262274 # if double slashes aren't ignored.
263275 if test -d "$dst"; then
264 if test -n "$no_target_directory"; then
265 echo "$0: $dst_arg: Is a directory" >&2
266 exit 1
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
267279 fi
268280 dstdir=$dst
269281 dst=$dstdir/`basename "$src"`
270282 dstdir_status=0
271283 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
284 dstdir=`dirname "$dst"`
299285 test -d "$dstdir"
300286 dstdir_status=$?
301287 fi
306292 if test $dstdir_status != 0; then
307293 case $posix_mkdir in
308294 '')
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;;
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
327 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
328
329 if (umask $mkdir_umask &&
330 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
331 then
332 if test -z "$dir_arg" || {
333 # Check for POSIX incompatibilities with -m.
334 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
335 # other-writable bit of parent directory when it shouldn't.
336 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
337 ls_ld_tmpdir=`ls -ld "$tmpdir"`
338 case $ls_ld_tmpdir in
339 d????-?r-*) different_mode=700;;
340 d????-?--*) different_mode=755;;
341 *) false;;
342 esac &&
343 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
344 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
345 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
346 }
347 }
348 then posix_mkdir=:
349 fi
350 rmdir "$tmpdir/d" "$tmpdir"
351 else
352 # Remove any dirs left behind by ancient mkdir implementations.
353 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
354 fi
355 trap '' 0;;
356 esac;;
371357 esac
372358
373359 if
374360 $posix_mkdir && (
375 umask $mkdir_umask &&
376 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
361 umask $mkdir_umask &&
362 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
377363 )
378364 then :
379365 else
383369 # directory the slow way, step by step, checking for races as we go.
384370
385371 case $dstdir in
386 /*) prefix='/';;
387 -*) prefix='./';;
388 *) prefix='';;
372 /*) prefix='/';;
373 [-=\(\)!]*) prefix='./';;
374 *) prefix='';;
389375 esac
390
391 eval "$initialize_posix_glob"
392376
393377 oIFS=$IFS
394378 IFS=/
395 $posix_glob set -f
379 set -f
396380 set fnord $dstdir
397381 shift
398 $posix_glob set +f
382 set +f
399383 IFS=$oIFS
400384
401385 prefixes=
402386
403387 for d
404388 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/
389 test X"$d" = X && continue
390
391 prefix=$prefix$d
392 if test -d "$prefix"; then
393 prefixes=
394 else
395 if $posix_mkdir; then
396 (umask=$mkdir_umask &&
397 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
398 # Don't fail if two instances are running concurrently.
399 test -d "$prefix" || exit 1
400 else
401 case $prefix in
402 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
403 *) qprefix=$prefix;;
404 esac
405 prefixes="$prefixes '$qprefix'"
406 fi
407 fi
408 prefix=$prefix/
425409 done
426410
427411 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
412 # Don't fail if two instances are running concurrently.
413 (umask $mkdir_umask &&
414 eval "\$doit_exec \$mkdirprog $prefixes") ||
415 test -d "$dstdir" || exit 1
416 obsolete_mkdir_used=true
433417 fi
434418 fi
435419 fi
464448
465449 # If -C, don't bother to copy if it wouldn't change the file.
466450 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 &&
451 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
452 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
453 set -f &&
472454 set X $old && old=:$2:$4:$5:$6 &&
473455 set X $new && new=:$2:$4:$5:$6 &&
474 $posix_glob set +f &&
475
456 set +f &&
476457 test "$old" = "$new" &&
477458 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
478459 then
485466 # to itself, or perhaps because mv is so ancient that it does not
486467 # support -f.
487468 {
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"
469 # Now remove or move aside any old file at destination location.
470 # We try this two ways since rm can't unlink itself on some
471 # systems and the destination file might be busy for other
472 # reasons. In this case, the final cleanup might fail but the new
473 # file should still install successfully.
474 {
475 test ! -f "$dst" ||
476 $doit $rmcmd -f "$dst" 2>/dev/null ||
477 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
478 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
479 } ||
480 { echo "$0: cannot unlink or rename $dst" >&2
481 (exit 1); exit 1
482 }
483 } &&
484
485 # Now rename the file to the real destination.
486 $doit $mvcmd "$dsttmp" "$dst"
506487 }
507488 fi || exit 1
508489
(No changes)
(No changes)
+3656
-2161
ltmain.sh less more
0
1 # libtool (GNU libtool) 2.4.2
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
26 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
37
4 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006,
5 # 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
69 # This is free software; see the source for copying conditions. There is NO
710 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
811
2225 # General Public License for more details.
2326 #
2427 # You should have received a copy of the GNU General Public License
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]...
31 #
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 # --no-quiet, --no-silent
42 # print informational messages (default)
43 # --no-warn don't display warning messages
44 # --tag=TAG use configuration variables from tag TAG
45 # -v, --verbose print more informational messages than default
46 # --no-verbose don't print the extra informational messages
47 # --version print version information
48 # -h, --help, --help-all print short, long, or detailed help message
49 #
50 # MODE must be one of the following:
51 #
52 # clean remove files from the build directory
53 # compile compile a source file into a libtool object
54 # execute automatically set library path, then run a program
55 # finish complete the installation of libtool libraries
56 # install install libraries or executables
57 # link create a library or an executable
58 # uninstall remove libraries from an installed directory
59 #
60 # MODE-ARGS vary depending on the MODE. When passed as first option,
61 # `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that.
62 # Try `$progname --help --mode=MODE' for a more detailed description of MODE.
63 #
64 # When reporting a bug, please describe a test case to reproduce it and
65 # include the following information:
66 #
67 # host-triplet: $host
68 # shell: $SHELL
69 # compiler: $LTCC
70 # compiler flags: $LTCFLAGS
71 # linker: $LD (gnu? $with_gnu_ld)
72 # $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1
73 # automake: $automake_version
74 # autoconf: $autoconf_version
75 #
76 # Report bugs to <bug-libtool@gnu.org>.
77 # GNU libtool home page: <http://www.gnu.org/software/libtool/>.
78 # General help using GNU software: <http://www.gnu.org/gethelp/>.
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
7930
8031 PROGRAM=libtool
8132 PACKAGE=libtool
82 VERSION="2.4.2 Debian-2.4.2-1ubuntu1"
83 TIMESTAMP=""
84 package_revision=1.3337
85
86 # Be Bourne compatible
87 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33 VERSION="2.4.6 Debian-2.4.6-0.1"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
88118 emulate sh
89119 NULLCMD=:
90 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
91121 # is contrary to our usage. Disable this feature.
92122 alias -g '${1+"$@"}'='"$@"'
93123 setopt NO_GLOB_SUBST
94124 else
95 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
96126 fi
97 BIN_SH=xpg4; export BIN_SH # for Tru64
98 DUALCASE=1; export DUALCASE # for MKS sh
99
100 # A function that is used when there is no print builtin or printf.
101 func_fallback_echo ()
102 {
103 eval 'cat <<_LTECHO_EOF
104 $1
105 _LTECHO_EOF'
106 }
107
108 # NLS nuisances: We save the old values to restore during execute mode.
109 lt_user_locale=
110 lt_safe_locale=
111 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
112132 do
113 eval "if test \"\${$lt_var+set}\" = set; then
114 save_$lt_var=\$$lt_var
115 $lt_var=C
116 export $lt_var
117 lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
118 lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
119139 fi"
120140 done
121 LC_ALL=C
122 LANGUAGE=C
123 export LANGUAGE LC_ALL
124
125 $lt_unset CDPATH
126
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
127401
128402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
129403 # is ksh but when the shell is invoked as "sh" and the current value of
130404 # the _XPG environment variable is not equal to 1 (one), the special
131405 # positional parameter $0, within a function call, is the name of the
132406 # function.
133 progpath="$0"
134
135
136
137 : ${CP="cp -f"}
138 test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'}
139 : ${MAKE="make"}
140 : ${MKDIR="mkdir"}
141 : ${MV="mv -f"}
142 : ${RM="rm -f"}
143 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
144 : ${Xsed="$SED -e 1s/^X//"}
145
146 # Global variables:
147 EXIT_SUCCESS=0
148 EXIT_FAILURE=1
149 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
150 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
151
152 exit_status=$EXIT_SUCCESS
153
154 # Make sure IFS has a sensible default
155 lt_nl='
156 '
157 IFS=" $lt_nl"
158
159 dirname="s,/[^/]*$,,"
160 basename="s,^.*/,,"
161
162 # func_dirname file append nondir_replacement
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
163679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
164680 # otherwise set result to NONDIR_REPLACEMENT.
165 func_dirname ()
166 {
167 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
168 if test "X$func_dirname_result" = "X${1}"; then
169 func_dirname_result="${3}"
170 else
171 func_dirname_result="$func_dirname_result${2}"
172 fi
173 } # func_dirname may be replaced by extended shell implementation
174
175
176 # func_basename file
177 func_basename ()
178 {
179 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
180 } # func_basename may be replaced by extended shell implementation
181
182
183 # func_dirname_and_basename file append nondir_replacement
184 # perform func_basename and func_dirname in a single function
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
185692 # call:
186693 # dirname: Compute the dirname of FILE. If nonempty,
187694 # add APPEND to the result, otherwise set result
189696 # value returned in "$func_dirname_result"
190697 # basename: Compute filename of FILE.
191698 # value retuned in "$func_basename_result"
192 # Implementation must be kept synchronized with func_dirname
193 # and func_basename. For efficiency, we do not delegate to
194 # those functions but instead duplicate the functionality here.
195 func_dirname_and_basename ()
196 {
197 # Extract subdirectory from the argument.
198 func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"`
199 if test "X$func_dirname_result" = "X${1}"; then
200 func_dirname_result="${3}"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
201898 else
202 func_dirname_result="$func_dirname_result${2}"
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
203916 fi
204 func_basename_result=`$ECHO "${1}" | $SED -e "$basename"`
205 } # func_dirname_and_basename may be replaced by extended shell implementation
206
207
208 # func_stripname prefix suffix name
209 # strip PREFIX and SUFFIX off of NAME.
210 # PREFIX and SUFFIX must not contain globbing or regex special
211 # characters, hashes, percent signs, but SUFFIX may contain a leading
212 # dot (in which case that matches only a dot).
213 # func_strip_suffix prefix name
214 func_stripname ()
215 {
216 case ${2} in
217 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
218 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
219 esac
220 } # func_stripname may be replaced by extended shell implementation
221
222
223 # These SED scripts presuppose an absolute path with a trailing slash.
224 pathcar='s,^/\([^/]*\).*$,\1,'
225 pathcdr='s,^/[^/]*,,'
226 removedotparts=':dotsl
227 s@/\./@/@g
228 t dotsl
229 s,/\.$,/,'
230 collapseslashes='s@/\{1,\}@/@g'
231 finalslash='s,/*$,/,'
917
918 $ECHO "$_G_tmpdir"
919 }
920
232921
233922 # func_normal_abspath PATH
923 # ------------------------
234924 # Remove doubled-up and trailing slashes, "." path components,
235925 # and cancel out any ".." path components in PATH after making
236926 # it an absolute path.
237 # value returned in "$func_normal_abspath_result"
238927 func_normal_abspath ()
239928 {
240 # Start from root dir and reassemble the path.
241 func_normal_abspath_result=
242 func_normal_abspath_tpath=$1
243 func_normal_abspath_altnamespace=
244 case $func_normal_abspath_tpath in
245 "")
246 # Empty path, that just means $cwd.
247 func_stripname '' '/' "`pwd`"
248 func_normal_abspath_result=$func_stripname_result
249 return
250 ;;
251 # The next three entries are used to spot a run of precisely
252 # two leading slashes without using negated character classes;
253 # we take advantage of case's first-match behaviour.
254 ///*)
255 # Unusual form of absolute path, do nothing.
256 ;;
257 //*)
258 # Not necessarily an ordinary path; POSIX reserves leading '//'
259 # and for example Cygwin uses it to access remote file shares
260 # over CIFS/SMB, so we conserve a leading double slash if found.
261 func_normal_abspath_altnamespace=/
262 ;;
263 /*)
264 # Absolute path, do nothing.
265 ;;
266 *)
267 # Relative path, prepend $cwd.
268 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
269 ;;
270 esac
271 # Cancel out all the simple stuff to save iterations. We also want
272 # the path to end with a slash for ease of parsing, so make sure
273 # there is one (and only one) here.
274 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
275 -e "$removedotparts" -e "$collapseslashes" -e "$finalslash"`
276 while :; do
277 # Processed it all yet?
278 if test "$func_normal_abspath_tpath" = / ; then
279 # If we ascended to the root using ".." the result may be empty now.
280 if test -z "$func_normal_abspath_result" ; then
281 func_normal_abspath_result=/
282 fi
283 break
284 fi
285 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
286 -e "$pathcar"`
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
287976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
288 -e "$pathcdr"`
289 # Figure out what to do with it
290 case $func_normal_abspath_tcomponent in
291 "")
292 # Trailing empty path component, ignore it.
293 ;;
294 ..)
295 # Parent dir; strip last assembled component from result.
296 func_dirname "$func_normal_abspath_result"
297 func_normal_abspath_result=$func_dirname_result
298 ;;
299 *)
300 # Actual path component, append it.
301 func_normal_abspath_result=$func_normal_abspath_result/$func_normal_abspath_tcomponent
302 ;;
303 esac
304 done
305 # Restore leading double-slash if one was found on entry.
306 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
307 }
308
309 # func_relative_path SRCDIR DSTDIR
310 # generates a relative path from SRCDIR to DSTDIR, with a trailing
311 # slash if non-empty, suitable for immediately appending a filename
312 # without needing to append a separator.
313 # value returned in "$func_relative_path_result"
314 func_relative_path ()
315 {
316 func_relative_path_result=
317 func_normal_abspath "$1"
318 func_relative_path_tlibdir=$func_normal_abspath_result
319 func_normal_abspath "$2"
320 func_relative_path_tbindir=$func_normal_abspath_result
321
322 # Ascend the tree starting from libdir
323 while :; do
324 # check if we have found a prefix of bindir
325 case $func_relative_path_tbindir in
326 $func_relative_path_tlibdir)
327 # found an exact match
328 func_relative_path_tcancelled=
329 break
330 ;;
331 $func_relative_path_tlibdir*)
332 # found a matching prefix
333 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
334 func_relative_path_tcancelled=$func_stripname_result
335 if test -z "$func_relative_path_result"; then
336 func_relative_path_result=.
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
337984 fi
338985 break
339 ;;
340 *)
341 func_dirname $func_relative_path_tlibdir
342 func_relative_path_tlibdir=${func_dirname_result}
343 if test "x$func_relative_path_tlibdir" = x ; then
344 # Have to descend all the way to the root!
345 func_relative_path_result=../$func_relative_path_result
346 func_relative_path_tcancelled=$func_relative_path_tbindir
347 break
348 fi
349 func_relative_path_result=../$func_relative_path_result
350 ;;
351 esac
352 done
353
354 # Now calculate path; take care to avoid doubling-up slashes.
355 func_stripname '' '/' "$func_relative_path_result"
356 func_relative_path_result=$func_stripname_result
357 func_stripname '/' '/' "$func_relative_path_tcancelled"
358 if test "x$func_stripname_result" != x ; then
359 func_relative_path_result=${func_relative_path_result}/${func_stripname_result}
360 fi
361
362 # Normalisation. If bindir is libdir, return empty string,
363 # else relative path ending with a slash; either way, target
364 # file name can be directly appended.
365 if test ! -z "$func_relative_path_result"; then
366 func_stripname './' '' "$func_relative_path_result/"
367 func_relative_path_result=$func_stripname_result
368 fi
369 }
370
371 # The name of this program:
372 func_dirname_and_basename "$progpath"
373 progname=$func_basename_result
374
375 # Make sure we have an absolute path for reexecution:
376 case $progpath in
377 [\\/]*|[A-Za-z]:\\*) ;;
378 *[\\/]*)
379 progdir=$func_dirname_result
380 progdir=`cd "$progdir" && pwd`
381 progpath="$progdir/$progname"
382 ;;
383 *)
384 save_IFS="$IFS"
385 IFS=${PATH_SEPARATOR-:}
386 for progdir in $PATH; do
387 IFS="$save_IFS"
388 test -x "$progdir/$progname" && break
389 done
390 IFS="$save_IFS"
391 test -n "$progdir" || progdir=`pwd`
392 progpath="$progdir/$progname"
393 ;;
394 esac
395
396 # Sed substitution that helps us do robust quoting. It backslashifies
397 # metacharacters that are still active within double-quoted strings.
398 Xsed="${SED}"' -e 1s/^X//'
399 sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
400
401 # Same as above, but do not quote variable references.
402 double_quote_subst='s/\(["`\\]\)/\\\1/g'
403
404 # Sed substitution that turns a string into a regex matching for the
405 # string literally.
406 sed_make_literal_regex='s,[].[^$\\*\/],\\&,g'
407
408 # Sed substitution that converts a w32 file name or path
409 # which contains forward slashes, into one that contains
410 # (escaped) backslashes. A very naive implementation.
411 lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
412
413 # Re-`\' parameter expansions in output of double_quote_subst that were
414 # `\'-ed in input to the same. If an odd number of `\' preceded a '$'
415 # in input to double_quote_subst, that '$' was protected from expansion.
416 # Since each input `\' is now two `\'s, look for any number of runs of
417 # four `\'s followed by two `\'s and then a '$'. `\' that '$'.
418 bs='\\'
419 bs2='\\\\'
420 bs4='\\\\\\\\'
421 dollar='\$'
422 sed_double_backslash="\
423 s/$bs4/&\\
424 /g
425 s/^$bs2$dollar/$bs&/
426 s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
427 s/\n//g"
428
429 # Standard options:
430 opt_dry_run=false
431 opt_help=false
432 opt_quiet=false
433 opt_verbose=false
434 opt_warning=:
435
436 # func_echo arg...
437 # Echo program name prefixed message, along with the current mode
438 # name if it has been set yet.
439 func_echo ()
440 {
441 $ECHO "$progname: ${opt_mode+$opt_mode: }$*"
442 }
443
444 # func_verbose arg...
445 # Echo program name prefixed message in verbose mode only.
446 func_verbose ()
447 {
448 $opt_verbose && func_echo ${1+"$@"}
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
4491020
4501021 # A bug in bash halts the script if the last line of a function
4511022 # fails when set -e is in force, so we need another command to
4531024 :
4541025 }
4551026
456 # func_echo_all arg...
457 # Invoke $ECHO with all args, space-separated.
458 func_echo_all ()
459 {
460 $ECHO "$*"
461 }
462
463 # func_error arg...
464 # Echo program name prefixed message to standard error.
465 func_error ()
466 {
467 $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2
468 }
469
470 # func_warning arg...
471 # Echo program name prefixed warning message to standard error.
472 func_warning ()
473 {
474 $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2
475
476 # bash bug again:
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
4771089 :
4781090 }
4791091
480 # func_fatal_error arg...
481 # Echo program name prefixed message to standard error, and exit.
482 func_fatal_error ()
483 {
484 func_error ${1+"$@"}
485 exit $EXIT_FAILURE
486 }
487
488 # func_fatal_help arg...
489 # Echo program name prefixed message to standard error, followed by
490 # a help hint, and exit.
491 func_fatal_help ()
492 {
493 func_error ${1+"$@"}
494 func_fatal_error "$help"
495 }
496 help="Try \`$progname --help' for more information." ## default
497
498
499 # func_grep expression filename
500 # Check whether EXPRESSION matches any line of FILENAME, without output.
501 func_grep ()
502 {
503 $GREP "$1" "$2" >/dev/null 2>&1
504 }
505
506
507 # func_mkdir_p directory-path
508 # Make sure the entire path to DIRECTORY-PATH is available.
509 func_mkdir_p ()
510 {
511 my_directory_path="$1"
512 my_dir_list=
513
514 if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
515
516 # Protect directory names starting with `-'
517 case $my_directory_path in
518 -*) my_directory_path="./$my_directory_path" ;;
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
5191114 esac
520
521 # While some portion of DIR does not yet exist...
522 while test ! -d "$my_directory_path"; do
523 # ...make a list in topmost first order. Use a colon delimited
524 # list incase some portion of path contains whitespace.
525 my_dir_list="$my_directory_path:$my_dir_list"
526
527 # If the last portion added has no slash in it, the list is done
528 case $my_directory_path in */*) ;; *) break ;; esac
529
530 # ...otherwise throw away the child directory and loop
531 my_directory_path=`$ECHO "$my_directory_path" | $SED -e "$dirname"`
532 done
533 my_dir_list=`$ECHO "$my_dir_list" | $SED 's,:*$,,'`
534
535 save_mkdir_p_IFS="$IFS"; IFS=':'
536 for my_dir in $my_dir_list; do
537 IFS="$save_mkdir_p_IFS"
538 # mkdir can fail with a `File exist' error if two processes
539 # try to create one of the directories concurrently. Don't
540 # stop in that case!
541 $MKDIR "$my_dir" 2>/dev/null || :
542 done
543 IFS="$save_mkdir_p_IFS"
544
545 # Bail out if we (or some other process) failed to create a directory.
546 test -d "$my_directory_path" || \
547 func_fatal_error "Failed to create \`$1'"
548 fi
549 }
550
551
552 # func_mktempdir [string]
553 # Make a temporary directory that won't clash with other running
554 # libtool processes, and avoids race conditions if possible. If
555 # given, STRING is the basename for that directory.
556 func_mktempdir ()
557 {
558 my_template="${TMPDIR-/tmp}/${1-$progname}"
559
560 if test "$opt_dry_run" = ":"; then
561 # Return a directory name, but don't create it in dry-run mode
562 my_tmpdir="${my_template}-$$"
563 else
564
565 # If mktemp works, use that first and foremost
566 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
567
568 if test ! -d "$my_tmpdir"; then
569 # Failing that, at least try and use $RANDOM to avoid a race
570 my_tmpdir="${my_template}-${RANDOM-0}$$"
571
572 save_mktempdir_umask=`umask`
573 umask 0077
574 $MKDIR "$my_tmpdir"
575 umask $save_mktempdir_umask
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
5761119 fi
5771120
578 # If we're not in dry-run mode, bomb out on failure
579 test -d "$my_tmpdir" || \
580 func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
581 fi
582
583 $ECHO "$my_tmpdir"
584 }
585
586
587 # func_quote_for_eval arg
588 # Aesthetically quote ARG to be evaled later.
589 # This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
590 # is double-quoted, suitable for a subsequent eval, whereas
591 # FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
592 # which are still active within double quotes backslashified.
593 func_quote_for_eval ()
594 {
595 case $1 in
596 *[\\\`\"\$]*)
597 func_quote_for_eval_unquoted_result=`$ECHO "$1" | $SED "$sed_quote_subst"` ;;
598 *)
599 func_quote_for_eval_unquoted_result="$1" ;;
600 esac
601
602 case $func_quote_for_eval_unquoted_result in
603 # Double-quote args containing shell metacharacters to delay
604 # word splitting, command substitution and and variable
605 # expansion for a subsequent eval.
606 # Many Bourne shells cannot handle close brackets correctly
607 # in scan sets, so we specify it separately.
608 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
609 func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
610 ;;
611 *)
612 func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
613 esac
614 }
615
616
617 # func_quote_for_expand arg
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
6181147 # Aesthetically quote ARG to be evaled later; same as above,
6191148 # but do not quote variable references.
6201149 func_quote_for_expand ()
6211150 {
1151 $debug_cmd
1152
6221153 case $1 in
6231154 *[\\\`\"]*)
624 my_arg=`$ECHO "$1" | $SED \
625 -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
6261157 *)
627 my_arg="$1" ;;
1158 _G_arg=$1 ;;
6281159 esac
6291160
630 case $my_arg in
1161 case $_G_arg in
6311162 # Double-quote args containing shell metacharacters to delay
6321163 # word splitting and command substitution for a subsequent eval.
6331164 # Many Bourne shells cannot handle close brackets correctly
6341165 # in scan sets, so we specify it separately.
6351166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
636 my_arg="\"$my_arg\""
1167 _G_arg=\"$_G_arg\"
6371168 ;;
6381169 esac
6391170
640 func_quote_for_expand_result="$my_arg"
641 }
642
643
644 # func_show_eval cmd [fail_exp]
645 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6461208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6471209 # is given, then evaluate it.
6481210 func_show_eval ()
6491211 {
650 my_cmd="$1"
651 my_fail_exp="${2-:}"
652
653 ${opt_silent-false} || {
654 func_quote_for_expand "$my_cmd"
655 eval "func_echo $func_quote_for_expand_result"
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
6561226 }
657
658 if ${opt_dry_run-false}; then :; else
659 eval "$my_cmd"
660 my_status=$?
661 if test "$my_status" -eq 0; then :; else
662 eval "(exit $my_status); $my_fail_exp"
663 fi
664 fi
665 }
666
667
668 # func_show_eval_locale cmd [fail_exp]
669 # Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
6701233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
6711234 # is given, then evaluate it. Use the saved locale for evaluation.
6721235 func_show_eval_locale ()
6731236 {
674 my_cmd="$1"
675 my_fail_exp="${2-:}"
676
677 ${opt_silent-false} || {
678 func_quote_for_expand "$my_cmd"
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
6791244 eval "func_echo $func_quote_for_expand_result"
6801245 }
6811246
682 if ${opt_dry_run-false}; then :; else
683 eval "$lt_user_locale
684 $my_cmd"
685 my_status=$?
686 eval "$lt_safe_locale"
687 if test "$my_status" -eq 0; then :; else
688 eval "(exit $my_status); $my_fail_exp"
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
6891254 fi
690 fi
691 }
1255 }
1256 }
1257
6921258
6931259 # func_tr_sh
1260 # ----------
6941261 # Turn $1 into a string suitable for a shell variable name.
6951262 # Result is stored in $func_tr_sh_result. All characters
6961263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
6971264 # if $1 begins with a digit, a '_' is prepended as well.
6981265 func_tr_sh ()
6991266 {
700 case $1 in
701 [0-9]* | *[!a-zA-Z0-9_]*)
702 func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'`
703 ;;
704 * )
705 func_tr_sh_result=$1
706 ;;
707 esac
708 }
709
710
711 # func_version
712 # Echo version message to standard output and exit.
713 func_version ()
714 {
715 $opt_debug
716
717 $SED -n '/(C)/!b go
718 :more
719 /\./!{
720 N
721 s/\n# / /
722 b more
723 }
724 :go
725 /^# '$PROGRAM' (GNU /,/# warranty; / {
726 s/^# //
727 s/^# *$//
728 s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
729 p
730 }' < "$progpath"
731 exit $?
732 }
733
734 # func_usage
735 # Echo short help message to standard output and exit.
736 func_usage ()
737 {
738 $opt_debug
739
740 $SED -n '/^# Usage:/,/^# *.*--help/ {
741 s/^# //
742 s/^# *$//
743 s/\$progname/'$progname'/
744 p
745 }' < "$progpath"
746 echo
747 $ECHO "run \`$progname --help | more' for full usage"
748 exit $?
749 }
750
751 # func_help [NOEXIT]
752 # Echo long help message to standard output and exit,
753 # unless 'noexit' is passed as argument.
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
7541820 func_help ()
7551821 {
756 $opt_debug
757
758 $SED -n '/^# Usage:/,/# Report bugs to/ {
759 :print
760 s/^# //
761 s/^# *$//
762 s*\$progname*'$progname'*
763 s*\$host*'"$host"'*
764 s*\$SHELL*'"$SHELL"'*
765 s*\$LTCC*'"$LTCC"'*
766 s*\$LTCFLAGS*'"$LTCFLAGS"'*
767 s*\$LD*'"$LD"'*
768 s/\$with_gnu_ld/'"$with_gnu_ld"'/
769 s/\$automake_version/'"`(${AUTOMAKE-automake} --version) 2>/dev/null |$SED 1q`"'/
770 s/\$autoconf_version/'"`(${AUTOCONF-autoconf} --version) 2>/dev/null |$SED 1q`"'/
771 p
772 d
773 }
774 /^# .* home page:/b print
775 /^# General help using/b print
776 ' < "$progpath"
777 ret=$?
778 if test -z "$1"; then
779 exit $ret
780 fi
781 }
782
783 # func_missing_arg argname
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
7841832 # Echo program name prefixed message to standard error and set global
7851833 # exit_cmd.
7861834 func_missing_arg ()
7871835 {
788 $opt_debug
789
790 func_error "missing argument for $1."
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
7911839 exit_cmd=exit
7921840 }
7931841
7941842
795 # func_split_short_opt shortopt
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
7961880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
7971881 # variables after splitting SHORTOPT after the 2nd character.
798 func_split_short_opt ()
799 {
800 my_sed_short_opt='1s/^\(..\).*$/\1/;q'
801 my_sed_short_rest='1s/^..\(.*\)$/\1/;q'
802
803 func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"`
804 func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"`
805 } # func_split_short_opt may be replaced by extended shell implementation
806
807
808 # func_split_long_opt longopt
809 # Set func_split_long_opt_name and func_split_long_opt_arg shell
810 # variables after splitting LONGOPT at the `=' sign.
811 func_split_long_opt ()
812 {
813 my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q'
814 my_sed_long_arg='1s/^--[^=]*=//'
815
816 func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"`
817 func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"`
818 } # func_split_long_opt may be replaced by extended shell implementation
819
820 exit_cmd=:
821
822
823
824
825
826 magic="%%%MAGIC variable%%%"
827 magic_exe="%%%MAGIC EXE variable%%%"
828
829 # Global variables.
830 nonopt=
831 preserve_args=
832 lo2o="s/\\.lo\$/.${objext}/"
833 o2lo="s/\\.${objext}\$/.lo/"
834 extracted_archives=
835 extracted_serial=0
836
837 # If this variable is set in any of the actions, the command in it
838 # will be execed at the end. This prevents here-documents from being
839 # left over by shells.
840 exec_cmd=
841
842 # func_append var value
843 # Append VALUE to the end of shell variable VAR.
844 func_append ()
845 {
846 eval "${1}=\$${1}\${2}"
847 } # func_append may be replaced by extended shell implementation
848
849 # func_append_quoted var value
850 # Quote VALUE and append to the end of shell variable VAR, separated
851 # by a space.
852 func_append_quoted ()
853 {
854 func_quote_for_eval "${2}"
855 eval "${1}=\$${1}\\ \$func_quote_for_eval_result"
856 } # func_append_quoted may be replaced by extended shell implementation
857
858
859 # func_arith arithmetic-term...
860 func_arith ()
861 {
862 func_arith_result=`expr "${@}"`
863 } # func_arith may be replaced by extended shell implementation
864
865
866 # func_len string
867 # STRING may not start with a hyphen.
868 func_len ()
869 {
870 func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len`
871 } # func_len may be replaced by extended shell implementation
872
873
874 # func_lo2o object
875 func_lo2o ()
876 {
877 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
878 } # func_lo2o may be replaced by extended shell implementation
879
880
881 # func_xform libobj-or-source
882 func_xform ()
883 {
884 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
885 } # func_xform may be replaced by extended shell implementation
886
887
888 # func_fatal_configuration arg...
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname (GNU libtool) 2.4.6
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
8892122 # Echo program name prefixed message to standard error, followed by
8902123 # a configuration failure hint, and exit.
8912124 func_fatal_configuration ()
8922125 {
893 func_error ${1+"$@"}
894 func_error "See the $PACKAGE documentation for more information."
895 func_fatal_error "Fatal configuration error."
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
8962129 }
8972130
8982131
8992132 # func_config
2133 # -----------
9002134 # Display the configuration for all the tags in this script.
9012135 func_config ()
9022136 {
9142148 exit $?
9152149 }
9162150
2151
9172152 # func_features
2153 # -------------
9182154 # Display the features supported by this script.
9192155 func_features ()
9202156 {
9212157 echo "host: $host"
922 if test "$build_libtool_libs" = yes; then
2158 if test yes = "$build_libtool_libs"; then
9232159 echo "enable shared libraries"
9242160 else
9252161 echo "disable shared libraries"
9262162 fi
927 if test "$build_old_libs" = yes; then
2163 if test yes = "$build_old_libs"; then
9282164 echo "enable static libraries"
9292165 else
9302166 echo "disable static libraries"
9332169 exit $?
9342170 }
9352171
936 # func_enable_tag tagname
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
9372175 # Verify that TAGNAME is valid, and either flag an error and exit, or
9382176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
9392177 # variable here.
9402178 func_enable_tag ()
9412179 {
942 # Global variable:
943 tagname="$1"
944
945 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
946 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
947 sed_extractcf="/$re_begincf/,/$re_endcf/p"
948
949 # Validate tagname.
950 case $tagname in
951 *[!-_A-Za-z0-9,/]*)
952 func_fatal_error "invalid tag name: $tagname"
953 ;;
954 esac
955
956 # Don't test for the "default" C tag, as we know it's
957 # there but not specially marked.
958 case $tagname in
959 CC) ;;
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
9602198 *)
961 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
962 taglist="$taglist $tagname"
963
964 # Evaluate the configuration. Be careful to quote the path
965 # and the sed script, to avoid splitting on whitespace, but
966 # also don't use non-portable quotes within backquotes within
967 # quotes we have to do it in 2 steps:
968 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
969 eval "$extractedcf"
970 else
971 func_error "ignoring unknown tag $tagname"
972 fi
973 ;;
974 esac
975 }
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
9762215
9772216 # func_check_version_match
2217 # ------------------------
9782218 # Ensure that we are using m4 macros, and libtool script from the same
9792219 # release of libtool.
9802220 func_check_version_match ()
9812221 {
982 if test "$package_revision" != "$macro_revision"; then
983 if test "$VERSION" != "$macro_version"; then
984 if test -z "$macro_version"; then
985 cat >&2 <<_LT_EOF
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
9862226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9872227 $progname: definition of this LT_INIT comes from an older release.
9882228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9892229 $progname: and run autoconf again.
9902230 _LT_EOF
991 else
992 cat >&2 <<_LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
9932233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
9942234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
9952235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
9962236 $progname: and run autoconf again.
9972237 _LT_EOF
998 fi
999 else
1000 cat >&2 <<_LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
10012241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
10022242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
10032243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
10042244 $progname: of $PACKAGE $VERSION and run autoconf again.
10052245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
10062249 fi
1007
1008 exit $EXIT_MISMATCH
1009 fi
1010 }
1011
1012
1013 # Shorthand for --mode=foo, only valid as the first argument
1014 case $1 in
1015 clean|clea|cle|cl)
1016 shift; set dummy --mode clean ${1+"$@"}; shift
1017 ;;
1018 compile|compil|compi|comp|com|co|c)
1019 shift; set dummy --mode compile ${1+"$@"}; shift
1020 ;;
1021 execute|execut|execu|exec|exe|ex|e)
1022 shift; set dummy --mode execute ${1+"$@"}; shift
1023 ;;
1024 finish|finis|fini|fin|fi|f)
1025 shift; set dummy --mode finish ${1+"$@"}; shift
1026 ;;
1027 install|instal|insta|inst|ins|in|i)
1028 shift; set dummy --mode install ${1+"$@"}; shift
1029 ;;
1030 link|lin|li|l)
1031 shift; set dummy --mode link ${1+"$@"}; shift
1032 ;;
1033 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
1034 shift; set dummy --mode uninstall ${1+"$@"}; shift
1035 ;;
1036 esac
1037
1038
1039
1040 # Option defaults:
1041 opt_debug=:
1042 opt_dry_run=false
1043 opt_config=false
1044 opt_preserve_dup_deps=false
1045 opt_features=false
1046 opt_finish=false
1047 opt_help=false
1048 opt_help_all=false
1049 opt_silent=:
1050 opt_warning=:
1051 opt_verbose=:
1052 opt_silent=false
1053 opt_verbose=false
1054
1055
1056 # Parse options once, thoroughly. This comes as soon as possible in the
1057 # script to make things like `--version' happen as quickly as we can.
1058 {
1059 # this just eases exit handling
1060 while test $# -gt 0; do
1061 opt="$1"
1062 shift
1063 case $opt in
1064 --debug|-x) opt_debug='set -x'
1065 func_echo "enabling shell trace mode"
1066 $opt_debug
1067 ;;
1068 --dry-run|--dryrun|-n)
1069 opt_dry_run=:
1070 ;;
1071 --config)
1072 opt_config=:
1073 func_config
1074 ;;
1075 --dlopen|-dlopen)
1076 optarg="$1"
1077 opt_dlopen="${opt_dlopen+$opt_dlopen
1078 }$optarg"
1079 shift
1080 ;;
1081 --preserve-dup-deps)
1082 opt_preserve_dup_deps=:
1083 ;;
1084 --features)
1085 opt_features=:
1086 func_features
1087 ;;
1088 --finish)
1089 opt_finish=:
1090 set dummy --mode finish ${1+"$@"}; shift
1091 ;;
1092 --help)
1093 opt_help=:
1094 ;;
1095 --help-all)
1096 opt_help_all=:
1097 opt_help=': help-all'
1098 ;;
1099 --mode)
1100 test $# = 0 && func_missing_arg $opt && break
1101 optarg="$1"
1102 opt_mode="$optarg"
1103 case $optarg in
1104 # Valid mode arguments:
1105 clean|compile|execute|finish|install|link|relink|uninstall) ;;
1106
1107 # Catch anything else as an error
1108 *) func_error "invalid argument for $opt"
1109 exit_cmd=exit
1110 break
1111 ;;
1112 esac
1113 shift
1114 ;;
1115 --no-silent|--no-quiet)
1116 opt_silent=false
1117 func_append preserve_args " $opt"
1118 ;;
1119 --no-warning|--no-warn)
1120 opt_warning=false
1121 func_append preserve_args " $opt"
1122 ;;
1123 --no-verbose)
1124 opt_verbose=false
1125 func_append preserve_args " $opt"
1126 ;;
1127 --silent|--quiet)
1128 opt_silent=:
1129 func_append preserve_args " $opt"
1130 opt_verbose=false
1131 ;;
1132 --verbose|-v)
1133 opt_verbose=:
1134 func_append preserve_args " $opt"
1135 opt_silent=false
1136 ;;
1137 --tag)
1138 test $# = 0 && func_missing_arg $opt && break
1139 optarg="$1"
1140 opt_tag="$optarg"
1141 func_append preserve_args " $opt $optarg"
1142 func_enable_tag "$optarg"
1143 shift
1144 ;;
1145
1146 -\?|-h) func_usage ;;
1147 --help) func_help ;;
1148 --version) func_version ;;
1149
1150 # Separate optargs to long options:
1151 --*=*)
1152 func_split_long_opt "$opt"
1153 set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"}
1154 shift
1155 ;;
1156
1157 # Separate non-argument short options:
1158 -\?*|-h*|-n*|-v*)
1159 func_split_short_opt "$opt"
1160 set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"}
1161 shift
1162 ;;
1163
1164 --) break ;;
1165 -*) func_fatal_help "unrecognized option \`$opt'" ;;
1166 *) set dummy "$opt" ${1+"$@"}; shift; break ;;
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
11672295 esac
1168 done
1169
1170 # Validate options:
1171
1172 # save first non-option argument
1173 if test "$#" -gt 0; then
1174 nonopt="$opt"
1175 shift
1176 fi
1177
1178 # preserve --debug
1179 test "$opt_debug" = : || func_append preserve_args " --debug"
1180
1181 case $host in
1182 *cygwin* | *mingw* | *pw32* | *cegcc*)
1183 # don't eliminate duplications in $postdeps and $predeps
1184 opt_duplicate_compiler_generated_deps=:
1185 ;;
1186 *)
1187 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
1188 ;;
1189 esac
1190
1191 $opt_help || {
1192 # Sanity checks first:
1193 func_check_version_match
1194
1195 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
1196 func_fatal_configuration "not configured to build any kind of library"
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
11972412 fi
11982413
1199 # Darwin sucks
1200 eval std_shrext=\"$shrext_cmds\"
1201
1202 # Only execute mode is allowed to have -dlopen flags.
1203 if test -n "$opt_dlopen" && test "$opt_mode" != execute; then
1204 func_error "unrecognized option \`-dlopen'"
1205 $ECHO "$help" 1>&2
1206 exit $EXIT_FAILURE
1207 fi
1208
1209 # Change the help message to a mode-specific one.
1210 generic_help="$help"
1211 help="Try \`$progname --help --mode=$opt_mode' for more information."
1212 }
1213
1214
1215 # Bail if the options were screwed
1216 $exit_cmd $EXIT_FAILURE
1217 }
1218
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
12192463
12202464
12212465
12232467 ## Main. ##
12242468 ## ----------- ##
12252469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
12262499 # func_lalib_p file
1227 # True iff FILE is a libtool `.la' library or `.lo' object file.
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
12282501 # This function is only a basic sanity check; it will hardly flush out
12292502 # determined imposters.
12302503 func_lalib_p ()
12312504 {
12322505 test -f "$1" &&
1233 $SED -e 4q "$1" 2>/dev/null \
1234 | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
12352507 }
12362508
12372509 # func_lalib_unsafe_p file
1238 # True iff FILE is a libtool `.la' library or `.lo' object file.
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
12392511 # This function implements the same check as func_lalib_p without
12402512 # resorting to external programs. To this end, it redirects stdin and
12412513 # closes it afterwards, without saving the original file descriptor.
12422514 # As a safety measure, use it only where a negative result would be
1243 # fatal anyway. Works if `file' does not exist.
2515 # fatal anyway. Works if 'file' does not exist.
12442516 func_lalib_unsafe_p ()
12452517 {
12462518 lalib_p=no
12482520 for lalib_p_l in 1 2 3 4
12492521 do
12502522 read lalib_p_line
1251 case "$lalib_p_line" in
2523 case $lalib_p_line in
12522524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
12532525 esac
12542526 done
12552527 exec 0<&5 5<&-
12562528 fi
1257 test "$lalib_p" = yes
2529 test yes = "$lalib_p"
12582530 }
12592531
12602532 # func_ltwrapper_script_p file
12632535 # determined imposters.
12642536 func_ltwrapper_script_p ()
12652537 {
1266 func_lalib_p "$1"
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
12672540 }
12682541
12692542 # func_ltwrapper_executable_p file
12882561 {
12892562 func_dirname_and_basename "$1" "" "."
12902563 func_stripname '' '.exe' "$func_basename_result"
1291 func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
12922565 }
12932566
12942567 # func_ltwrapper_p file
13072580 # FAIL_CMD may read-access the current command in variable CMD!
13082581 func_execute_cmds ()
13092582 {
1310 $opt_debug
2583 $debug_cmd
2584
13112585 save_ifs=$IFS; IFS='~'
13122586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
13132589 IFS=$save_ifs
1314 eval cmd=\"$cmd\"
13152590 func_show_eval "$cmd" "${2-:}"
13162591 done
13172592 IFS=$save_ifs
13232598 # Note that it is not necessary on cygwin/mingw to append a dot to
13242599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
13252600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
1326 # `FILE.' does not work on cygwin managed mounts.
2601 # 'FILE.' does not work on cygwin managed mounts.
13272602 func_source ()
13282603 {
1329 $opt_debug
2604 $debug_cmd
2605
13302606 case $1 in
13312607 */* | *\\*) . "$1" ;;
13322608 *) . "./$1" ;;
13532629 # store the result into func_replace_sysroot_result.
13542630 func_replace_sysroot ()
13552631 {
1356 case "$lt_sysroot:$1" in
2632 case $lt_sysroot:$1 in
13572633 ?*:"$lt_sysroot"*)
13582634 func_stripname "$lt_sysroot" '' "$1"
1359 func_replace_sysroot_result="=$func_stripname_result"
2635 func_replace_sysroot_result='='$func_stripname_result
13602636 ;;
13612637 *)
13622638 # Including no sysroot.
13732649 # arg is usually of the form 'gcc ...'
13742650 func_infer_tag ()
13752651 {
1376 $opt_debug
2652 $debug_cmd
2653
13772654 if test -n "$available_tags" && test -z "$tagname"; then
13782655 CC_quoted=
13792656 for arg in $CC; do
13922669 for z in $available_tags; do
13932670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
13942671 # Evaluate the configuration.
1395 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
13962673 CC_quoted=
13972674 for arg in $CC; do
13982675 # Double-quote args containing other shell metacharacters.
14172694 # line option must be used.
14182695 if test -z "$tagname"; then
14192696 func_echo "unable to infer tagged configuration"
1420 func_fatal_error "specify a tag with \`--tag'"
2697 func_fatal_error "specify a tag with '--tag'"
14212698 # else
14222699 # func_verbose "using $tagname tagged configuration"
14232700 fi
14332710 # but don't create it if we're doing a dry run.
14342711 func_write_libtool_object ()
14352712 {
1436 write_libobj=${1}
1437 if test "$build_libtool_libs" = yes; then
1438 write_lobj=\'${2}\'
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
14392716 else
14402717 write_lobj=none
14412718 fi
14422719
1443 if test "$build_old_libs" = yes; then
1444 write_oldobj=\'${3}\'
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
14452722 else
14462723 write_oldobj=none
14472724 fi
14492726 $opt_dry_run || {
14502727 cat >${write_libobj}T <<EOF
14512728 # $write_libobj - a libtool object file
1452 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
14532730 #
14542731 # Please DO NOT delete this file!
14552732 # It is necessary for linking the library.
14612738 non_pic_object=$write_oldobj
14622739
14632740 EOF
1464 $MV "${write_libobj}T" "${write_libobj}"
2741 $MV "${write_libobj}T" "$write_libobj"
14652742 }
14662743 }
14672744
14812758 # be empty on error (or when ARG is empty)
14822759 func_convert_core_file_wine_to_w32 ()
14832760 {
1484 $opt_debug
1485 func_convert_core_file_wine_to_w32_result="$1"
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
14862764 if test -n "$1"; then
14872765 # Unfortunately, winepath does not exit with a non-zero error code, so we
14882766 # are forced to check the contents of stdout. On the other hand, if the
14902768 # *an error message* to stdout. So we must check for both error code of
14912769 # zero AND non-empty stdout, which explains the odd construction:
14922770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
1493 if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
14942772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
1495 $SED -e "$lt_sed_naive_backslashify"`
2773 $SED -e "$sed_naive_backslashify"`
14962774 else
14972775 func_convert_core_file_wine_to_w32_result=
14982776 fi
15132791 # are convertible, then the result may be empty.
15142792 func_convert_core_path_wine_to_w32 ()
15152793 {
1516 $opt_debug
2794 $debug_cmd
2795
15172796 # unfortunately, winepath doesn't convert paths, only file names
1518 func_convert_core_path_wine_to_w32_result=""
2797 func_convert_core_path_wine_to_w32_result=
15192798 if test -n "$1"; then
15202799 oldIFS=$IFS
15212800 IFS=:
15222801 for func_convert_core_path_wine_to_w32_f in $1; do
15232802 IFS=$oldIFS
15242803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
1525 if test -n "$func_convert_core_file_wine_to_w32_result" ; then
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
15262805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
1527 func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result"
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
15282807 else
15292808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
15302809 fi
15532832 # environment variable; do not put it in $PATH.
15542833 func_cygpath ()
15552834 {
1556 $opt_debug
2835 $debug_cmd
2836
15572837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
15582838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
15592839 if test "$?" -ne 0; then
15622842 fi
15632843 else
15642844 func_cygpath_result=
1565 func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'"
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
15662846 fi
15672847 }
15682848 #end: func_cygpath
15732853 # result in func_convert_core_msys_to_w32_result.
15742854 func_convert_core_msys_to_w32 ()
15752855 {
1576 $opt_debug
2856 $debug_cmd
2857
15772858 # awkward: cmd appends spaces to result
15782859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
1579 $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"`
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
15802861 }
15812862 #end: func_convert_core_msys_to_w32
15822863
15872868 # func_to_host_file_result to ARG1).
15882869 func_convert_file_check ()
15892870 {
1590 $opt_debug
1591 if test -z "$2" && test -n "$1" ; then
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
15922874 func_error "Could not determine host file name corresponding to"
1593 func_error " \`$1'"
2875 func_error " '$1'"
15942876 func_error "Continuing, but uninstalled executables may not work."
15952877 # Fallback:
1596 func_to_host_file_result="$1"
2878 func_to_host_file_result=$1
15972879 fi
15982880 }
15992881 # end func_convert_file_check
16052887 # func_to_host_file_result to a simplistic fallback value (see below).
16062888 func_convert_path_check ()
16072889 {
1608 $opt_debug
2890 $debug_cmd
2891
16092892 if test -z "$4" && test -n "$3"; then
16102893 func_error "Could not determine the host path corresponding to"
1611 func_error " \`$3'"
2894 func_error " '$3'"
16122895 func_error "Continuing, but uninstalled executables may not work."
16132896 # Fallback. This is a deliberately simplistic "conversion" and
16142897 # should not be "improved". See libtool.info.
16172900 func_to_host_path_result=`echo "$3" |
16182901 $SED -e "$lt_replace_pathsep_chars"`
16192902 else
1620 func_to_host_path_result="$3"
2903 func_to_host_path_result=$3
16212904 fi
16222905 fi
16232906 }
16292912 # and appending REPL if ORIG matches BACKPAT.
16302913 func_convert_path_front_back_pathsep ()
16312914 {
1632 $opt_debug
2915 $debug_cmd
2916
16332917 case $4 in
1634 $1 ) func_to_host_path_result="$3$func_to_host_path_result"
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
16352919 ;;
16362920 esac
16372921 case $4 in
16452929 ##################################################
16462930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
16472931 ##################################################
1648 # invoked via `$to_host_file_cmd ARG'
2932 # invoked via '$to_host_file_cmd ARG'
16492933 #
16502934 # In each case, ARG is the path to be converted from $build to $host format.
16512935 # Result will be available in $func_to_host_file_result.
16562940 # in func_to_host_file_result.
16572941 func_to_host_file ()
16582942 {
1659 $opt_debug
2943 $debug_cmd
2944
16602945 $to_host_file_cmd "$1"
16612946 }
16622947 # end func_to_host_file
16682953 # in (the comma separated) LAZY, no conversion takes place.
16692954 func_to_tool_file ()
16702955 {
1671 $opt_debug
2956 $debug_cmd
2957
16722958 case ,$2, in
16732959 *,"$to_tool_file_cmd",*)
16742960 func_to_tool_file_result=$1
16862972 # Copy ARG to func_to_host_file_result.
16872973 func_convert_file_noop ()
16882974 {
1689 func_to_host_file_result="$1"
2975 func_to_host_file_result=$1
16902976 }
16912977 # end func_convert_file_noop
16922978
16972983 # func_to_host_file_result.
16982984 func_convert_file_msys_to_w32 ()
16992985 {
1700 $opt_debug
1701 func_to_host_file_result="$1"
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
17022989 if test -n "$1"; then
17032990 func_convert_core_msys_to_w32 "$1"
1704 func_to_host_file_result="$func_convert_core_msys_to_w32_result"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
17052992 fi
17062993 func_convert_file_check "$1" "$func_to_host_file_result"
17072994 }
17133000 # func_to_host_file_result.
17143001 func_convert_file_cygwin_to_w32 ()
17153002 {
1716 $opt_debug
1717 func_to_host_file_result="$1"
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
17183006 if test -n "$1"; then
17193007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
17203008 # LT_CYGPATH in this case.
17303018 # and a working winepath. Returns result in func_to_host_file_result.
17313019 func_convert_file_nix_to_w32 ()
17323020 {
1733 $opt_debug
1734 func_to_host_file_result="$1"
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
17353024 if test -n "$1"; then
17363025 func_convert_core_file_wine_to_w32 "$1"
1737 func_to_host_file_result="$func_convert_core_file_wine_to_w32_result"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
17383027 fi
17393028 func_convert_file_check "$1" "$func_to_host_file_result"
17403029 }
17463035 # Returns result in func_to_host_file_result.
17473036 func_convert_file_msys_to_cygwin ()
17483037 {
1749 $opt_debug
1750 func_to_host_file_result="$1"
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
17513041 if test -n "$1"; then
17523042 func_convert_core_msys_to_w32 "$1"
17533043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
1754 func_to_host_file_result="$func_cygpath_result"
3044 func_to_host_file_result=$func_cygpath_result
17553045 fi
17563046 func_convert_file_check "$1" "$func_to_host_file_result"
17573047 }
17643054 # in func_to_host_file_result.
17653055 func_convert_file_nix_to_cygwin ()
17663056 {
1767 $opt_debug
1768 func_to_host_file_result="$1"
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
17693060 if test -n "$1"; then
17703061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
17713062 func_convert_core_file_wine_to_w32 "$1"
17723063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
1773 func_to_host_file_result="$func_cygpath_result"
3064 func_to_host_file_result=$func_cygpath_result
17743065 fi
17753066 func_convert_file_check "$1" "$func_to_host_file_result"
17763067 }
17803071 #############################################
17813072 # $build to $host PATH CONVERSION FUNCTIONS #
17823073 #############################################
1783 # invoked via `$to_host_path_cmd ARG'
3074 # invoked via '$to_host_path_cmd ARG'
17843075 #
17853076 # In each case, ARG is the path to be converted from $build to $host format.
17863077 # The result will be available in $func_to_host_path_result.
18043095 to_host_path_cmd=
18053096 func_init_to_host_path_cmd ()
18063097 {
1807 $opt_debug
3098 $debug_cmd
3099
18083100 if test -z "$to_host_path_cmd"; then
18093101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
1810 to_host_path_cmd="func_convert_path_${func_stripname_result}"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
18113103 fi
18123104 }
18133105
18173109 # in func_to_host_path_result.
18183110 func_to_host_path ()
18193111 {
1820 $opt_debug
3112 $debug_cmd
3113
18213114 func_init_to_host_path_cmd
18223115 $to_host_path_cmd "$1"
18233116 }
18283121 # Copy ARG to func_to_host_path_result.
18293122 func_convert_path_noop ()
18303123 {
1831 func_to_host_path_result="$1"
3124 func_to_host_path_result=$1
18323125 }
18333126 # end func_convert_path_noop
18343127
18393132 # func_to_host_path_result.
18403133 func_convert_path_msys_to_w32 ()
18413134 {
1842 $opt_debug
1843 func_to_host_path_result="$1"
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
18443138 if test -n "$1"; then
18453139 # Remove leading and trailing path separator characters from ARG. MSYS
18463140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
18483142 func_stripname : : "$1"
18493143 func_to_host_path_tmp1=$func_stripname_result
18503144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
1851 func_to_host_path_result="$func_convert_core_msys_to_w32_result"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
18523146 func_convert_path_check : ";" \
18533147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18543148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
18623156 # func_to_host_file_result.
18633157 func_convert_path_cygwin_to_w32 ()
18643158 {
1865 $opt_debug
1866 func_to_host_path_result="$1"
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
18673162 if test -n "$1"; then
18683163 # See func_convert_path_msys_to_w32:
18693164 func_stripname : : "$1"
18823177 # a working winepath. Returns result in func_to_host_file_result.
18833178 func_convert_path_nix_to_w32 ()
18843179 {
1885 $opt_debug
1886 func_to_host_path_result="$1"
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
18873183 if test -n "$1"; then
18883184 # See func_convert_path_msys_to_w32:
18893185 func_stripname : : "$1"
18903186 func_to_host_path_tmp1=$func_stripname_result
18913187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
1892 func_to_host_path_result="$func_convert_core_path_wine_to_w32_result"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
18933189 func_convert_path_check : ";" \
18943190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
18953191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
19033199 # Returns result in func_to_host_file_result.
19043200 func_convert_path_msys_to_cygwin ()
19053201 {
1906 $opt_debug
1907 func_to_host_path_result="$1"
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
19083205 if test -n "$1"; then
19093206 # See func_convert_path_msys_to_w32:
19103207 func_stripname : : "$1"
19113208 func_to_host_path_tmp1=$func_stripname_result
19123209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
19133210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
1914 func_to_host_path_result="$func_cygpath_result"
3211 func_to_host_path_result=$func_cygpath_result
19153212 func_convert_path_check : : \
19163213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19173214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19263223 # func_to_host_file_result.
19273224 func_convert_path_nix_to_cygwin ()
19283225 {
1929 $opt_debug
1930 func_to_host_path_result="$1"
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
19313229 if test -n "$1"; then
19323230 # Remove leading and trailing path separator characters from
19333231 # ARG. msys behavior is inconsistent here, cygpath turns them
19363234 func_to_host_path_tmp1=$func_stripname_result
19373235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
19383236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
1939 func_to_host_path_result="$func_cygpath_result"
3237 func_to_host_path_result=$func_cygpath_result
19403238 func_convert_path_check : : \
19413239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
19423240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
19453243 # end func_convert_path_nix_to_cygwin
19463244
19473245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
19483263 # func_mode_compile arg...
19493264 func_mode_compile ()
19503265 {
1951 $opt_debug
3266 $debug_cmd
3267
19523268 # Get the compilation command and the source file.
19533269 base_compile=
1954 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
19553271 suppress_opt=yes
19563272 suppress_output=
19573273 arg_mode=normal
19643280 case $arg_mode in
19653281 arg )
19663282 # do not "continue". Instead, add this to base_compile
1967 lastarg="$arg"
3283 lastarg=$arg
19683284 arg_mode=normal
19693285 ;;
19703286
19713287 target )
1972 libobj="$arg"
3288 libobj=$arg
19733289 arg_mode=normal
19743290 continue
19753291 ;;
19793295 case $arg in
19803296 -o)
19813297 test -n "$libobj" && \
1982 func_fatal_error "you cannot specify \`-o' more than once"
3298 func_fatal_error "you cannot specify '-o' more than once"
19833299 arg_mode=target
19843300 continue
19853301 ;;
20083324 func_stripname '-Wc,' '' "$arg"
20093325 args=$func_stripname_result
20103326 lastarg=
2011 save_ifs="$IFS"; IFS=','
3327 save_ifs=$IFS; IFS=,
20123328 for arg in $args; do
2013 IFS="$save_ifs"
3329 IFS=$save_ifs
20143330 func_append_quoted lastarg "$arg"
20153331 done
2016 IFS="$save_ifs"
3332 IFS=$save_ifs
20173333 func_stripname ' ' '' "$lastarg"
20183334 lastarg=$func_stripname_result
20193335
20263342 # Accept the current argument as the source file.
20273343 # The previous "srcfile" becomes the current argument.
20283344 #
2029 lastarg="$srcfile"
2030 srcfile="$arg"
3345 lastarg=$srcfile
3346 srcfile=$arg
20313347 ;;
20323348 esac # case $arg
20333349 ;;
20423358 func_fatal_error "you must specify an argument for -Xcompile"
20433359 ;;
20443360 target)
2045 func_fatal_error "you must specify a target with \`-o'"
3361 func_fatal_error "you must specify a target with '-o'"
20463362 ;;
20473363 *)
20483364 # Get the name of the library object.
20493365 test -z "$libobj" && {
20503366 func_basename "$srcfile"
2051 libobj="$func_basename_result"
3367 libobj=$func_basename_result
20523368 }
20533369 ;;
20543370 esac
20683384 case $libobj in
20693385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
20703386 *)
2071 func_fatal_error "cannot determine name of library object from \`$libobj'"
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
20723388 ;;
20733389 esac
20743390
20773393 for arg in $later; do
20783394 case $arg in
20793395 -shared)
2080 test "$build_libtool_libs" != yes && \
2081 func_fatal_configuration "can not build a shared library"
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
20823398 build_old_libs=no
20833399 continue
20843400 ;;
21043420 func_quote_for_eval "$libobj"
21053421 test "X$libobj" != "X$func_quote_for_eval_result" \
21063422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
2107 && func_warning "libobj name \`$libobj' may not contain shell special characters."
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
21083424 func_dirname_and_basename "$obj" "/" ""
2109 objname="$func_basename_result"
2110 xdir="$func_dirname_result"
2111 lobj=${xdir}$objdir/$objname
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
21123428
21133429 test -z "$base_compile" && \
21143430 func_fatal_help "you must specify a compilation command"
21153431
21163432 # Delete any leftover library objects.
2117 if test "$build_old_libs" = yes; then
3433 if test yes = "$build_old_libs"; then
21183434 removelist="$obj $lobj $libobj ${libobj}T"
21193435 else
21203436 removelist="$lobj $libobj ${libobj}T"
21263442 pic_mode=default
21273443 ;;
21283444 esac
2129 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
21303446 # non-PIC code in shared libraries is not supported
21313447 pic_mode=default
21323448 fi
21333449
21343450 # Calculate the filename of the output object if compiler does
21353451 # not support -o with -c
2136 if test "$compiler_c_o" = no; then
2137 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.${objext}
2138 lockfile="$output_obj.lock"
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
21393455 else
21403456 output_obj=
21413457 need_locks=no
21443460
21453461 # Lock this critical section if it is needed
21463462 # We use this script file to make the link, it avoids creating a new file
2147 if test "$need_locks" = yes; then
3463 if test yes = "$need_locks"; then
21483464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
21493465 func_echo "Waiting for $lockfile to be removed"
21503466 sleep 2
21513467 done
2152 elif test "$need_locks" = warn; then
3468 elif test warn = "$need_locks"; then
21533469 if test -f "$lockfile"; then
21543470 $ECHO "\
21553471 *** ERROR, $lockfile exists and contains:
21573473
21583474 This indicates that another process is trying to use the same
21593475 temporary object file, and libtool could not work around it because
2160 your compiler does not support \`-c' and \`-o' together. If you
3476 your compiler does not support '-c' and '-o' together. If you
21613477 repeat this compilation, it may succeed, by chance, but you had better
21623478 avoid parallel builds (make -j) in this platform, or get a better
21633479 compiler."
21793495 qsrcfile=$func_quote_for_eval_result
21803496
21813497 # Only build a PIC object if we are building libtool libraries.
2182 if test "$build_libtool_libs" = yes; then
3498 if test yes = "$build_libtool_libs"; then
21833499 # Without this assignment, base_compile gets emptied.
21843500 fbsd_hideous_sh_bug=$base_compile
21853501
2186 if test "$pic_mode" != no; then
3502 if test no != "$pic_mode"; then
21873503 command="$base_compile $qsrcfile $pic_flag"
21883504 else
21893505 # Don't build PIC code
22003516 func_show_eval_locale "$command" \
22013517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
22023518
2203 if test "$need_locks" = warn &&
3519 if test warn = "$need_locks" &&
22043520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22053521 $ECHO "\
22063522 *** ERROR, $lockfile contains:
22113527
22123528 This indicates that another process is trying to use the same
22133529 temporary object file, and libtool could not work around it because
2214 your compiler does not support \`-c' and \`-o' together. If you
3530 your compiler does not support '-c' and '-o' together. If you
22153531 repeat this compilation, it may succeed, by chance, but you had better
22163532 avoid parallel builds (make -j) in this platform, or get a better
22173533 compiler."
22273543 fi
22283544
22293545 # Allow error messages only from the first compilation.
2230 if test "$suppress_opt" = yes; then
3546 if test yes = "$suppress_opt"; then
22313547 suppress_output=' >/dev/null 2>&1'
22323548 fi
22333549 fi
22343550
22353551 # Only build a position-dependent object if we build old libraries.
2236 if test "$build_old_libs" = yes; then
2237 if test "$pic_mode" != yes; then
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
22383554 # Don't build PIC code
22393555 command="$base_compile $qsrcfile$pie_flag"
22403556 else
22413557 command="$base_compile $qsrcfile $pic_flag"
22423558 fi
2243 if test "$compiler_c_o" = yes; then
3559 if test yes = "$compiler_c_o"; then
22443560 func_append command " -o $obj"
22453561 fi
22463562
22493565 func_show_eval_locale "$command" \
22503566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
22513567
2252 if test "$need_locks" = warn &&
3568 if test warn = "$need_locks" &&
22533569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
22543570 $ECHO "\
22553571 *** ERROR, $lockfile contains:
22603576
22613577 This indicates that another process is trying to use the same
22623578 temporary object file, and libtool could not work around it because
2263 your compiler does not support \`-c' and \`-o' together. If you
3579 your compiler does not support '-c' and '-o' together. If you
22643580 repeat this compilation, it may succeed, by chance, but you had better
22653581 avoid parallel builds (make -j) in this platform, or get a better
22663582 compiler."
22803596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
22813597
22823598 # Unlock the critical section if it was locked
2283 if test "$need_locks" != no; then
3599 if test no != "$need_locks"; then
22843600 removelist=$lockfile
22853601 $RM "$lockfile"
22863602 fi
22903606 }
22913607
22923608 $opt_help || {
2293 test "$opt_mode" = compile && func_mode_compile ${1+"$@"}
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
22943610 }
22953611
22963612 func_mode_help ()
23103626 Remove files from the build directory.
23113627
23123628 RM is the name of the program to use to delete files associated with each FILE
2313 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
23143630 to RM.
23153631
23163632 If FILE is a libtool library, object or program, all the files associated
23293645 -no-suppress do not suppress compiler output for multiple passes
23303646 -prefer-pic try to build PIC objects only
23313647 -prefer-non-pic try to build non-PIC objects only
2332 -shared do not build a \`.o' file suitable for static linking
2333 -static only build a \`.o' file suitable for static linking
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
23343650 -Wc,FLAG pass FLAG directly to the compiler
23353651
2336 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
23373653 from the given SOURCEFILE.
23383654
23393655 The output file name is determined by removing the directory component from
2340 SOURCEFILE, then substituting the C source code suffix \`.c' with the
2341 library object suffix, \`.lo'."
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
23423658 ;;
23433659
23443660 execute)
23513667
23523668 -dlopen FILE add the directory containing FILE to the library path
23533669
2354 This mode sets the library path environment variable according to \`-dlopen'
3670 This mode sets the library path environment variable according to '-dlopen'
23553671 flags.
23563672
23573673 If any of the ARGS are libtool executable wrappers, then they are translated
23703686 Each LIBDIR is a directory that contains libtool libraries.
23713687
23723688 The commands that this mode executes may require superuser privileges. Use
2373 the \`--dry-run' option if you just want to see what would be executed."
3689 the '--dry-run' option if you just want to see what would be executed."
23743690 ;;
23753691
23763692 install)
23803696 Install executables or libraries.
23813697
23823698 INSTALL-COMMAND is the installation command. The first component should be
2383 either the \`install' or \`cp' program.
3699 either the 'install' or 'cp' program.
23843700
23853701 The following components of INSTALL-COMMAND are treated specially:
23863702
24063722 -avoid-version do not add a version suffix if possible
24073723 -bindir BINDIR specify path to binaries directory (for systems where
24083724 libraries must be found in the PATH setting at runtime)
2409 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
24103726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
24113727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
24123728 -export-symbols SYMFILE
24203736 -no-install link a not-installable executable
24213737 -no-undefined declare that a library does not refer to external symbols
24223738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
2423 -objectlist FILE Use a list of object files found in FILE to specify objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
24243741 -precious-files-regex REGEX
24253742 don't remove output files matching REGEX
24263743 -release RELEASE specify package release information
24403757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
24413758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
24423759
2443 All other options (arguments beginning with \`-') are ignored.
2444
2445 Every other argument is treated as a filename. Files ending in \`.la' are
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
24463763 treated as uninstalled libtool libraries, other files are standard or library
24473764 object files.
24483765
2449 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
2450 only library objects (\`.lo' files) may be specified, and \`-rpath' is
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
24513768 required, except when creating a convenience library.
24523769
2453 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
2454 using \`ar' and \`ranlib', or on Windows using \`lib'.
2455
2456 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
24573774 is created, otherwise an executable program is created."
24583775 ;;
24593776
24643781 Remove libraries from an installation directory.
24653782
24663783 RM is the name of the program to use to delete files associated with each FILE
2467 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
24683785 to RM.
24693786
24703787 If FILE is a libtool library, all the files associated with it are deleted.
24723789 ;;
24733790
24743791 *)
2475 func_fatal_help "invalid operation mode \`$opt_mode'"
3792 func_fatal_help "invalid operation mode '$opt_mode'"
24763793 ;;
24773794 esac
24783795
24793796 echo
2480 $ECHO "Try \`$progname --help' for more information about other modes."
3797 $ECHO "Try '$progname --help' for more information about other modes."
24813798 }
24823799
24833800 # Now that we've collected a possible --mode arg, show help if necessary
24843801 if $opt_help; then
2485 if test "$opt_help" = :; then
3802 if test : = "$opt_help"; then
24863803 func_mode_help
24873804 else
24883805 {
24903807 for opt_mode in compile link execute install finish uninstall clean; do
24913808 func_mode_help
24923809 done
2493 } | sed -n '1p; 2,$s/^Usage:/ or: /p'
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
24943811 {
24953812 func_help noexit
24963813 for opt_mode in compile link execute install finish uninstall clean; do
24983815 func_mode_help
24993816 done
25003817 } |
2501 sed '1d
3818 $SED '1d
25023819 /^When reporting/,/^Report/{
25033820 H
25043821 d
25153832 # func_mode_execute arg...
25163833 func_mode_execute ()
25173834 {
2518 $opt_debug
3835 $debug_cmd
3836
25193837 # The first argument is the command name.
2520 cmd="$nonopt"
3838 cmd=$nonopt
25213839 test -z "$cmd" && \
25223840 func_fatal_help "you must specify a COMMAND"
25233841
25243842 # Handle -dlopen flags immediately.
25253843 for file in $opt_dlopen; do
25263844 test -f "$file" \
2527 || func_fatal_help "\`$file' is not a file"
3845 || func_fatal_help "'$file' is not a file"
25283846
25293847 dir=
25303848 case $file in
25343852
25353853 # Check to see that this really is a libtool archive.
25363854 func_lalib_unsafe_p "$file" \
2537 || func_fatal_help "\`$lib' is not a valid libtool archive"
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
25383856
25393857 # Read the libtool library.
25403858 dlname=
25453863 if test -z "$dlname"; then
25463864 # Warn if it was a shared library.
25473865 test -n "$library_names" && \
2548 func_warning "\`$file' was not linked with \`-export-dynamic'"
3866 func_warning "'$file' was not linked with '-export-dynamic'"
25493867 continue
25503868 fi
25513869
25523870 func_dirname "$file" "" "."
2553 dir="$func_dirname_result"
3871 dir=$func_dirname_result
25543872
25553873 if test -f "$dir/$objdir/$dlname"; then
25563874 func_append dir "/$objdir"
25573875 else
25583876 if test ! -f "$dir/$dlname"; then
2559 func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
25603878 fi
25613879 fi
25623880 ;;
25643882 *.lo)
25653883 # Just add the directory containing the .lo file.
25663884 func_dirname "$file" "" "."
2567 dir="$func_dirname_result"
3885 dir=$func_dirname_result
25683886 ;;
25693887
25703888 *)
2571 func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
25723890 continue
25733891 ;;
25743892 esac
25753893
25763894 # Get the absolute pathname.
25773895 absdir=`cd "$dir" && pwd`
2578 test -n "$absdir" && dir="$absdir"
3896 test -n "$absdir" && dir=$absdir
25793897
25803898 # Now add the directory to shlibpath_var.
25813899 if eval "test -z \"\$$shlibpath_var\""; then
25873905
25883906 # This variable tells wrapper scripts just to set shlibpath_var
25893907 # rather than running their programs.
2590 libtool_execute_magic="$magic"
3908 libtool_execute_magic=$magic
25913909
25923910 # Check if any of the arguments is a wrapper script.
25933911 args=
26003918 if func_ltwrapper_script_p "$file"; then
26013919 func_source "$file"
26023920 # Transform arg to wrapped name.
2603 file="$progdir/$program"
3921 file=$progdir/$program
26043922 elif func_ltwrapper_executable_p "$file"; then
26053923 func_ltwrapper_scriptname "$file"
26063924 func_source "$func_ltwrapper_scriptname_result"
26073925 # Transform arg to wrapped name.
2608 file="$progdir/$program"
3926 file=$progdir/$program
26093927 fi
26103928 ;;
26113929 esac
26133931 func_append_quoted args "$file"
26143932 done
26153933
2616 if test "X$opt_dry_run" = Xfalse; then
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
26173943 if test -n "$shlibpath_var"; then
26183944 # Export the shlibpath_var.
26193945 eval "export $shlibpath_var"
26303956 done
26313957
26323958 # Now prepare to actually exec the command.
2633 exec_cmd="\$cmd$args"
2634 else
2635 # Display what would be done.
2636 if test -n "$shlibpath_var"; then
2637 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
2638 echo "export $shlibpath_var"
2639 fi
2640 $ECHO "$cmd$args"
2641 exit $EXIT_SUCCESS
3959 exec_cmd=\$cmd$args
26423960 fi
26433961 }
26443962
2645 test "$opt_mode" = execute && func_mode_execute ${1+"$@"}
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
26463964
26473965
26483966 # func_mode_finish arg...
26493967 func_mode_finish ()
26503968 {
2651 $opt_debug
3969 $debug_cmd
3970
26523971 libs=
26533972 libdirs=
26543973 admincmds=
26623981 if func_lalib_unsafe_p "$opt"; then
26633982 func_append libs " $opt"
26643983 else
2665 func_warning "\`$opt' is not a valid libtool archive"
3984 func_warning "'$opt' is not a valid libtool archive"
26663985 fi
26673986
26683987 else
2669 func_fatal_error "invalid argument \`$opt'"
3988 func_fatal_error "invalid argument '$opt'"
26703989 fi
26713990 done
26723991
26814000 # Remove sysroot references
26824001 if $opt_dry_run; then
26834002 for lib in $libs; do
2684 echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
26854004 done
26864005 else
26874006 tmpdir=`func_mktempdir`
26884007 for lib in $libs; do
2689 sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
26904009 > $tmpdir/tmp-la
26914010 mv -f $tmpdir/tmp-la $lib
26924011 done
27114030 fi
27124031
27134032 # Exit here if they wanted silent mode.
2714 $opt_silent && exit $EXIT_SUCCESS
4033 $opt_quiet && exit $EXIT_SUCCESS
27154034
27164035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
27174036 echo "----------------------------------------------------------------------"
27224041 echo
27234042 echo "If you ever happen to want to link against installed libraries"
27244043 echo "in a given directory, LIBDIR, you must either use libtool, and"
2725 echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
27264045 echo "flag during linking and do at least one of the following:"
27274046 if test -n "$shlibpath_var"; then
2728 echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
27294048 echo " during execution"
27304049 fi
27314050 if test -n "$runpath_var"; then
2732 echo " - add LIBDIR to the \`$runpath_var' environment variable"
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
27334052 echo " during linking"
27344053 fi
27354054 if test -n "$hardcode_libdir_flag_spec"; then
27364055 libdir=LIBDIR
27374056 eval flag=\"$hardcode_libdir_flag_spec\"
27384057
2739 $ECHO " - use the \`$flag' linker flag"
4058 $ECHO " - use the '$flag' linker flag"
27404059 fi
27414060 if test -n "$admincmds"; then
27424061 $ECHO " - have your system administrator run these commands:$admincmds"
27434062 fi
27444063 if test -f /etc/ld.so.conf; then
2745 echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
27464065 fi
27474066 echo
27484067
27614080 exit $EXIT_SUCCESS
27624081 }
27634082
2764 test "$opt_mode" = finish && func_mode_finish ${1+"$@"}
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
27654084
27664085
27674086 # func_mode_install arg...
27684087 func_mode_install ()
27694088 {
2770 $opt_debug
4089 $debug_cmd
4090
27714091 # There may be an optional sh(1) argument at the beginning of
27724092 # install_prog (especially on Windows NT).
2773 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
27744094 # Allow the use of GNU shtool's install command.
2775 case $nonopt in *shtool*) :;; *) false;; esac; then
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
27764097 # Aesthetically quote it.
27774098 func_quote_for_eval "$nonopt"
27784099 install_prog="$func_quote_for_eval_result "
27994120 opts=
28004121 prev=
28014122 install_type=
2802 isdir=no
4123 isdir=false
28034124 stripme=
28044125 no_mode=:
28054126 for arg
28124133 fi
28134134
28144135 case $arg in
2815 -d) isdir=yes ;;
4136 -d) isdir=: ;;
28164137 -f)
28174138 if $install_cp; then :; else
28184139 prev=$arg
28304151 *)
28314152 # If the previous option needed an argument, then skip it.
28324153 if test -n "$prev"; then
2833 if test "x$prev" = x-m && test -n "$install_override_mode"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
28344155 arg2=$install_override_mode
28354156 no_mode=false
28364157 fi
28554176 func_fatal_help "you must specify an install program"
28564177
28574178 test -n "$prev" && \
2858 func_fatal_help "the \`$prev' option requires an argument"
4179 func_fatal_help "the '$prev' option requires an argument"
28594180
28604181 if test -n "$install_override_mode" && $no_mode; then
28614182 if $install_cp; then :; else
28774198 dest=$func_stripname_result
28784199
28794200 # Check to see that the destination is a directory.
2880 test -d "$dest" && isdir=yes
2881 if test "$isdir" = yes; then
2882 destdir="$dest"
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
28834204 destname=
28844205 else
28854206 func_dirname_and_basename "$dest" "" "."
2886 destdir="$func_dirname_result"
2887 destname="$func_basename_result"
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
28884209
28894210 # Not a directory, so check to see that there is only one file specified.
28904211 set dummy $files; shift
28914212 test "$#" -gt 1 && \
2892 func_fatal_help "\`$dest' is not a directory"
4213 func_fatal_help "'$dest' is not a directory"
28934214 fi
28944215 case $destdir in
28954216 [\\/]* | [A-Za-z]:[\\/]*) ;;
28984219 case $file in
28994220 *.lo) ;;
29004221 *)
2901 func_fatal_help "\`$destdir' must be an absolute directory name"
4222 func_fatal_help "'$destdir' must be an absolute directory name"
29024223 ;;
29034224 esac
29044225 done
29074228
29084229 # This variable tells wrapper scripts just to set variables rather
29094230 # than running their programs.
2910 libtool_install_magic="$magic"
4231 libtool_install_magic=$magic
29114232
29124233 staticlibs=
29134234 future_libdirs=
29274248
29284249 # Check to see that this really is a libtool archive.
29294250 func_lalib_unsafe_p "$file" \
2930 || func_fatal_help "\`$file' is not a valid libtool archive"
4251 || func_fatal_help "'$file' is not a valid libtool archive"
29314252
29324253 library_names=
29334254 old_library=
29494270 fi
29504271
29514272 func_dirname "$file" "/" ""
2952 dir="$func_dirname_result"
4273 dir=$func_dirname_result
29534274 func_append dir "$objdir"
29544275
29554276 if test -n "$relink_command"; then
29634284 # are installed into $libdir/../bin (currently, that works fine)
29644285 # but it's something to keep an eye on.
29654286 test "$inst_prefix_dir" = "$destdir" && \
2966 func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
29674288
29684289 if test -n "$inst_prefix_dir"; then
29694290 # Stick the inst_prefix_dir data into the link command.
29724293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
29734294 fi
29744295
2975 func_warning "relinking \`$file'"
4296 func_warning "relinking '$file'"
29764297 func_show_eval "$relink_command" \
2977 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
29784299 fi
29794300
29804301 # See the names of the shared library.
29814302 set dummy $library_names; shift
29824303 if test -n "$1"; then
2983 realname="$1"
4304 realname=$1
29844305 shift
29854306
2986 srcname="$realname"
2987 test -n "$relink_command" && srcname="$realname"T
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
29884309
29894310 # Install the shared library and build the symlinks.
29904311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
29914312 'exit $?'
2992 tstripme="$stripme"
4313 tstripme=$stripme
29934314 case $host_os in
29944315 cygwin* | mingw* | pw32* | cegcc*)
29954316 case $realname in
29964317 *.dll.a)
2997 tstripme=""
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
29984326 ;;
29994327 esac
30004328 ;;
30054333
30064334 if test "$#" -gt 0; then
30074335 # Delete the old symlinks, and create new ones.
3008 # Try `ln -sf' first, because the `ln' binary might depend on
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
30094337 # the symlink we replace! Solaris /bin/ln does not understand -f,
30104338 # so we also need to try rm && ln -s.
30114339 for linkname
30164344 fi
30174345
30184346 # Do each command in the postinstall commands.
3019 lib="$destdir/$realname"
4347 lib=$destdir/$realname
30204348 func_execute_cmds "$postinstall_cmds" 'exit $?'
30214349 fi
30224350
30234351 # Install the pseudo-library for information purposes.
30244352 func_basename "$file"
3025 name="$func_basename_result"
3026 instname="$dir/$name"i
4353 name=$func_basename_result
4354 instname=$dir/${name}i
30274355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
30284356
30294357 # Maybe install the static library, too.
30354363
30364364 # Figure out destination file name, if it wasn't already specified.
30374365 if test -n "$destname"; then
3038 destfile="$destdir/$destname"
4366 destfile=$destdir/$destname
30394367 else
30404368 func_basename "$file"
3041 destfile="$func_basename_result"
3042 destfile="$destdir/$destfile"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
30434371 fi
30444372
30454373 # Deduce the name of the destination old-style object file.
30494377 staticdest=$func_lo2o_result
30504378 ;;
30514379 *.$objext)
3052 staticdest="$destfile"
4380 staticdest=$destfile
30534381 destfile=
30544382 ;;
30554383 *)
3056 func_fatal_help "cannot copy a libtool object to \`$destfile'"
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
30574385 ;;
30584386 esac
30594387
30624390 func_show_eval "$install_prog $file $destfile" 'exit $?'
30634391
30644392 # Install the old object if enabled.
3065 if test "$build_old_libs" = yes; then
4393 if test yes = "$build_old_libs"; then
30664394 # Deduce the name of the old-style object file.
30674395 func_lo2o "$file"
30684396 staticobj=$func_lo2o_result
30744402 *)
30754403 # Figure out destination file name, if it wasn't already specified.
30764404 if test -n "$destname"; then
3077 destfile="$destdir/$destname"
4405 destfile=$destdir/$destname
30784406 else
30794407 func_basename "$file"
3080 destfile="$func_basename_result"
3081 destfile="$destdir/$destfile"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
30824410 fi
30834411
30844412 # If the file is missing, and there is a .exe on the end, strip it
30854413 # because it is most likely a libtool script we actually want to
30864414 # install
3087 stripped_ext=""
4415 stripped_ext=
30884416 case $file in
30894417 *.exe)
30904418 if test ! -f "$file"; then
30914419 func_stripname '' '.exe' "$file"
30924420 file=$func_stripname_result
3093 stripped_ext=".exe"
4421 stripped_ext=.exe
30944422 fi
30954423 ;;
30964424 esac
31184446
31194447 # Check the variables that should have been set.
31204448 test -z "$generated_by_libtool_version" && \
3121 func_fatal_error "invalid libtool wrapper script \`$wrapper'"
3122
3123 finalize=yes
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
31244452 for lib in $notinst_deplibs; do
31254453 # Check to see that each library is installed.
31264454 libdir=
31274455 if test -f "$lib"; then
31284456 func_source "$lib"
31294457 fi
3130 libfile="$libdir/"`$ECHO "$lib" | $SED 's%^.*/%%g'` ### testsuite: skip nested quoting test
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
31314459 if test -n "$libdir" && test ! -f "$libfile"; then
3132 func_warning "\`$lib' has not been installed in \`$libdir'"
3133 finalize=no
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
31344462 fi
31354463 done
31364464
31384466 func_source "$wrapper"
31394467
31404468 outputname=
3141 if test "$fast_install" = no && test -n "$relink_command"; then
4469 if test no = "$fast_install" && test -n "$relink_command"; then
31424470 $opt_dry_run || {
3143 if test "$finalize" = yes; then
4471 if $finalize; then
31444472 tmpdir=`func_mktempdir`
31454473 func_basename "$file$stripped_ext"
3146 file="$func_basename_result"
3147 outputname="$tmpdir/$file"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
31484476 # Replace the output file specification.
31494477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
31504478
3151 $opt_silent || {
4479 $opt_quiet || {
31524480 func_quote_for_expand "$relink_command"
31534481 eval "func_echo $func_quote_for_expand_result"
31544482 }
31554483 if eval "$relink_command"; then :
31564484 else
3157 func_error "error: relink \`$file' with the above command before installing it"
4485 func_error "error: relink '$file' with the above command before installing it"
31584486 $opt_dry_run || ${RM}r "$tmpdir"
31594487 continue
31604488 fi
3161 file="$outputname"
4489 file=$outputname
31624490 else
3163 func_warning "cannot relink \`$file'"
4491 func_warning "cannot relink '$file'"
31644492 fi
31654493 }
31664494 else
31974525
31984526 for file in $staticlibs; do
31994527 func_basename "$file"
3200 name="$func_basename_result"
4528 name=$func_basename_result
32014529
32024530 # Set up the ranlib parameters.
3203 oldlib="$destdir/$name"
4531 oldlib=$destdir/$name
32044532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
32054533 tool_oldlib=$func_to_tool_file_result
32064534
32154543 done
32164544
32174545 test -n "$future_libdirs" && \
3218 func_warning "remember to run \`$progname --finish$future_libdirs'"
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
32194547
32204548 if test -n "$current_libdirs"; then
32214549 # Maybe just do a dry run.
32224550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
3223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
32244552 else
32254553 exit $EXIT_SUCCESS
32264554 fi
32274555 }
32284556
3229 test "$opt_mode" = install && func_mode_install ${1+"$@"}
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
32304558
32314559
32324560 # func_generate_dlsyms outputname originator pic_p
32344562 # a dlpreopen symbol table.
32354563 func_generate_dlsyms ()
32364564 {
3237 $opt_debug
3238 my_outputname="$1"
3239 my_originator="$2"
3240 my_pic_p="${3-no}"
3241 my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
32424571 my_dlsyms=
32434572
3244 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
32454574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
3246 my_dlsyms="${my_outputname}S.c"
4575 my_dlsyms=${my_outputname}S.c
32474576 else
32484577 func_error "not configured to extract global symbols from dlpreopened files"
32494578 fi
32544583 "") ;;
32554584 *.c)
32564585 # Discover the nlist of each of the dlfiles.
3257 nlist="$output_objdir/${my_outputname}.nm"
4586 nlist=$output_objdir/$my_outputname.nm
32584587
32594588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
32604589
32624591 func_verbose "creating $output_objdir/$my_dlsyms"
32634592
32644593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
3265 /* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
3266 /* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
32674596
32684597 #ifdef __cplusplus
32694598 extern \"C\" {
32704599 #endif
32714600
3272 #if defined(__GNUC__) && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
32734602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
32744603 #endif
32754604
32764605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
3277 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
3278 /* DATA imports from DLLs on WIN32 con't be const, because runtime
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
32794608 relocations are performed -- see ld's documentation on pseudo-relocs. */
32804609 # define LT_DLSYM_CONST
3281 #elif defined(__osf__)
4610 #elif defined __osf__
32824611 /* This system does not cope well with relocations in const data. */
32834612 # define LT_DLSYM_CONST
32844613 #else
32854614 # define LT_DLSYM_CONST const
32864615 #endif
32874616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
32884619 /* External symbol declarations for the compiler. */\
32894620 "
32904621
3291 if test "$dlself" = yes; then
3292 func_verbose "generating symbol list for \`$output'"
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
32934624
32944625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
32954626
32974628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
32984629 for progfile in $progfiles; do
32994630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
3300 func_verbose "extracting global C symbols from \`$func_to_tool_file_result'"
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
33014632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
33024633 done
33034634
33174648
33184649 # Prepare the list of exported symbols
33194650 if test -z "$export_symbols"; then
3320 export_symbols="$output_objdir/$outputname.exp"
4651 export_symbols=$output_objdir/$outputname.exp
33214652 $opt_dry_run || {
33224653 $RM $export_symbols
3323 eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
33244655 case $host in
33254656 *cygwin* | *mingw* | *cegcc* )
33264657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
33304661 }
33314662 else
33324663 $opt_dry_run || {
3333 eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
33344665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
33354666 eval '$MV "$nlist"T "$nlist"'
33364667 case $host in
33444675 fi
33454676
33464677 for dlprefile in $dlprefiles; do
3347 func_verbose "extracting global C symbols from \`$dlprefile'"
4678 func_verbose "extracting global C symbols from '$dlprefile'"
33484679 func_basename "$dlprefile"
3349 name="$func_basename_result"
4680 name=$func_basename_result
33504681 case $host in
33514682 *cygwin* | *mingw* | *cegcc* )
33524683 # if an import library, we need to obtain dlname
33534684 if func_win32_import_lib_p "$dlprefile"; then
33544685 func_tr_sh "$dlprefile"
33554686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
3356 dlprefile_dlbasename=""
4687 dlprefile_dlbasename=
33574688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
33584689 # Use subshell, to avoid clobbering current variable values
33594690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
3360 if test -n "$dlprefile_dlname" ; then
4691 if test -n "$dlprefile_dlname"; then
33614692 func_basename "$dlprefile_dlname"
3362 dlprefile_dlbasename="$func_basename_result"
4693 dlprefile_dlbasename=$func_basename_result
33634694 else
33644695 # no lafile. user explicitly requested -dlpreopen <import library>.
33654696 $sharedlib_from_linklib_cmd "$dlprefile"
33674698 fi
33684699 fi
33694700 $opt_dry_run || {
3370 if test -n "$dlprefile_dlbasename" ; then
4701 if test -n "$dlprefile_dlbasename"; then
33714702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
33724703 else
33734704 func_warning "Could not compute DLL name from $name"
34234754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
34244755 fi
34254756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
34264762 echo >> "$output_objdir/$my_dlsyms" "\
34274763
34284764 /* The mapping between symbol names and symbols. */
34314767 void *address;
34324768 } lt_dlsymlist;
34334769 extern LT_DLSYM_CONST lt_dlsymlist
3434 lt_${my_prefix}_LTX_preloaded_symbols[];
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
34354786 LT_DLSYM_CONST lt_dlsymlist
34364787 lt_${my_prefix}_LTX_preloaded_symbols[] =
3437 {\
3438 { \"$my_originator\", (void *) 0 },"
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
34394794
34404795 case $need_lib_prefix in
34414796 no)
34774832 *-*-hpux*)
34784833 pic_flag_for_symtable=" $pic_flag" ;;
34794834 *)
3480 if test "X$my_pic_p" != Xno; then
3481 pic_flag_for_symtable=" $pic_flag"
3482 fi
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
34834836 ;;
34844837 esac
34854838 ;;
34964849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
34974850
34984851 # Clean up the generated files.
3499 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
35004853
35014854 # Transform the symbol file into the correct name.
3502 symfileobj="$output_objdir/${my_outputname}S.$objext"
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
35034856 case $host in
35044857 *cygwin* | *mingw* | *cegcc* )
35054858 if test -f "$output_objdir/$my_outputname.def"; then
35174870 esac
35184871 ;;
35194872 *)
3520 func_fatal_error "unknown suffix for \`$my_dlsyms'"
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
35214874 ;;
35224875 esac
35234876 else
35294882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
35304883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
35314884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
35324911 }
35334912
35344913 # func_win32_libid arg
35404919 # Despite the name, also deal with 64 bit binaries.
35414920 func_win32_libid ()
35424921 {
3543 $opt_debug
3544 win32_libid_type="unknown"
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
35454925 win32_fileres=`file -L $1 2>/dev/null`
35464926 case $win32_fileres in
35474927 *ar\ archive\ import\ library*) # definitely import
35514931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
35524932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
35534933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
3554 func_to_tool_file "$1" func_convert_file_msys_to_w32
3555 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
3556 $SED -n -e '
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
35574948 1,100{
35584949 / I /{
3559 s,.*,import,
4950 s|.*|import|
35604951 p
35614952 q
35624953 }
35634954 }'`
4955 ;;
4956 esac
35644957 case $win32_nmres in
35654958 import*) win32_libid_type="x86 archive import";;
35664959 *) win32_libid_type="x86 archive static";;
35924985 # $sharedlib_from_linklib_result
35934986 func_cygming_dll_for_implib ()
35944987 {
3595 $opt_debug
4988 $debug_cmd
4989
35964990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
35974991 }
35984992
36095003 # specified import library.
36105004 func_cygming_dll_for_implib_fallback_core ()
36115005 {
3612 $opt_debug
5006 $debug_cmd
5007
36135008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
36145009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
36155010 $SED '/^Contents of section '"$match_literal"':/{
36455040 /./p' |
36465041 # we now have a list, one entry per line, of the stringified
36475042 # contents of the appropriate section of all members of the
3648 # archive which possess that section. Heuristic: eliminate
3649 # all those which have a first or second character that is
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
36505045 # a '.' (that is, objdump's representation of an unprintable
36515046 # character.) This should work for all archives with less than
36525047 # 0x302f exports -- but will fail for DLLs whose name actually
36555050 #
36565051 # Of those that remain, print the first one.
36575052 $SED -e '/^\./d;/^.\./d;q'
3658 }
3659
3660 # func_cygming_gnu_implib_p ARG
3661 # This predicate returns with zero status (TRUE) if
3662 # ARG is a GNU/binutils-style import library. Returns
3663 # with nonzero status (FALSE) otherwise.
3664 func_cygming_gnu_implib_p ()
3665 {
3666 $opt_debug
3667 func_to_tool_file "$1" func_convert_file_msys_to_w32
3668 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
3669 test -n "$func_cygming_gnu_implib_tmp"
3670 }
3671
3672 # func_cygming_ms_implib_p ARG
3673 # This predicate returns with zero status (TRUE) if
3674 # ARG is an MS-style import library. Returns
3675 # with nonzero status (FALSE) otherwise.
3676 func_cygming_ms_implib_p ()
3677 {
3678 $opt_debug
3679 func_to_tool_file "$1" func_convert_file_msys_to_w32
3680 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
3681 test -n "$func_cygming_ms_implib_tmp"
36825053 }
36835054
36845055 # func_cygming_dll_for_implib_fallback ARG
36945065 # $sharedlib_from_linklib_result
36955066 func_cygming_dll_for_implib_fallback ()
36965067 {
3697 $opt_debug
3698 if func_cygming_gnu_implib_p "$1" ; then
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
36995071 # binutils import library
37005072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
3701 elif func_cygming_ms_implib_p "$1" ; then
5073 elif func_cygming_ms_implib_p "$1"; then
37025074 # ms-generated import library
37035075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
37045076 else
37055077 # unknown
3706 sharedlib_from_linklib_result=""
5078 sharedlib_from_linklib_result=
37075079 fi
37085080 }
37095081
37115083 # func_extract_an_archive dir oldlib
37125084 func_extract_an_archive ()
37135085 {
3714 $opt_debug
3715 f_ex_an_ar_dir="$1"; shift
3716 f_ex_an_ar_oldlib="$1"
3717 if test "$lock_old_archive_extraction" = yes; then
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
37185091 lockfile=$f_ex_an_ar_oldlib.lock
37195092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
37205093 func_echo "Waiting for $lockfile to be removed"
37235096 fi
37245097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
37255098 'stat=$?; rm -f "$lockfile"; exit $stat'
3726 if test "$lock_old_archive_extraction" = yes; then
5099 if test yes = "$lock_old_archive_extraction"; then
37275100 $opt_dry_run || rm -f "$lockfile"
37285101 fi
37295102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
37375110 # func_extract_archives gentop oldlib ...
37385111 func_extract_archives ()
37395112 {
3740 $opt_debug
3741 my_gentop="$1"; shift
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
37425116 my_oldlibs=${1+"$@"}
3743 my_oldobjs=""
3744 my_xlib=""
3745 my_xabs=""
3746 my_xdir=""
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
37475121
37485122 for my_xlib in $my_oldlibs; do
37495123 # Extract the objects.
37505124 case $my_xlib in
3751 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
37525126 *) my_xabs=`pwd`"/$my_xlib" ;;
37535127 esac
37545128 func_basename "$my_xlib"
3755 my_xlib="$func_basename_result"
5129 my_xlib=$func_basename_result
37565130 my_xlib_u=$my_xlib
37575131 while :; do
37585132 case " $extracted_archives " in
37645138 esac
37655139 done
37665140 extracted_archives="$extracted_archives $my_xlib_u"
3767 my_xdir="$my_gentop/$my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
37685142
37695143 func_mkdir_p "$my_xdir"
37705144
37775151 cd $my_xdir || exit $?
37785152 darwin_archive=$my_xabs
37795153 darwin_curdir=`pwd`
3780 darwin_base_archive=`basename "$darwin_archive"`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
37815156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
37825157 if test -n "$darwin_arches"; then
37835158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
37845159 darwin_arch=
37855160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
3786 for darwin_arch in $darwin_arches ; do
3787 func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3788 $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
3789 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
3790 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
37915166 cd "$darwin_curdir"
3792 $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
37935168 done # $darwin_arches
37945169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
3795 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
37965171 darwin_file=
37975172 darwin_files=
37985173 for darwin_file in $darwin_filelist; do
38145189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
38155190 done
38165191
3817 func_extract_archives_result="$my_oldobjs"
5192 func_extract_archives_result=$my_oldobjs
38185193 }
38195194
38205195
38295204 #
38305205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
38315206 # variable will take. If 'yes', then the emitted script
3832 # will assume that the directory in which it is stored is
5207 # will assume that the directory where it is stored is
38335208 # the $objdir directory. This is a cygwin/mingw-specific
38345209 # behavior.
38355210 func_emit_wrapper ()
38405215 #! $SHELL
38415216
38425217 # $output - temporary wrapper script for $objdir/$outputname
3843 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
38445219 #
38455220 # The $output program cannot be directly executed until all the libtool
38465221 # libraries that it depends on are installed.
38975272
38985273 # Very basic option parsing. These options are (a) specific to
38995274 # the libtool wrapper, (b) are identical between the wrapper
3900 # /script/ and the wrapper /executable/ which is used only on
5275 # /script/ and the wrapper /executable/ that is used only on
39015276 # windows platforms, and (c) all begin with the string "--lt-"
3902 # (application programs are unlikely to have options which match
5277 # (application programs are unlikely to have options that match
39035278 # this pattern).
39045279 #
39055280 # There are only two supported options: --lt-debug and
39325307
39335308 # Print the debug banner immediately:
39345309 if test -n \"\$lt_option_debug\"; then
3935 echo \"${outputname}:${output}:\${LINENO}: libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\" 1>&2
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
39365311 fi
39375312 }
39385313
39435318 lt_dump_args_N=1;
39445319 for lt_arg
39455320 do
3946 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[\$lt_dump_args_N]: \$lt_arg\"
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
39475322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
39485323 done
39495324 }
39575332 *-*-mingw | *-*-os2* | *-cegcc*)
39585333 $ECHO "\
39595334 if test -n \"\$lt_option_debug\"; then
3960 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir\\\\\$program\" 1>&2
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
39615336 func_lt_dump_args \${1+\"\$@\"} 1>&2
39625337 fi
39635338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
39675342 *)
39685343 $ECHO "\
39695344 if test -n \"\$lt_option_debug\"; then
3970 \$ECHO \"${outputname}:${output}:\${LINENO}: newargv[0]: \$progdir/\$program\" 1>&2
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
39715346 func_lt_dump_args \${1+\"\$@\"} 1>&2
39725347 fi
39735348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
40425417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
40435418 "
40445419
4045 if test "$fast_install" = yes; then
5420 if test yes = "$fast_install"; then
40465421 $ECHO "\
40475422 program=lt-'$outputname'$exeext
40485423 progdir=\"\$thisdir/$objdir\"
40495424
40505425 if test ! -f \"\$progdir/\$program\" ||
4051 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
40525427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
40535428
40545429 file=\"\$\$-\$program\"
40655440 if test -n \"\$relink_command\"; then
40665441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
40675442 else
4068 $ECHO \"\$relink_command_output\" >&2
5443 \$ECHO \"\$relink_command_output\" >&2
40695444 $RM \"\$progdir/\$file\"
40705445 exit 1
40715446 fi
41005475 fi
41015476
41025477 # Export our shlibpath_var if we have one.
4103 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
41045479 $ECHO "\
41055480 # Add our own library path to $shlibpath_var
41065481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
41205495 fi
41215496 else
41225497 # The program doesn't exist.
4123 \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
41245499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
41255500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
41265501 exit 1
41395514 cat <<EOF
41405515
41415516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4142 Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
41435518
41445519 The $output program cannot be directly executed until all the libtool
41455520 libraries that it depends on are installed.
41745549 #include <fcntl.h>
41755550 #include <sys/stat.h>
41765551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
41775554 /* declarations of non-ANSI functions */
4178 #if defined(__MINGW32__)
5555 #if defined __MINGW32__
41795556 # ifdef __STRICT_ANSI__
41805557 int _putenv (const char *);
41815558 # endif
4182 #elif defined(__CYGWIN__)
5559 #elif defined __CYGWIN__
41835560 # ifdef __STRICT_ANSI__
41845561 char *realpath (const char *, char *);
41855562 int putenv (char *);
41865563 int setenv (const char *, const char *, int);
41875564 # endif
4188 /* #elif defined (other platforms) ... */
5565 /* #elif defined other_platform || defined ... */
41895566 #endif
41905567
41915568 /* portability defines, excluding path handling macros */
4192 #if defined(_MSC_VER)
5569 #if defined _MSC_VER
41935570 # define setmode _setmode
41945571 # define stat _stat
41955572 # define chmod _chmod
41965573 # define getcwd _getcwd
41975574 # define putenv _putenv
41985575 # define S_IXUSR _S_IEXEC
4199 # ifndef _INTPTR_T_DEFINED
4200 # define _INTPTR_T_DEFINED
4201 # define intptr_t int
4202 # endif
4203 #elif defined(__MINGW32__)
5576 #elif defined __MINGW32__
42045577 # define setmode _setmode
42055578 # define stat _stat
42065579 # define chmod _chmod
42075580 # define getcwd _getcwd
42085581 # define putenv _putenv
4209 #elif defined(__CYGWIN__)
5582 #elif defined __CYGWIN__
42105583 # define HAVE_SETENV
42115584 # define FOPEN_WB "wb"
4212 /* #elif defined (other platforms) ... */
5585 /* #elif defined other platforms ... */
42135586 #endif
42145587
4215 #if defined(PATH_MAX)
5588 #if defined PATH_MAX
42165589 # define LT_PATHMAX PATH_MAX
4217 #elif defined(MAXPATHLEN)
5590 #elif defined MAXPATHLEN
42185591 # define LT_PATHMAX MAXPATHLEN
42195592 #else
42205593 # define LT_PATHMAX 1024
42335606 # define PATH_SEPARATOR ':'
42345607 #endif
42355608
4236 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4237 defined (__OS2__)
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
42385611 # define HAVE_DOS_BASED_FILE_SYSTEM
42395612 # define FOPEN_WB "wb"
42405613 # ifndef DIR_SEPARATOR_2
42675640
42685641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
42695642 #define XFREE(stale) do { \
4270 if (stale) { free ((void *) stale); stale = 0; } \
5643 if (stale) { free (stale); stale = 0; } \
42715644 } while (0)
42725645
4273 #if defined(LT_DEBUGWRAPPER)
5646 #if defined LT_DEBUGWRAPPER
42745647 static int lt_debug = 1;
42755648 #else
42765649 static int lt_debug = 0;
42995672 EOF
43005673
43015674 cat <<EOF
4302 volatile const char * MAGIC_EXE = "$magic_exe";
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
43035681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
43045682 EOF
43055683
4306 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
43075685 func_to_host_path "$temp_rpath"
43085686 cat <<EOF
43095687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
43275705 EOF
43285706 fi
43295707
4330 if test "$fast_install" = yes; then
5708 if test yes = "$fast_install"; then
43315709 cat <<EOF
43325710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
43335711 EOF
43565734 char *actual_cwrapper_name;
43575735 char *target_name;
43585736 char *lt_argv_zero;
4359 intptr_t rval = 127;
5737 int rval = 127;
43605738
43615739 int i;
43625740
43635741 program_name = (char *) xstrdup (base_name (argv[0]));
4364 newargz = XMALLOC (char *, argc + 1);
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
43655743
43665744 /* very simple arg parsing; don't want to rely on getopt
43675745 * also, copy all non cwrapper options to newargz, except
43705748 newargc=0;
43715749 for (i = 1; i < argc; i++)
43725750 {
4373 if (strcmp (argv[i], dumpscript_opt) == 0)
5751 if (STREQ (argv[i], dumpscript_opt))
43745752 {
43755753 EOF
4376 case "$host" in
5754 case $host in
43775755 *mingw* | *cygwin* )
43785756 # make stdout use "unix" line endings
43795757 echo " setmode(1,_O_BINARY);"
43845762 lt_dump_script (stdout);
43855763 return 0;
43865764 }
4387 if (strcmp (argv[i], debug_opt) == 0)
5765 if (STREQ (argv[i], debug_opt))
43885766 {
43895767 lt_debug = 1;
43905768 continue;
43915769 }
4392 if (strcmp (argv[i], ltwrapper_option_prefix) == 0)
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
43935771 {
43945772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
43955773 namespace, but it is not one of the ones we know about and
44125790 EOF
44135791 cat <<EOF
44145792 /* The GNU banner must be the first non-error debug message */
4415 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE$TIMESTAMP) $VERSION\n");
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
44165794 EOF
44175795 cat <<"EOF"
44185796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
45235901 cat <<"EOF"
45245902 /* execv doesn't actually work on mingw as expected on unix */
45255903 newargz = prepare_spawn (newargz);
4526 rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
45275905 if (rval == -1)
45285906 {
45295907 /* failed to start process */
45685946 {
45695947 const char *base;
45705948
4571 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
45725950 /* Skip over the disk name in MSDOS pathnames. */
45735951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
45745952 name += 2;
46276005 const char *p_next;
46286006 /* static buffer for getcwd */
46296007 char tmp[LT_PATHMAX + 1];
4630 int tmp_len;
6008 size_t tmp_len;
46316009 char *concat_name;
46326010
46336011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
46376015 return NULL;
46386016
46396017 /* Absolute path? */
4640 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46416019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
46426020 {
46436021 concat_name = xstrdup (wrapper);
46556033 return concat_name;
46566034 XFREE (concat_name);
46576035 }
4658 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
46596037 }
46606038 #endif
46616039
46786056 for (q = p; *q; q++)
46796057 if (IS_PATH_SEPARATOR (*q))
46806058 break;
4681 p_len = q - p;
6059 p_len = (size_t) (q - p);
46826060 p_next = (*q == '\0' ? q : q + 1);
46836061 if (p_len == 0)
46846062 {
47976175 if (patlen <= len)
47986176 {
47996177 str += len - patlen;
4800 if (strcmp (str, pat) == 0)
6178 if (STREQ (str, pat))
48016179 *str = '\0';
48026180 }
48036181 return str;
48626240 char *str = xstrdup (value);
48636241 setenv (name, str, 1);
48646242 #else
4865 int len = strlen (name) + 1 + strlen (value) + 1;
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
48666244 char *str = XMALLOC (char, len);
48676245 sprintf (str, "%s=%s", name, value);
48686246 if (putenv (str) != EXIT_SUCCESS)
48796257 char *new_value;
48806258 if (orig_value && *orig_value)
48816259 {
4882 int orig_value_len = strlen (orig_value);
4883 int add_len = strlen (add);
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
48846262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
48856263 if (to_end)
48866264 {
49116289 {
49126290 char *new_value = lt_extend_str (getenv (name), value, 0);
49136291 /* some systems can't cope with a ':'-terminated path #' */
4914 int len = strlen (new_value);
4915 while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
49166294 {
4917 new_value[len-1] = '\0';
6295 new_value[--len] = '\0';
49186296 }
49196297 lt_setenv (name, new_value);
49206298 XFREE (new_value);
50816459 # True if ARG is an import lib, as indicated by $file_magic_cmd
50826460 func_win32_import_lib_p ()
50836461 {
5084 $opt_debug
6462 $debug_cmd
6463
50856464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
50866465 *import*) : ;;
50876466 *) false ;;
50886467 esac
50896468 }
50906469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
50916488 # func_mode_link arg...
50926489 func_mode_link ()
50936490 {
5094 $opt_debug
6491 $debug_cmd
6492
50956493 case $host in
50966494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
50976495 # It is impossible to link a dll without this setting, and
50986496 # we shouldn't force the makefile maintainer to figure out
5099 # which system we are compiling for in order to pass an extra
6497 # what system we are compiling for in order to pass an extra
51006498 # flag for every libtool invocation.
51016499 # allow_undefined=no
51026500
51036501 # FIXME: Unfortunately, there are problems with the above when trying
5104 # to make a dll which has undefined symbols, in which case not
6502 # to make a dll that has undefined symbols, in which case not
51056503 # even a static library is built. For now, we need to specify
51066504 # -no-undefined on the libtool link line when we can be certain
51076505 # that all symbols are satisfied, otherwise we get a static library.
51456543 module=no
51466544 no_install=no
51476545 objs=
6546 os2dllname=
51486547 non_pic_objects=
51496548 precious_files_regex=
51506549 prefer_static_libs=no
5151 preload=no
6550 preload=false
51526551 prev=
51536552 prevarg=
51546553 release=
51606559 vinfo=
51616560 vinfo_number=no
51626561 weak_libs=
5163 single_module="${wl}-single_module"
6562 single_module=$wl-single_module
51646563 func_infer_tag $base_compile
51656564
51666565 # We need to know -static, to get the right output filenames.
51686567 do
51696568 case $arg in
51706569 -shared)
5171 test "$build_libtool_libs" != yes && \
5172 func_fatal_configuration "can not build a shared library"
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
51736572 build_old_libs=no
51746573 break
51756574 ;;
51766575 -all-static | -static | -static-libtool-libs)
51776576 case $arg in
51786577 -all-static)
5179 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
51806579 func_warning "complete static linking is impossible in this configuration"
51816580 fi
51826581 if test -n "$link_static_flag"; then
52096608
52106609 # Go through the arguments, transforming them on the way.
52116610 while test "$#" -gt 0; do
5212 arg="$1"
6611 arg=$1
52136612 shift
52146613 func_quote_for_eval "$arg"
52156614 qarg=$func_quote_for_eval_unquoted_result
52266625
52276626 case $prev in
52286627 bindir)
5229 bindir="$arg"
6628 bindir=$arg
52306629 prev=
52316630 continue
52326631 ;;
52336632 dlfiles|dlprefiles)
5234 if test "$preload" = no; then
6633 $preload || {
52356634 # Add the symbol object into the linking commands.
52366635 func_append compile_command " @SYMFILE@"
52376636 func_append finalize_command " @SYMFILE@"
5238 preload=yes
5239 fi
6637 preload=:
6638 }
52406639 case $arg in
52416640 *.la | *.lo) ;; # We handle these cases below.
52426641 force)
5243 if test "$dlself" = no; then
6642 if test no = "$dlself"; then
52446643 dlself=needless
52456644 export_dynamic=yes
52466645 fi
52486647 continue
52496648 ;;
52506649 self)
5251 if test "$prev" = dlprefiles; then
6650 if test dlprefiles = "$prev"; then
52526651 dlself=yes
5253 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
52546653 dlself=yes
52556654 else
52566655 dlself=needless
52606659 continue
52616660 ;;
52626661 *)
5263 if test "$prev" = dlfiles; then
6662 if test dlfiles = "$prev"; then
52646663 func_append dlfiles " $arg"
52656664 else
52666665 func_append dlprefiles " $arg"
52716670 esac
52726671 ;;
52736672 expsyms)
5274 export_symbols="$arg"
6673 export_symbols=$arg
52756674 test -f "$arg" \
5276 || func_fatal_error "symbol file \`$arg' does not exist"
6675 || func_fatal_error "symbol file '$arg' does not exist"
52776676 prev=
52786677 continue
52796678 ;;
52806679 expsyms_regex)
5281 export_symbols_regex="$arg"
6680 export_symbols_regex=$arg
52826681 prev=
52836682 continue
52846683 ;;
52966695 continue
52976696 ;;
52986697 inst_prefix)
5299 inst_prefix_dir="$arg"
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
53006705 prev=
53016706 continue
53026707 ;;
53206725
53216726 if test -z "$pic_object" ||
53226727 test -z "$non_pic_object" ||
5323 test "$pic_object" = none &&
5324 test "$non_pic_object" = none; then
5325 func_fatal_error "cannot find name of object for \`$arg'"
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
53266731 fi
53276732
53286733 # Extract subdirectory from the argument.
53296734 func_dirname "$arg" "/" ""
5330 xdir="$func_dirname_result"
5331
5332 if test "$pic_object" != none; then
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
53336738 # Prepend the subdirectory the object is found in.
5334 pic_object="$xdir$pic_object"
5335
5336 if test "$prev" = dlfiles; then
5337 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
53386743 func_append dlfiles " $pic_object"
53396744 prev=
53406745 continue
53456750 fi
53466751
53476752 # CHECK ME: I think I busted this. -Ossama
5348 if test "$prev" = dlprefiles; then
6753 if test dlprefiles = "$prev"; then
53496754 # Preload the old-style object.
53506755 func_append dlprefiles " $pic_object"
53516756 prev=
53536758
53546759 # A PIC object.
53556760 func_append libobjs " $pic_object"
5356 arg="$pic_object"
6761 arg=$pic_object
53576762 fi
53586763
53596764 # Non-PIC object.
5360 if test "$non_pic_object" != none; then
6765 if test none != "$non_pic_object"; then
53616766 # Prepend the subdirectory the object is found in.
5362 non_pic_object="$xdir$non_pic_object"
6767 non_pic_object=$xdir$non_pic_object
53636768
53646769 # A standard non-PIC object
53656770 func_append non_pic_objects " $non_pic_object"
5366 if test -z "$pic_object" || test "$pic_object" = none ; then
5367 arg="$non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
53686773 fi
53696774 else
53706775 # If the PIC object exists, use it instead.
53716776 # $xdir was prepended to $pic_object above.
5372 non_pic_object="$pic_object"
6777 non_pic_object=$pic_object
53736778 func_append non_pic_objects " $non_pic_object"
53746779 fi
53756780 else
53776782 if $opt_dry_run; then
53786783 # Extract subdirectory from the argument.
53796784 func_dirname "$arg" "/" ""
5380 xdir="$func_dirname_result"
6785 xdir=$func_dirname_result
53816786
53826787 func_lo2o "$arg"
53836788 pic_object=$xdir$objdir/$func_lo2o_result
53856790 func_append libobjs " $pic_object"
53866791 func_append non_pic_objects " $non_pic_object"
53876792 else
5388 func_fatal_error "\`$arg' is not a valid libtool object"
6793 func_fatal_error "'$arg' is not a valid libtool object"
53896794 fi
53906795 fi
53916796 done
53926797 else
5393 func_fatal_error "link input file \`$arg' does not exist"
6798 func_fatal_error "link input file '$arg' does not exist"
53946799 fi
53956800 arg=$save_arg
53966801 prev=
53976802 continue
53986803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
53996809 precious_regex)
5400 precious_files_regex="$arg"
6810 precious_files_regex=$arg
54016811 prev=
54026812 continue
54036813 ;;
54046814 release)
5405 release="-$arg"
6815 release=-$arg
54066816 prev=
54076817 continue
54086818 ;;
54146824 func_fatal_error "only absolute run-paths are allowed"
54156825 ;;
54166826 esac
5417 if test "$prev" = rpath; then
6827 if test rpath = "$prev"; then
54186828 case "$rpath " in
54196829 *" $arg "*) ;;
54206830 *) func_append rpath " $arg" ;;
54296839 continue
54306840 ;;
54316841 shrext)
5432 shrext_cmds="$arg"
6842 shrext_cmds=$arg
54336843 prev=
54346844 continue
54356845 ;;
54696879 esac
54706880 fi # test -n "$prev"
54716881
5472 prevarg="$arg"
6882 prevarg=$arg
54736883
54746884 case $arg in
54756885 -all-static)
54836893
54846894 -allow-undefined)
54856895 # FIXME: remove this flag sometime in the future.
5486 func_fatal_error "\`-allow-undefined' must not be used because it is the default"
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
54876897 ;;
54886898
54896899 -avoid-version)
55156925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
55166926 func_fatal_error "more than one -exported-symbols argument is not allowed"
55176927 fi
5518 if test "X$arg" = "X-export-symbols"; then
6928 if test X-export-symbols = "X$arg"; then
55196929 prev=expsyms
55206930 else
55216931 prev=expsyms_regex
55496959 func_stripname "-L" '' "$arg"
55506960 if test -z "$func_stripname_result"; then
55516961 if test "$#" -gt 0; then
5552 func_fatal_error "require no space between \`-L' and \`$1'"
6962 func_fatal_error "require no space between '-L' and '$1'"
55536963 else
5554 func_fatal_error "need path for \`-L' option"
6964 func_fatal_error "need path for '-L' option"
55556965 fi
55566966 fi
55576967 func_resolve_sysroot "$func_stripname_result"
55626972 *)
55636973 absdir=`cd "$dir" && pwd`
55646974 test -z "$absdir" && \
5565 func_fatal_error "cannot determine absolute directory name of \`$dir'"
5566 dir="$absdir"
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
55676977 ;;
55686978 esac
55696979 case "$deplibs " in
55987008 ;;
55997009
56007010 -l*)
5601 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
56027012 case $host in
56037013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
56047014 # These systems don't actually have a C or math library (as such)
56067016 ;;
56077017 *-*-os2*)
56087018 # These systems don't actually have a C library (as such)
5609 test "X$arg" = "X-lc" && continue
7019 test X-lc = "X$arg" && continue
56107020 ;;
5611 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56127022 # Do not include libc due to us having libc/libc_r.
5613 test "X$arg" = "X-lc" && continue
7023 test X-lc = "X$arg" && continue
56147024 ;;
56157025 *-*-rhapsody* | *-*-darwin1.[012])
56167026 # Rhapsody C and math libraries are in the System framework
56197029 ;;
56207030 *-*-sco3.2v5* | *-*-sco5v6*)
56217031 # Causes problems with __ctype
5622 test "X$arg" = "X-lc" && continue
7032 test X-lc = "X$arg" && continue
56237033 ;;
56247034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
56257035 # Compiler inserts libc in the correct place for threads to work
5626 test "X$arg" = "X-lc" && continue
7036 test X-lc = "X$arg" && continue
56277037 ;;
56287038 esac
5629 elif test "X$arg" = "X-lc_r"; then
7039 elif test X-lc_r = "X$arg"; then
56307040 case $host in
5631 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
56327042 # Do not include libc_r directly, use -pthread flag.
56337043 continue
56347044 ;;
56357045 esac
56367046 fi
56377047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
56387053 continue
56397054 ;;
56407055
56677082 ;;
56687083
56697084 -multi_module)
5670 single_module="${wl}-multi_module"
7085 single_module=$wl-multi_module
56717086 continue
56727087 ;;
56737088
56817096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
56827097 # The PATH hackery in wrapper scripts is required on Windows
56837098 # and Darwin in order for the loader to find any dlls it needs.
5684 func_warning "\`-no-install' is ignored for $host"
5685 func_warning "assuming \`-no-fast-install' instead"
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
56867101 fast_install=no
56877102 ;;
56887103 *) no_install=yes ;;
56977112
56987113 -objectlist)
56997114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
57007120 continue
57017121 ;;
57027122
57877207 func_stripname '-Wc,' '' "$arg"
57887208 args=$func_stripname_result
57897209 arg=
5790 save_ifs="$IFS"; IFS=','
7210 save_ifs=$IFS; IFS=,
57917211 for flag in $args; do
5792 IFS="$save_ifs"
7212 IFS=$save_ifs
57937213 func_quote_for_eval "$flag"
57947214 func_append arg " $func_quote_for_eval_result"
57957215 func_append compiler_flags " $func_quote_for_eval_result"
57967216 done
5797 IFS="$save_ifs"
7217 IFS=$save_ifs
57987218 func_stripname ' ' '' "$arg"
57997219 arg=$func_stripname_result
58007220 ;;
58037223 func_stripname '-Wl,' '' "$arg"
58047224 args=$func_stripname_result
58057225 arg=
5806 save_ifs="$IFS"; IFS=','
7226 save_ifs=$IFS; IFS=,
58077227 for flag in $args; do
5808 IFS="$save_ifs"
7228 IFS=$save_ifs
58097229 func_quote_for_eval "$flag"
58107230 func_append arg " $wl$func_quote_for_eval_result"
58117231 func_append compiler_flags " $wl$func_quote_for_eval_result"
58127232 func_append linker_flags " $func_quote_for_eval_result"
58137233 done
5814 IFS="$save_ifs"
7234 IFS=$save_ifs
58157235 func_stripname ' ' '' "$arg"
58167236 arg=$func_stripname_result
58177237 ;;
58347254 # -msg_* for osf cc
58357255 -msg_*)
58367256 func_quote_for_eval "$arg"
5837 arg="$func_quote_for_eval_result"
7257 arg=$func_quote_for_eval_result
58387258 ;;
58397259
58407260 # Flags to be passed through unchanged, with rationale:
58467266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
58477267 # -F/path path to uninstalled frameworks, gcc on darwin
58487268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
58497270 # @file GCC response files
58507271 # -tp=* Portland pgcc target processor selection
58517272 # --sysroot=* for sysroot support
5852 # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -specs=* GCC specs files
7275 # -stdlib=* select c++ std lib with clang
7276 # -fsanitize=* Clang/GCC memory and address sanitizer
58537277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
58547278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
5855 -O*|-flto*|-fwhopr*|-fuse-linker-plugin)
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*|-fsanitize=*)
58567281 func_quote_for_eval "$arg"
5857 arg="$func_quote_for_eval_result"
7282 arg=$func_quote_for_eval_result
58587283 func_append compile_command " $arg"
58597284 func_append finalize_command " $arg"
58607285 func_append compiler_flags " $arg"
58617286 continue
58627287 ;;
58637288
7289 -Z*)
7290 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7291 # OS/2 uses -Zxxx to specify OS/2-specific options
7292 compiler_flags="$compiler_flags $arg"
7293 func_append compile_command " $arg"
7294 func_append finalize_command " $arg"
7295 case $arg in
7296 -Zlinker | -Zstack)
7297 prev=xcompiler
7298 ;;
7299 esac
7300 continue
7301 else
7302 # Otherwise treat like 'Some other compiler flag' below
7303 func_quote_for_eval "$arg"
7304 arg=$func_quote_for_eval_result
7305 fi
7306 ;;
7307
58647308 # Some other compiler flag.
58657309 -* | +*)
58667310 func_quote_for_eval "$arg"
5867 arg="$func_quote_for_eval_result"
7311 arg=$func_quote_for_eval_result
58687312 ;;
58697313
58707314 *.$objext)
58857329
58867330 if test -z "$pic_object" ||
58877331 test -z "$non_pic_object" ||
5888 test "$pic_object" = none &&
5889 test "$non_pic_object" = none; then
5890 func_fatal_error "cannot find name of object for \`$arg'"
7332 test none = "$pic_object" &&
7333 test none = "$non_pic_object"; then
7334 func_fatal_error "cannot find name of object for '$arg'"
58917335 fi
58927336
58937337 # Extract subdirectory from the argument.
58947338 func_dirname "$arg" "/" ""
5895 xdir="$func_dirname_result"
5896
5897 if test "$pic_object" != none; then
7339 xdir=$func_dirname_result
7340
7341 test none = "$pic_object" || {
58987342 # Prepend the subdirectory the object is found in.
5899 pic_object="$xdir$pic_object"
5900
5901 if test "$prev" = dlfiles; then
5902 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
7343 pic_object=$xdir$pic_object
7344
7345 if test dlfiles = "$prev"; then
7346 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
59037347 func_append dlfiles " $pic_object"
59047348 prev=
59057349 continue
59107354 fi
59117355
59127356 # CHECK ME: I think I busted this. -Ossama
5913 if test "$prev" = dlprefiles; then
7357 if test dlprefiles = "$prev"; then
59147358 # Preload the old-style object.
59157359 func_append dlprefiles " $pic_object"
59167360 prev=
59187362
59197363 # A PIC object.
59207364 func_append libobjs " $pic_object"
5921 arg="$pic_object"
5922 fi
7365 arg=$pic_object
7366 }
59237367
59247368 # Non-PIC object.
5925 if test "$non_pic_object" != none; then
7369 if test none != "$non_pic_object"; then
59267370 # Prepend the subdirectory the object is found in.
5927 non_pic_object="$xdir$non_pic_object"
7371 non_pic_object=$xdir$non_pic_object
59287372
59297373 # A standard non-PIC object
59307374 func_append non_pic_objects " $non_pic_object"
5931 if test -z "$pic_object" || test "$pic_object" = none ; then
5932 arg="$non_pic_object"
7375 if test -z "$pic_object" || test none = "$pic_object"; then
7376 arg=$non_pic_object
59337377 fi
59347378 else
59357379 # If the PIC object exists, use it instead.
59367380 # $xdir was prepended to $pic_object above.
5937 non_pic_object="$pic_object"
7381 non_pic_object=$pic_object
59387382 func_append non_pic_objects " $non_pic_object"
59397383 fi
59407384 else
59427386 if $opt_dry_run; then
59437387 # Extract subdirectory from the argument.
59447388 func_dirname "$arg" "/" ""
5945 xdir="$func_dirname_result"
7389 xdir=$func_dirname_result
59467390
59477391 func_lo2o "$arg"
59487392 pic_object=$xdir$objdir/$func_lo2o_result
59507394 func_append libobjs " $pic_object"
59517395 func_append non_pic_objects " $non_pic_object"
59527396 else
5953 func_fatal_error "\`$arg' is not a valid libtool object"
7397 func_fatal_error "'$arg' is not a valid libtool object"
59547398 fi
59557399 fi
59567400 ;;
59667410 # A libtool-controlled library.
59677411
59687412 func_resolve_sysroot "$arg"
5969 if test "$prev" = dlfiles; then
7413 if test dlfiles = "$prev"; then
59707414 # This library was specified with -dlopen.
59717415 func_append dlfiles " $func_resolve_sysroot_result"
59727416 prev=
5973 elif test "$prev" = dlprefiles; then
7417 elif test dlprefiles = "$prev"; then
59747418 # The library was specified with -dlpreopen.
59757419 func_append dlprefiles " $func_resolve_sysroot_result"
59767420 prev=
59857429 # Unknown arguments in both finalize_command and compile_command need
59867430 # to be aesthetically quoted because they are evaled later.
59877431 func_quote_for_eval "$arg"
5988 arg="$func_quote_for_eval_result"
7432 arg=$func_quote_for_eval_result
59897433 ;;
59907434 esac # arg
59917435
59977441 done # argument parsing loop
59987442
59997443 test -n "$prev" && \
6000 func_fatal_help "the \`$prevarg' option requires an argument"
6001
6002 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
7444 func_fatal_help "the '$prevarg' option requires an argument"
7445
7446 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
60037447 eval arg=\"$export_dynamic_flag_spec\"
60047448 func_append compile_command " $arg"
60057449 func_append finalize_command " $arg"
60087452 oldlibs=
60097453 # calculate the name of the file, without its directory
60107454 func_basename "$output"
6011 outputname="$func_basename_result"
6012 libobjs_save="$libobjs"
7455 outputname=$func_basename_result
7456 libobjs_save=$libobjs
60137457
60147458 if test -n "$shlibpath_var"; then
60157459 # get the directories listed in $shlibpath_var
6016 eval shlib_search_path=\`\$ECHO \"\${$shlibpath_var}\" \| \$SED \'s/:/ /g\'\`
7460 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
60177461 else
60187462 shlib_search_path=
60197463 fi
60207464 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
60217465 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
60227466
7467 # Definition is injected by LT_CONFIG during libtool generation.
7468 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7469
60237470 func_dirname "$output" "/" ""
6024 output_objdir="$func_dirname_result$objdir"
7471 output_objdir=$func_dirname_result$objdir
60257472 func_to_tool_file "$output_objdir/"
60267473 tool_output_objdir=$func_to_tool_file_result
60277474 # Create the object directory.
60447491 # Find all interdependent deplibs by searching for libraries
60457492 # that are linked more than once (e.g. -la -lb -la)
60467493 for deplib in $deplibs; do
6047 if $opt_preserve_dup_deps ; then
7494 if $opt_preserve_dup_deps; then
60487495 case "$libs " in
60497496 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
60507497 esac
60527499 func_append libs " $deplib"
60537500 done
60547501
6055 if test "$linkmode" = lib; then
7502 if test lib = "$linkmode"; then
60567503 libs="$predeps $libs $compiler_lib_search_path $postdeps"
60577504
60587505 # Compute libraries that are listed more than once in $predeps
60847531 case $file in
60857532 *.la) ;;
60867533 *)
6087 func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
7534 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
60887535 ;;
60897536 esac
60907537 done
60927539 prog)
60937540 compile_deplibs=
60947541 finalize_deplibs=
6095 alldeplibs=no
7542 alldeplibs=false
60967543 newdlfiles=
60977544 newdlprefiles=
60987545 passes="conv scan dlopen dlpreopen link"
61047551 for pass in $passes; do
61057552 # The preopen pass in lib mode reverses $deplibs; put it back here
61067553 # so that -L comes before libs that need it for instance...
6107 if test "$linkmode,$pass" = "lib,link"; then
7554 if test lib,link = "$linkmode,$pass"; then
61087555 ## FIXME: Find the place where the list is rebuilt in the wrong
61097556 ## order, and fix it there properly
61107557 tmp_deplibs=
61117558 for deplib in $deplibs; do
61127559 tmp_deplibs="$deplib $tmp_deplibs"
61137560 done
6114 deplibs="$tmp_deplibs"
7561 deplibs=$tmp_deplibs
61157562 fi
61167563
6117 if test "$linkmode,$pass" = "lib,link" ||
6118 test "$linkmode,$pass" = "prog,scan"; then
6119 libs="$deplibs"
7564 if test lib,link = "$linkmode,$pass" ||
7565 test prog,scan = "$linkmode,$pass"; then
7566 libs=$deplibs
61207567 deplibs=
61217568 fi
6122 if test "$linkmode" = prog; then
7569 if test prog = "$linkmode"; then
61237570 case $pass in
6124 dlopen) libs="$dlfiles" ;;
6125 dlpreopen) libs="$dlprefiles" ;;
7571 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;
61267573 link)
61277574 libs="$deplibs %DEPLIBS%"
61287575 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
61297576 ;;
61307577 esac
61317578 fi
6132 if test "$linkmode,$pass" = "lib,dlpreopen"; then
7579 if test lib,dlpreopen = "$linkmode,$pass"; then
61337580 # Collect and forward deplibs of preopened libtool libs
61347581 for lib in $dlprefiles; do
61357582 # Ignore non-libtool-libs
61507597 esac
61517598 done
61527599 done
6153 libs="$dlprefiles"
7600 libs=$dlprefiles
61547601 fi
6155 if test "$pass" = dlopen; then
7602 if test dlopen = "$pass"; then
61567603 # Collect dlpreopened libraries
6157 save_deplibs="$deplibs"
7604 save_deplibs=$deplibs
61587605 deplibs=
61597606 fi
61607607
61617608 for deplib in $libs; do
61627609 lib=
6163 found=no
7610 found=false
61647611 case $deplib in
61657612 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
61667613 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
6167 if test "$linkmode,$pass" = "prog,link"; then
7614 if test prog,link = "$linkmode,$pass"; then
61687615 compile_deplibs="$deplib $compile_deplibs"
61697616 finalize_deplibs="$deplib $finalize_deplibs"
61707617 else
61717618 func_append compiler_flags " $deplib"
6172 if test "$linkmode" = lib ; then
7619 if test lib = "$linkmode"; then
61737620 case "$new_inherited_linker_flags " in
61747621 *" $deplib "*) ;;
61757622 * ) func_append new_inherited_linker_flags " $deplib" ;;
61797626 continue
61807627 ;;
61817628 -l*)
6182 if test "$linkmode" != lib && test "$linkmode" != prog; then
6183 func_warning "\`-l' is ignored for archives/objects"
7629 if test lib != "$linkmode" && test prog != "$linkmode"; then
7630 func_warning "'-l' is ignored for archives/objects"
61847631 continue
61857632 fi
61867633 func_stripname '-l' '' "$deplib"
61877634 name=$func_stripname_result
6188 if test "$linkmode" = lib; then
7635 if test lib = "$linkmode"; then
61897636 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
61907637 else
61917638 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
61937640 for searchdir in $searchdirs; do
61947641 for search_ext in .la $std_shrext .so .a; do
61957642 # Search the libtool library
6196 lib="$searchdir/lib${name}${search_ext}"
7643 lib=$searchdir/lib$name$search_ext
61977644 if test -f "$lib"; then
6198 if test "$search_ext" = ".la"; then
6199 found=yes
7645 if test .la = "$search_ext"; then
7646 found=:
62007647 else
6201 found=no
7648 found=false
62027649 fi
62037650 break 2
62047651 fi
62057652 done
62067653 done
6207 if test "$found" != yes; then
6208 # deplib doesn't seem to be a libtool library
6209 if test "$linkmode,$pass" = "prog,link"; then
6210 compile_deplibs="$deplib $compile_deplibs"
6211 finalize_deplibs="$deplib $finalize_deplibs"
6212 else
6213 deplibs="$deplib $deplibs"
6214 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
6215 fi
6216 continue
6217 else # deplib is a libtool library
7654 if $found; then
7655 # deplib is a libtool library
62187656 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
62197657 # We need to do some special things here, and not later.
6220 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7658 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
62217659 case " $predeps $postdeps " in
62227660 *" $deplib "*)
62237661 if func_lalib_p "$lib"; then
62257663 old_library=
62267664 func_source "$lib"
62277665 for l in $old_library $library_names; do
6228 ll="$l"
7666 ll=$l
62297667 done
6230 if test "X$ll" = "X$old_library" ; then # only static version available
6231 found=no
7668 if test "X$ll" = "X$old_library"; then # only static version available
7669 found=false
62327670 func_dirname "$lib" "" "."
6233 ladir="$func_dirname_result"
7671 ladir=$func_dirname_result
62347672 lib=$ladir/$old_library
6235 if test "$linkmode,$pass" = "prog,link"; then
7673 if test prog,link = "$linkmode,$pass"; then
62367674 compile_deplibs="$deplib $compile_deplibs"
62377675 finalize_deplibs="$deplib $finalize_deplibs"
62387676 else
62397677 deplibs="$deplib $deplibs"
6240 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
7678 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
62417679 fi
62427680 continue
62437681 fi
62467684 *) ;;
62477685 esac
62487686 fi
7687 else
7688 # deplib doesn't seem to be a libtool library
7689 if test prog,link = "$linkmode,$pass"; then
7690 compile_deplibs="$deplib $compile_deplibs"
7691 finalize_deplibs="$deplib $finalize_deplibs"
7692 else
7693 deplibs="$deplib $deplibs"
7694 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7695 fi
7696 continue
62497697 fi
62507698 ;; # -l
62517699 *.ltframework)
6252 if test "$linkmode,$pass" = "prog,link"; then
7700 if test prog,link = "$linkmode,$pass"; then
62537701 compile_deplibs="$deplib $compile_deplibs"
62547702 finalize_deplibs="$deplib $finalize_deplibs"
62557703 else
62567704 deplibs="$deplib $deplibs"
6257 if test "$linkmode" = lib ; then
7705 if test lib = "$linkmode"; then
62587706 case "$new_inherited_linker_flags " in
62597707 *" $deplib "*) ;;
62607708 * ) func_append new_inherited_linker_flags " $deplib" ;;
62677715 case $linkmode in
62687716 lib)
62697717 deplibs="$deplib $deplibs"
6270 test "$pass" = conv && continue
7718 test conv = "$pass" && continue
62717719 newdependency_libs="$deplib $newdependency_libs"
62727720 func_stripname '-L' '' "$deplib"
62737721 func_resolve_sysroot "$func_stripname_result"
62747722 func_append newlib_search_path " $func_resolve_sysroot_result"
62757723 ;;
62767724 prog)
6277 if test "$pass" = conv; then
7725 if test conv = "$pass"; then
62787726 deplibs="$deplib $deplibs"
62797727 continue
62807728 fi
6281 if test "$pass" = scan; then
7729 if test scan = "$pass"; then
62827730 deplibs="$deplib $deplibs"
62837731 else
62847732 compile_deplibs="$deplib $compile_deplibs"
62897737 func_append newlib_search_path " $func_resolve_sysroot_result"
62907738 ;;
62917739 *)
6292 func_warning "\`-L' is ignored for archives/objects"
7740 func_warning "'-L' is ignored for archives/objects"
62937741 ;;
62947742 esac # linkmode
62957743 continue
62967744 ;; # -L
62977745 -R*)
6298 if test "$pass" = link; then
7746 if test link = "$pass"; then
62997747 func_stripname '-R' '' "$deplib"
63007748 func_resolve_sysroot "$func_stripname_result"
63017749 dir=$func_resolve_sysroot_result
63137761 lib=$func_resolve_sysroot_result
63147762 ;;
63157763 *.$libext)
6316 if test "$pass" = conv; then
7764 if test conv = "$pass"; then
63177765 deplibs="$deplib $deplibs"
63187766 continue
63197767 fi
63247772 case " $dlpreconveniencelibs " in
63257773 *" $deplib "*) ;;
63267774 *)
6327 valid_a_lib=no
7775 valid_a_lib=false
63287776 case $deplibs_check_method in
63297777 match_pattern*)
63307778 set dummy $deplibs_check_method; shift
63317779 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
63327780 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
63337781 | $EGREP "$match_pattern_regex" > /dev/null; then
6334 valid_a_lib=yes
7782 valid_a_lib=:
63357783 fi
63367784 ;;
63377785 pass_all)
6338 valid_a_lib=yes
7786 valid_a_lib=:
63397787 ;;
63407788 esac
6341 if test "$valid_a_lib" != yes; then
7789 if $valid_a_lib; then
7790 echo
7791 $ECHO "*** Warning: Linking the shared library $output against the"
7792 $ECHO "*** static library $deplib is not portable!"
7793 deplibs="$deplib $deplibs"
7794 else
63427795 echo
63437796 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
63447797 echo "*** I have the capability to make that library automatically link in when"
63467799 echo "*** shared version of the library, which you do not appear to have"
63477800 echo "*** because the file extensions .$libext of this argument makes me believe"
63487801 echo "*** that it is just a static archive that I should not use here."
6349 else
6350 echo
6351 $ECHO "*** Warning: Linking the shared library $output against the"
6352 $ECHO "*** static library $deplib is not portable!"
6353 deplibs="$deplib $deplibs"
63547802 fi
63557803 ;;
63567804 esac
63577805 continue
63587806 ;;
63597807 prog)
6360 if test "$pass" != link; then
7808 if test link != "$pass"; then
63617809 deplibs="$deplib $deplibs"
63627810 else
63637811 compile_deplibs="$deplib $compile_deplibs"
63687816 esac # linkmode
63697817 ;; # *.$libext
63707818 *.lo | *.$objext)
6371 if test "$pass" = conv; then
7819 if test conv = "$pass"; then
63727820 deplibs="$deplib $deplibs"
6373 elif test "$linkmode" = prog; then
6374 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
7821 elif test prog = "$linkmode"; then
7822 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
63757823 # If there is no dlopen support or we're linking statically,
63767824 # we need to preload.
63777825 func_append newdlprefiles " $deplib"
63847832 continue
63857833 ;;
63867834 %DEPLIBS%)
6387 alldeplibs=yes
7835 alldeplibs=:
63887836 continue
63897837 ;;
63907838 esac # case $deplib
63917839
6392 if test "$found" = yes || test -f "$lib"; then :
6393 else
6394 func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
6395 fi
7840 $found || test -f "$lib" \
7841 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
63967842
63977843 # Check to see that this really is a libtool archive.
63987844 func_lalib_unsafe_p "$lib" \
6399 || func_fatal_error "\`$lib' is not a valid libtool archive"
7845 || func_fatal_error "'$lib' is not a valid libtool archive"
64007846
64017847 func_dirname "$lib" "" "."
6402 ladir="$func_dirname_result"
7848 ladir=$func_dirname_result
64037849
64047850 dlname=
64057851 dlopen=
64297875 done
64307876 fi
64317877 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
6432 if test "$linkmode,$pass" = "lib,link" ||
6433 test "$linkmode,$pass" = "prog,scan" ||
6434 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
7878 if test lib,link = "$linkmode,$pass" ||
7879 test prog,scan = "$linkmode,$pass" ||
7880 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
64357881 test -n "$dlopen" && func_append dlfiles " $dlopen"
64367882 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
64377883 fi
64387884
6439 if test "$pass" = conv; then
7885 if test conv = "$pass"; then
64407886 # Only check for convenience libraries
64417887 deplibs="$lib $deplibs"
64427888 if test -z "$libdir"; then
64437889 if test -z "$old_library"; then
6444 func_fatal_error "cannot find name of link library for \`$lib'"
7890 func_fatal_error "cannot find name of link library for '$lib'"
64457891 fi
64467892 # It is a libtool convenience library, so add in its objects.
64477893 func_append convenience " $ladir/$objdir/$old_library"
64497895 tmp_libs=
64507896 for deplib in $dependency_libs; do
64517897 deplibs="$deplib $deplibs"
6452 if $opt_preserve_dup_deps ; then
7898 if $opt_preserve_dup_deps; then
64537899 case "$tmp_libs " in
64547900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
64557901 esac
64567902 fi
64577903 func_append tmp_libs " $deplib"
64587904 done
6459 elif test "$linkmode" != prog && test "$linkmode" != lib; then
6460 func_fatal_error "\`$lib' is not a convenience library"
7905 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7906 func_fatal_error "'$lib' is not a convenience library"
64617907 fi
64627908 continue
64637909 fi # $pass = conv
64667912 # Get the name of the library we link against.
64677913 linklib=
64687914 if test -n "$old_library" &&
6469 { test "$prefer_static_libs" = yes ||
6470 test "$prefer_static_libs,$installed" = "built,no"; }; then
7915 { test yes = "$prefer_static_libs" ||
7916 test built,no = "$prefer_static_libs,$installed"; }; then
64717917 linklib=$old_library
64727918 else
64737919 for l in $old_library $library_names; do
6474 linklib="$l"
7920 linklib=$l
64757921 done
64767922 fi
64777923 if test -z "$linklib"; then
6478 func_fatal_error "cannot find name of link library for \`$lib'"
7924 func_fatal_error "cannot find name of link library for '$lib'"
64797925 fi
64807926
64817927 # This library was specified with -dlopen.
6482 if test "$pass" = dlopen; then
6483 if test -z "$libdir"; then
6484 func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
6485 fi
7928 if test dlopen = "$pass"; then
7929 test -z "$libdir" \
7930 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
64867931 if test -z "$dlname" ||
6487 test "$dlopen_support" != yes ||
6488 test "$build_libtool_libs" = no; then
7932 test yes != "$dlopen_support" ||
7933 test no = "$build_libtool_libs"
7934 then
64897935 # If there is no dlname, no dlopen support or we're linking
64907936 # statically, we need to preload. We also need to preload any
64917937 # dependent libraries so libltdl's deplib preloader doesn't
64997945
65007946 # We need an absolute path.
65017947 case $ladir in
6502 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
7948 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
65037949 *)
65047950 abs_ladir=`cd "$ladir" && pwd`
65057951 if test -z "$abs_ladir"; then
6506 func_warning "cannot determine absolute directory name of \`$ladir'"
7952 func_warning "cannot determine absolute directory name of '$ladir'"
65077953 func_warning "passing it literally to the linker, although it might fail"
6508 abs_ladir="$ladir"
7954 abs_ladir=$ladir
65097955 fi
65107956 ;;
65117957 esac
65127958 func_basename "$lib"
6513 laname="$func_basename_result"
7959 laname=$func_basename_result
65147960
65157961 # Find the relevant object directory and library name.
6516 if test "X$installed" = Xyes; then
7962 if test yes = "$installed"; then
65177963 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6518 func_warning "library \`$lib' was moved."
6519 dir="$ladir"
6520 absdir="$abs_ladir"
6521 libdir="$abs_ladir"
7964 func_warning "library '$lib' was moved."
7965 dir=$ladir
7966 absdir=$abs_ladir
7967 libdir=$abs_ladir
65227968 else
6523 dir="$lt_sysroot$libdir"
6524 absdir="$lt_sysroot$libdir"
7969 dir=$lt_sysroot$libdir
7970 absdir=$lt_sysroot$libdir
65257971 fi
6526 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
7972 test yes = "$hardcode_automatic" && avoidtemprpath=yes
65277973 else
65287974 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
6529 dir="$ladir"
6530 absdir="$abs_ladir"
7975 dir=$ladir
7976 absdir=$abs_ladir
65317977 # Remove this search path later
65327978 func_append notinst_path " $abs_ladir"
65337979 else
6534 dir="$ladir/$objdir"
6535 absdir="$abs_ladir/$objdir"
7980 dir=$ladir/$objdir
7981 absdir=$abs_ladir/$objdir
65367982 # Remove this search path later
65377983 func_append notinst_path " $abs_ladir"
65387984 fi
65417987 name=$func_stripname_result
65427988
65437989 # This library was specified with -dlpreopen.
6544 if test "$pass" = dlpreopen; then
6545 if test -z "$libdir" && test "$linkmode" = prog; then
6546 func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
7990 if test dlpreopen = "$pass"; then
7991 if test -z "$libdir" && test prog = "$linkmode"; then
7992 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
65477993 fi
6548 case "$host" in
7994 case $host in
65497995 # special handling for platforms with PE-DLLs.
65507996 *cygwin* | *mingw* | *cegcc* )
65517997 # Linker will automatically link against shared library if both
65898035
65908036 if test -z "$libdir"; then
65918037 # Link the convenience library
6592 if test "$linkmode" = lib; then
8038 if test lib = "$linkmode"; then
65938039 deplibs="$dir/$old_library $deplibs"
6594 elif test "$linkmode,$pass" = "prog,link"; then
8040 elif test prog,link = "$linkmode,$pass"; then
65958041 compile_deplibs="$dir/$old_library $compile_deplibs"
65968042 finalize_deplibs="$dir/$old_library $finalize_deplibs"
65978043 else
66018047 fi
66028048
66038049
6604 if test "$linkmode" = prog && test "$pass" != link; then
8050 if test prog = "$linkmode" && test link != "$pass"; then
66058051 func_append newlib_search_path " $ladir"
66068052 deplibs="$lib $deplibs"
66078053
6608 linkalldeplibs=no
6609 if test "$link_all_deplibs" != no || test -z "$library_names" ||
6610 test "$build_libtool_libs" = no; then
6611 linkalldeplibs=yes
8054 linkalldeplibs=false
8055 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8056 test no = "$build_libtool_libs"; then
8057 linkalldeplibs=:
66128058 fi
66138059
66148060 tmp_libs=
66208066 ;;
66218067 esac
66228068 # Need to link against all dependency_libs?
6623 if test "$linkalldeplibs" = yes; then
8069 if $linkalldeplibs; then
66248070 deplibs="$deplib $deplibs"
66258071 else
66268072 # Need to hardcode shared library paths
66278073 # or/and link against static libraries
66288074 newdependency_libs="$deplib $newdependency_libs"
66298075 fi
6630 if $opt_preserve_dup_deps ; then
8076 if $opt_preserve_dup_deps; then
66318077 case "$tmp_libs " in
66328078 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
66338079 esac
66378083 continue
66388084 fi # $linkmode = prog...
66398085
6640 if test "$linkmode,$pass" = "prog,link"; then
8086 if test prog,link = "$linkmode,$pass"; then
66418087 if test -n "$library_names" &&
6642 { { test "$prefer_static_libs" = no ||
6643 test "$prefer_static_libs,$installed" = "built,yes"; } ||
8088 { { test no = "$prefer_static_libs" ||
8089 test built,yes = "$prefer_static_libs,$installed"; } ||
66448090 test -z "$old_library"; }; then
66458091 # We need to hardcode the library path
6646 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
8092 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
66478093 # Make sure the rpath contains only unique directories.
6648 case "$temp_rpath:" in
8094 case $temp_rpath: in
66498095 *"$absdir:"*) ;;
66508096 *) func_append temp_rpath "$absdir:" ;;
66518097 esac
66748120 esac
66758121 fi # $linkmode,$pass = prog,link...
66768122
6677 if test "$alldeplibs" = yes &&
6678 { test "$deplibs_check_method" = pass_all ||
6679 { test "$build_libtool_libs" = yes &&
8123 if $alldeplibs &&
8124 { test pass_all = "$deplibs_check_method" ||
8125 { test yes = "$build_libtool_libs" &&
66808126 test -n "$library_names"; }; }; then
66818127 # We only need to search for static libraries
66828128 continue
66858131
66868132 link_static=no # Whether the deplib will be linked statically
66878133 use_static_libs=$prefer_static_libs
6688 if test "$use_static_libs" = built && test "$installed" = yes; then
8134 if test built = "$use_static_libs" && test yes = "$installed"; then
66898135 use_static_libs=no
66908136 fi
66918137 if test -n "$library_names" &&
6692 { test "$use_static_libs" = no || test -z "$old_library"; }; then
8138 { test no = "$use_static_libs" || test -z "$old_library"; }; then
66938139 case $host in
6694 *cygwin* | *mingw* | *cegcc*)
8140 *cygwin* | *mingw* | *cegcc* | *os2*)
66958141 # No point in relinking DLLs because paths are not encoded
66968142 func_append notinst_deplibs " $lib"
66978143 need_relink=no
66988144 ;;
66998145 *)
6700 if test "$installed" = no; then
8146 if test no = "$installed"; then
67018147 func_append notinst_deplibs " $lib"
67028148 need_relink=yes
67038149 fi
67078153
67088154 # Warn about portability, can't link against -module's on some
67098155 # systems (darwin). Don't bleat about dlopened modules though!
6710 dlopenmodule=""
8156 dlopenmodule=
67118157 for dlpremoduletest in $dlprefiles; do
67128158 if test "X$dlpremoduletest" = "X$lib"; then
6713 dlopenmodule="$dlpremoduletest"
8159 dlopenmodule=$dlpremoduletest
67148160 break
67158161 fi
67168162 done
6717 if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
8163 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
67188164 echo
6719 if test "$linkmode" = prog; then
8165 if test prog = "$linkmode"; then
67208166 $ECHO "*** Warning: Linking the executable $output against the loadable module"
67218167 else
67228168 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
67238169 fi
67248170 $ECHO "*** $linklib is not portable!"
67258171 fi
6726 if test "$linkmode" = lib &&
6727 test "$hardcode_into_libs" = yes; then
8172 if test lib = "$linkmode" &&
8173 test yes = "$hardcode_into_libs"; then
67288174 # Hardcode the library path.
67298175 # Skip directories that are in the system default run-time
67308176 # search path.
67528198 # figure out the soname
67538199 set dummy $library_names
67548200 shift
6755 realname="$1"
8201 realname=$1
67568202 shift
67578203 libname=`eval "\\$ECHO \"$libname_spec\""`
67588204 # use dlname if we got it. it's perfectly good, no?
67598205 if test -n "$dlname"; then
6760 soname="$dlname"
8206 soname=$dlname
67618207 elif test -n "$soname_spec"; then
67628208 # bleh windows
67638209 case $host in
6764 *cygwin* | mingw* | *cegcc*)
8210 *cygwin* | mingw* | *cegcc* | *os2*)
67658211 func_arith $current - $age
67668212 major=$func_arith_result
6767 versuffix="-$major"
8213 versuffix=-$major
67688214 ;;
67698215 esac
67708216 eval soname=\"$soname_spec\"
67718217 else
6772 soname="$realname"
8218 soname=$realname
67738219 fi
67748220
67758221 # Make a new name for the extract_expsyms_cmds to use
6776 soroot="$soname"
8222 soroot=$soname
67778223 func_basename "$soroot"
6778 soname="$func_basename_result"
8224 soname=$func_basename_result
67798225 func_stripname 'lib' '.dll' "$soname"
67808226 newlib=libimp-$func_stripname_result.a
67818227
67828228 # If the library has no export list, then create one now
67838229 if test -f "$output_objdir/$soname-def"; then :
67848230 else
6785 func_verbose "extracting exported symbol list from \`$soname'"
8231 func_verbose "extracting exported symbol list from '$soname'"
67868232 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
67878233 fi
67888234
67898235 # Create $newlib
67908236 if test -f "$output_objdir/$newlib"; then :; else
6791 func_verbose "generating import library for \`$soname'"
8237 func_verbose "generating import library for '$soname'"
67928238 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
67938239 fi
67948240 # make sure the library variables are pointing to the new library
67968242 linklib=$newlib
67978243 fi # test -n "$old_archive_from_expsyms_cmds"
67988244
6799 if test "$linkmode" = prog || test "$opt_mode" != relink; then
8245 if test prog = "$linkmode" || test relink != "$opt_mode"; then
68008246 add_shlibpath=
68018247 add_dir=
68028248 add=
68038249 lib_linked=yes
68048250 case $hardcode_action in
68058251 immediate | unsupported)
6806 if test "$hardcode_direct" = no; then
6807 add="$dir/$linklib"
8252 if test no = "$hardcode_direct"; then
8253 add=$dir/$linklib
68088254 case $host in
6809 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
6810 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
8255 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8256 *-*-sysv4*uw2*) add_dir=-L$dir ;;
68118257 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
6812 *-*-unixware7*) add_dir="-L$dir" ;;
8258 *-*-unixware7*) add_dir=-L$dir ;;
68138259 *-*-darwin* )
6814 # if the lib is a (non-dlopened) module then we can not
8260 # if the lib is a (non-dlopened) module then we cannot
68158261 # link against it, someone is ignoring the earlier warnings
68168262 if /usr/bin/file -L $add 2> /dev/null |
6817 $GREP ": [^:]* bundle" >/dev/null ; then
8263 $GREP ": [^:]* bundle" >/dev/null; then
68188264 if test "X$dlopenmodule" != "X$lib"; then
68198265 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
6820 if test -z "$old_library" ; then
8266 if test -z "$old_library"; then
68218267 echo
68228268 echo "*** And there doesn't seem to be a static archive available"
68238269 echo "*** The link will probably fail, sorry"
68248270 else
6825 add="$dir/$old_library"
8271 add=$dir/$old_library
68268272 fi
68278273 elif test -n "$old_library"; then
6828 add="$dir/$old_library"
8274 add=$dir/$old_library
68298275 fi
68308276 fi
68318277 esac
6832 elif test "$hardcode_minus_L" = no; then
8278 elif test no = "$hardcode_minus_L"; then
68338279 case $host in
6834 *-*-sunos*) add_shlibpath="$dir" ;;
8280 *-*-sunos*) add_shlibpath=$dir ;;
68358281 esac
6836 add_dir="-L$dir"
6837 add="-l$name"
6838 elif test "$hardcode_shlibpath_var" = no; then
6839 add_shlibpath="$dir"
6840 add="-l$name"
8282 add_dir=-L$dir
8283 add=-l$name
8284 elif test no = "$hardcode_shlibpath_var"; then
8285 add_shlibpath=$dir
8286 add=-l$name
68418287 else
68428288 lib_linked=no
68438289 fi
68448290 ;;
68458291 relink)
6846 if test "$hardcode_direct" = yes &&
6847 test "$hardcode_direct_absolute" = no; then
6848 add="$dir/$linklib"
6849 elif test "$hardcode_minus_L" = yes; then
6850 add_dir="-L$absdir"
8292 if test yes = "$hardcode_direct" &&
8293 test no = "$hardcode_direct_absolute"; then
8294 add=$dir/$linklib
8295 elif test yes = "$hardcode_minus_L"; then
8296 add_dir=-L$absdir
68518297 # Try looking first in the location we're being installed to.
68528298 if test -n "$inst_prefix_dir"; then
68538299 case $libdir in
68568302 ;;
68578303 esac
68588304 fi
6859 add="-l$name"
6860 elif test "$hardcode_shlibpath_var" = yes; then
6861 add_shlibpath="$dir"
6862 add="-l$name"
8305 add=-l$name
8306 elif test yes = "$hardcode_shlibpath_var"; then
8307 add_shlibpath=$dir
8308 add=-l$name
68638309 else
68648310 lib_linked=no
68658311 fi
68678313 *) lib_linked=no ;;
68688314 esac
68698315
6870 if test "$lib_linked" != yes; then
8316 if test yes != "$lib_linked"; then
68718317 func_fatal_configuration "unsupported hardcode properties"
68728318 fi
68738319
68778323 *) func_append compile_shlibpath "$add_shlibpath:" ;;
68788324 esac
68798325 fi
6880 if test "$linkmode" = prog; then
8326 if test prog = "$linkmode"; then
68818327 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
68828328 test -n "$add" && compile_deplibs="$add $compile_deplibs"
68838329 else
68848330 test -n "$add_dir" && deplibs="$add_dir $deplibs"
68858331 test -n "$add" && deplibs="$add $deplibs"
6886 if test "$hardcode_direct" != yes &&
6887 test "$hardcode_minus_L" != yes &&
6888 test "$hardcode_shlibpath_var" = yes; then
8332 if test yes != "$hardcode_direct" &&
8333 test yes != "$hardcode_minus_L" &&
8334 test yes = "$hardcode_shlibpath_var"; then
68898335 case :$finalize_shlibpath: in
68908336 *":$libdir:"*) ;;
68918337 *) func_append finalize_shlibpath "$libdir:" ;;
68948340 fi
68958341 fi
68968342
6897 if test "$linkmode" = prog || test "$opt_mode" = relink; then
8343 if test prog = "$linkmode" || test relink = "$opt_mode"; then
68988344 add_shlibpath=
68998345 add_dir=
69008346 add=
69018347 # Finalize command for both is simple: just hardcode it.
6902 if test "$hardcode_direct" = yes &&
6903 test "$hardcode_direct_absolute" = no; then
6904 add="$libdir/$linklib"
6905 elif test "$hardcode_minus_L" = yes; then
6906 add_dir="-L$libdir"
6907 add="-l$name"
6908 elif test "$hardcode_shlibpath_var" = yes; then
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$libdir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$libdir
8353 add=-l$name
8354 elif test yes = "$hardcode_shlibpath_var"; then
69098355 case :$finalize_shlibpath: in
69108356 *":$libdir:"*) ;;
69118357 *) func_append finalize_shlibpath "$libdir:" ;;
69128358 esac
6913 add="-l$name"
6914 elif test "$hardcode_automatic" = yes; then
8359 add=-l$name
8360 elif test yes = "$hardcode_automatic"; then
69158361 if test -n "$inst_prefix_dir" &&
6916 test -f "$inst_prefix_dir$libdir/$linklib" ; then
6917 add="$inst_prefix_dir$libdir/$linklib"
8362 test -f "$inst_prefix_dir$libdir/$linklib"; then
8363 add=$inst_prefix_dir$libdir/$linklib
69188364 else
6919 add="$libdir/$linklib"
8365 add=$libdir/$linklib
69208366 fi
69218367 else
69228368 # We cannot seem to hardcode it, guess we'll fake it.
6923 add_dir="-L$libdir"
8369 add_dir=-L$libdir
69248370 # Try looking first in the location we're being installed to.
69258371 if test -n "$inst_prefix_dir"; then
69268372 case $libdir in
69298375 ;;
69308376 esac
69318377 fi
6932 add="-l$name"
8378 add=-l$name
69338379 fi
69348380
6935 if test "$linkmode" = prog; then
8381 if test prog = "$linkmode"; then
69368382 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
69378383 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
69388384 else
69408386 test -n "$add" && deplibs="$add $deplibs"
69418387 fi
69428388 fi
6943 elif test "$linkmode" = prog; then
8389 elif test prog = "$linkmode"; then
69448390 # Here we assume that one of hardcode_direct or hardcode_minus_L
69458391 # is not unsupported. This is valid on all known static and
69468392 # shared platforms.
6947 if test "$hardcode_direct" != unsupported; then
6948 test -n "$old_library" && linklib="$old_library"
8393 if test unsupported != "$hardcode_direct"; then
8394 test -n "$old_library" && linklib=$old_library
69498395 compile_deplibs="$dir/$linklib $compile_deplibs"
69508396 finalize_deplibs="$dir/$linklib $finalize_deplibs"
69518397 else
69528398 compile_deplibs="-l$name -L$dir $compile_deplibs"
69538399 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
69548400 fi
6955 elif test "$build_libtool_libs" = yes; then
8401 elif test yes = "$build_libtool_libs"; then
69568402 # Not a shared library
6957 if test "$deplibs_check_method" != pass_all; then
8403 if test pass_all != "$deplibs_check_method"; then
69588404 # We're trying link a shared library against a static one
69598405 # but the system doesn't support it.
69608406
69618407 # Just print a warning and add the library to dependency_libs so
69628408 # that the program can be linked against the static library.
69638409 echo
6964 $ECHO "*** Warning: This system can not link to static lib archive $lib."
8410 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
69658411 echo "*** I have the capability to make that library automatically link in when"
69668412 echo "*** you link to this library. But I can only do this if you have a"
69678413 echo "*** shared version of the library, which you do not appear to have."
6968 if test "$module" = yes; then
8414 if test yes = "$module"; then
69698415 echo "*** But as you try to build a module library, libtool will still create "
69708416 echo "*** a static module, that should work as long as the dlopening application"
69718417 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
69728418 if test -z "$global_symbol_pipe"; then
69738419 echo
69748420 echo "*** However, this would only work if libtool was able to extract symbol"
6975 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
8421 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
69768422 echo "*** not find such a program. So, this module is probably useless."
6977 echo "*** \`nm' from GNU binutils and a full rebuild may help."
8423 echo "*** 'nm' from GNU binutils and a full rebuild may help."
69788424 fi
6979 if test "$build_old_libs" = no; then
8425 if test no = "$build_old_libs"; then
69808426 build_libtool_libs=module
69818427 build_old_libs=yes
69828428 else
69898435 fi
69908436 fi # link shared/static library?
69918437
6992 if test "$linkmode" = lib; then
8438 if test lib = "$linkmode"; then
69938439 if test -n "$dependency_libs" &&
6994 { test "$hardcode_into_libs" != yes ||
6995 test "$build_old_libs" = yes ||
6996 test "$link_static" = yes; }; then
8440 { test yes != "$hardcode_into_libs" ||
8441 test yes = "$build_old_libs" ||
8442 test yes = "$link_static"; }; then
69978443 # Extract -R from dependency_libs
69988444 temp_deplibs=
69998445 for libdir in $dependency_libs; do
70078453 *) func_append temp_deplibs " $libdir";;
70088454 esac
70098455 done
7010 dependency_libs="$temp_deplibs"
8456 dependency_libs=$temp_deplibs
70118457 fi
70128458
70138459 func_append newlib_search_path " $absdir"
70148460 # Link against this library
7015 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8461 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
70168462 # ... and its dependency_libs
70178463 tmp_libs=
70188464 for deplib in $dependency_libs; do
70228468 func_resolve_sysroot "$func_stripname_result";;
70238469 *) func_resolve_sysroot "$deplib" ;;
70248470 esac
7025 if $opt_preserve_dup_deps ; then
8471 if $opt_preserve_dup_deps; then
70268472 case "$tmp_libs " in
70278473 *" $func_resolve_sysroot_result "*)
70288474 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
70318477 func_append tmp_libs " $func_resolve_sysroot_result"
70328478 done
70338479
7034 if test "$link_all_deplibs" != no; then
8480 if test no != "$link_all_deplibs"; then
70358481 # Add the search paths of all dependency libraries
70368482 for deplib in $dependency_libs; do
70378483 path=
70388484 case $deplib in
7039 -L*) path="$deplib" ;;
8485 -L*) path=$deplib ;;
70408486 *.la)
70418487 func_resolve_sysroot "$deplib"
70428488 deplib=$func_resolve_sysroot_result
70448490 dir=$func_dirname_result
70458491 # We need an absolute path.
70468492 case $dir in
7047 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
8493 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
70488494 *)
70498495 absdir=`cd "$dir" && pwd`
70508496 if test -z "$absdir"; then
7051 func_warning "cannot determine absolute directory name of \`$dir'"
7052 absdir="$dir"
8497 func_warning "cannot determine absolute directory name of '$dir'"
8498 absdir=$dir
70538499 fi
70548500 ;;
70558501 esac
70578503 case $host in
70588504 *-*-darwin*)
70598505 depdepl=
7060 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
7061 if test -n "$deplibrary_names" ; then
7062 for tmp in $deplibrary_names ; do
8506 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8507 if test -n "$deplibrary_names"; then
8508 for tmp in $deplibrary_names; do
70638509 depdepl=$tmp
70648510 done
7065 if test -f "$absdir/$objdir/$depdepl" ; then
7066 depdepl="$absdir/$objdir/$depdepl"
7067 darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8511 if test -f "$absdir/$objdir/$depdepl"; then
8512 depdepl=$absdir/$objdir/$depdepl
8513 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70688514 if test -z "$darwin_install_name"; then
7069 darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8515 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
70708516 fi
7071 func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
7072 func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}"
8517 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8518 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
70738519 path=
70748520 fi
70758521 fi
70768522 ;;
70778523 *)
7078 path="-L$absdir/$objdir"
8524 path=-L$absdir/$objdir
70798525 ;;
70808526 esac
70818527 else
7082 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8528 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
70838529 test -z "$libdir" && \
7084 func_fatal_error "\`$deplib' is not a valid libtool archive"
8530 func_fatal_error "'$deplib' is not a valid libtool archive"
70858531 test "$absdir" != "$libdir" && \
7086 func_warning "\`$deplib' seems to be moved"
7087
7088 path="-L$absdir"
8532 func_warning "'$deplib' seems to be moved"
8533
8534 path=-L$absdir
70898535 fi
70908536 ;;
70918537 esac
70978543 fi # link_all_deplibs != no
70988544 fi # linkmode = lib
70998545 done # for deplib in $libs
7100 if test "$pass" = link; then
7101 if test "$linkmode" = "prog"; then
8546 if test link = "$pass"; then
8547 if test prog = "$linkmode"; then
71028548 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
71038549 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
71048550 else
71058551 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
71068552 fi
71078553 fi
7108 dependency_libs="$newdependency_libs"
7109 if test "$pass" = dlpreopen; then
8554 dependency_libs=$newdependency_libs
8555 if test dlpreopen = "$pass"; then
71108556 # Link the dlpreopened libraries before other libraries
71118557 for deplib in $save_deplibs; do
71128558 deplibs="$deplib $deplibs"
71138559 done
71148560 fi
7115 if test "$pass" != dlopen; then
7116 if test "$pass" != conv; then
8561 if test dlopen != "$pass"; then
8562 test conv = "$pass" || {
71178563 # Make sure lib_search_path contains only unique directories.
71188564 lib_search_path=
71198565 for dir in $newlib_search_path; do
71238569 esac
71248570 done
71258571 newlib_search_path=
7126 fi
7127
7128 if test "$linkmode,$pass" != "prog,link"; then
7129 vars="deplibs"
8572 }
8573
8574 if test prog,link = "$linkmode,$pass"; then
8575 vars="compile_deplibs finalize_deplibs"
71308576 else
7131 vars="compile_deplibs finalize_deplibs"
8577 vars=deplibs
71328578 fi
71338579 for var in $vars dependency_libs; do
71348580 # Add libraries to $var in reverse order
71868632 eval $var=\"$tmp_libs\"
71878633 done # for var
71888634 fi
8635
8636 # Add Sun CC postdeps if required:
8637 test CXX = "$tagname" && {
8638 case $host_os in
8639 linux*)
8640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C++ 5.9
8642 func_suncc_cstd_abi
8643
8644 if test no != "$suncc_use_cstd_abi"; then
8645 func_append postdeps ' -library=Cstd -library=Crun'
8646 fi
8647 ;;
8648 esac
8649 ;;
8650
8651 solaris*)
8652 func_cc_basename "$CC"
8653 case $func_cc_basename_result in
8654 CC* | sunCC*)
8655 func_suncc_cstd_abi
8656
8657 if test no != "$suncc_use_cstd_abi"; then
8658 func_append postdeps ' -library=Cstd -library=Crun'
8659 fi
8660 ;;
8661 esac
8662 ;;
8663 esac
8664 }
8665
71898666 # Last step: remove runtime libs from dependency_libs
71908667 # (they stay in deplibs)
71918668 tmp_libs=
7192 for i in $dependency_libs ; do
8669 for i in $dependency_libs; do
71938670 case " $predeps $postdeps $compiler_lib_search_path " in
71948671 *" $i "*)
7195 i=""
8672 i=
71968673 ;;
71978674 esac
7198 if test -n "$i" ; then
8675 if test -n "$i"; then
71998676 func_append tmp_libs " $i"
72008677 fi
72018678 done
72028679 dependency_libs=$tmp_libs
72038680 done # for pass
7204 if test "$linkmode" = prog; then
7205 dlfiles="$newdlfiles"
8681 if test prog = "$linkmode"; then
8682 dlfiles=$newdlfiles
72068683 fi
7207 if test "$linkmode" = prog || test "$linkmode" = lib; then
7208 dlprefiles="$newdlprefiles"
8684 if test prog = "$linkmode" || test lib = "$linkmode"; then
8685 dlprefiles=$newdlprefiles
72098686 fi
72108687
72118688 case $linkmode in
72128689 oldlib)
7213 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
7214 func_warning "\`-dlopen' is ignored for archives"
8690 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8691 func_warning "'-dlopen' is ignored for archives"
72158692 fi
72168693
72178694 case " $deplibs" in
72188695 *\ -l* | *\ -L*)
7219 func_warning "\`-l' and \`-L' are ignored for archives" ;;
8696 func_warning "'-l' and '-L' are ignored for archives" ;;
72208697 esac
72218698
72228699 test -n "$rpath" && \
7223 func_warning "\`-rpath' is ignored for archives"
8700 func_warning "'-rpath' is ignored for archives"
72248701
72258702 test -n "$xrpath" && \
7226 func_warning "\`-R' is ignored for archives"
8703 func_warning "'-R' is ignored for archives"
72278704
72288705 test -n "$vinfo" && \
7229 func_warning "\`-version-info/-version-number' is ignored for archives"
8706 func_warning "'-version-info/-version-number' is ignored for archives"
72308707
72318708 test -n "$release" && \
7232 func_warning "\`-release' is ignored for archives"
8709 func_warning "'-release' is ignored for archives"
72338710
72348711 test -n "$export_symbols$export_symbols_regex" && \
7235 func_warning "\`-export-symbols' is ignored for archives"
8712 func_warning "'-export-symbols' is ignored for archives"
72368713
72378714 # Now set the variables for building old libraries.
72388715 build_libtool_libs=no
7239 oldlibs="$output"
8716 oldlibs=$output
72408717 func_append objs "$old_deplibs"
72418718 ;;
72428719
72438720 lib)
7244 # Make sure we only generate libraries of the form `libNAME.la'.
8721 # Make sure we only generate libraries of the form 'libNAME.la'.
72458722 case $outputname in
72468723 lib*)
72478724 func_stripname 'lib' '.la' "$outputname"
72508727 eval libname=\"$libname_spec\"
72518728 ;;
72528729 *)
7253 test "$module" = no && \
7254 func_fatal_help "libtool library \`$output' must begin with \`lib'"
7255
7256 if test "$need_lib_prefix" != no; then
8730 test no = "$module" \
8731 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8732
8733 if test no != "$need_lib_prefix"; then
72578734 # Add the "lib" prefix for modules if required
72588735 func_stripname '' '.la' "$outputname"
72598736 name=$func_stripname_result
72678744 esac
72688745
72698746 if test -n "$objs"; then
7270 if test "$deplibs_check_method" != pass_all; then
7271 func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
8747 if test pass_all != "$deplibs_check_method"; then
8748 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
72728749 else
72738750 echo
72748751 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
72778754 fi
72788755 fi
72798756
7280 test "$dlself" != no && \
7281 func_warning "\`-dlopen self' is ignored for libtool libraries"
8757 test no = "$dlself" \
8758 || func_warning "'-dlopen self' is ignored for libtool libraries"
72828759
72838760 set dummy $rpath
72848761 shift
7285 test "$#" -gt 1 && \
7286 func_warning "ignoring multiple \`-rpath's for a libtool library"
7287
7288 install_libdir="$1"
8762 test 1 -lt "$#" \
8763 && func_warning "ignoring multiple '-rpath's for a libtool library"
8764
8765 install_libdir=$1
72898766
72908767 oldlibs=
72918768 if test -z "$rpath"; then
7292 if test "$build_libtool_libs" = yes; then
8769 if test yes = "$build_libtool_libs"; then
72938770 # Building a libtool convenience library.
7294 # Some compilers have problems with a `.al' extension so
8771 # Some compilers have problems with a '.al' extension so
72958772 # convenience libraries should have the same extension an
72968773 # archive normally would.
72978774 oldlibs="$output_objdir/$libname.$libext $oldlibs"
73008777 fi
73018778
73028779 test -n "$vinfo" && \
7303 func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
8780 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
73048781
73058782 test -n "$release" && \
7306 func_warning "\`-release' is ignored for convenience libraries"
8783 func_warning "'-release' is ignored for convenience libraries"
73078784 else
73088785
73098786 # Parse the version information argument.
7310 save_ifs="$IFS"; IFS=':'
8787 save_ifs=$IFS; IFS=:
73118788 set dummy $vinfo 0 0 0
73128789 shift
7313 IFS="$save_ifs"
8790 IFS=$save_ifs
73148791
73158792 test -n "$7" && \
7316 func_fatal_help "too many parameters to \`-version-info'"
8793 func_fatal_help "too many parameters to '-version-info'"
73178794
73188795 # convert absolute version numbers to libtool ages
73198796 # this retains compatibility with .la files and attempts
73218798
73228799 case $vinfo_number in
73238800 yes)
7324 number_major="$1"
7325 number_minor="$2"
7326 number_revision="$3"
8801 number_major=$1
8802 number_minor=$2
8803 number_revision=$3
73278804 #
73288805 # There are really only two kinds -- those that
73298806 # use the current revision as the major version
73308807 # and those that subtract age and use age as
73318808 # a minor version. But, then there is irix
7332 # which has an extra 1 added just for fun
8809 # that has an extra 1 added just for fun
73338810 #
73348811 case $version_type in
73358812 # correct linux to gnu/linux during the next big refactor
7336 darwin|linux|osf|windows|none)
8813 darwin|freebsd-elf|linux|osf|windows|none)
73378814 func_arith $number_major + $number_minor
73388815 current=$func_arith_result
7339 age="$number_minor"
7340 revision="$number_revision"
8816 age=$number_minor
8817 revision=$number_revision
73418818 ;;
7342 freebsd-aout|freebsd-elf|qnx|sunos)
7343 current="$number_major"
7344 revision="$number_minor"
7345 age="0"
8819 freebsd-aout|qnx|sunos)
8820 current=$number_major
8821 revision=$number_minor
8822 age=0
73468823 ;;
73478824 irix|nonstopux)
73488825 func_arith $number_major + $number_minor
73498826 current=$func_arith_result
7350 age="$number_minor"
7351 revision="$number_minor"
8827 age=$number_minor
8828 revision=$number_minor
73528829 lt_irix_increment=no
73538830 ;;
73548831 *)
7355 func_fatal_configuration "$modename: unknown library version type \`$version_type'"
8832 func_fatal_configuration "$modename: unknown library version type '$version_type'"
73568833 ;;
73578834 esac
73588835 ;;
73598836 no)
7360 current="$1"
7361 revision="$2"
7362 age="$3"
8837 current=$1
8838 revision=$2
8839 age=$3
73638840 ;;
73648841 esac
73658842
73678844 case $current in
73688845 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]) ;;
73698846 *)
7370 func_error "CURRENT \`$current' must be a nonnegative integer"
7371 func_fatal_error "\`$vinfo' is not valid version information"
8847 func_error "CURRENT '$current' must be a nonnegative integer"
8848 func_fatal_error "'$vinfo' is not valid version information"
73728849 ;;
73738850 esac
73748851
73758852 case $revision in
73768853 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]) ;;
73778854 *)
7378 func_error "REVISION \`$revision' must be a nonnegative integer"
7379 func_fatal_error "\`$vinfo' is not valid version information"
8855 func_error "REVISION '$revision' must be a nonnegative integer"
8856 func_fatal_error "'$vinfo' is not valid version information"
73808857 ;;
73818858 esac
73828859
73838860 case $age in
73848861 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]) ;;
73858862 *)
7386 func_error "AGE \`$age' must be a nonnegative integer"
7387 func_fatal_error "\`$vinfo' is not valid version information"
8863 func_error "AGE '$age' must be a nonnegative integer"
8864 func_fatal_error "'$vinfo' is not valid version information"
73888865 ;;
73898866 esac
73908867
73918868 if test "$age" -gt "$current"; then
7392 func_error "AGE \`$age' is greater than the current interface number \`$current'"
7393 func_fatal_error "\`$vinfo' is not valid version information"
8869 func_error "AGE '$age' is greater than the current interface number '$current'"
8870 func_fatal_error "'$vinfo' is not valid version information"
73948871 fi
73958872
73968873 # Calculate the version variables.
74058882 # verstring for coding it into the library header
74068883 func_arith $current - $age
74078884 major=.$func_arith_result
7408 versuffix="$major.$age.$revision"
8885 versuffix=$major.$age.$revision
74098886 # Darwin ld doesn't like 0 for these options...
74108887 func_arith $current + 1
74118888 minor_current=$func_arith_result
7412 xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
8889 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
74138890 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8891 # On Darwin other compilers
8892 case $CC in
8893 nagfor*)
8894 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8895 ;;
8896 *)
8897 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8898 ;;
8899 esac
74148900 ;;
74158901
74168902 freebsd-aout)
7417 major=".$current"
7418 versuffix=".$current.$revision";
8903 major=.$current
8904 versuffix=.$current.$revision
74198905 ;;
74208906
74218907 freebsd-elf)
7422 major=".$current"
7423 versuffix=".$current"
8908 func_arith $current - $age
8909 major=.$func_arith_result
8910 versuffix=$major.$age.$revision
74248911 ;;
74258912
74268913 irix | nonstopux)
7427 if test "X$lt_irix_increment" = "Xno"; then
8914 if test no = "$lt_irix_increment"; then
74288915 func_arith $current - $age
74298916 else
74308917 func_arith $current - $age + 1
74358922 nonstopux) verstring_prefix=nonstopux ;;
74368923 *) verstring_prefix=sgi ;;
74378924 esac
7438 verstring="$verstring_prefix$major.$revision"
8925 verstring=$verstring_prefix$major.$revision
74398926
74408927 # Add in all the interfaces that we are compatible with.
74418928 loop=$revision
7442 while test "$loop" -ne 0; do
8929 while test 0 -ne "$loop"; do
74438930 func_arith $revision - $loop
74448931 iface=$func_arith_result
74458932 func_arith $loop - 1
74468933 loop=$func_arith_result
7447 verstring="$verstring_prefix$major.$iface:$verstring"
8934 verstring=$verstring_prefix$major.$iface:$verstring
74488935 done
74498936
7450 # Before this point, $major must not contain `.'.
8937 # Before this point, $major must not contain '.'.
74518938 major=.$major
7452 versuffix="$major.$revision"
8939 versuffix=$major.$revision
74538940 ;;
74548941
74558942 linux) # correct to gnu/linux during the next big refactor
74568943 func_arith $current - $age
74578944 major=.$func_arith_result
7458 versuffix="$major.$age.$revision"
8945 versuffix=$major.$age.$revision
74598946 ;;
74608947
74618948 osf)
74628949 func_arith $current - $age
74638950 major=.$func_arith_result
7464 versuffix=".$current.$age.$revision"
7465 verstring="$current.$age.$revision"
8951 versuffix=.$current.$age.$revision
8952 verstring=$current.$age.$revision
74668953
74678954 # Add in all the interfaces that we are compatible with.
74688955 loop=$age
7469 while test "$loop" -ne 0; do
8956 while test 0 -ne "$loop"; do
74708957 func_arith $current - $loop
74718958 iface=$func_arith_result
74728959 func_arith $loop - 1
74738960 loop=$func_arith_result
7474 verstring="$verstring:${iface}.0"
8961 verstring=$verstring:$iface.0
74758962 done
74768963
74778964 # Make executables depend on our current version.
7478 func_append verstring ":${current}.0"
8965 func_append verstring ":$current.0"
74798966 ;;
74808967
74818968 qnx)
7482 major=".$current"
7483 versuffix=".$current"
8969 major=.$current
8970 versuffix=.$current
74848971 ;;
74858972
8973 sco)
8974 major=.$current
8975 versuffix=.$current
8976 ;;
8977
74868978 sunos)
7487 major=".$current"
7488 versuffix=".$current.$revision"
8979 major=.$current
8980 versuffix=.$current.$revision
74898981 ;;
74908982
74918983 windows)
74928984 # Use '-' rather than '.', since we only want one
7493 # extension on DOS 8.3 filesystems.
8985 # extension on DOS 8.3 file systems.
74948986 func_arith $current - $age
74958987 major=$func_arith_result
7496 versuffix="-$major"
8988 versuffix=-$major
74978989 ;;
74988990
74998991 *)
7500 func_fatal_configuration "unknown library version type \`$version_type'"
8992 func_fatal_configuration "unknown library version type '$version_type'"
75018993 ;;
75028994 esac
75038995
75119003 verstring=
75129004 ;;
75139005 *)
7514 verstring="0.0"
9006 verstring=0.0
75159007 ;;
75169008 esac
7517 if test "$need_version" = no; then
9009 if test no = "$need_version"; then
75189010 versuffix=
75199011 else
7520 versuffix=".0.0"
9012 versuffix=.0.0
75219013 fi
75229014 fi
75239015
75249016 # Remove version info from name if versioning should be avoided
7525 if test "$avoid_version" = yes && test "$need_version" = no; then
9017 if test yes,no = "$avoid_version,$need_version"; then
75269018 major=
75279019 versuffix=
7528 verstring=""
9020 verstring=
75299021 fi
75309022
75319023 # Check to see if the archive will have undefined symbols.
7532 if test "$allow_undefined" = yes; then
7533 if test "$allow_undefined_flag" = unsupported; then
7534 func_warning "undefined symbols not allowed in $host shared libraries"
7535 build_libtool_libs=no
7536 build_old_libs=yes
9024 if test yes = "$allow_undefined"; then
9025 if test unsupported = "$allow_undefined_flag"; then
9026 if test yes = "$build_old_libs"; then
9027 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9028 build_libtool_libs=no
9029 else
9030 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9031 fi
75379032 fi
75389033 else
75399034 # Don't allow undefined symbols.
7540 allow_undefined_flag="$no_undefined_flag"
9035 allow_undefined_flag=$no_undefined_flag
75419036 fi
75429037
75439038 fi
75449039
7545 func_generate_dlsyms "$libname" "$libname" "yes"
9040 func_generate_dlsyms "$libname" "$libname" :
75469041 func_append libobjs " $symfileobj"
7547 test "X$libobjs" = "X " && libobjs=
7548
7549 if test "$opt_mode" != relink; then
9042 test " " = "$libobjs" && libobjs=
9043
9044 if test relink != "$opt_mode"; then
75509045 # Remove our outputs, but don't remove object files since they
75519046 # may have been created when compiling PIC objects.
75529047 removelist=
75559050 case $p in
75569051 *.$objext | *.gcno)
75579052 ;;
7558 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
7559 if test "X$precious_files_regex" != "X"; then
9053 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9054 if test -n "$precious_files_regex"; then
75609055 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
75619056 then
75629057 continue
75729067 fi
75739068
75749069 # Now set the variables for building old libraries.
7575 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
9070 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
75769071 func_append oldlibs " $output_objdir/$libname.$libext"
75779072
75789073 # Transform .lo files to .o files.
7579 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP`
9074 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
75809075 fi
75819076
75829077 # Eliminate all temporary directories.
75979092 *) func_append finalize_rpath " $libdir" ;;
75989093 esac
75999094 done
7600 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
9095 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
76019096 dependency_libs="$temp_xrpath $dependency_libs"
76029097 fi
76039098 fi
76049099
76059100 # Make sure dlfiles contains only unique files that won't be dlpreopened
7606 old_dlfiles="$dlfiles"
9101 old_dlfiles=$dlfiles
76079102 dlfiles=
76089103 for lib in $old_dlfiles; do
76099104 case " $dlprefiles $dlfiles " in
76139108 done
76149109
76159110 # Make sure dlprefiles contains only unique files
7616 old_dlprefiles="$dlprefiles"
9111 old_dlprefiles=$dlprefiles
76179112 dlprefiles=
76189113 for lib in $old_dlprefiles; do
76199114 case "$dlprefiles " in
76229117 esac
76239118 done
76249119
7625 if test "$build_libtool_libs" = yes; then
9120 if test yes = "$build_libtool_libs"; then
76269121 if test -n "$rpath"; then
76279122 case $host in
76289123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
76469141 ;;
76479142 *)
76489143 # Add libc to deplibs on all other systems if necessary.
7649 if test "$build_libtool_need_lc" = "yes"; then
9144 if test yes = "$build_libtool_need_lc"; then
76509145 func_append deplibs " -lc"
76519146 fi
76529147 ;;
76629157 # I'm not sure if I'm treating the release correctly. I think
76639158 # release should show up in the -l (ie -lgmp5) so we don't want to
76649159 # add it in twice. Is that correct?
7665 release=""
7666 versuffix=""
7667 major=""
9160 release=
9161 versuffix=
9162 major=
76689163 newdeplibs=
76699164 droppeddeps=no
76709165 case $deplibs_check_method in
76939188 -l*)
76949189 func_stripname -l '' "$i"
76959190 name=$func_stripname_result
7696 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9191 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
76979192 case " $predeps $postdeps " in
76989193 *" $i "*)
76999194 func_append newdeplibs " $i"
7700 i=""
9195 i=
77019196 ;;
77029197 esac
77039198 fi
7704 if test -n "$i" ; then
9199 if test -n "$i"; then
77059200 libname=`eval "\\$ECHO \"$libname_spec\""`
77069201 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77079202 set dummy $deplib_matches; shift
77089203 deplib_match=$1
7709 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9204 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77109205 func_append newdeplibs " $i"
77119206 else
77129207 droppeddeps=yes
77369231 $opt_dry_run || $RM conftest
77379232 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
77389233 ldd_output=`ldd conftest`
7739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9234 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77409235 case " $predeps $postdeps " in
77419236 *" $i "*)
77429237 func_append newdeplibs " $i"
7743 i=""
9238 i=
77449239 ;;
77459240 esac
77469241 fi
7747 if test -n "$i" ; then
9242 if test -n "$i"; then
77489243 libname=`eval "\\$ECHO \"$libname_spec\""`
77499244 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
77509245 set dummy $deplib_matches; shift
77519246 deplib_match=$1
7752 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
9247 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
77539248 func_append newdeplibs " $i"
77549249 else
77559250 droppeddeps=yes
77869281 -l*)
77879282 func_stripname -l '' "$a_deplib"
77889283 name=$func_stripname_result
7789 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9284 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
77909285 case " $predeps $postdeps " in
77919286 *" $a_deplib "*)
77929287 func_append newdeplibs " $a_deplib"
7793 a_deplib=""
9288 a_deplib=
77949289 ;;
77959290 esac
77969291 fi
7797 if test -n "$a_deplib" ; then
9292 if test -n "$a_deplib"; then
77989293 libname=`eval "\\$ECHO \"$libname_spec\""`
77999294 if test -n "$file_magic_glob"; then
78009295 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
78019296 else
78029297 libnameglob=$libname
78039298 fi
7804 test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob`
9299 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
78059300 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
7806 if test "$want_nocaseglob" = yes; then
9301 if test yes = "$want_nocaseglob"; then
78079302 shopt -s nocaseglob
78089303 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
78099304 $nocaseglob
78219316 # We might still enter an endless loop, since a link
78229317 # loop can be closed while we follow links,
78239318 # but so what?
7824 potlib="$potent_lib"
9319 potlib=$potent_lib
78259320 while test -h "$potlib" 2>/dev/null; do
7826 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
9321 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
78279322 case $potliblink in
7828 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
7829 *) potlib=`$ECHO "$potlib" | $SED 's,[^/]*$,,'`"$potliblink";;
9323 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9324 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
78309325 esac
78319326 done
78329327 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
78339328 $SED -e 10q |
78349329 $EGREP "$file_magic_regex" > /dev/null; then
78359330 func_append newdeplibs " $a_deplib"
7836 a_deplib=""
9331 a_deplib=
78379332 break 2
78389333 fi
78399334 done
78409335 done
78419336 fi
7842 if test -n "$a_deplib" ; then
9337 if test -n "$a_deplib"; then
78439338 droppeddeps=yes
78449339 echo
78459340 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
78479342 echo "*** you link to this library. But I can only do this if you have a"
78489343 echo "*** shared version of the library, which you do not appear to have"
78499344 echo "*** because I did check the linker path looking for a file starting"
7850 if test -z "$potlib" ; then
9345 if test -z "$potlib"; then
78519346 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
78529347 else
78539348 $ECHO "*** with $libname and none of the candidates passed a file format test"
78709365 -l*)
78719366 func_stripname -l '' "$a_deplib"
78729367 name=$func_stripname_result
7873 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
9368 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
78749369 case " $predeps $postdeps " in
78759370 *" $a_deplib "*)
78769371 func_append newdeplibs " $a_deplib"
7877 a_deplib=""
9372 a_deplib=
78789373 ;;
78799374 esac
78809375 fi
7881 if test -n "$a_deplib" ; then
9376 if test -n "$a_deplib"; then
78829377 libname=`eval "\\$ECHO \"$libname_spec\""`
78839378 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
78849379 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
78859380 for potent_lib in $potential_libs; do
7886 potlib="$potent_lib" # see symlink-check above in file_magic test
9381 potlib=$potent_lib # see symlink-check above in file_magic test
78879382 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
78889383 $EGREP "$match_pattern_regex" > /dev/null; then
78899384 func_append newdeplibs " $a_deplib"
7890 a_deplib=""
9385 a_deplib=
78919386 break 2
78929387 fi
78939388 done
78949389 done
78959390 fi
7896 if test -n "$a_deplib" ; then
9391 if test -n "$a_deplib"; then
78979392 droppeddeps=yes
78989393 echo
78999394 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
79019396 echo "*** you link to this library. But I can only do this if you have a"
79029397 echo "*** shared version of the library, which you do not appear to have"
79039398 echo "*** because I did check the linker path looking for a file starting"
7904 if test -z "$potlib" ; then
9399 if test -z "$potlib"; then
79059400 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
79069401 else
79079402 $ECHO "*** with $libname and none of the candidates passed a file format test"
79179412 done # Gone through all deplibs.
79189413 ;;
79199414 none | unknown | *)
7920 newdeplibs=""
9415 newdeplibs=
79219416 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
7922 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
7923 for i in $predeps $postdeps ; do
9417 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9418 for i in $predeps $postdeps; do
79249419 # can't use Xsed below, because $i might contain '/'
7925 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s,$i,,"`
9420 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
79269421 done
79279422 fi
79289423 case $tmp_deplibs in
79299424 *[!\ \ ]*)
79309425 echo
7931 if test "X$deplibs_check_method" = "Xnone"; then
9426 if test none = "$deplibs_check_method"; then
79329427 echo "*** Warning: inter-library dependencies are not supported in this platform."
79339428 else
79349429 echo "*** Warning: inter-library dependencies are not known to be supported."
79529447 ;;
79539448 esac
79549449
7955 if test "$droppeddeps" = yes; then
7956 if test "$module" = yes; then
9450 if test yes = "$droppeddeps"; then
9451 if test yes = "$module"; then
79579452 echo
79589453 echo "*** Warning: libtool could not satisfy all declared inter-library"
79599454 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
79629457 if test -z "$global_symbol_pipe"; then
79639458 echo
79649459 echo "*** However, this would only work if libtool was able to extract symbol"
7965 echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
9460 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
79669461 echo "*** not find such a program. So, this module is probably useless."
7967 echo "*** \`nm' from GNU binutils and a full rebuild may help."
9462 echo "*** 'nm' from GNU binutils and a full rebuild may help."
79689463 fi
7969 if test "$build_old_libs" = no; then
7970 oldlibs="$output_objdir/$libname.$libext"
9464 if test no = "$build_old_libs"; then
9465 oldlibs=$output_objdir/$libname.$libext
79719466 build_libtool_libs=module
79729467 build_old_libs=yes
79739468 else
79789473 echo "*** automatically added whenever a program is linked with this library"
79799474 echo "*** or is declared to -dlopen it."
79809475
7981 if test "$allow_undefined" = no; then
9476 if test no = "$allow_undefined"; then
79829477 echo
79839478 echo "*** Since this library must not contain undefined symbols,"
79849479 echo "*** because either the platform does not support them or"
79859480 echo "*** it was explicitly requested with -no-undefined,"
79869481 echo "*** libtool will only create a static version of it."
7987 if test "$build_old_libs" = no; then
7988 oldlibs="$output_objdir/$libname.$libext"
9482 if test no = "$build_old_libs"; then
9483 oldlibs=$output_objdir/$libname.$libext
79899484 build_libtool_libs=module
79909485 build_old_libs=yes
79919486 else
80319526 *) func_append new_libs " $deplib" ;;
80329527 esac
80339528 done
8034 deplibs="$new_libs"
9529 deplibs=$new_libs
80359530
80369531 # All the library-specific variables (install_libdir is set above).
80379532 library_names=
80399534 dlname=
80409535
80419536 # Test again, we may have decided not to build it any more
8042 if test "$build_libtool_libs" = yes; then
8043 # Remove ${wl} instances when linking with ld.
9537 if test yes = "$build_libtool_libs"; then
9538 # Remove $wl instances when linking with ld.
80449539 # FIXME: should test the right _cmds variable.
80459540 case $archive_cmds in
80469541 *\$LD\ *) wl= ;;
80479542 esac
8048 if test "$hardcode_into_libs" = yes; then
9543 if test yes = "$hardcode_into_libs"; then
80499544 # Hardcode the library paths
80509545 hardcode_libdirs=
80519546 dep_rpath=
8052 rpath="$finalize_rpath"
8053 test "$opt_mode" != relink && rpath="$compile_rpath$rpath"
9547 rpath=$finalize_rpath
9548 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
80549549 for libdir in $rpath; do
80559550 if test -n "$hardcode_libdir_flag_spec"; then
80569551 if test -n "$hardcode_libdir_separator"; then
80579552 func_replace_sysroot "$libdir"
80589553 libdir=$func_replace_sysroot_result
80599554 if test -z "$hardcode_libdirs"; then
8060 hardcode_libdirs="$libdir"
9555 hardcode_libdirs=$libdir
80619556 else
80629557 # Just accumulate the unique libdirs.
80639558 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
80829577 # Substitute the hardcoded libdirs into the rpath.
80839578 if test -n "$hardcode_libdir_separator" &&
80849579 test -n "$hardcode_libdirs"; then
8085 libdir="$hardcode_libdirs"
9580 libdir=$hardcode_libdirs
80869581 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
80879582 fi
80889583 if test -n "$runpath_var" && test -n "$perm_rpath"; then
80969591 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
80979592 fi
80989593
8099 shlibpath="$finalize_shlibpath"
8100 test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
9594 shlibpath=$finalize_shlibpath
9595 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
81019596 if test -n "$shlibpath"; then
81029597 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
81039598 fi
81079602 eval library_names=\"$library_names_spec\"
81089603 set dummy $library_names
81099604 shift
8110 realname="$1"
9605 realname=$1
81119606 shift
81129607
81139608 if test -n "$soname_spec"; then
81149609 eval soname=\"$soname_spec\"
81159610 else
8116 soname="$realname"
9611 soname=$realname
81179612 fi
81189613 if test -z "$dlname"; then
81199614 dlname=$soname
81209615 fi
81219616
8122 lib="$output_objdir/$realname"
9617 lib=$output_objdir/$realname
81239618 linknames=
81249619 for link
81259620 do
81339628 delfiles=
81349629 if test -n "$export_symbols" && test -n "$include_expsyms"; then
81359630 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
8136 export_symbols="$output_objdir/$libname.uexp"
9631 export_symbols=$output_objdir/$libname.uexp
81379632 func_append delfiles " $export_symbols"
81389633 fi
81399634
81429637 cygwin* | mingw* | cegcc*)
81439638 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
81449639 # exporting using user supplied symfile
8145 if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
9640 func_dll_def_p "$export_symbols" || {
81469641 # and it's NOT already a .def file. Must figure out
81479642 # which of the given symbols are data symbols and tag
81489643 # them as such. So, trigger use of export_symbols_cmds.
81499644 # export_symbols gets reassigned inside the "prepare
81509645 # the list of exported symbols" if statement, so the
81519646 # include_expsyms logic still works.
8152 orig_export_symbols="$export_symbols"
9647 orig_export_symbols=$export_symbols
81539648 export_symbols=
81549649 always_export_symbols=yes
8155 fi
9650 }
81569651 fi
81579652 ;;
81589653 esac
81599654
81609655 # Prepare the list of exported symbols
81619656 if test -z "$export_symbols"; then
8162 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
8163 func_verbose "generating symbol list for \`$libname.la'"
8164 export_symbols="$output_objdir/$libname.exp"
9657 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9658 func_verbose "generating symbol list for '$libname.la'"
9659 export_symbols=$output_objdir/$libname.exp
81659660 $opt_dry_run || $RM $export_symbols
81669661 cmds=$export_symbols_cmds
8167 save_ifs="$IFS"; IFS='~'
9662 save_ifs=$IFS; IFS='~'
81689663 for cmd1 in $cmds; do
8169 IFS="$save_ifs"
9664 IFS=$save_ifs
81709665 # Take the normal branch if the nm_file_list_spec branch
81719666 # doesn't work or if tool conversion is not needed.
81729667 case $nm_file_list_spec~$to_tool_file_cmd in
81809675 try_normal_branch=no
81819676 ;;
81829677 esac
8183 if test "$try_normal_branch" = yes \
9678 if test yes = "$try_normal_branch" \
81849679 && { test "$len" -lt "$max_cmd_len" \
81859680 || test "$max_cmd_len" -le -1; }
81869681 then
81919686 output_la=$func_basename_result
81929687 save_libobjs=$libobjs
81939688 save_output=$output
8194 output=${output_objdir}/${output_la}.nm
9689 output=$output_objdir/$output_la.nm
81959690 func_to_tool_file "$output"
81969691 libobjs=$nm_file_list_spec$func_to_tool_file_result
81979692 func_append delfiles " $output"
82149709 break
82159710 fi
82169711 done
8217 IFS="$save_ifs"
8218 if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
9712 IFS=$save_ifs
9713 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
82199714 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
82209715 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
82219716 fi
82239718 fi
82249719
82259720 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8226 tmp_export_symbols="$export_symbols"
8227 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9721 tmp_export_symbols=$export_symbols
9722 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
82289723 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
82299724 fi
82309725
8231 if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
9726 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
82329727 # The given exports_symbols file has to be filtered, so filter it.
8233 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9728 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
82349729 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8235 # 's' commands which not all seds can handle. GNU sed should be fine
9730 # 's' commands, which not all seds can handle. GNU sed should be fine
82369731 # though. Also, the filter scales superlinearly with the number of
82379732 # global variables. join(1) would be nice here, but unfortunately
82389733 # isn't a blessed tool.
82519746 ;;
82529747 esac
82539748 done
8254 deplibs="$tmp_deplibs"
9749 deplibs=$tmp_deplibs
82559750
82569751 if test -n "$convenience"; then
82579752 if test -n "$whole_archive_flag_spec" &&
8258 test "$compiler_needs_object" = yes &&
9753 test yes = "$compiler_needs_object" &&
82599754 test -z "$libobjs"; then
82609755 # extract the archives, so we have objects to list.
82619756 # TODO: could optimize this to just extract one archive.
82669761 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
82679762 test "X$libobjs" = "X " && libobjs=
82689763 else
8269 gentop="$output_objdir/${outputname}x"
9764 gentop=$output_objdir/${outputname}x
82709765 func_append generated " $gentop"
82719766
82729767 func_extract_archives $gentop $convenience
82759770 fi
82769771 fi
82779772
8278 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
9773 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
82799774 eval flag=\"$thread_safe_flag_spec\"
82809775 func_append linker_flags " $flag"
82819776 fi
82829777
82839778 # Make a backup of the uninstalled library when relinking
8284 if test "$opt_mode" = relink; then
9779 if test relink = "$opt_mode"; then
82859780 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
82869781 fi
82879782
82889783 # Do each of the archive commands.
8289 if test "$module" = yes && test -n "$module_cmds" ; then
9784 if test yes = "$module" && test -n "$module_cmds"; then
82909785 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
82919786 eval test_cmds=\"$module_expsym_cmds\"
82929787 cmds=$module_expsym_cmds
83049799 fi
83059800 fi
83069801
8307 if test "X$skipped_export" != "X:" &&
9802 if test : != "$skipped_export" &&
83089803 func_len " $test_cmds" &&
83099804 len=$func_len_result &&
83109805 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
83379832 last_robj=
83389833 k=1
83399834
8340 if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
8341 output=${output_objdir}/${output_la}.lnkscript
9835 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9836 output=$output_objdir/$output_la.lnkscript
83429837 func_verbose "creating GNU ld script: $output"
83439838 echo 'INPUT (' > $output
83449839 for obj in $save_libobjs
83509845 func_append delfiles " $output"
83519846 func_to_tool_file "$output"
83529847 output=$func_to_tool_file_result
8353 elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
8354 output=${output_objdir}/${output_la}.lnk
9848 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9849 output=$output_objdir/$output_la.lnk
83559850 func_verbose "creating linker input file list: $output"
83569851 : > $output
83579852 set x $save_libobjs
83589853 shift
83599854 firstobj=
8360 if test "$compiler_needs_object" = yes; then
9855 if test yes = "$compiler_needs_object"; then
83619856 firstobj="$1 "
83629857 shift
83639858 fi
83729867 else
83739868 if test -n "$save_libobjs"; then
83749869 func_verbose "creating reloadable object files..."
8375 output=$output_objdir/$output_la-${k}.$objext
9870 output=$output_objdir/$output_la-$k.$objext
83769871 eval test_cmds=\"$reload_cmds\"
83779872 func_len " $test_cmds"
83789873 len0=$func_len_result
83849879 func_len " $obj"
83859880 func_arith $len + $func_len_result
83869881 len=$func_arith_result
8387 if test "X$objlist" = X ||
9882 if test -z "$objlist" ||
83889883 test "$len" -lt "$max_cmd_len"; then
83899884 func_append objlist " $obj"
83909885 else
83919886 # The command $test_cmds is almost too long, add a
83929887 # command to the queue.
8393 if test "$k" -eq 1 ; then
9888 if test 1 -eq "$k"; then
83949889 # The first file doesn't have a previous command to add.
83959890 reload_objs=$objlist
83969891 eval concat_cmds=\"$reload_cmds\"
84009895 reload_objs="$objlist $last_robj"
84019896 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
84029897 fi
8403 last_robj=$output_objdir/$output_la-${k}.$objext
9898 last_robj=$output_objdir/$output_la-$k.$objext
84049899 func_arith $k + 1
84059900 k=$func_arith_result
8406 output=$output_objdir/$output_la-${k}.$objext
9901 output=$output_objdir/$output_la-$k.$objext
84079902 objlist=" $obj"
84089903 func_len " $last_robj"
84099904 func_arith $len0 + $func_len_result
84159910 # files will link in the last one created.
84169911 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
84179912 reload_objs="$objlist $last_robj"
8418 eval concat_cmds=\"\${concat_cmds}$reload_cmds\"
9913 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
84199914 if test -n "$last_robj"; then
8420 eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
9915 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84219916 fi
84229917 func_append delfiles " $output"
84239918
84259920 output=
84269921 fi
84279922
8428 if ${skipped_export-false}; then
8429 func_verbose "generating symbol list for \`$libname.la'"
8430 export_symbols="$output_objdir/$libname.exp"
9923 ${skipped_export-false} && {
9924 func_verbose "generating symbol list for '$libname.la'"
9925 export_symbols=$output_objdir/$libname.exp
84319926 $opt_dry_run || $RM $export_symbols
84329927 libobjs=$output
84339928 # Append the command to create the export file.
84369931 if test -n "$last_robj"; then
84379932 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
84389933 fi
8439 fi
9934 }
84409935
84419936 test -n "$save_libobjs" &&
84429937 func_verbose "creating a temporary reloadable object file: $output"
84439938
84449939 # Loop through the commands generated above and execute them.
8445 save_ifs="$IFS"; IFS='~'
9940 save_ifs=$IFS; IFS='~'
84469941 for cmd in $concat_cmds; do
8447 IFS="$save_ifs"
8448 $opt_silent || {
9942 IFS=$save_ifs
9943 $opt_quiet || {
84499944 func_quote_for_expand "$cmd"
84509945 eval "func_echo $func_quote_for_expand_result"
84519946 }
84539948 lt_exit=$?
84549949
84559950 # Restore the uninstalled library and exit
8456 if test "$opt_mode" = relink; then
9951 if test relink = "$opt_mode"; then
84579952 ( cd "$output_objdir" && \
84589953 $RM "${realname}T" && \
84599954 $MV "${realname}U" "$realname" )
84629957 exit $lt_exit
84639958 }
84649959 done
8465 IFS="$save_ifs"
9960 IFS=$save_ifs
84669961
84679962 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
84689963 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
84709965 fi
84719966 fi
84729967
8473 if ${skipped_export-false}; then
9968 ${skipped_export-false} && {
84749969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
8475 tmp_export_symbols="$export_symbols"
8476 test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
9970 tmp_export_symbols=$export_symbols
9971 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
84779972 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
84789973 fi
84799974
84809975 if test -n "$orig_export_symbols"; then
84819976 # The given exports_symbols file has to be filtered, so filter it.
8482 func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
9977 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
84839978 # FIXME: $output_objdir/$libname.filter potentially contains lots of
8484 # 's' commands which not all seds can handle. GNU sed should be fine
9979 # 's' commands, which not all seds can handle. GNU sed should be fine
84859980 # though. Also, the filter scales superlinearly with the number of
84869981 # global variables. join(1) would be nice here, but unfortunately
84879982 # isn't a blessed tool.
84909985 export_symbols=$output_objdir/$libname.def
84919986 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
84929987 fi
8493 fi
9988 }
84949989
84959990 libobjs=$output
84969991 # Restore the value of output.
85049999 # value of $libobjs for piecewise linking.
850510000
850610001 # Do each of the archive commands.
8507 if test "$module" = yes && test -n "$module_cmds" ; then
10002 if test yes = "$module" && test -n "$module_cmds"; then
850810003 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
850910004 cmds=$module_expsym_cmds
851010005 else
852610021
852710022 # Add any objects from preloaded convenience libraries
852810023 if test -n "$dlprefiles"; then
8529 gentop="$output_objdir/${outputname}x"
10024 gentop=$output_objdir/${outputname}x
853010025 func_append generated " $gentop"
853110026
853210027 func_extract_archives $gentop $dlprefiles
853410029 test "X$libobjs" = "X " && libobjs=
853510030 fi
853610031
8537 save_ifs="$IFS"; IFS='~'
10032 save_ifs=$IFS; IFS='~'
853810033 for cmd in $cmds; do
8539 IFS="$save_ifs"
10034 IFS=$sp$nl
854010035 eval cmd=\"$cmd\"
8541 $opt_silent || {
10036 IFS=$save_ifs
10037 $opt_quiet || {
854210038 func_quote_for_expand "$cmd"
854310039 eval "func_echo $func_quote_for_expand_result"
854410040 }
854610042 lt_exit=$?
854710043
854810044 # Restore the uninstalled library and exit
8549 if test "$opt_mode" = relink; then
10045 if test relink = "$opt_mode"; then
855010046 ( cd "$output_objdir" && \
855110047 $RM "${realname}T" && \
855210048 $MV "${realname}U" "$realname" )
855510051 exit $lt_exit
855610052 }
855710053 done
8558 IFS="$save_ifs"
10054 IFS=$save_ifs
855910055
856010056 # Restore the uninstalled library and exit
8561 if test "$opt_mode" = relink; then
10057 if test relink = "$opt_mode"; then
856210058 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
856310059
856410060 if test -n "$convenience"; then
857810074 done
857910075
858010076 # If -module or -export-dynamic was specified, set the dlname.
8581 if test "$module" = yes || test "$export_dynamic" = yes; then
10077 if test yes = "$module" || test yes = "$export_dynamic"; then
858210078 # On all known operating systems, these are identical.
8583 dlname="$soname"
10079 dlname=$soname
858410080 fi
858510081 fi
858610082 ;;
858710083
858810084 obj)
8589 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
8590 func_warning "\`-dlopen' is ignored for objects"
10085 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10086 func_warning "'-dlopen' is ignored for objects"
859110087 fi
859210088
859310089 case " $deplibs" in
859410090 *\ -l* | *\ -L*)
8595 func_warning "\`-l' and \`-L' are ignored for objects" ;;
10091 func_warning "'-l' and '-L' are ignored for objects" ;;
859610092 esac
859710093
859810094 test -n "$rpath" && \
8599 func_warning "\`-rpath' is ignored for objects"
10095 func_warning "'-rpath' is ignored for objects"
860010096
860110097 test -n "$xrpath" && \
8602 func_warning "\`-R' is ignored for objects"
10098 func_warning "'-R' is ignored for objects"
860310099
860410100 test -n "$vinfo" && \
8605 func_warning "\`-version-info' is ignored for objects"
10101 func_warning "'-version-info' is ignored for objects"
860610102
860710103 test -n "$release" && \
8608 func_warning "\`-release' is ignored for objects"
10104 func_warning "'-release' is ignored for objects"
860910105
861010106 case $output in
861110107 *.lo)
861210108 test -n "$objs$old_deplibs" && \
8613 func_fatal_error "cannot build library object \`$output' from non-libtool objects"
10109 func_fatal_error "cannot build library object '$output' from non-libtool objects"
861410110
861510111 libobj=$output
861610112 func_lo2o "$libobj"
861810114 ;;
861910115 *)
862010116 libobj=
8621 obj="$output"
10117 obj=$output
862210118 ;;
862310119 esac
862410120
863110127 # the extraction.
863210128 reload_conv_objs=
863310129 gentop=
8634 # reload_cmds runs $LD directly, so let us get rid of
8635 # -Wl from whole_archive_flag_spec and hope we can get by with
8636 # turning comma into space..
8637 wl=
8638
10130 # if reload_cmds runs $LD directly, get rid of -Wl from
10131 # whole_archive_flag_spec and hope we can get by with turning comma
10132 # into space.
10133 case $reload_cmds in
10134 *\$LD[\ \$]*) wl= ;;
10135 esac
863910136 if test -n "$convenience"; then
864010137 if test -n "$whole_archive_flag_spec"; then
864110138 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
8642 reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10139 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10140 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
864310141 else
8644 gentop="$output_objdir/${obj}x"
10142 gentop=$output_objdir/${obj}x
864510143 func_append generated " $gentop"
864610144
864710145 func_extract_archives $gentop $convenience
865010148 fi
865110149
865210150 # If we're not building shared, we need to use non_pic_objs
8653 test "$build_libtool_libs" != yes && libobjs="$non_pic_objects"
10151 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
865410152
865510153 # Create the old-style object.
8656 reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
8657
8658 output="$obj"
10154 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10155
10156 output=$obj
865910157 func_execute_cmds "$reload_cmds" 'exit $?'
866010158
866110159 # Exit if we aren't doing a library object file.
866710165 exit $EXIT_SUCCESS
866810166 fi
866910167
8670 if test "$build_libtool_libs" != yes; then
10168 test yes = "$build_libtool_libs" || {
867110169 if test -n "$gentop"; then
867210170 func_show_eval '${RM}r "$gentop"'
867310171 fi
867710175 # $show "echo timestamp > $libobj"
867810176 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
867910177 exit $EXIT_SUCCESS
8680 fi
8681
8682 if test -n "$pic_flag" || test "$pic_mode" != default; then
10178 }
10179
10180 if test -n "$pic_flag" || test default != "$pic_mode"; then
868310181 # Only do commands if we really have different PIC objects.
868410182 reload_objs="$libobjs $reload_conv_objs"
8685 output="$libobj"
10183 output=$libobj
868610184 func_execute_cmds "$reload_cmds" 'exit $?'
868710185 fi
868810186
869910197 output=$func_stripname_result.exe;;
870010198 esac
870110199 test -n "$vinfo" && \
8702 func_warning "\`-version-info' is ignored for programs"
10200 func_warning "'-version-info' is ignored for programs"
870310201
870410202 test -n "$release" && \
8705 func_warning "\`-release' is ignored for programs"
8706
8707 test "$preload" = yes \
8708 && test "$dlopen_support" = unknown \
8709 && test "$dlopen_self" = unknown \
8710 && test "$dlopen_self_static" = unknown && \
8711 func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
10203 func_warning "'-release' is ignored for programs"
10204
10205 $preload \
10206 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10207 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
871210208
871310209 case $host in
871410210 *-*-rhapsody* | *-*-darwin1.[012])
872210218 *-*-darwin*)
872310219 # Don't allow lazy linking, it breaks C++ global constructors
872410220 # But is supposedly fixed on 10.4 or later (yay!).
8725 if test "$tagname" = CXX ; then
10221 if test CXX = "$tagname"; then
872610222 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
872710223 10.[0123])
8728 func_append compile_command " ${wl}-bind_at_load"
8729 func_append finalize_command " ${wl}-bind_at_load"
10224 func_append compile_command " $wl-bind_at_load"
10225 func_append finalize_command " $wl-bind_at_load"
873010226 ;;
873110227 esac
873210228 fi
876210258 *) func_append new_libs " $deplib" ;;
876310259 esac
876410260 done
8765 compile_deplibs="$new_libs"
10261 compile_deplibs=$new_libs
876610262
876710263
876810264 func_append compile_command " $compile_deplibs"
878610282 if test -n "$hardcode_libdir_flag_spec"; then
878710283 if test -n "$hardcode_libdir_separator"; then
878810284 if test -z "$hardcode_libdirs"; then
8789 hardcode_libdirs="$libdir"
10285 hardcode_libdirs=$libdir
879010286 else
879110287 # Just accumulate the unique libdirs.
879210288 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
880910305 fi
881010306 case $host in
881110307 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
8812 testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
10308 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
881310309 case :$dllsearchpath: in
881410310 *":$libdir:"*) ;;
881510311 ::) dllsearchpath=$libdir;;
882610322 # Substitute the hardcoded libdirs into the rpath.
882710323 if test -n "$hardcode_libdir_separator" &&
882810324 test -n "$hardcode_libdirs"; then
8829 libdir="$hardcode_libdirs"
10325 libdir=$hardcode_libdirs
883010326 eval rpath=\" $hardcode_libdir_flag_spec\"
883110327 fi
8832 compile_rpath="$rpath"
10328 compile_rpath=$rpath
883310329
883410330 rpath=
883510331 hardcode_libdirs=
883710333 if test -n "$hardcode_libdir_flag_spec"; then
883810334 if test -n "$hardcode_libdir_separator"; then
883910335 if test -z "$hardcode_libdirs"; then
8840 hardcode_libdirs="$libdir"
10336 hardcode_libdirs=$libdir
884110337 else
884210338 # Just accumulate the unique libdirs.
884310339 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
886210358 # Substitute the hardcoded libdirs into the rpath.
886310359 if test -n "$hardcode_libdir_separator" &&
886410360 test -n "$hardcode_libdirs"; then
8865 libdir="$hardcode_libdirs"
10361 libdir=$hardcode_libdirs
886610362 eval rpath=\" $hardcode_libdir_flag_spec\"
886710363 fi
8868 finalize_rpath="$rpath"
8869
8870 if test -n "$libobjs" && test "$build_old_libs" = yes; then
10364 finalize_rpath=$rpath
10365
10366 if test -n "$libobjs" && test yes = "$build_old_libs"; then
887110367 # Transform all the library objects into standard objects.
887210368 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887310369 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
887410370 fi
887510371
8876 func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
10372 func_generate_dlsyms "$outputname" "@PROGRAM@" false
887710373
887810374 # template prelinking step
887910375 if test -n "$prelink_cmds"; then
888010376 func_execute_cmds "$prelink_cmds" 'exit $?'
888110377 fi
888210378
8883 wrappers_required=yes
10379 wrappers_required=:
888410380 case $host in
888510381 *cegcc* | *mingw32ce*)
888610382 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
8887 wrappers_required=no
10383 wrappers_required=false
888810384 ;;
888910385 *cygwin* | *mingw* )
8890 if test "$build_libtool_libs" != yes; then
8891 wrappers_required=no
8892 fi
10386 test yes = "$build_libtool_libs" || wrappers_required=false
889310387 ;;
889410388 *)
8895 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
8896 wrappers_required=no
10389 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10390 wrappers_required=false
889710391 fi
889810392 ;;
889910393 esac
8900 if test "$wrappers_required" = no; then
10394 $wrappers_required || {
890110395 # Replace the output file specification.
890210396 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
8903 link_command="$compile_command$compile_rpath"
10397 link_command=$compile_command$compile_rpath
890410398
890510399 # We have no uninstalled library dependencies, so finalize right now.
890610400 exit_status=0
891310407 fi
891410408
891510409 # Delete the generated files.
8916 if test -f "$output_objdir/${outputname}S.${objext}"; then
8917 func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
10410 if test -f "$output_objdir/${outputname}S.$objext"; then
10411 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
891810412 fi
891910413
892010414 exit $exit_status
8921 fi
10415 }
892210416
892310417 if test -n "$compile_shlibpath$finalize_shlibpath"; then
892410418 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
894810442 fi
894910443 fi
895010444
8951 if test "$no_install" = yes; then
10445 if test yes = "$no_install"; then
895210446 # We don't need to create a wrapper script.
8953 link_command="$compile_var$compile_command$compile_rpath"
10447 link_command=$compile_var$compile_command$compile_rpath
895410448 # Replace the output file specification.
895510449 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
895610450 # Delete the old output file.
896710461 exit $EXIT_SUCCESS
896810462 fi
896910463
8970 if test "$hardcode_action" = relink; then
8971 # Fast installation is not supported
8972 link_command="$compile_var$compile_command$compile_rpath"
8973 relink_command="$finalize_var$finalize_command$finalize_rpath"
8974
8975 func_warning "this platform does not like uninstalled shared libraries"
8976 func_warning "\`$output' will be relinked during installation"
8977 else
8978 if test "$fast_install" != no; then
8979 link_command="$finalize_var$compile_command$finalize_rpath"
8980 if test "$fast_install" = yes; then
8981 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
8982 else
8983 # fast_install is set to needless
8984 relink_command=
8985 fi
8986 else
8987 link_command="$compile_var$compile_command$compile_rpath"
8988 relink_command="$finalize_var$finalize_command$finalize_rpath"
8989 fi
8990 fi
10464 case $hardcode_action,$fast_install in
10465 relink,*)
10466 # Fast installation is not supported
10467 link_command=$compile_var$compile_command$compile_rpath
10468 relink_command=$finalize_var$finalize_command$finalize_rpath
10469
10470 func_warning "this platform does not like uninstalled shared libraries"
10471 func_warning "'$output' will be relinked during installation"
10472 ;;
10473 *,yes)
10474 link_command=$finalize_var$compile_command$finalize_rpath
10475 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10476 ;;
10477 *,no)
10478 link_command=$compile_var$compile_command$compile_rpath
10479 relink_command=$finalize_var$finalize_command$finalize_rpath
10480 ;;
10481 *,needless)
10482 link_command=$finalize_var$compile_command$finalize_rpath
10483 relink_command=
10484 ;;
10485 esac
899110486
899210487 # Replace the output file specification.
899310488 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
904410539 func_dirname_and_basename "$output" "" "."
904510540 output_name=$func_basename_result
904610541 output_path=$func_dirname_result
9047 cwrappersource="$output_path/$objdir/lt-$output_name.c"
9048 cwrapper="$output_path/$output_name.exe"
10542 cwrappersource=$output_path/$objdir/lt-$output_name.c
10543 cwrapper=$output_path/$output_name.exe
904910544 $RM $cwrappersource $cwrapper
905010545 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
905110546
906610561 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
906710562 $opt_dry_run || {
906810563 # note: this script will not be executed, so do not chmod.
9069 if test "x$build" = "x$host" ; then
10564 if test "x$build" = "x$host"; then
907010565 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
907110566 else
907210567 func_emit_wrapper no > $func_ltwrapper_scriptname_result
908910584 # See if we need to build an old-fashioned archive.
909010585 for oldlib in $oldlibs; do
909110586
9092 if test "$build_libtool_libs" = convenience; then
9093 oldobjs="$libobjs_save $symfileobj"
9094 addlibs="$convenience"
9095 build_libtool_libs=no
9096 else
9097 if test "$build_libtool_libs" = module; then
9098 oldobjs="$libobjs_save"
10587 case $build_libtool_libs in
10588 convenience)
10589 oldobjs="$libobjs_save $symfileobj"
10590 addlibs=$convenience
909910591 build_libtool_libs=no
9100 else
10592 ;;
10593 module)
10594 oldobjs=$libobjs_save
10595 addlibs=$old_convenience
10596 build_libtool_libs=no
10597 ;;
10598 *)
910110599 oldobjs="$old_deplibs $non_pic_objects"
9102 if test "$preload" = yes && test -f "$symfileobj"; then
9103 func_append oldobjs " $symfileobj"
9104 fi
9105 fi
9106 addlibs="$old_convenience"
9107 fi
10600 $preload && test -f "$symfileobj" \
10601 && func_append oldobjs " $symfileobj"
10602 addlibs=$old_convenience
10603 ;;
10604 esac
910810605
910910606 if test -n "$addlibs"; then
9110 gentop="$output_objdir/${outputname}x"
10607 gentop=$output_objdir/${outputname}x
911110608 func_append generated " $gentop"
911210609
911310610 func_extract_archives $gentop $addlibs
911510612 fi
911610613
911710614 # Do each command in the archive commands.
9118 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
10615 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
911910616 cmds=$old_archive_from_new_cmds
912010617 else
912110618
912210619 # Add any objects from preloaded convenience libraries
912310620 if test -n "$dlprefiles"; then
9124 gentop="$output_objdir/${outputname}x"
10621 gentop=$output_objdir/${outputname}x
912510622 func_append generated " $gentop"
912610623
912710624 func_extract_archives $gentop $dlprefiles
914210639 :
914310640 else
914410641 echo "copying selected object files to avoid basename conflicts..."
9145 gentop="$output_objdir/${outputname}x"
10642 gentop=$output_objdir/${outputname}x
914610643 func_append generated " $gentop"
914710644 func_mkdir_p "$gentop"
914810645 save_oldobjs=$oldobjs
915110648 for obj in $save_oldobjs
915210649 do
915310650 func_basename "$obj"
9154 objbase="$func_basename_result"
10651 objbase=$func_basename_result
915510652 case " $oldobjs " in
915610653 " ") oldobjs=$obj ;;
915710654 *[\ /]"$objbase "*)
922010717 else
922110718 # the above command should be used before it gets too long
922210719 oldobjs=$objlist
9223 if test "$obj" = "$last_oldobj" ; then
10720 if test "$obj" = "$last_oldobj"; then
922410721 RANLIB=$save_RANLIB
922510722 fi
922610723 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9227 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
10724 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
922810725 objlist=
922910726 len=$len0
923010727 fi
923110728 done
923210729 RANLIB=$save_RANLIB
923310730 oldobjs=$objlist
9234 if test "X$oldobjs" = "X" ; then
10731 if test -z "$oldobjs"; then
923510732 eval cmds=\"\$concat_cmds\"
923610733 else
923710734 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
924810745 case $output in
924910746 *.la)
925010747 old_library=
9251 test "$build_old_libs" = yes && old_library="$libname.$libext"
10748 test yes = "$build_old_libs" && old_library=$libname.$libext
925210749 func_verbose "creating $output"
925310750
925410751 # Preserve any variables that may affect compiler behavior
926310760 fi
926410761 done
926510762 # Quote the link command for shipping.
9266 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10763 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
926710764 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
9268 if test "$hardcode_automatic" = yes ; then
10765 if test yes = "$hardcode_automatic"; then
926910766 relink_command=
927010767 fi
927110768
927210769 # Only create the output if not a dry run.
927310770 $opt_dry_run || {
927410771 for installed in no yes; do
9275 if test "$installed" = yes; then
10772 if test yes = "$installed"; then
927610773 if test -z "$install_libdir"; then
927710774 break
927810775 fi
9279 output="$output_objdir/$outputname"i
10776 output=$output_objdir/${outputname}i
928010777 # Replace all uninstalled libtool libraries with the installed ones
928110778 newdependency_libs=
928210779 for deplib in $dependency_libs; do
928310780 case $deplib in
928410781 *.la)
928510782 func_basename "$deplib"
9286 name="$func_basename_result"
10783 name=$func_basename_result
928710784 func_resolve_sysroot "$deplib"
9288 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10785 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
928910786 test -z "$libdir" && \
9290 func_fatal_error "\`$deplib' is not a valid libtool archive"
10787 func_fatal_error "'$deplib' is not a valid libtool archive"
929110788 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
929210789 ;;
929310790 -L*)
930310800 *) func_append newdependency_libs " $deplib" ;;
930410801 esac
930510802 done
9306 dependency_libs="$newdependency_libs"
10803 dependency_libs=$newdependency_libs
930710804 newdlfiles=
930810805
930910806 for lib in $dlfiles; do
931010807 case $lib in
931110808 *.la)
931210809 func_basename "$lib"
9313 name="$func_basename_result"
9314 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10810 name=$func_basename_result
10811 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
931510812 test -z "$libdir" && \
9316 func_fatal_error "\`$lib' is not a valid libtool archive"
10813 func_fatal_error "'$lib' is not a valid libtool archive"
931710814 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
931810815 ;;
931910816 *) func_append newdlfiles " $lib" ;;
932010817 esac
932110818 done
9322 dlfiles="$newdlfiles"
10819 dlfiles=$newdlfiles
932310820 newdlprefiles=
932410821 for lib in $dlprefiles; do
932510822 case $lib in
932910826 # didn't already link the preopened objects directly into
933010827 # the library:
933110828 func_basename "$lib"
9332 name="$func_basename_result"
9333 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10829 name=$func_basename_result
10830 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
933410831 test -z "$libdir" && \
9335 func_fatal_error "\`$lib' is not a valid libtool archive"
10832 func_fatal_error "'$lib' is not a valid libtool archive"
933610833 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
933710834 ;;
933810835 esac
933910836 done
9340 dlprefiles="$newdlprefiles"
10837 dlprefiles=$newdlprefiles
934110838 else
934210839 newdlfiles=
934310840 for lib in $dlfiles; do
934410841 case $lib in
9345 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
934610843 *) abs=`pwd`"/$lib" ;;
934710844 esac
934810845 func_append newdlfiles " $abs"
934910846 done
9350 dlfiles="$newdlfiles"
10847 dlfiles=$newdlfiles
935110848 newdlprefiles=
935210849 for lib in $dlprefiles; do
935310850 case $lib in
9354 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
10851 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
935510852 *) abs=`pwd`"/$lib" ;;
935610853 esac
935710854 func_append newdlprefiles " $abs"
935810855 done
9359 dlprefiles="$newdlprefiles"
10856 dlprefiles=$newdlprefiles
936010857 fi
936110858 $RM $output
936210859 # place dlname in correct position for cygwin
937210869 case $host,$output,$installed,$module,$dlname in
937310870 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
937410871 # If a -bindir argument was supplied, place the dll there.
9375 if test "x$bindir" != x ;
9376 then
10872 if test -n "$bindir"; then
937710873 func_relative_path "$install_libdir" "$bindir"
9378 tdlname=$func_relative_path_result$dlname
10874 tdlname=$func_relative_path_result/$dlname
937910875 else
938010876 # Otherwise fall back on heuristic.
938110877 tdlname=../bin/$dlname
938410880 esac
938510881 $ECHO > $output "\
938610882 # $outputname - a libtool library file
9387 # Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
10883 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
938810884 #
938910885 # Please DO NOT delete this file!
939010886 # It is necessary for linking the library.
939810894 # The name of the static archive.
939910895 old_library='$old_library'
940010896
9401 # Linker flags that can not go in dependency_libs.
10897 # Linker flags that cannot go in dependency_libs.
940210898 inherited_linker_flags='$new_inherited_linker_flags'
940310899
940410900 # Libraries that this one depends upon.
942410920
942510921 # Directory that this library needs to be installed in:
942610922 libdir='$install_libdir'"
9427 if test "$installed" = no && test "$need_relink" = yes; then
10923 if test no,yes = "$installed,$need_relink"; then
942810924 $ECHO >> $output "\
942910925 relink_command=\"$relink_command\""
943010926 fi
943910935 exit $EXIT_SUCCESS
944010936 }
944110937
9442 { test "$opt_mode" = link || test "$opt_mode" = relink; } &&
9443 func_mode_link ${1+"$@"}
10938 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10939 func_mode_link ${1+"$@"}
10940 fi
944410941
944510942
944610943 # func_mode_uninstall arg...
944710944 func_mode_uninstall ()
944810945 {
9449 $opt_debug
9450 RM="$nonopt"
10946 $debug_cmd
10947
10948 RM=$nonopt
945110949 files=
9452 rmforce=
10950 rmforce=false
945310951 exit_status=0
945410952
945510953 # This variable tells wrapper scripts just to set variables rather
945610954 # than running their programs.
9457 libtool_install_magic="$magic"
10955 libtool_install_magic=$magic
945810956
945910957 for arg
946010958 do
946110959 case $arg in
9462 -f) func_append RM " $arg"; rmforce=yes ;;
10960 -f) func_append RM " $arg"; rmforce=: ;;
946310961 -*) func_append RM " $arg" ;;
946410962 *) func_append files " $arg" ;;
946510963 esac
947210970
947310971 for file in $files; do
947410972 func_dirname "$file" "" "."
9475 dir="$func_dirname_result"
9476 if test "X$dir" = X.; then
9477 odir="$objdir"
10973 dir=$func_dirname_result
10974 if test . = "$dir"; then
10975 odir=$objdir
947810976 else
9479 odir="$dir/$objdir"
10977 odir=$dir/$objdir
948010978 fi
948110979 func_basename "$file"
9482 name="$func_basename_result"
9483 test "$opt_mode" = uninstall && odir="$dir"
10980 name=$func_basename_result
10981 test uninstall = "$opt_mode" && odir=$dir
948410982
948510983 # Remember odir for removal later, being careful to avoid duplicates
9486 if test "$opt_mode" = clean; then
10984 if test clean = "$opt_mode"; then
948710985 case " $rmdirs " in
948810986 *" $odir "*) ;;
948910987 *) func_append rmdirs " $odir" ;;
949810996 elif test -d "$file"; then
949910997 exit_status=1
950010998 continue
9501 elif test "$rmforce" = yes; then
10999 elif $rmforce; then
950211000 continue
950311001 fi
950411002
9505 rmfiles="$file"
11003 rmfiles=$file
950611004
950711005 case $name in
950811006 *.la)
951611014 done
951711015 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
951811016
9519 case "$opt_mode" in
11017 case $opt_mode in
952011018 clean)
952111019 case " $library_names " in
952211020 *" $dlname "*) ;;
952711025 uninstall)
952811026 if test -n "$library_names"; then
952911027 # Do each command in the postuninstall commands.
9530 func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11028 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
953111029 fi
953211030
953311031 if test -n "$old_library"; then
953411032 # Do each command in the old_postuninstall commands.
9535 func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
11033 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
953611034 fi
953711035 # FIXME: should reinstall the best remaining shared library.
953811036 ;;
954811046 func_source $dir/$name
954911047
955011048 # Add PIC object to the list of files to remove.
9551 if test -n "$pic_object" &&
9552 test "$pic_object" != none; then
11049 if test -n "$pic_object" && test none != "$pic_object"; then
955311050 func_append rmfiles " $dir/$pic_object"
955411051 fi
955511052
955611053 # Add non-PIC object to the list of files to remove.
9557 if test -n "$non_pic_object" &&
9558 test "$non_pic_object" != none; then
11054 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
955911055 func_append rmfiles " $dir/$non_pic_object"
956011056 fi
956111057 fi
956211058 ;;
956311059
956411060 *)
9565 if test "$opt_mode" = clean ; then
11061 if test clean = "$opt_mode"; then
956611062 noexename=$name
956711063 case $file in
956811064 *.exe)
958911085
959011086 # note $name still contains .exe if it was in $file originally
959111087 # as does the version of $file that was added into $rmfiles
9592 func_append rmfiles " $odir/$name $odir/${name}S.${objext}"
9593 if test "$fast_install" = yes && test -n "$relink_command"; then
11088 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11089 if test yes = "$fast_install" && test -n "$relink_command"; then
959411090 func_append rmfiles " $odir/lt-$name"
959511091 fi
9596 if test "X$noexename" != "X$name" ; then
9597 func_append rmfiles " $odir/lt-${noexename}.c"
11092 if test "X$noexename" != "X$name"; then
11093 func_append rmfiles " $odir/lt-$noexename.c"
959811094 fi
959911095 fi
960011096 fi
960311099 func_show_eval "$RM $rmfiles" 'exit_status=1'
960411100 done
960511101
9606 # Try to remove the ${objdir}s in the directories where we deleted files
11102 # Try to remove the $objdir's in the directories where we deleted files
960711103 for dir in $rmdirs; do
960811104 if test -d "$dir"; then
960911105 func_show_eval "rmdir $dir >/dev/null 2>&1"
961311109 exit $exit_status
961411110 }
961511111
9616 { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } &&
9617 func_mode_uninstall ${1+"$@"}
11112 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11113 func_mode_uninstall ${1+"$@"}
11114 fi
961811115
961911116 test -z "$opt_mode" && {
9620 help="$generic_help"
11117 help=$generic_help
962111118 func_fatal_help "you must specify a MODE"
962211119 }
962311120
962411121 test -z "$exec_cmd" && \
9625 func_fatal_help "invalid operation mode \`$opt_mode'"
11122 func_fatal_help "invalid operation mode '$opt_mode'"
962611123
962711124 if test -n "$exec_cmd"; then
962811125 eval exec "$exec_cmd"
963311130
963411131
963511132 # The TAGs below are defined such that we never get into a situation
9636 # in which we disable both kinds of libraries. Given conflicting
11133 # where we disable both kinds of libraries. Given conflicting
963711134 # choices, we go for a static library, that is the most portable,
963811135 # since we can't tell whether shared libraries were disabled because
963911136 # the user asked for that or because the platform doesn't support
965611153 # mode:shell-script
965711154 # sh-indentation:2
965811155 # End:
9659 # vi:sw=2
9660
+155
-316
missing less more
00 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2009-04-28.21; # UTC
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
6 # 2008, 2009 Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
87
98 # This program is free software; you can redistribute it and/or modify
109 # it under the terms of the GNU General Public License as published by
2524 # the same distribution terms that you use for the rest of that program.
2625
2726 if test $# -eq 0; then
28 echo 1>&2 "Try \`$0 --help' for more information"
27 echo 1>&2 "Try '$0 --help' for more information"
2928 exit 1
3029 fi
3130
32 run=:
33 sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
34 sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
4631 case $1 in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
6243
6344 -h|--h|--he|--hel|--help)
6445 echo "\
6546 $0 [OPTION]... PROGRAM [ARGUMENT]...
6647
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
6950
7051 Options:
7152 -h, --help display this help and exit
7253 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
7454
7555 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 autom4te touch the output file, or create a stub one
80 automake touch all \`Makefile.in' files
81 bison create \`y.tab.[ch]', if possible, from existing .[ch]
82 flex create \`lex.yy.c', if possible, from existing .c
83 help2man touch the output file
84 lex create \`lex.yy.c', if possible, from existing .c
85 makeinfo touch the output file
86 tar try tar, gnutar, gtar, then tar without non-portable flags
87 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
88
89 Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
90 \`g' are ignored when checking the name.
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
9161
9262 Send bug reports to <bug-automake@gnu.org>."
9363 exit $?
9969 ;;
10070
10171 -*)
102 echo 1>&2 "$0: Unknown \`$1' option"
103 echo 1>&2 "Try \`$0 --help' for more information"
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
10474 exit 1
10575 ;;
10676
10777 esac
10878
109 # normalize program name to check for.
110 program=`echo "$1" | sed '
111 s/^gnu-//; t
112 s/^gnu//; t
113 s/^g//; t'`
114
115 # Now exit if we have it, but it failed. Also exit now if we
116 # don't have it and --version was passed (most likely to detect
117 # the program). This is about non-GNU programs, so use $1 not
118 # $program.
119 case $1 in
120 lex*|yacc*)
121 # Not GNU programs, they don't have --version.
122 ;;
123
124 tar*)
125 if test -n "$run"; then
126 echo 1>&2 "ERROR: \`tar' requires --run"
127 exit 1
128 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
129 exit 1
130 fi
131 ;;
132
133 *)
134 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
135 # We have it, but it failed.
136 exit 1
137 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
138 # Could not run --version or --help. This is probably someone
139 # running `$TOOL --version' or `$TOOL --help' to check whether
140 # $TOOL exists and not knowing $TOOL uses missing.
141 exit 1
142 fi
143 ;;
144 esac
145
146 # If it does not exist, or fails to run (possibly an outdated version),
147 # try to emulate it.
148 case $program in
149 aclocal*)
150 echo 1>&2 "\
151 WARNING: \`$1' is $msg. You should only need it if
152 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
153 to install the \`Automake' and \`Perl' packages. Grab them from
154 any GNU archive site."
155 touch aclocal.m4
156 ;;
157
158 autoconf*)
159 echo 1>&2 "\
160 WARNING: \`$1' is $msg. You should only need it if
161 you modified \`${configure_ac}'. You might want to install the
162 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
163 archive site."
164 touch configure
165 ;;
166
167 autoheader*)
168 echo 1>&2 "\
169 WARNING: \`$1' is $msg. You should only need it if
170 you modified \`acconfig.h' or \`${configure_ac}'. You might want
171 to install the \`Autoconf' and \`GNU m4' packages. Grab them
172 from any GNU archive site."
173 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
174 test -z "$files" && files="config.h"
175 touch_files=
176 for f in $files; do
177 case $f in
178 *:*) touch_files="$touch_files "`echo "$f" |
179 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
180 *) touch_files="$touch_files $f.in";;
181 esac
182 done
183 touch $touch_files
184 ;;
185
186 automake*)
187 echo 1>&2 "\
188 WARNING: \`$1' is $msg. You should only need it if
189 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
190 You might want to install the \`Automake' and \`Perl' packages.
191 Grab them from any GNU archive site."
192 find . -type f -name Makefile.am -print |
193 sed 's/\.am$/.in/' |
194 while read f; do touch "$f"; done
195 ;;
196
197 autom4te*)
198 echo 1>&2 "\
199 WARNING: \`$1' is needed, but is $msg.
200 You might have modified some files without having the
201 proper tools for further handling them.
202 You can get \`$1' as part of \`Autoconf' from any GNU
203 archive site."
204
205 file=`echo "$*" | sed -n "$sed_output"`
206 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
207 if test -f "$file"; then
208 touch $file
209 else
210 test -z "$file" || exec >$file
211 echo "#! /bin/sh"
212 echo "# Created by GNU Automake missing as a replacement of"
213 echo "# $ $@"
214 echo "exit 0"
215 chmod +x $file
216 exit 1
217 fi
218 ;;
219
220 bison*|yacc*)
221 echo 1>&2 "\
222 WARNING: \`$1' $msg. You should only need it if
223 you modified a \`.y' file. You may need the \`Bison' package
224 in order for those modifications to take effect. You can get
225 \`Bison' from any GNU archive site."
226 rm -f y.tab.c y.tab.h
227 if test $# -ne 1; then
228 eval LASTARG="\${$#}"
229 case $LASTARG in
230 *.y)
231 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
232 if test -f "$SRCFILE"; then
233 cp "$SRCFILE" y.tab.c
234 fi
235 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
236 if test -f "$SRCFILE"; then
237 cp "$SRCFILE" y.tab.h
238 fi
239 ;;
240 esac
241 fi
242 if test ! -f y.tab.h; then
243 echo >y.tab.h
244 fi
245 if test ! -f y.tab.c; then
246 echo 'main() { return 0; }' >y.tab.c
247 fi
248 ;;
249
250 lex*|flex*)
251 echo 1>&2 "\
252 WARNING: \`$1' is $msg. You should only need it if
253 you modified a \`.l' file. You may need the \`Flex' package
254 in order for those modifications to take effect. You can get
255 \`Flex' from any GNU archive site."
256 rm -f lex.yy.c
257 if test $# -ne 1; then
258 eval LASTARG="\${$#}"
259 case $LASTARG in
260 *.l)
261 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
262 if test -f "$SRCFILE"; then
263 cp "$SRCFILE" lex.yy.c
264 fi
265 ;;
266 esac
267 fi
268 if test ! -f lex.yy.c; then
269 echo 'main() { return 0; }' >lex.yy.c
270 fi
271 ;;
272
273 help2man*)
274 echo 1>&2 "\
275 WARNING: \`$1' is $msg. You should only need it if
276 you modified a dependency of a manual page. You may need the
277 \`Help2man' package in order for those modifications to take
278 effect. You can get \`Help2man' from any GNU archive site."
279
280 file=`echo "$*" | sed -n "$sed_output"`
281 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
282 if test -f "$file"; then
283 touch $file
284 else
285 test -z "$file" || exec >$file
286 echo ".ab help2man is required to generate this page"
287 exit $?
288 fi
289 ;;
290
291 makeinfo*)
292 echo 1>&2 "\
293 WARNING: \`$1' is $msg. You should only need it if
294 you modified a \`.texi' or \`.texinfo' file, or any other file
295 indirectly affecting the aspect of the manual. The spurious
296 call might also be the consequence of using a buggy \`make' (AIX,
297 DU, IRIX). You might want to install the \`Texinfo' package or
298 the \`GNU make' package. Grab either from any GNU archive site."
299 # The file to touch is that specified with -o ...
300 file=`echo "$*" | sed -n "$sed_output"`
301 test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
302 if test -z "$file"; then
303 # ... or it is the one specified with @setfilename ...
304 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
305 file=`sed -n '
306 /^@setfilename/{
307 s/.* \([^ ]*\) *$/\1/
308 p
309 q
310 }' $infile`
311 # ... or it is derived from the source name (dir/f.texi becomes f.info)
312 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
313 fi
314 # If the file does not exist, the user really needs makeinfo;
315 # let's fail without touching anything.
316 test -f $file || exit 1
317 touch $file
318 ;;
319
320 tar*)
321 shift
322
323 # We have already tried tar in the generic part.
324 # Look for gnutar/gtar before invocation to avoid ugly error
325 # messages.
326 if (gnutar --version > /dev/null 2>&1); then
327 gnutar "$@" && exit 0
328 fi
329 if (gtar --version > /dev/null 2>&1); then
330 gtar "$@" && exit 0
331 fi
332 firstarg="$1"
333 if shift; then
334 case $firstarg in
335 *o*)
336 firstarg=`echo "$firstarg" | sed s/o//`
337 tar "$firstarg" "$@" && exit 0
338 ;;
339 esac
340 case $firstarg in
341 *h*)
342 firstarg=`echo "$firstarg" | sed s/h//`
343 tar "$firstarg" "$@" && exit 0
344 ;;
345 esac
346 fi
347
348 echo 1>&2 "\
349 WARNING: I can't seem to be able to run \`tar' with the given arguments.
350 You may want to install GNU tar or Free paxutils, or check the
351 command line arguments."
352 exit 1
353 ;;
354
355 *)
356 echo 1>&2 "\
357 WARNING: \`$1' is needed, and is $msg.
358 You might have modified some files without having the
359 proper tools for further handling them. Check the \`README' file,
360 it often tells you about the needed prerequisites for installing
361 this package. You may also peek at any GNU archive site, in case
362 some other package would contain this missing \`$1' program."
363 exit 1
364 ;;
365 esac
366
367 exit 0
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
368207
369208 # Local variables:
370209 # eval: (add-hook 'write-file-hooks 'time-stamp)
3030 otfdrive.c \
3131 internal.h
3232
33 libotf_la_LDFLAGS = -version-info 1:0:0
34
3335 include_HEADERS = otf.h
0 # Makefile.in generated by automake 1.11.3 from Makefile.am.
0 # Makefile.in generated by automake 1.15 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
5 # Foundation, Inc.
3 # Copyright (C) 1994-2014 Free Software Foundation, Inc.
4
65 # This Makefile.in is free software; the Free Software Foundation
76 # gives unlimited permission to copy and/or distribute it,
87 # with or without modifications, as long as this notice is preserved.
3837
3938
4039 VPATH = @srcdir@
40 am__is_gnu_make = { \
41 if test -z '$(MAKELEVEL)'; then \
42 false; \
43 elif test -n '$(MAKE_HOST)'; then \
44 true; \
45 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
46 true; \
47 else \
48 false; \
49 fi; \
50 }
51 am__make_running_with_option = \
52 case $${target_option-} in \
53 ?) ;; \
54 *) echo "am__make_running_with_option: internal error: invalid" \
55 "target option '$${target_option-}' specified" >&2; \
56 exit 1;; \
57 esac; \
58 has_opt=no; \
59 sane_makeflags=$$MAKEFLAGS; \
60 if $(am__is_gnu_make); then \
61 sane_makeflags=$$MFLAGS; \
62 else \
63 case $$MAKEFLAGS in \
64 *\\[\ \ ]*) \
65 bs=\\; \
66 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
67 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
68 esac; \
69 fi; \
70 skip_next=no; \
71 strip_trailopt () \
72 { \
73 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
74 }; \
75 for flg in $$sane_makeflags; do \
76 test $$skip_next = yes && { skip_next=no; continue; }; \
77 case $$flg in \
78 *=*|--*) continue;; \
79 -*I) strip_trailopt 'I'; skip_next=yes;; \
80 -*I?*) strip_trailopt 'I';; \
81 -*O) strip_trailopt 'O'; skip_next=yes;; \
82 -*O?*) strip_trailopt 'O';; \
83 -*l) strip_trailopt 'l'; skip_next=yes;; \
84 -*l?*) strip_trailopt 'l';; \
85 -[dEDm]) skip_next=yes;; \
86 -[JT]) skip_next=yes;; \
87 esac; \
88 case $$flg in \
89 *$$target_option*) has_opt=yes; break;; \
90 esac; \
91 done; \
92 test $$has_opt = yes
93 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
94 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
4195 pkgdatadir = $(datadir)/@PACKAGE@
4296 pkgincludedir = $(includedir)/@PACKAGE@
4397 pkglibdir = $(libdir)/@PACKAGE@
57111 build_triplet = @build@
58112 host_triplet = @host@
59113 subdir = src
60 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
61 $(srcdir)/Makefile.in $(srcdir)/config.h.in
62114 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
63115 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
64116 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
65117 $(ACLOCAL_M4)
118 DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \
119 $(am__DIST_COMMON)
66120 mkinstalldirs = $(install_sh) -d
67121 CONFIG_HEADER = config.h
68122 CONFIG_CLEAN_FILES =
99153 libotf_la_LIBADD =
100154 am_libotf_la_OBJECTS = otferror.lo otfopen.lo otfdrive.lo
101155 libotf_la_OBJECTS = $(am_libotf_la_OBJECTS)
156 AM_V_lt = $(am__v_lt_@AM_V@)
157 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
158 am__v_lt_0 = --silent
159 am__v_lt_1 =
160 libotf_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
161 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
162 $(libotf_la_LDFLAGS) $(LDFLAGS) -o $@
163 AM_V_P = $(am__v_P_@AM_V@)
164 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
165 am__v_P_0 = false
166 am__v_P_1 = :
167 AM_V_GEN = $(am__v_GEN_@AM_V@)
168 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
169 am__v_GEN_0 = @echo " GEN " $@;
170 am__v_GEN_1 =
171 AM_V_at = $(am__v_at_@AM_V@)
172 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
173 am__v_at_0 = @
174 am__v_at_1 =
102175 DEFAULT_INCLUDES = -I.@am__isrc@
103176 depcomp = $(SHELL) $(top_srcdir)/depcomp
104177 am__depfiles_maybe = depfiles
105178 am__mv = mv -f
106179 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
107180 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
108 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
109 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
110 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
181 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
182 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
183 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
184 $(AM_CFLAGS) $(CFLAGS)
185 AM_V_CC = $(am__v_CC_@AM_V@)
186 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
187 am__v_CC_0 = @echo " CC " $@;
188 am__v_CC_1 =
111189 CCLD = $(CC)
112 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
113 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
114 $(LDFLAGS) -o $@
190 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
191 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
192 $(AM_LDFLAGS) $(LDFLAGS) -o $@
193 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
194 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
195 am__v_CCLD_0 = @echo " CCLD " $@;
196 am__v_CCLD_1 =
115197 SOURCES = $(libotf_la_SOURCES)
116198 DIST_SOURCES = $(libotf_la_SOURCES)
199 am__can_run_installinfo = \
200 case $$AM_UPDATE_INFO_DIR in \
201 n|no|NO) false;; \
202 *) (install-info --version) >/dev/null 2>&1;; \
203 esac
117204 HEADERS = $(include_HEADERS)
205 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
206 $(LISP)config.h.in
207 # Read a list of newline-separated strings from the standard input,
208 # and print each of them once, without duplicates. Input order is
209 # *not* preserved.
210 am__uniquify_input = $(AWK) '\
211 BEGIN { nonempty = 0; } \
212 { items[$$0] = 1; nonempty = 1; } \
213 END { if (nonempty) { for (i in items) print i; }; } \
214 '
215 # Make sure the list of sources is unique. This is necessary because,
216 # e.g., the same source file might be shared among _SOURCES variables
217 # for different programs/libraries.
218 am__define_uniq_tagged_files = \
219 list='$(am__tagged_files)'; \
220 unique=`for i in $$list; do \
221 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
222 done | $(am__uniquify_input)`
118223 ETAGS = etags
119224 CTAGS = ctags
225 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
226 $(top_srcdir)/depcomp
120227 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
121228 ACLOCAL = @ACLOCAL@
122229 ALLOCA = @ALLOCA@
123230 AMTAR = @AMTAR@
231 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
124232 AR = @AR@
125233 AUTOCONF = @AUTOCONF@
126234 AUTOHEADER = @AUTOHEADER@
160268 LIPO = @LIPO@
161269 LN_S = @LN_S@
162270 LTLIBOBJS = @LTLIBOBJS@
271 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
163272 MAKEINFO = @MAKEINFO@
164273 MANIFEST_TOOL = @MANIFEST_TOOL@
165274 MKDIR_P = @MKDIR_P@
233342 prefix = @prefix@
234343 program_transform_name = @program_transform_name@
235344 psdir = @psdir@
345 runstatedir = @runstatedir@
236346 sbindir = @sbindir@
237347 sharedstatedir = @sharedstatedir@
238348 srcdir = @srcdir@
249359 otfdrive.c \
250360 internal.h
251361
362 libotf_la_LDFLAGS = -version-info 1:0:0
252363 include_HEADERS = otf.h
253364 all: config.h
254365 $(MAKE) $(AM_MAKEFLAGS) all-am
267378 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
268379 $(am__cd) $(top_srcdir) && \
269380 $(AUTOMAKE) --gnu src/Makefile
270 .PRECIOUS: Makefile
271381 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
272382 @case '$?' in \
273383 *config.status*) \
287397 $(am__aclocal_m4_deps):
288398
289399 config.h: stamp-h1
290 @if test ! -f $@; then rm -f stamp-h1; else :; fi
291 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
400 @test -f $@ || rm -f stamp-h1
401 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
292402
293403 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
294404 @rm -f stamp-h1
300410
301411 distclean-hdr:
302412 -rm -f config.h stamp-h1
413
303414 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
304415 @$(NORMAL_INSTALL)
305 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
306416 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
307417 list2=; for p in $$list; do \
308418 if test -f $$p; then \
310420 else :; fi; \
311421 done; \
312422 test -z "$$list2" || { \
423 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
424 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
313425 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
314426 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
315427 }
325437
326438 clean-libLTLIBRARIES:
327439 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
328 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
329 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
330 test "$$dir" != "$$p" || dir=.; \
331 echo "rm -f \"$${dir}/so_locations\""; \
332 rm -f "$${dir}/so_locations"; \
333 done
440 @list='$(lib_LTLIBRARIES)'; \
441 locs=`for p in $$list; do echo $$p; done | \
442 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
443 sort -u`; \
444 test -z "$$locs" || { \
445 echo rm -f $${locs}; \
446 rm -f $${locs}; \
447 }
448
334449 libotf.la: $(libotf_la_OBJECTS) $(libotf_la_DEPENDENCIES) $(EXTRA_libotf_la_DEPENDENCIES)
335 $(LINK) -rpath $(libdir) $(libotf_la_OBJECTS) $(libotf_la_LIBADD) $(LIBS)
450 $(AM_V_CCLD)$(libotf_la_LINK) -rpath $(libdir) $(libotf_la_OBJECTS) $(libotf_la_LIBADD) $(LIBS)
336451
337452 mostlyclean-compile:
338453 -rm -f *.$(OBJEXT)
345460 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/otfopen.Plo@am__quote@
346461
347462 .c.o:
348 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
349 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
463 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
464 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
351466 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
467 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
353468
354469 .c.obj:
355 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
356 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
357 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
470 @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
471 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
472 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
358473 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
359 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
474 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
360475
361476 .c.lo:
362 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
363 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
364 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
477 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
478 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
479 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
365480 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
366 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
481 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
367482
368483 mostlyclean-libtool:
369484 -rm -f *.lo
372487 -rm -rf .libs _libs
373488 install-includeHEADERS: $(include_HEADERS)
374489 @$(NORMAL_INSTALL)
375 test -z "$(includedir)" || $(MKDIR_P) "$(DESTDIR)$(includedir)"
376490 @list='$(include_HEADERS)'; test -n "$(includedir)" || list=; \
491 if test -n "$$list"; then \
492 echo " $(MKDIR_P) '$(DESTDIR)$(includedir)'"; \
493 $(MKDIR_P) "$(DESTDIR)$(includedir)" || exit 1; \
494 fi; \
377495 for p in $$list; do \
378496 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
379497 echo "$$d$$p"; \
389507 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
390508 dir='$(DESTDIR)$(includedir)'; $(am__uninstall_files_from_dir)
391509
392 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
393 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
394 unique=`for i in $$list; do \
395 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
396 done | \
397 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
398 END { if (nonempty) { for (i in files) print i; }; }'`; \
399 mkid -fID $$unique
400 tags: TAGS
401
402 TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
403 $(TAGS_FILES) $(LISP)
510 ID: $(am__tagged_files)
511 $(am__define_uniq_tagged_files); mkid -fID $$unique
512 tags: tags-am
513 TAGS: tags
514
515 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
404516 set x; \
405517 here=`pwd`; \
406 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
407 unique=`for i in $$list; do \
408 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
409 done | \
410 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
411 END { if (nonempty) { for (i in files) print i; }; }'`; \
518 $(am__define_uniq_tagged_files); \
412519 shift; \
413520 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
414521 test -n "$$unique" || unique=$$empty_fix; \
420527 $$unique; \
421528 fi; \
422529 fi
423 ctags: CTAGS
424 CTAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
425 $(TAGS_FILES) $(LISP)
426 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
427 unique=`for i in $$list; do \
428 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
429 done | \
430 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
431 END { if (nonempty) { for (i in files) print i; }; }'`; \
530 ctags: ctags-am
531
532 CTAGS: ctags
533 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
534 $(am__define_uniq_tagged_files); \
432535 test -z "$(CTAGS_ARGS)$$unique" \
433536 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
434537 $$unique
437540 here=`$(am__cd) $(top_builddir) && pwd` \
438541 && $(am__cd) $(top_srcdir) \
439542 && gtags -i $(GTAGS_ARGS) "$$here"
543 cscopelist: cscopelist-am
544
545 cscopelist-am: $(am__tagged_files)
546 list='$(am__tagged_files)'; \
547 case "$(srcdir)" in \
548 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
549 *) sdir=$(subdir)/$(srcdir) ;; \
550 esac; \
551 for i in $$list; do \
552 if test -f "$$i"; then \
553 echo "$(subdir)/$$i"; \
554 else \
555 echo "$$sdir/$$i"; \
556 fi; \
557 done >> $(top_builddir)/cscope.files
440558
441559 distclean-tags:
442560 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
581699
582700 .MAKE: all install-am install-strip
583701
584 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
585 clean-libLTLIBRARIES clean-libtool ctags distclean \
586 distclean-compile distclean-generic distclean-hdr \
587 distclean-libtool distclean-tags distdir dvi dvi-am html \
588 html-am info info-am install install-am install-data \
589 install-data-am install-dvi install-dvi-am install-exec \
590 install-exec-am install-html install-html-am \
702 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
703 clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \
704 ctags-am distclean distclean-compile distclean-generic \
705 distclean-hdr distclean-libtool distclean-tags distdir dvi \
706 dvi-am html html-am info info-am install install-am \
707 install-data install-data-am install-dvi install-dvi-am \
708 install-exec install-exec-am install-html install-html-am \
591709 install-includeHEADERS install-info install-info-am \
592710 install-libLTLIBRARIES install-man install-pdf install-pdf-am \
593711 install-ps install-ps-am install-strip installcheck \
594712 installcheck-am installdirs maintainer-clean \
595713 maintainer-clean-generic mostlyclean mostlyclean-compile \
596714 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
597 tags uninstall uninstall-am uninstall-includeHEADERS \
715 tags tags-am uninstall uninstall-am uninstall-includeHEADERS \
598716 uninstall-libLTLIBRARIES
717
718 .PRECIOUS: Makefile
599719
600720
601721 # Tell versions [3.59,3.63) of GNU make to not export all variables.
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 */
63 /* Define to the sub-directory where libtool stores uninstalled libraries. */
6564 #undef LT_OBJDIR
6665
6766 /* Name of package */
(No changes)
00 /* otf.h -- Header file for libotf (OpenType font library).
11
2 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
2 Copyright (C) 2003-2015
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
5 Copyright (C) 2012, 2013, 2014, 2015 K. Handa <handa@gnu.org>
56
67 This file is part of libotf.
78
2829 #endif
2930
3031 /* Version name of this library. */
31 #define LIBOTF_VERSION "0.9.12"
32 #define LIBOTF_VERSION "0.9.16"
3233
3334 /* Major version number. */
3435 #define LIBOTF_MAJOR_VERSION 0
3536 /* Minor version number. */
3637 #define LIBOTF_MINOR_VERSION 9
3738 /* Release (i.e. patch level) number. */
38 #define LIBOTF_RELEASE_NUMBER 12
39 #define LIBOTF_RELEASE_NUMBER 16
3940
4041 /***
4142 Table of contents:
6364 (3-1) Structure for glyph string
6465 (3-2) OTF_drive_cmap()
6566 (3-3) OTF_drive_gdef()
66 (3-4) OTF_drive_gsub()
67 (3-5) OTF_drive_gpos()
67 (3-4) OTF_drive_gsub_features()
68 (3-5) OTF_drive_gpos_features()
6869 (3-6) OTF_drive_tables()
6970 (3-7) OTF_get_unicode()
7071 (3-8) OTF_drive_gsub_alternate()
12071208
12081209 /*** (3-1) Structure for glyph string */
12091210
1211 enum OTF_Positioning_Type_Bit_Field
1212 {
1213 OTF_positioning_type_format_bits = 4,
1214 OTF_positioning_type_feature_bits = 16,
1215 OTF_positioning_type_components_bits = 5,
1216 OTF_positioning_type_markdistance_bits = 4
1217 };
1218
1219 enum OTF_Positioning_Type_Mask
1220 {
1221 OTF_positioning_type_format_mask
1222 = ((1 << OTF_positioning_type_format_bits) - 1),
1223 OTF_positioning_type_feature_mask
1224 = (((1 << OTF_positioning_type_feature_bits) - 1)
1225 << OTF_positioning_type_format_bits),
1226 OTF_positioning_type_components_mask
1227 = (((1 << OTF_positioning_type_components_bits) - 1)
1228 << (OTF_positioning_type_format_bits
1229 + OTF_positioning_type_feature_bits)),
1230 OTF_positioning_type_markdistance_mask
1231 = (((1 << OTF_positioning_type_markdistance_bits) - 1)
1232 << (OTF_positioning_type_format_bits
1233 + OTF_positioning_type_feature_bits
1234 + OTF_positioning_type_components_bits))
1235 };
1236
1237 /* Macros to get/set the bit-fields of member <positioning_type> of
1238 OTF_Glyph. OTF_POSITIONING_TYPE_GET_XXX (g) returns the value for
1239 XXX bit-field of G (OTF_Glyph). OTF_POSITIONING_TYPE_SET_XXX (g,
1240 val) sets the value for XXX bit-fields of G (OTF_Glyph) to VAL. If
1241 VAL doesn't fit in the associated bits, the higher bits are
1242 truncated. */
1243
1244 #define OTF_POSITIONING_TYPE_GET_FORMAT(g) \
1245 ((g)->positioning_type & OTF_positioning_type_format_mask)
1246 #define OTF_POSITIONING_TYPE_SET_FORMAT(g, fmt) \
1247 ((g)->positioning_type = ((g)->positioning_type & ~OTF_positioning_type_format_mask) | ((fmt) & OTF_positioning_type_format_mask))
1248 #define OTF_POSITIONING_TYPE_GET_FEATURE(g) \
1249 (((g)->positioning_type & OTF_positioning_type_feature_mask) >> 4)
1250 #define OTF_POSITIONING_TYPE_SET_FEATURE(g, feature) \
1251 ((g)->positioning_type = ((g)->positioning_type & ~OTF_positioning_type_feature_mask) | (((feature) << 4) & OTF_positioning_type_feature_mask))
1252 #define OTF_POSITIONING_TYPE_GET_COMPONENTS(g) \
1253 (((g)->positioning_type & OTF_positioning_type_components_mask) >> 20)
1254 #define OTF_POSITIONING_TYPE_SET_COMPONENTS(g, cmp) \
1255 ((g)->positioning_type = ((g)->positioning_type & ~OTF_positioning_type_components_mask) | (((cmp) << 20) & OTF_positioning_type_components_mask))
1256 #define OTF_POSITIONING_TYPE_GET_MARKDISTANCE(g) \
1257 (((g)->positioning_type & OTF_positioning_type_markdistance_mask) >> 25)
1258 #define OTF_POSITIONING_TYPE_SET_MARKDISTANCE(g, dist) \
1259 ((g)->positioning_type = ((g)->positioning_type & ~OTF_positioning_type_markdistance_mask) | (((dist) << 25) & OTF_positioning_type_markdistance_mask))
1260
12101261 /***
12111262 The structure OTF_Glyph contains information about each glyph in
12121263 the structure OTF_GlyphString. */
12131264
12141265 typedef struct
12151266 {
1216 /** The first two members must be set by a clinet before calling the
1217 function OTF_drive_XXX(). **/
1267 /** The members <c>, <glyph_id>, <positioning_type> must be set by a
1268 clinet before calling the function OTF_drive_XXX(). **/
12181269
12191270 /* Character code of the glyph. The value less than 32 is treated
1220 as a place-holder in a glyph string, and OTF_drive_XXX ()
1221 function just ignore the glyph as if it doesn't exist. */
1271 as a place-holder in a glyph string, and OTF_drive_XXX() just
1272 ignore such a glyph as if it doesn't exist. */
12221273 int c;
12231274
1224 /* Glyph ID of the glyph. If the value is 0, the library gets a
1225 correct value from the above character code via cmap if such a
1226 glyph is available in the font.
1227
1228 The functions OTF_drive_gpos2 and OTF_driver_gpos_with_log may
1229 insert a glyph whose glyph_id is 0 but positioning_type is
1230 positive. It is not an actual glyph but just contains
1231 positioning information that should be accumulated to the
1232 positioning information of the previous glyphs. */
1275 /* Glyph ID of the glyph.
1276
1277 OTF_drive_gpos_features() may insert a glyph whose <glyph_id> is
1278 0 but bit-fields for positioning format in the member
1279 <positioning_type> is positive. Such a glyph is not an actual
1280 glyph but just contains positioning information that should be
1281 accumulated to the positioning information of the previous
1282 glyphs. */
12331283 OTF_GlyphID glyph_id;
12341284
12351285 /* GlyphClass of the glyph. The value is extracted from the GDEF
12401290 GDEF table. */
12411291 unsigned MarkAttachClass;
12421292
1243 /* The lowest 4-bit is a positioning format type of the glyph. The
1244 value specifies how the glyph positioning information is encoded
1245 in the member <f>. If the value is N, the union member fN, is
1246 used. If the value is zero, the glyph has no positioning
1247 information, i.e. it should be drawn at the normal position.
1248
1249 OTF_drive_gsub, OTF_drive_gsub_alternate, OTF_drive_gpos, and
1250 OTF_drive_gpos2 always sets the higher bits to zero.
1251
1252 OTF_drive_gsub_with_log and OTF_drive_gpos_with_log sets the
1253 higher 16-bit (i.e. 5th to 20th bits) to the index number of the
1254 lastly applied feature on the glyph plus one. If no feature was
1255 applied, those bits are zero. */
1293 /* Bits containing various information for glyph positioning.
1294
1295 The lowest 4-bit (1st to 4th) FFFF is a positioning format type
1296 of the glyph. The value specifies how the glyph positioning
1297 information is encoded in the member <f>. If the value is N, the
1298 union member fN is used. If the value is zero, the glyph has no
1299 positioning information, i.e. it should be drawn at the normal
1300 position.
1301
1302 The higher 16-bit (5th to 20th) is the index number of the lastly
1303 applied feature on the glyph plus one. If no feature was
1304 applied, these bits are zero.
1305
1306 The much higher 5-bit (21th to 25th) is CCCCC used for handling
1307 MarkToLigature Attachment (GPOS Lookup Type 5). If this glyph is
1308 a result of Ligature Substitution (GSUB Lookup Type 4), CCCCC
1309 represents the number of ligature components. If this is a mark
1310 glyph, CCCCC represents the ligature component index this mark is
1311 attached. The index number is 1 for the first component, 2 for
1312 the second, and so on. The number 0 means that the component
1313 index is not yet decided. In that case, this mark should be
1314 attached to the last component of the ligature glyph.
1315
1316 The much higher 4-bit (26th to 29th) is MMMM used for handling
1317 MarkToMark Attachment (GPOS Lookup Type 6). If this glyph is a
1318 mark glyph attaching to a previous base mark, MMMM represents the
1319 distance from this glyph to that base mark glyph. The distance
1320 doesn't counts pseudo glyphs whose <glyph_id> is 0. IF MMMM is
1321 zero, this glyph must be attached to the closest previous mark.
1322
1323 If a client supplies glyphs returned by OTF_drive_gsub_features()
1324 or OTF_drive_gpos_features() to that function again, the bit
1325 field CCCCC must keep the same value. */
12561326 unsigned int positioning_type;
12571327 union {
12581328 struct {
12921362 typedef struct
12931363 {
12941364 /* How many glyphs are allocated at the memory pointed by the member
1295 <glyphs>. */
1365 <glyphs>. */
12961366 int size;
12971367 /* How many glyphs contain valid information. */
12981368 int used;
13491419 extern int OTF_drive_gdef (OTF *otf, OTF_GlyphString *gstring);
13501420
13511421
1352 /*** (3-4) OTF_drive_gsub() */
1422 /*** (3-4) OTF_drive_gsub_features() */
1423
1424 /***
1425 Apply OTF GSUB features to glyph string.
1426
1427 The OTF_drive_gsub_features() function looks up the GSUB tables of
1428 OpenType font $OTF, and by using features the font has for script
1429 $SCRIPT and language system $LANGSYS, update member <glyphs> of
1430 the glyph string $GSTRING.
1431
1432 It replaces, deletes, and/or inserts glyphs in that array
1433 according to $FEATURES.
1434
1435 It records which feature is applied to each glyph by using the
1436 higher bits of <positioning_type> member of OTF_Glyph. Use the
1437 macro OTF_POSITIONING_TYPE_GET_FEATURE to get the index number
1438 (plus 1) for OTF->gsub->FeatureList.Feature of the feature.
1439
1440 It also records the number of ligature components by using another
1441 higher bits of <positioning_type> member of OTF_Glyph if a glyph
1442 is the result of "Ligature Substituion". Use the macro
1443 OTF_POSITIONING_TYPE_GET_COMPONENTS to get the number of
1444 components (plus 1) of the glyph.
1445
1446 This doesn't perform a lookup of type 3 (Alternate Substitution).
1447 For that, use OTF_drive_gsub_alternate().
1448
1449 See the documentation of OTF_Glyph for the members that must be
1450 set by a client before calling this function. */
1451
1452 extern int OTF_drive_gsub_features (OTF *otf, OTF_GlyphString *gstring,
1453 const char *script, const char *language,
1454 const char *features);
13531455
13541456 /***
13551457 Process glyph string by GSUB table.
1458
1459 The OTF_drive_gsub() function is deprecated. Use
1460 OTF_drive_gsub_features() instread.
13561461
13571462 The OTF_drive_gsub() function looks up the GSUB table of OpenType
13581463 font $OTF, and by using features the font has for script $SCRIPT
13691474 /***
13701475 Process glyph string by GSUB table with log.
13711476
1477 The OTF_drive_gsub_with_log() function is deprecated. Use
1478 OTF_drive_gsub_features() instread.
1479
13721480 This is like OTF_drive_gsub(), but records which feature is
13731481 applied to each glyph in the higher bits of `positioning_type'
13741482 member of OTF_Glyph. */
13771485 const char *script, const char *language,
13781486 const char *features);
13791487
1380
1381 /*** (3-5) OTF_drive_gpos() */
1488 /*** (3-5) OTF_drive_gpos_features() */
1489
1490 /***
1491 Apply OTF GPOS features to glyph string.
1492
1493 The OTF_drive_gpos_features() function looks up the GPOS tables of
1494 OpenType font $OTF, and by using features the font has for script
1495 $SCRIPT and language system $LANGSYS, update member <glyphs> of
1496 the glyph string $GSTRING.
1497
1498 It sets up positioning information in <positioning_type> and <f>
1499 members of the glhphs according to $FEATURES.
1500
1501 It may insert pseudo glyphs whose <glyph_id> is 0. See the
1502 documentation of the type OTF_Glyph for the meaning of those
1503 glyphs.
1504
1505 It records which mark a mark is attached to by using the higher
1506 bits of <positioning_type> member of OTF_Glyph if a mark glyph is
1507 positioned by "Mark-to-Mark Positioning". Use the macro
1508 OTF_POSITIONING_TYPE_GET_MARKDISTANCE to get the distance to the
1509 previous target mark glyph.
1510
1511 See the documentation of OTF_Glyph for the members set by a client
1512 before calling this function. */
1513
1514 extern int OTF_drive_gpos_features (OTF *otf, OTF_GlyphString *gstring,
1515 const char *script, const char *language,
1516 const char *features);
13821517
13831518 /***
13841519 Process glyph string by GPOS table.
13851520
13861521 The OTF_drive_gpos() function is deprecated. Use
1387 OTF_drive_gpos2() instread. */
1522 OTF_drive_gpos_features() instread. */
13881523
13891524 extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
13901525 const char *script, const char *language,
13921527
13931528 /***
13941529 Process glyph string by GPOS table.
1530
1531 The OTF_drive_gpos2() function is deprecated. Use
1532 OTF_drive_gpos_features() instead.
13951533
13961534 The OTF_drive_gpos2() function looks up the GPOS table of $OTF of
13971535 OpenType font $OTF, and by using features the font has for script
14061544 /***
14071545 Process glyph string by GPOS table with log.
14081546
1547 The OTF_drive_gpos_with_log() function is deprecated. Use
1548 OTF_drive_gpos_features() instead.
1549
14091550 This is like OTF_drive_pos_2(), but records which feature is
14101551 applied to each glyph in the higher bits of `positioning_type'
14111552 member of OTF_Glyph. */
14141555 const char *script, const char *language,
14151556 const char *features);
14161557
1417
14181558 /*** (3-6) OTF_drive_tables() */
14191559
14201560 /***
14211561 Process glyph string by cmap, GDEF, GSUB, and GPOS tables.
14221562
1423 The OTF_drive_tables() function calls OTF_drive_cmap(),
1424 OTF_drive_gdef(), OTF_drive_gsub(), and OTF_drive_gpos() in this
1425 order, and update the glyphs string GSTRING. */
1563 The OTF_drive_tables() function is deprecated. Use
1564 OTF_drive_gsub_features() and OTF_drive_gpos_features() instead.
1565
1566 This calls OTF_drive_cmap(), OTF_drive_gdef(), OTF_drive_gsub(),
1567 and OTF_drive_gpos() in this order, and update the glyphs string
1568 GSTRING. */
14261569
14271570 extern int OTF_drive_tables (OTF *otf, OTF_GlyphString *gstring,
14281571 const char *script, const char *language,
22 Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
33 National Institute of Advanced Industrial Science and Technology (AIST)
44 Registration Number H15PRO167
5 Copyright (C) 2012, 2013, 2014, 2015 K. Handa <handa@gnu.org>
56
67 This file is part of libotf.
78
3435 #undef USHORT
3536 #endif
3637 #define USHORT unsigned short
38
39 /* Control info for driving GSUB/GPOS features */
40
41 typedef struct {
42 /** The following <disable_XXX> members are flags to disable some
43 functionalities for backward compatibility. **/
44 /* If set, do not produce a pseudo glyph (glyph_id == 0 &&
45 positioning_type != 0) to accumulate multiple positioning
46 information. */
47 int disable_accumulate_positioning;
48
49 /* If set, do not use upper bits (5th to 20th) of the member
50 <positioning_type> of OTF_Glyph to record the lastly applied
51 feature tag. */
52 int disable_feature_log;
53
54 /* If set, do not use upper bits (21th to 25th) of the member
55 <positioning_type> of OTF_Glyph to record which ligature
56 compoment a mark is attached to. */
57 int disable_ligature_component_info;
58
59 /* If set, do not use upper bits (26th to 29th) of the member
60 <positioning_type> of OTF_Glyph to record the distance from
61 an attaching mark to a base mark. */
62 int disable_mark_distance;
63
64 /* If set, enable Alternate Substituion (lookup of type 3) and
65 produce all alternate glyphs. */
66 int alternate_subst_report_all;
67
68 /* Set to 1 when lookup_gsub is called recursively. */
69 int recursive_call;
70 } Control;
71
72 static Control default_control;
3773
3874 /* Return nonzero (-1 if ID is zero, 1 otherwise) if OTF_Glyph *G
3975 should be ignored according to LookupFlag FLAG. */
73109
74110 static unsigned get_class_def (OTF_ClassDef *, OTF_GlyphID);
75111
112 /* Replace glyphs between FROM and TO of GSTRING by NUM number of
113 glyphs at IDS. Some glyphs in GSTRING are ignored on this
114 replacment (by their nature (i.e. <glyph_id> is zero) or because of
115 FLAG). Such glyphs are moved to the tail of the replacement
116 range. */
117
76118 static int
77119 gstring_subst (OTF *otf, OTF_GlyphString *gstring, int from, int to, int flag,
78120 OTF_GlyphID *ids, int num)
83125 int from_idx = gstring->glyphs[from].f.index.from;
84126 int to_idx = gstring->glyphs[to - 1].f.index.to;
85127 int non_ignored_idx;
128 int ncomponents = OTF_POSITIONING_TYPE_GET_COMPONENTS (gstring->glyphs + from);
129
130 if (ncomponents > 0)
131 {
132 /* We are handling Ligature Substitution. Record the number of
133 components to the ligature glyph, and record the index number
134 of compoment to mark glyphs (if any). */
135 for (i = from + 1; i < to; i++)
136 {
137 OTF_Glyph *g = gstring->glyphs + i;
138 int ignored = IGNORED_GLYPH (g, flag);
139
140 if (ignored == 0)
141 ncomponents++;
142 else if (ignored == 1)
143 OTF_POSITIONING_TYPE_SET_COMPONENTS (g, ncomponents + 1);
144 }
145 OTF_POSITIONING_TYPE_SET_COMPONENTS (gstring->glyphs + from, ncomponents + 1);
146 }
86147
87148 for (i = non_ignored_idx = to - 1; i >= from; i--)
88149 {
121182 = get_class_def (&otf->gdef->mark_attach_class_def, ids[i]);
122183 }
123184 gstring->glyphs[from + i].glyph_id = ids[i];
124 gstring->glyphs[from + i].positioning_type = 1;
185 /* This is just to tell a caller that some GSUB feature is
186 applied to this glyph. The value set here is reset by a
187 caller. */
188 OTF_POSITIONING_TYPE_SET_FORMAT (gstring->glyphs+ from + i, 1);
125189 gstring->glyphs[from + i].f.index.from = from_idx;
126190 gstring->glyphs[from + i].f.index.to = to_idx;
127191 }
299363 OTF_ChainRule *rule)
300364 {
301365 int i = rule->BacktrackGlyphCount;
366 int n;
302367
303368 if (i > 0
304369 && (gidx < i
305370 || match_ids (gstring, gidx - 1, flag, i, rule->Backtrack, -1) < 0))
306371 return -1;
307372 gidx++;
308 i = match_ids (gstring, gidx, flag,
373 n = match_ids (gstring, gidx, flag,
309374 rule->InputGlyphCount - 1, rule->Input, 1);
310 if (i < 0)
375 if (n < 0)
311376 return -1;
312 gidx += i;
377 gidx += n;
313378 i = match_ids (gstring, gidx, flag,
314379 rule->LookaheadGlyphCount, rule->LookAhead, 1);
315380 if (i < 0)
316381 return -1;
317 return 0;
382 return n + 1;
318383 }
319384
320385 static int
340405 OTF_ChainClassRule *rule)
341406 {
342407 int i = rule->BacktrackGlyphCount;
408 int n;
343409
344410 if (i > 0
345411 && (gidx < i
347413 rule->Backtrack, -1) < 0))
348414 return -1;
349415 gidx++;
350 i = match_classes (InputClassDef, gstring, gidx, flag,
416 n = match_classes (InputClassDef, gstring, gidx, flag,
351417 rule->InputGlyphCount - 1, rule->Input, 1);
352 if (i < 0)
418 if (n < 0)
353419 return -1;
354 gidx += i;
420 gidx += n;
355421 i = match_classes (LookaheadClassDef, gstring, gidx, flag,
356422 rule->LookaheadGlyphCount, rule->LookAhead, 1);
357423 if (i < 0)
358424 return -1;
359 return 0;
425 return n + 1;
360426 }
361427
362428
380446 OTF_GSUB_ChainContext3 *context3)
381447 {
382448 int i = context3->BacktrackGlyphCount;
449 int n = 0;
383450
384451 if (i > 0
385452 && (gidx < i
389456 gidx++;
390457 if (context3->InputGlyphCount > 1)
391458 {
392 i = match_coverages (gstring, gidx, flag, context3->InputGlyphCount - 1,
459 n = match_coverages (gstring, gidx, flag, context3->InputGlyphCount - 1,
393460 context3->Input + 1, 1);
394 if (i < 0)
461 if (n < 0)
395462 return -1;
396 gidx += i;
463 gidx += n;
397464 }
398465 if (match_coverages (gstring, gidx, flag, context3->LookaheadGlyphCount,
399466 context3->LookAhead, 1) < 0)
400467 return -1;
401 return 0;
468 return n + 1;
402469 }
403470
404471 /* Apply the lookup indexed by LOOKUP_LIST_INDEX in LOOKUP_LIST to the
409476
410477 static int
411478 lookup_gsub (OTF *otf, OTF_LookupList *lookup_list, unsigned lookup_list_index,
412 OTF_GlyphString *gstring, int gidx, int alternate_subst)
479 OTF_GlyphString *gstring, int gidx, Control *control)
413480 {
414481 char *errfmt = "GSUB Looking up%s";
415482 int errret = -1;
418485 & (OTF_LookupFlagIgnoreMask | OTF_MarkAttachmentType));
419486 int orig_gidx = gidx;
420487 OTF_Glyph *g = gstring->glyphs + gidx;
488 int recursive_call = control->recursive_call;
421489 int i;
422490
491 if (debug_flag)
492 fprintf (stderr, "[GSUB] glyph:%04X lookup:%02d",
493 g->glyph_id, lookup_list_index);
423494 if (IGNORED_GLYPH (g, flag))
424 return gidx;
495 {
496 if (debug_flag)
497 fprintf (stderr, " glyph ignored\n");
498 return gidx;
499 }
425500
426501 /* Try all subtables until one of them handles the current glyph. */
427502 for (i = 0; i < lookup->SubTableCount && gidx == orig_gidx; i++)
438513 subtable = extension1->ExtensionSubtable;
439514 }
440515
441 if (alternate_subst
442 ? (alternate_subst == 1
443 && lookup_type != 3 && lookup_type != 5 && lookup_type != 6)
444 : (lookup_type == 3))
516 if ((control->alternate_subst_report_all)
517 ? (lookup_type != 3 && lookup_type != 5 && lookup_type != 6)
518 : (! recursive_call && (lookup_type == 3)))
445519 continue;
446520
521 if (debug_flag)
522 fprintf (stderr, "/%d", lookup_type);
447523 if (subtable->Coverage.offset)
448524 {
449525 coverage_idx = get_coverage_index (&subtable->Coverage,
467543 if (otf->gdef && otf->gdef->mark_attach_class_def.offset)
468544 g->MarkAttachClass
469545 = get_class_def (&otf->gdef->mark_attach_class_def, g->glyph_id);
470 g->positioning_type = 1;
546 /* This is just to tell a caller that some GSUB feature is
547 applied to this glyph. The value set here is reset by a
548 caller. */
549 OTF_POSITIONING_TYPE_SET_FORMAT (g, 1);
550 if (debug_flag)
551 fprintf (stderr, " replaced");
471552 gidx++;
472553 break;
473554
479560
480561 gstring_subst (otf, gstring, gidx, gidx + 1, flag,
481562 seq->Substitute, seq->GlyphCount);
563 if (debug_flag)
564 {
565 if (seq->GlyphCount > 1)
566 fprintf (stderr, " expanded");
567 else
568 fprintf (stderr, " replaced");
569 }
482570 gidx += seq->GlyphCount;
483571 }
484572 else
490578 {
491579 OTF_GSUB_Alternate1 *alt1 = &subtable->u.alternate1;
492580 OTF_AlternateSet *altset = alt1->AlternateSet + coverage_idx;
493
494 if (alternate_subst == 1)
495 gstring_subst (otf, gstring, gidx, gidx + 1, flag,
496 altset->Alternate, altset->GlyphCount);
497 else
498 gstring_subst (otf, gstring, gidx, gidx + 1, flag,
499 altset->Alternate, 1);
500 gidx += altset->GlyphCount;;
581 int count = ((control->alternate_subst_report_all)
582 ? altset->GlyphCount : 1);
583
584 gstring_subst (otf, gstring, gidx, gidx + 1, flag,
585 altset->Alternate, count);
586 if (debug_flag)
587 fprintf (stderr, " replaced");
588 gidx += count;;
501589 }
502590 else
503591 OTF_ERROR (OTF_ERROR_GSUB_DRIVE, " (invalid SubFormat)");
520608 lig->CompCount - 1, lig->Component, 1);
521609 if (n < 0)
522610 continue;
611 if (OTF_POSITIONING_TYPE_GET_COMPONENTS (g) == 0)
612 /* Not yet ligated. */
613 OTF_POSITIONING_TYPE_SET_COMPONENTS (g, 1);
523614 gstring_subst (otf, gstring, gidx, gidx + 1 + n, flag,
524615 &lig->LigGlyph, 1);
525 gidx++;
616 gidx += 1 + n + (1 - lig->CompCount);
526617 break;
527618 }
528619 }
537628 OTF_RuleSet *set = context1->RuleSet + coverage_idx;
538629 OTF_Rule *rule;
539630 int orig_used;
540 int j, k;
631 int j, k, n;
541632
542633 for (j = 0; j < set->RuleCount; j++)
543634 {
544635 rule = set->Rule + j;
545 if (match_ids (gstring, gidx + 1, flag,
546 rule->GlyphCount - 1, rule->Input, 1) < 0)
636 n = match_ids (gstring, gidx + 1, flag,
637 rule->GlyphCount - 1, rule->Input, 1);
638 if (n < 0)
547639 continue;
548640 orig_used = gstring->used;
641 control->recursive_call = 1;
549642 for (k = 0; k < rule->LookupCount; k++)
550 lookup_gsub (otf, lookup_list,
551 rule->LookupRecord[k].LookupListIndex,
552 gstring,
553 gidx + rule->LookupRecord[k].SequenceIndex,
554 alternate_subst ? alternate_subst : 2);
555 gidx += rule->GlyphCount + (gstring->used - orig_used);
643 if (lookup_gsub (otf, lookup_list,
644 rule->LookupRecord[k].LookupListIndex,
645 gstring,
646 gidx + rule->LookupRecord[k].SequenceIndex,
647 control) < 0)
648 return -1;
649 control->recursive_call = recursive_call;
650 if (debug_flag && ! rule->LookupCount)
651 fprintf (stderr, " bled");
652 gidx += 1 + n + (gstring->used - orig_used);
556653 break;
557654 }
558655 }
563660 OTF_ClassRule *rule;
564661 unsigned class;
565662 int orig_used;
566 int j, k;
663 int j, k, n;
567664
568665 class = get_class_def (&context2->ClassDef, g->glyph_id);
569666 set = context2->ClassSet + class;
571668 for (j = 0; j < set->ClassRuleCnt; j++)
572669 {
573670 rule = set->ClassRule + j;
574 if (match_classes (&context2->ClassDef,
671 n = match_classes (&context2->ClassDef,
575672 gstring, gidx + 1, flag,
576 rule->GlyphCount - 1, rule->Class, 1)
577 < 0)
673 rule->GlyphCount - 1, rule->Class, 1);
674 if (n < 0)
578675 continue;
579676 orig_used = gstring->used;
677 control->recursive_call = 1;
580678 for (k = 0; k < rule->LookupCount; k++)
581 lookup_gsub (otf, lookup_list,
582 rule->LookupRecord[k].LookupListIndex,
583 gstring,
584 gidx + rule->LookupRecord[k].SequenceIndex,
585 alternate_subst ? alternate_subst : 2);
586 gidx += rule->GlyphCount + (gstring->used - orig_used);
679 if (lookup_gsub (otf, lookup_list,
680 rule->LookupRecord[k].LookupListIndex,
681 gstring,
682 gidx + rule->LookupRecord[k].SequenceIndex,
683 control) < 0)
684 return -1;;
685 control->recursive_call = recursive_call;
686 if (debug_flag && ! rule->LookupCount)
687 fprintf (stderr, " bled");
688 gidx += 1 + n + (gstring->used - orig_used);
587689 break;
588690 }
589691 }
591693 {
592694 OTF_GSUB_Context3 *context3 = &subtable->u.context3;
593695 int orig_used;
594 int j;
595
596 if (match_coverages (gstring, gidx + 1, flag,
696 int j, n;
697
698 n = match_coverages (gstring, gidx + 1, flag,
597699 context3->GlyphCount - 1,
598 context3->Coverage + 1, 1) < 0)
700 context3->Coverage + 1, 1);
701 if (n < 0)
599702 continue;
600703 orig_used = gstring->used;
704 control->recursive_call = 1;
601705 for (j = 0; j < context3->LookupCount; j++)
602 lookup_gsub (otf, lookup_list,
603 context3->LookupRecord[j].LookupListIndex,
604 gstring,
605 gidx + context3->LookupRecord[j].SequenceIndex,
606 alternate_subst ? alternate_subst : 2);
607 gidx += context3->GlyphCount + (gstring->used - orig_used);
706 if (lookup_gsub (otf, lookup_list,
707 context3->LookupRecord[j].LookupListIndex,
708 gstring,
709 gidx + context3->LookupRecord[j].SequenceIndex,
710 control) < 0)
711 return -1;
712 control->recursive_call = recursive_call;
713 if (debug_flag && ! context3->LookupCount)
714 fprintf (stderr, " bled");
715 gidx += 1 + n + (gstring->used - orig_used);
608716 }
609717 break;
610718
614722 OTF_GSUB_ChainContext1 *context1 = &subtable->u.chain_context1;
615723 OTF_ChainRuleSet *set = context1->ChainRuleSet + coverage_idx;
616724 int orig_used;
617 int j, k;
725 int j, k, n;
618726
619727 for (j = 0; j < set->ChainRuleCount; j++)
620728 {
624732 || (gidx + rule->InputGlyphCount
625733 + rule->LookaheadGlyphCount) > gstring->used)
626734 continue;
627 if (match_chain_ids (gstring, gidx, flag, rule) < 0)
735 n = match_chain_ids (gstring, gidx, flag, rule);
736 if (n < 0)
628737 continue;
629738 orig_used = gstring->used;
739 control->recursive_call = 1;
630740 for (k = 0; k < rule->LookupCount; k++)
631 lookup_gsub (otf, lookup_list,
632 rule->LookupRecord[k].LookupListIndex,
633 gstring,
634 gidx + rule->LookupRecord[k].SequenceIndex,
635 alternate_subst ? alternate_subst : 2);
636 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
741 if (lookup_gsub (otf, lookup_list,
742 rule->LookupRecord[k].LookupListIndex,
743 gstring,
744 gidx + rule->LookupRecord[k].SequenceIndex,
745 control) < 0)
746 return -1;
747 control->recursive_call = recursive_call;
748 if (debug_flag && ! rule->LookupCount)
749 fprintf (stderr, " bled");
750 gidx += n + (gstring->used - orig_used);
637751 break;
638752 }
639753 }
650764 for (j = 0; j < set->ChainClassRuleCnt; j++)
651765 {
652766 OTF_ChainClassRule *rule = set->ChainClassRule + j;
653 int k;
767 int k, n;
654768
655769 if (gidx < rule->BacktrackGlyphCount
656770 || (gidx + rule->InputGlyphCount
657771 + rule->LookaheadGlyphCount) > gstring->used)
658772 continue;
659 if (match_chain_classes (gstring, gidx, flag,
773 n = match_chain_classes (gstring, gidx, flag,
660774 &context2->BacktrackClassDef,
661775 &context2->InputClassDef,
662776 &context2->LookaheadClassDef,
663 rule) < 0)
777 rule);
778 if (n < 0)
664779 continue;
665780 orig_used = gstring->used;
781 control->recursive_call = 1;
666782 for (k = 0; k < rule->LookupCount; k++)
667 lookup_gsub (otf, lookup_list,
668 rule->LookupRecord[k].LookupListIndex,
669 gstring,
670 gidx + rule->LookupRecord[k].SequenceIndex,
671 alternate_subst ? alternate_subst : 2);
672 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
783 if (lookup_gsub (otf, lookup_list,
784 rule->LookupRecord[k].LookupListIndex,
785 gstring,
786 gidx + rule->LookupRecord[k].SequenceIndex,
787 control) < 0)
788 return -1;
789 control->recursive_call = recursive_call;
790 if (debug_flag && ! rule->LookupCount)
791 fprintf (stderr, " bled");
792 gidx += n + (gstring->used - orig_used);
673793 break;
674794 }
675795 }
677797 {
678798 OTF_GSUB_ChainContext3 *context3 = &subtable->u.chain_context3;
679799 int orig_used;
680 int j;
800 int j, n;
681801
682802 if (gidx < context3->BacktrackGlyphCount
683803 || (gidx + context3->InputGlyphCount
684804 + context3->LookaheadGlyphCount) > gstring->used)
685805 continue;
686 if (match_chain_coverages (gstring, gidx, flag, context3) < 0)
806 n = match_chain_coverages (gstring, gidx, flag, context3);
807 if (n < 0)
687808 continue;
688809 orig_used = gstring->used;
810 control->recursive_call = 1;
689811 for (j = 0; j < context3->LookupCount; j++)
690 lookup_gsub (otf, lookup_list,
691 context3->LookupRecord[j].LookupListIndex,
692 gstring,
693 gidx + context3->LookupRecord[j].SequenceIndex,
694 alternate_subst ? alternate_subst : 2);
695 gidx += context3->InputGlyphCount + (gstring->used - orig_used);
812 if (lookup_gsub (otf, lookup_list,
813 context3->LookupRecord[j].LookupListIndex,
814 gstring,
815 gidx + context3->LookupRecord[j].SequenceIndex,
816 control) < 0)
817 return -1;
818 control->recursive_call = recursive_call;
819 if (debug_flag && ! context3->LookupCount)
820 fprintf (stderr, " bled");
821 gidx += n + (gstring->used - orig_used);
696822 }
697823 break;
698824
721847 if (j < reverse->LookaheadGlyphCount)
722848 continue;
723849 g->glyph_id = reverse->Substitute[coverage_idx];
724 g->positioning_type = 1;
850 /* This is just to tell a caller that some GSUB feature is
851 applied to this glyph. The value set here is reset by
852 a caller. */
853 OTF_POSITIONING_TYPE_SET_FORMAT (g, 1);
854 if (debug_flag)
855 fprintf (stderr, " replaced");
725856 gidx--;
726857 }
727858
729860 continue;
730861 }
731862 }
863 if (debug_flag)
864 {
865 if (gidx == orig_gidx)
866 fprintf (stderr, " no match\n");
867 else
868 fprintf (stderr, "\n");
869 }
732870 return gidx;
733871 }
734872
744882
745883 while (gidx < gstring->used
746884 && ! gstring->glyphs[gidx].glyph_id
747 && (gstring->glyphs[gidx].positioning_type & 0xF))
885 && OTF_POSITIONING_TYPE_GET_FORMAT (gstring->glyphs + gidx))
748886 gidx++;
749887 GSTRING_INSERT (gstring, gidx, 1);
750888 gstring->glyphs[gidx] = gstring->glyphs[orig_gidx];
772910 {
773911 if (type)
774912 fprintf (stderr, " %0X=", g->glyph_id);
775 switch (g->positioning_type & 0xF)
913 switch (OTF_POSITIONING_TYPE_GET_FORMAT (g))
776914 {
777915 case 1: case 2:
778916 {
815953
816954 static int
817955 lookup_gpos (OTF_LookupList *lookup_list, unsigned lookup_list_index,
818 OTF_GlyphString *gstring, int gidx, int accumulate)
956 OTF_GlyphString *gstring, int gidx, Control *control)
819957 {
820958 char *errfmt = "GPOS Looking up%s";
821959 int errret = -1;
8821020 format = single2->ValueFormat;
8831021 value = single2->Value + coverage_idx;
8841022 }
885 if (accumulate && (g->positioning_type & 0xF))
1023 if (control->disable_accumulate_positioning == 0
1024 && OTF_POSITIONING_TYPE_GET_FORMAT (g))
8861025 {
8871026 gidx = gstring_insert_for_gpos (gstring, gidx);
8881027 g = gstring->glyphs + gidx;
8891028 }
890 g->positioning_type
891 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1029 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
8921030 g->f.f1.format = format;
8931031 g->f.f1.value = value;
8941032 if (debug_flag)
9181056 {
9191057 if (pair1->ValueFormat1)
9201058 {
921 if (accumulate && (g->positioning_type & 0xF))
1059 if (control->disable_accumulate_positioning == 0
1060 && OTF_POSITIONING_TYPE_GET_FORMAT (g))
9221061 {
9231062 gidx = gstring_insert_for_gpos (gstring, gidx);
9241063 g = gstring->glyphs + gidx;
9251064 next_gidx += gidx - orig_gidx;
9261065 nextg = gstring->glyphs + next_gidx;
9271066 }
928 g->positioning_type
929 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1067 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
9301068 g->f.f2.format = pair1->ValueFormat1;
9311069 g->f.f2.value = &set->PairValueRecord[j].Value1;
9321070 if (debug_flag)
9361074 g = nextg;
9371075 if (pair1->ValueFormat2)
9381076 {
939 if (accumulate && (g->positioning_type & 0xF))
1077 if (control->disable_accumulate_positioning == 0
1078 && OTF_POSITIONING_TYPE_GET_FORMAT (g))
9401079 {
9411080 gidx = gstring_insert_for_gpos (gstring, gidx);
9421081 g = gstring->glyphs + gidx;
9431082 }
944 g->positioning_type
945 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1083 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
9461084 g->f.f2.format = pair1->ValueFormat2;
9471085 g->f.f2.value = &set->PairValueRecord[j].Value2;
9481086 if (debug_flag)
9601098 class2 = get_class_def (&pair2->ClassDef2, nextg->glyph_id);
9611099 if (pair2->ValueFormat1)
9621100 {
963 if (accumulate && (g->positioning_type & 0xF))
1101 if (control->disable_accumulate_positioning == 0
1102 && OTF_POSITIONING_TYPE_GET_FORMAT (g))
9641103 {
9651104 gidx = gstring_insert_for_gpos (gstring, gidx);
9661105 g = gstring->glyphs + gidx;
9671106 next_gidx += gidx - orig_gidx;
9681107 nextg = gstring->glyphs + next_gidx;
9691108 }
970 g->positioning_type
971 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1109 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
9721110 g->f.f2.format = pair2->ValueFormat1;
9731111 g->f.f2.value
9741112 = &pair2->Class1Record[class1].Class2Record[class2].Value1;
9791117 g = nextg;
9801118 if (pair2->ValueFormat2)
9811119 {
982 if (accumulate && (g->positioning_type & 0xF))
1120 if (control->disable_accumulate_positioning == 0
1121 && OTF_POSITIONING_TYPE_GET_FORMAT (g))
9831122 {
9841123 gidx = gstring_insert_for_gpos (gstring, gidx);
9851124 g = gstring->glyphs + gidx;
9861125 }
987 g->positioning_type
988 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1126 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
9891127 g->f.f2.format = pair2->ValueFormat2;
9901128 g->f.f2.value
9911129 = &pair2->Class1Record[class1].Class2Record[class2].Value2;
10001138 {
10011139 OTF_GPOS_Cursive1 *cursive1 = &subtable->u.cursive1;
10021140
1003 g->positioning_type
1004 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1141 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
10051142 g->f.f3.entry_anchor
10061143 = &cursive1->EntryExitRecord[coverage_idx].EntryAnchor;
10071144 g->f.f3.exit_anchor
10401177 g->f.f4.mark_anchor = &mark_record->MarkAnchor;
10411178 g->f.f4.base_anchor
10421179 = &base_record->Anchor[mark_record->Class];
1043 g->positioning_type
1044 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1180 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
10451181 if (debug_flag)
10461182 print_glyph_positioning (g, 0);
10471183 gidx++;
10691205 && (IGNORED_GLYPH (ligg, flag)
10701206 || ligg->GlyphClass > OTF_GlyphClassLigature));
10711207 ligg--)
1072 if ((ligg->positioning_type & 0xF) == 5
1208 if (OTF_POSITIONING_TYPE_GET_FORMAT (ligg) == 5
10731209 && ligg->MarkAttachClass < mark_lig1->ClassCount)
10741210 num_class[ligg->MarkAttachClass]++;
10751211 if (ligg < gstring->glyphs)
10831219 g->MarkAttachClass = mark_record->Class;
10841220 attach = (mark_lig1->LigatureArray.LigatureAttach
10851221 + coverage_idx_lig);
1222 if (! control->disable_ligature_component_info)
1223 {
1224 j = OTF_POSITIONING_TYPE_GET_COMPONENTS (g);
1225 if (j == 0)
1226 j = attach->ComponentCount - 1;
1227 else
1228 j--;
1229 if (j < attach->ComponentCount)
1230 {
1231 OTF_Anchor *lig_anchor
1232 = attach->ComponentRecord[j].LigatureAnchor;
1233
1234 if (lig_anchor[mark_record->Class].AnchorFormat)
1235 {
1236 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
1237 g->f.f5.mark_anchor = &mark_record->MarkAnchor;
1238 g->f.f5.ligature_anchor = lig_anchor;
1239 if (debug_flag)
1240 print_glyph_positioning (g, 0);
1241 gidx++;
1242 }
1243 }
1244 break;
1245 }
10861246 for (j = 0; j < attach->ComponentCount; j++)
10871247 {
10881248 OTF_Anchor *lig_anchor
10911251 if (lig_anchor[mark_record->Class].AnchorFormat
10921252 && num_class[mark_record->Class]-- == 0)
10931253 {
1094 g->positioning_type
1095 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1254 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
10961255 g->f.f5.mark_anchor = &mark_record->MarkAnchor;
10971256 g->f.f5.ligature_anchor = lig_anchor + mark_record->Class;
10981257 if (debug_flag)
11141273 OTF_AnchorRecord *mark2_record;
11151274 OTF_Glyph *prevg;
11161275 int coverage_idx_base;
1117
1118 for (prevg = g - 1;
1276 int distance;
1277
1278 for (prevg = g - 1, distance = 1;
11191279 prevg >= gstring->glyphs && IGNORED_GLYPH (prevg, flag);
1120 prevg--);
1280 prevg--)
1281 {
1282 if (prevg->glyph_id != 0)
1283 distance++;
1284 }
11211285 if (prevg < gstring->glyphs)
11221286 continue;
11231287 coverage_idx_base
11311295 g->f.f6.mark1_anchor = &mark1_record->MarkAnchor;
11321296 g->f.f6.mark2_anchor
11331297 = &mark2_record->Anchor[mark1_record->Class];
1134 g->positioning_type
1135 = (g->positioning_type & 0xFFFFFFF0) | lookup_type;
1298 OTF_POSITIONING_TYPE_SET_FORMAT (g, lookup_type);
1299 OTF_POSITIONING_TYPE_SET_MARKDISTANCE (g, distance);
11361300 if (debug_flag)
11371301 print_glyph_positioning (g, 0);
11381302 gidx++;
11471311 OTF_RuleSet *set = context1->RuleSet + coverage_idx;
11481312 OTF_Rule *rule;
11491313 int orig_used;
1150 int j, k;
1314 int j, k, n;
11511315
11521316 for (j = 0; j < set->RuleCount; j++)
11531317 {
11541318 rule = set->Rule + j;
1155 if (match_ids (gstring, gidx + 1, flag,
1156 rule->GlyphCount - 1, rule->Input, 1) < 0)
1319 n = match_ids (gstring, gidx + 1, flag,
1320 rule->GlyphCount - 1, rule->Input, 1);
1321 if (n < 0)
11571322 continue;
11581323 orig_used = gstring->used;
11591324 for (k = 0; k < rule->LookupCount; k++)
1160 lookup_gpos (lookup_list,
1161 rule->LookupRecord[k].LookupListIndex,
1162 gstring,
1163 gidx + rule->LookupRecord[k].SequenceIndex,
1164 accumulate);
1165 gidx += rule->GlyphCount + (gstring->used - orig_used);
1325 if (lookup_gpos (lookup_list,
1326 rule->LookupRecord[k].LookupListIndex,
1327 gstring,
1328 gidx + rule->LookupRecord[k].SequenceIndex,
1329 control) < 0)
1330 return -1;
1331 if (debug_flag && ! rule->LookupCount)
1332 fprintf (stderr, " bled");
1333 gidx += 1 + n + (gstring->used - orig_used);
11661334 break;
11671335 }
11681336 }
11731341 OTF_ClassRule *rule;
11741342 unsigned class;
11751343 int orig_used;
1176 int j, k;
1344 int j, k, n;
11771345
11781346 class = get_class_def (&context2->ClassDef, g->glyph_id);
11791347 set = context2->ClassSet + class;
11811349 for (j = 0; j < set->ClassRuleCnt; j++)
11821350 {
11831351 rule = set->ClassRule + j;
1184 if (match_classes (&context2->ClassDef,
1352 n = match_classes (&context2->ClassDef,
11851353 gstring, gidx + 1, flag,
1186 rule->GlyphCount - 1, rule->Class, 1)
1187 < 0)
1354 rule->GlyphCount - 1, rule->Class, 1);
1355 if (n < 0)
11881356 continue;
11891357 orig_used = gstring->used;
11901358 for (k = 0; k < rule->LookupCount; k++)
1191 lookup_gpos (lookup_list,
1192 rule->LookupRecord[k].LookupListIndex,
1193 gstring,
1194 gidx + rule->LookupRecord[k].SequenceIndex,
1195 accumulate);
1196 gidx += rule->GlyphCount + (gstring->used - orig_used);
1359 if (lookup_gpos (lookup_list,
1360 rule->LookupRecord[k].LookupListIndex,
1361 gstring,
1362 gidx + rule->LookupRecord[k].SequenceIndex,
1363 control) < 0)
1364 return -1;
1365 if (debug_flag && ! rule->LookupCount)
1366 fprintf(stderr, " bled");
1367 gidx += 1 + n + (gstring->used - orig_used);
11971368 break;
11981369 }
11991370 }
12011372 {
12021373 OTF_GPOS_Context3 *context3 = &subtable->u.context3;
12031374 int orig_used;
1204 int j;
1205
1206 if (match_coverages (gstring, gidx + 1, flag,
1375 int j, n;
1376
1377 n = match_coverages (gstring, gidx + 1, flag,
12071378 context3->GlyphCount - 1,
1208 context3->Coverage + 1, 1) < 0)
1379 context3->Coverage + 1, 1);
1380 if (n < 0)
12091381 continue;
12101382 orig_used = gstring->used;
12111383 for (j = 0; j < context3->LookupCount; j++)
1212 lookup_gpos (lookup_list,
1213 context3->LookupRecord[j].LookupListIndex,
1214 gstring,
1215 gidx + context3->LookupRecord[j].SequenceIndex,
1216 accumulate);
1217 gidx += context3->GlyphCount + (gstring->used - orig_used);
1384 if (lookup_gpos (lookup_list,
1385 context3->LookupRecord[j].LookupListIndex,
1386 gstring,
1387 gidx + context3->LookupRecord[j].SequenceIndex,
1388 control) < 0)
1389 return -1;
1390 if (debug_flag && ! context3->LookupCount)
1391 fprintf(stderr, " bled");
1392 gidx += 1 + n + (gstring->used - orig_used);
12181393 }
12191394 break;
12201395
12241399 OTF_GPOS_ChainContext1 *context1 = &subtable->u.chain_context1;
12251400 OTF_ChainRuleSet *set = context1->ChainRuleSet + coverage_idx;
12261401 int orig_used;
1227 int j, k;
1402 int j, k, n;
12281403
12291404 for (j = 0; j < set->ChainRuleCount; j++)
12301405 {
12341409 || (gidx + rule->InputGlyphCount
12351410 + rule->LookaheadGlyphCount) > gstring->used)
12361411 continue;
1237 if (match_chain_ids (gstring, gidx, flag, rule) < 0)
1412 n = match_chain_ids (gstring, gidx, flag, rule);
1413 if (n < 0)
12381414 continue;
12391415 orig_used = gstring->used;
12401416 for (k = 0; k < rule->LookupCount; k++)
1241 lookup_gpos (lookup_list,
1242 rule->LookupRecord[k].LookupListIndex,
1243 gstring,
1244 gidx + rule->LookupRecord[k].SequenceIndex,
1245 accumulate);
1246 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
1417 if (lookup_gpos (lookup_list,
1418 rule->LookupRecord[k].LookupListIndex,
1419 gstring,
1420 gidx + rule->LookupRecord[k].SequenceIndex,
1421 control) < 0)
1422 return -1;
1423 if (debug_flag && !rule->LookupCount)
1424 fprintf(stderr, " bled");
1425 gidx += n + (gstring->used - orig_used);
12471426 break;
12481427 }
12491428 }
12601439 for (j = 0; j < set->ChainClassRuleCnt; j++)
12611440 {
12621441 OTF_ChainClassRule *rule = set->ChainClassRule + j;
1263 int k;
1442 int k, n;
12641443
12651444 if (gidx < rule->BacktrackGlyphCount
12661445 || (gidx + rule->InputGlyphCount
12671446 + rule->LookaheadGlyphCount) > gstring->used)
12681447 continue;
1269 if (match_chain_classes (gstring, gidx, flag,
1448 n = match_chain_classes (gstring, gidx, flag,
12701449 &context2->BacktrackClassDef,
12711450 &context2->InputClassDef,
12721451 &context2->LookaheadClassDef,
1273 rule) < 0)
1452 rule);
1453 if (n < 0)
12741454 continue;
12751455 orig_used = gstring->used;
12761456 for (k = 0; k < rule->LookupCount; k++)
1277 lookup_gpos (lookup_list,
1278 rule->LookupRecord[k].LookupListIndex,
1279 gstring,
1280 gidx + rule->LookupRecord[k].SequenceIndex,
1281 accumulate);
1282 gidx += rule->InputGlyphCount + (gstring->used - orig_used);
1457 if (lookup_gpos (lookup_list,
1458 rule->LookupRecord[k].LookupListIndex,
1459 gstring,
1460 gidx + rule->LookupRecord[k].SequenceIndex,
1461 control) < 0)
1462 return -1;
1463 if (debug_flag && ! rule->LookupCount)
1464 fprintf(stderr, " bled");
1465 gidx += n + (gstring->used - orig_used);
12831466 break;
12841467 }
12851468 }
12871470 {
12881471 OTF_GPOS_ChainContext3 *context3 = &subtable->u.chain_context3;
12891472 int orig_used;
1290 int j;
1473 int j, n;
12911474
12921475 if (gidx < context3->BacktrackGlyphCount
12931476 || (gidx + context3->InputGlyphCount
12941477 + context3->LookaheadGlyphCount) > gstring->used)
12951478 continue;
1296 if (match_chain_coverages (gstring, gidx, flag, context3) < 0)
1479 n = match_chain_coverages (gstring, gidx, flag, context3);
1480 if (n < 0)
12971481 continue;
12981482 orig_used = gstring->used;
12991483 for (j = 0; j < context3->LookupCount; j++)
1300 lookup_gpos (lookup_list,
1301 context3->LookupRecord[j].LookupListIndex,
1302 gstring,
1303 gidx + context3->LookupRecord[j].SequenceIndex,
1304 accumulate);
1305 gidx += context3->InputGlyphCount + (gstring->used - orig_used);
1484 if (lookup_gpos (lookup_list,
1485 context3->LookupRecord[j].LookupListIndex,
1486 gstring,
1487 gidx + context3->LookupRecord[j].SequenceIndex,
1488 control) < 0)
1489 return -1;
1490 if (debug_flag && ! context3->LookupCount)
1491 fprintf (stderr, " bled");
1492 gidx += n + (gstring->used - orig_used);
13061493 }
13071494 else
13081495 OTF_ERROR (OTF_ERROR_GPOS_DRIVE, " (invalid subformat)");
17361923 return 0;
17371924 }
17381925
1926
17391927 static int
17401928 OTF_drive_gsub_internal (OTF *otf, OTF_GlyphString *gstring,
17411929 const char *script, const char *language,
17421930 const char *features,
1743 int alternate_subst, int with_log)
1931 Control *control)
17441932 {
17451933 char *errfmt = "GSUB driving%s";
17461934 int errret = -1;
17531941 for (i = 0; i < gstring->used; i++)
17541942 {
17551943 gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i;
1756 gstring->glyphs[i].positioning_type = 0;
1944 if (control->disable_ligature_component_info)
1945 gstring->glyphs[i].positioning_type = 0;
17571946 }
17581947
17591948 if (OTF_get_table (otf, "GSUB") < 0)
17731962 features, lookup_flags) < 0)
17741963 OTF_ERROR (OTF_ERROR_MEMORY, " feature list");
17751964
1965 control->recursive_call = 0;
17761966 for (i = 0; i < gsub->LookupList.LookupCount; i++)
17771967 {
17781968 int gidx;
17851975 while (gidx < gstring->used)
17861976 {
17871977 int result = lookup_gsub (otf, &gsub->LookupList, i, gstring,
1788 gidx, alternate_subst);
1978 gidx, control);
17891979 if (result < 0)
17901980 return errret;
17911981 if (gidx < result)
17921982 for (; gidx < result; gidx++)
1793 gstring->glyphs[gidx].positioning_type
1794 = ((with_log && gstring->glyphs[gidx].positioning_type)
1795 ? (lookup_flags[i] << 4) : 0);
1983 {
1984 OTF_Glyph *g = gstring->glyphs + gidx;
1985
1986 if (OTF_POSITIONING_TYPE_GET_FORMAT (g))
1987 {
1988 OTF_POSITIONING_TYPE_SET_FORMAT (g, 0);
1989 if (control->disable_feature_log == 0)
1990 OTF_POSITIONING_TYPE_SET_FEATURE (g, lookup_flags[i]);
1991 }
1992 }
17961993 else
17971994 gidx++;
17981995 }
18032000 while (gidx >= 0)
18042001 {
18052002 int result = lookup_gsub (otf, &gsub->LookupList, i, gstring,
1806 gidx, alternate_subst);
2003 gidx, control);
18072004 if (result < 0)
18082005 return errret;
18092006 if (gidx > result)
18102007 for (; gidx > result; gidx--)
1811 gstring->glyphs[gidx].positioning_type
1812 = ((with_log && gstring->glyphs[gidx].positioning_type)
1813 ? (lookup_flags[i] << 4) : 0);
2008 {
2009 OTF_Glyph *g = gstring->glyphs + gidx;
2010
2011 if (OTF_POSITIONING_TYPE_GET_FORMAT (g))
2012 {
2013 OTF_POSITIONING_TYPE_SET_FORMAT (g, 0);
2014 if (control->disable_feature_log == 0)
2015 OTF_POSITIONING_TYPE_SET_FEATURE (g, lookup_flags[i]);
2016 }
2017 }
18142018 else
18152019 gidx--;
18162020 }
18172021 }
18182022 }
18192023
2024 if (control->disable_ligature_component_info)
2025 for (i = 0; i < gstring->used; i++)
2026 OTF_POSITIONING_TYPE_SET_COMPONENTS (gstring->glyphs + i, 0);
18202027 return 0;
18212028 }
2029
18222030
18232031 int
18242032 OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring,
18252033 const char *script, const char *language, const char *features)
18262034 {
2035 Control control;
2036
18272037 if (! otf->cmap)
18282038 OTF_get_table (otf, "cmap");
1829 return OTF_drive_gsub_internal (otf, gstring, script, language, features,
1830 0, 0);
2039 control.disable_accumulate_positioning = 1;
2040 control.disable_feature_log = 1;
2041 control.disable_ligature_component_info = 1;
2042 control.alternate_subst_report_all = 0;
2043 control.recursive_call = 0;
2044 return OTF_drive_gsub_internal (otf, gstring, script, language,
2045 features, &control);
18312046 }
18322047
18332048 int
18352050 const char *script, const char *language,
18362051 const char *features)
18372052 {
2053 Control control;
2054
18382055 if (! otf->cmap)
18392056 OTF_get_table (otf, "cmap");
1840 return OTF_drive_gsub_internal (otf, gstring, script, language, features,
1841 0, 1);
2057 control.disable_accumulate_positioning = 0;
2058 control.disable_feature_log = 0;
2059 control.disable_ligature_component_info = 1;
2060 control.alternate_subst_report_all = 0;
2061 control.recursive_call = 0;
2062 return OTF_drive_gsub_internal (otf, gstring, script, language,
2063 features, &control);
2064 }
2065
2066 int
2067 OTF_drive_gsub_features (OTF *otf, OTF_GlyphString *gstring,
2068 const char *script, const char *language,
2069 const char *features)
2070 {
2071 int result;
2072
2073 default_control.recursive_call = 0;
2074 return OTF_drive_gsub_internal (otf, gstring, script, language,
2075 features, &default_control);
18422076 }
18432077
18442078 static int
18452079 OTF_drive_gpos_internal (OTF *otf, OTF_GlyphString *gstring,
18462080 const char *script, const char *language,
18472081 const char *features,
1848 int accumulate, int with_log)
2082 Control *control)
18492083 {
18502084 char *errfmt = "GPOS driving%s";
18512085 int errret = -1;
18742108 features, lookup_flags) < 0)
18752109 OTF_ERROR (OTF_ERROR_MEMORY, " feature list");
18762110
2111 control->recursive_call = 0;
18772112 for (i = 0; i < gpos->LookupList.LookupCount; i++)
18782113 {
18792114 int gidx = 0;
18832118 while (gidx < gstring->used)
18842119 {
18852120 int result = lookup_gpos (&gpos->LookupList, i, gstring, gidx,
1886 accumulate);
2121 control);
18872122 if (result < 0)
18882123 return errret;
18892124 if (gidx < result)
18902125 for (; gidx < result; gidx++)
18912126 {
1892 int positioning_type
1893 = gstring->glyphs[gidx].positioning_type & 0xF;
1894
1895 if (with_log && positioning_type)
1896 gstring->glyphs[gidx].positioning_type
1897 = positioning_type | (lookup_flags[i] << 4);
2127 OTF_Glyph *g = gstring->glyphs + gidx;
2128
2129 if (OTF_POSITIONING_TYPE_GET_FORMAT (g)
2130 && control->disable_feature_log == 0)
2131 OTF_POSITIONING_TYPE_SET_FEATURE (g, lookup_flags[i]);
18982132 }
18992133 else
19002134 gidx++;
19012135 }
19022136 }
19032137
2138 if (control->disable_mark_distance)
2139 for (i = 0; i < gstring->used; i++)
2140 OTF_POSITIONING_TYPE_SET_MARKDISTANCE (gstring->glyphs + i, 0);
19042141 return 0;
19052142 }
2143
19062144
19072145 int
19082146 OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
19092147 const char *script, const char *language, const char *features)
19102148 {
2149 Control control;
2150
19112151 if (! otf->cmap)
19122152 OTF_get_table (otf, "cmap");
1913 return OTF_drive_gpos_internal (otf, gstring, script, language, features,
1914 0, 0);
2153 control.disable_accumulate_positioning = 1;
2154 control.disable_feature_log = 1;
2155 control.disable_ligature_component_info = 1;
2156 control.disable_mark_distance = 1;
2157 control.alternate_subst_report_all = 0;
2158 control.recursive_call = 0;
2159 return OTF_drive_gpos_internal (otf, gstring, script, language,
2160 features, &control);
19152161 }
19162162
19172163 int
19182164 OTF_drive_gpos2 (OTF *otf, OTF_GlyphString *gstring,
19192165 const char *script, const char *language, const char *features)
19202166 {
2167 Control control;
2168
19212169 if (! otf->cmap)
19222170 OTF_get_table (otf, "cmap");
1923 return OTF_drive_gpos_internal (otf, gstring, script, language, features,
1924 1, 0);
2171 control.disable_accumulate_positioning = 0;
2172 control.disable_feature_log = 1;
2173 control.disable_ligature_component_info = 1;
2174 control.disable_mark_distance = 1;
2175 control.alternate_subst_report_all = 0;
2176 control.recursive_call = 0;
2177 return OTF_drive_gpos_internal (otf, gstring, script, language,
2178 features, &control);
19252179 }
19262180
19272181 int
19292183 const char *script, const char *language,
19302184 const char *features)
19312185 {
2186 Control control;
2187
19322188 if (! otf->cmap)
19332189 OTF_get_table (otf, "cmap");
1934 return OTF_drive_gpos_internal (otf, gstring, script, language, features,
1935 1, 1);
2190 control.disable_accumulate_positioning = 0;
2191 control.disable_feature_log = 0;
2192 control.disable_ligature_component_info = 1;
2193 control.disable_mark_distance = 1;
2194 control.alternate_subst_report_all = 0;
2195 control.recursive_call = 0;
2196 return OTF_drive_gpos_internal (otf, gstring, script, language,
2197 features, &control);
2198 }
2199
2200 int
2201 OTF_drive_gpos_features (OTF *otf, OTF_GlyphString *gstring,
2202 const char *script, const char *language,
2203 const char *features)
2204 {
2205 default_control.recursive_call = 0;
2206 return OTF_drive_gpos_internal (otf, gstring, script, language,
2207 features, &default_control);
19362208 }
19372209
19382210 int
19582230 const char *script, const char *language,
19592231 const char *features)
19602232 {
1961 return OTF_drive_gsub_internal (otf, gstring, script, language, features,
1962 1, 0);
2233 Control control;
2234
2235 control.disable_accumulate_positioning = 1;
2236 control.disable_feature_log = 1;
2237 control.disable_ligature_component_info = 1;
2238 control.alternate_subst_report_all = 1;
2239 control.recursive_call = 0;
2240 return OTF_drive_gsub_internal (otf, gstring, script, language,
2241 features, &control);
19632242 }
19642243
19652244 static int
(No changes)
10391039 = read_glyph_ids (otf, stream,
10401040 (OTF_GlyphID **) &class->f.f1.ClassValueArray,
10411041 0, -1);
1042 if (! class->f.f1.GlyphCount)
1043 return -1;
10441042 }
10451043 else if (class->ClassFormat == 2)
10461044 {
10481046 = read_range_records (otf, stream,
10491047 (OTF_RangeRecord **)
10501048 &class->f.f2.ClassRangeRecord);
1051 if (! class->f.f2.ClassRangeCount)
1052 return -1;
10531049 }
10541050 else
10551051 OTF_ERROR (OTF_ERROR_TABLE, " (Invalid format)");
14231419
14241420 /*** (1-8) Structures common to GSUB and GPOS */
14251421
1426 static unsigned
1422 static int
14271423 read_lookup_record_list (OTF *otf, OTF_Stream *stream,
14281424 OTF_LookupRecord **record, int count)
14291425 {
14301426 char *errfmt = "LookupRecord%s";
1431 unsigned errret = 0;
1427 int errret = -1;
14321428 int i;
14331429
14341430 if (count < 0)
14351431 READ_UINT16 (stream, count);
1436 if (! count)
1437 OTF_ERROR (OTF_ERROR_TABLE, " (zero count)");
14381432 OTF_MALLOC (*record, count, "");
14391433 for (i = 0; i < count; i++)
14401434 {
14751469 (*rule)[i].GlyphCount) < 0)
14761470 return errret;
14771471 if (read_lookup_record_list (otf, stream, &(*rule)[i].LookupRecord,
1478 (*rule)[i].LookupCount) == 0)
1472 (*rule)[i].LookupCount) < 0)
14791473 return errret;
14801474 }
14811475 RESTORE_STREAM (stream, state);
15491543 0, (*rule)[i].GlyphCount - 1) < 0)
15501544 return errret;
15511545 if (read_lookup_record_list (otf, stream, &(*rule)[i].LookupRecord,
1552 (*rule)[i].LookupCount) == 0)
1546 (*rule)[i].LookupCount) < 0)
15531547 return errret;
15541548 }
15551549 RESTORE_STREAM (stream, state);
16051599 READ_OFFSET (stream, (*rule)[i].offset);
16061600 for (i = 0; i < count; i++)
16071601 {
1602 int lookup_record_count;
1603
16081604 SEEK_STREAM (stream, offset + (*rule)[i].offset);
16091605 (*rule)[i].BacktrackGlyphCount
16101606 = read_glyph_ids (otf, stream, &(*rule)[i].Backtrack, 0, -1);
16141610 OTF_ERROR (OTF_ERROR_TABLE, " (zero count)");
16151611 (*rule)[i].LookaheadGlyphCount
16161612 = read_glyph_ids (otf, stream, &(*rule)[i].LookAhead, 0, -1);
1617 (*rule)[i].LookupCount
1613 lookup_record_count
16181614 = read_lookup_record_list (otf, stream,
16191615 &(*rule)[i].LookupRecord, -1);
1620 if (! (*rule)[i].LookupCount)
1616 if (lookup_record_count < 0)
16211617 return errret;
1618 (*rule)[i].LookupCount = lookup_record_count;
16221619 }
16231620 return count;
16241621 }
16791676 }
16801677 for (i = 0; i < count; i++)
16811678 {
1679 int lookup_record_count;
1680
16821681 SEEK_STREAM (stream, offset + (*rule)[i].offset);
16831682 (*rule)[i].BacktrackGlyphCount
16841683 = read_glyph_ids (otf, stream,
16911690 (*rule)[i].LookaheadGlyphCount
16921691 = read_glyph_ids (otf, stream,
16931692 (OTF_GlyphID **) &(*rule)[i].LookAhead, 0, -1);
1694 (*rule)[i].LookupCount
1693 lookup_record_count
16951694 = read_lookup_record_list (otf, stream,
16961695 &(*rule)[i].LookupRecord, -1);
1697 if (! (*rule)[i].LookupCount)
1696 if (lookup_record_count < 0)
16981697 return errret;
1698 (*rule)[i].LookupCount = lookup_record_count;
16991699 }
17001700 return count;
17011701 }
18331833 count = read_coverage_list (otf, stream, offset,
18341834 &chain_context3->LookAhead, -1);
18351835 chain_context3->LookaheadGlyphCount = (unsigned) count;
1836 chain_context3->LookupCount
1837 = read_lookup_record_list (otf, stream,
1838 &chain_context3->LookupRecord, -1);
1836 count = read_lookup_record_list (otf, stream,
1837 &chain_context3->LookupRecord, -1);
1838 if (count < 0)
1839 return -1;
1840 chain_context3->LookupCount = count;
18391841 return 0;
18401842 }
18411843
29672969 && strncasecmp (ext + 1, "ttf", 3)
29682970 && strncasecmp (ext + 1, "ttc", 3)))
29692971 OTF_ERROR (OTF_ERROR_FILE, otf_name);
2970 fp = fopen (otf_name, "r");
2972 fp = fopen (otf_name, "rb");
29712973 if (! fp)
29722974 OTF_ERROR (OTF_ERROR_FILE, otf_name);
29732975 otf = calloc (1, sizeof (OTF));