Merge lp:~indicator-applet-developers/indicator-datetime/ubuntu into lp:~ubuntu-desktop/indicator-datetime/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Ted Gould
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Pending | ||
Review via email: mp+71236@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'AUTHORS' | |||
2 | --- AUTHORS 2011-07-07 21:24:09 +0000 | |||
3 | +++ AUTHORS 2011-08-11 16:49:22 +0000 | |||
4 | @@ -5,6 +5,7 @@ | |||
5 | 5 | Dylan McCall | 5 | Dylan McCall |
6 | 6 | Evgeni Golov | 6 | Evgeni Golov |
7 | 7 | Gabor Kelemen | 7 | Gabor Kelemen |
8 | 8 | Javier Jardón | ||
9 | 8 | karl-qdh | 9 | karl-qdh |
10 | 9 | Ken VanDine | 10 | Ken VanDine |
11 | 10 | Kyle Nitzsche | 11 | Kyle Nitzsche |
12 | 11 | 12 | ||
13 | === modified file 'ChangeLog' | |||
14 | --- ChangeLog 2011-07-07 21:24:09 +0000 | |||
15 | +++ ChangeLog 2011-08-11 16:49:22 +0000 | |||
16 | @@ -1,5 +1,33 @@ | |||
17 | 1 | # Generated by Makefile. Do not edit. | 1 | # Generated by Makefile. Do not edit. |
18 | 2 | 2 | ||
19 | 3 | 2011-08-11 Ted Gould <ted@gould.cx> | ||
20 | 4 | |||
21 | 5 | 0.2.92 | ||
22 | 6 | |||
23 | 7 | 2011-08-10 Ted Gould <ted@gould.cx> | ||
24 | 8 | |||
25 | 9 | Add a greeter mode | ||
26 | 10 | |||
27 | 11 | 2011-08-03 Michael Terry <michael.terry@canonical.com> | ||
28 | 12 | |||
29 | 13 | don't show timezones or settings links when used in a greeter | ||
30 | 14 | |||
31 | 15 | 2011-07-22 Ted Gould <ted@gould.cx> | ||
32 | 16 | |||
33 | 17 | Autotools cleanup | ||
34 | 18 | |||
35 | 19 | 2011-07-20 Javier Jardón <javier.jardon@codethink.co.uk> | ||
36 | 20 | |||
37 | 21 | Update autotools configuration a bit | ||
38 | 22 | |||
39 | 23 | Do not use deprecated autoconf macros | ||
40 | 24 | Use new libtool syntax | ||
41 | 25 | General cleanup | ||
42 | 26 | |||
43 | 27 | 2011-07-14 Michael Terry <michael.terry@canonical.com> | ||
44 | 28 | |||
45 | 29 | don't unref a NULL GDateTime object; original patch by Dave Gilbert | ||
46 | 30 | |||
47 | 3 | 2011-07-07 Ted Gould <ted@gould.cx> | 31 | 2011-07-07 Ted Gould <ted@gould.cx> |
48 | 4 | 32 | ||
49 | 5 | 0.2.91 | 33 | 0.2.91 |
50 | 6 | 34 | ||
51 | === modified file 'Makefile.am' | |||
52 | --- Makefile.am 2011-03-03 20:41:18 +0000 | |||
53 | +++ Makefile.am 2011-08-11 16:49:22 +0000 | |||
54 | @@ -1,3 +1,4 @@ | |||
55 | 1 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | ||
56 | 1 | 2 | ||
57 | 2 | SUBDIRS = \ | 3 | SUBDIRS = \ |
58 | 3 | libmap \ | 4 | libmap \ |
59 | @@ -16,7 +17,7 @@ | |||
60 | 16 | echo Creating ChangeLog && \ | 17 | echo Creating ChangeLog && \ |
61 | 17 | ( cd "$(top_srcdir)" && \ | 18 | ( cd "$(top_srcdir)" && \ |
62 | 18 | echo '# Generated by Makefile. Do not edit.'; echo; \ | 19 | echo '# Generated by Makefile. Do not edit.'; echo; \ |
64 | 19 | $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \ | 20 | $(top_srcdir)/build-aux/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \ |
65 | 20 | && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ | 21 | && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ |
66 | 21 | || (rm -f ChangeLog.tmp; \ | 22 | || (rm -f ChangeLog.tmp; \ |
67 | 22 | echo Failed to generate ChangeLog >&2 ); \ | 23 | echo Failed to generate ChangeLog >&2 ); \ |
68 | @@ -28,7 +29,7 @@ | |||
69 | 28 | echo Creating AUTHORS && \ | 29 | echo Creating AUTHORS && \ |
70 | 29 | ( cd "$(top_srcdir)" && \ | 30 | ( cd "$(top_srcdir)" && \ |
71 | 30 | echo '# Generated by Makefile. Do not edit.'; echo; \ | 31 | echo '# Generated by Makefile. Do not edit.'; echo; \ |
73 | 31 | $(top_srcdir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \ | 32 | $(top_srcdir)/build-aux/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \ |
74 | 32 | && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \ | 33 | && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \ |
75 | 33 | || (rm -f AUTHORS.tmp; \ | 34 | || (rm -f AUTHORS.tmp; \ |
76 | 34 | echo Failed to generate AUTHORS >&2 ); \ | 35 | echo Failed to generate AUTHORS >&2 ); \ |
77 | 35 | 36 | ||
78 | === modified file 'Makefile.in' | |||
79 | --- Makefile.in 2011-07-07 21:24:09 +0000 | |||
80 | +++ Makefile.in 2011-08-11 16:49:22 +0000 | |||
81 | @@ -37,15 +37,20 @@ | |||
82 | 37 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ | 37 | DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
83 | 38 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ | 38 | $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
84 | 39 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ | 39 | $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ |
87 | 40 | compile config.guess config.sub depcomp install-sh ltmain.sh \ | 40 | build-aux/compile build-aux/config.guess build-aux/config.sub \ |
88 | 41 | missing mkinstalldirs | 41 | build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \ |
89 | 42 | build-aux/missing build-aux/mkinstalldirs compile config.guess \ | ||
90 | 43 | config.sub depcomp install-sh ltmain.sh missing mkinstalldirs | ||
91 | 42 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | 44 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
93 | 43 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | 45 | am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ |
94 | 46 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | ||
95 | 47 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | ||
96 | 48 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac | ||
97 | 44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | 49 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
98 | 45 | $(ACLOCAL_M4) | 50 | $(ACLOCAL_M4) |
99 | 46 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ | 51 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
100 | 47 | configure.lineno config.status.lineno | 52 | configure.lineno config.status.lineno |
102 | 48 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | 53 | mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs |
103 | 49 | CONFIG_HEADER = config.h | 54 | CONFIG_HEADER = config.h |
104 | 50 | CONFIG_CLEAN_FILES = | 55 | CONFIG_CLEAN_FILES = |
105 | 51 | CONFIG_CLEAN_VPATH_FILES = | 56 | CONFIG_CLEAN_VPATH_FILES = |
106 | @@ -104,7 +109,7 @@ | |||
107 | 104 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | 109 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ |
108 | 105 | done; \ | 110 | done; \ |
109 | 106 | reldir="$$dir2" | 111 | reldir="$$dir2" |
111 | 107 | DIST_ARCHIVES = $(distdir).tar.gz | 112 | DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz |
112 | 108 | GZIP_ENV = --best | 113 | GZIP_ENV = --best |
113 | 109 | distuninstallcheck_listfiles = find . -type f -print | 114 | distuninstallcheck_listfiles = find . -type f -print |
114 | 110 | distcleancheck_listfiles = find . -type f -print | 115 | distcleancheck_listfiles = find . -type f -print |
115 | @@ -166,7 +171,6 @@ | |||
116 | 166 | LD = @LD@ | 171 | LD = @LD@ |
117 | 167 | LDFLAGS = @LDFLAGS@ | 172 | LDFLAGS = @LDFLAGS@ |
118 | 168 | LIBMAP_CFLAGS = @LIBMAP_CFLAGS@ | 173 | LIBMAP_CFLAGS = @LIBMAP_CFLAGS@ |
119 | 169 | LIBMAP_LDFLAGS = @LIBMAP_LDFLAGS@ | ||
120 | 170 | LIBMAP_LIBS = @LIBMAP_LIBS@ | 174 | LIBMAP_LIBS = @LIBMAP_LIBS@ |
121 | 171 | LIBOBJS = @LIBOBJS@ | 175 | LIBOBJS = @LIBOBJS@ |
122 | 172 | LIBS = @LIBS@ | 176 | LIBS = @LIBS@ |
123 | @@ -268,6 +272,7 @@ | |||
124 | 268 | top_build_prefix = @top_build_prefix@ | 272 | top_build_prefix = @top_build_prefix@ |
125 | 269 | top_builddir = @top_builddir@ | 273 | top_builddir = @top_builddir@ |
126 | 270 | top_srcdir = @top_srcdir@ | 274 | top_srcdir = @top_srcdir@ |
127 | 275 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | ||
128 | 271 | SUBDIRS = \ | 276 | SUBDIRS = \ |
129 | 272 | libmap \ | 277 | libmap \ |
130 | 273 | src \ | 278 | src \ |
131 | @@ -558,7 +563,6 @@ | |||
132 | 558 | dist-lzma: distdir | 563 | dist-lzma: distdir |
133 | 559 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma | 564 | tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma |
134 | 560 | $(am__remove_distdir) | 565 | $(am__remove_distdir) |
135 | 561 | |||
136 | 562 | dist-xz: distdir | 566 | dist-xz: distdir |
137 | 563 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | 567 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz |
138 | 564 | $(am__remove_distdir) | 568 | $(am__remove_distdir) |
139 | @@ -578,6 +582,7 @@ | |||
140 | 578 | 582 | ||
141 | 579 | dist dist-all: distdir | 583 | dist dist-all: distdir |
142 | 580 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz | 584 | tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
143 | 585 | tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz | ||
144 | 581 | $(am__remove_distdir) | 586 | $(am__remove_distdir) |
145 | 582 | 587 | ||
146 | 583 | # This target untars the dist file and tries a VPATH configuration. Then | 588 | # This target untars the dist file and tries a VPATH configuration. Then |
147 | @@ -781,7 +786,7 @@ | |||
148 | 781 | echo Creating ChangeLog && \ | 786 | echo Creating ChangeLog && \ |
149 | 782 | ( cd "$(top_srcdir)" && \ | 787 | ( cd "$(top_srcdir)" && \ |
150 | 783 | echo '# Generated by Makefile. Do not edit.'; echo; \ | 788 | echo '# Generated by Makefile. Do not edit.'; echo; \ |
152 | 784 | $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \ | 789 | $(top_srcdir)/build-aux/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \ |
153 | 785 | && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ | 790 | && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ |
154 | 786 | || (rm -f ChangeLog.tmp; \ | 791 | || (rm -f ChangeLog.tmp; \ |
155 | 787 | echo Failed to generate ChangeLog >&2 ); \ | 792 | echo Failed to generate ChangeLog >&2 ); \ |
156 | @@ -793,7 +798,7 @@ | |||
157 | 793 | echo Creating AUTHORS && \ | 798 | echo Creating AUTHORS && \ |
158 | 794 | ( cd "$(top_srcdir)" && \ | 799 | ( cd "$(top_srcdir)" && \ |
159 | 795 | echo '# Generated by Makefile. Do not edit.'; echo; \ | 800 | echo '# Generated by Makefile. Do not edit.'; echo; \ |
161 | 796 | $(top_srcdir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \ | 801 | $(top_srcdir)/build-aux/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \ |
162 | 797 | && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \ | 802 | && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \ |
163 | 798 | || (rm -f AUTHORS.tmp; \ | 803 | || (rm -f AUTHORS.tmp; \ |
164 | 799 | echo Failed to generate AUTHORS >&2 ); \ | 804 | echo Failed to generate AUTHORS >&2 ); \ |
165 | 800 | 805 | ||
166 | === modified file 'aclocal.m4' | |||
167 | --- aclocal.m4 2011-06-21 19:24:26 +0000 | |||
168 | +++ aclocal.m4 2011-08-11 16:49:22 +0000 | |||
169 | @@ -536,8647 +536,6 @@ | |||
170 | 536 | ] | 536 | ] |
171 | 537 | ) | 537 | ) |
172 | 538 | 538 | ||
173 | 539 | |||
174 | 540 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | ||
175 | 541 | # serial 40 IT_PROG_INTLTOOL | ||
176 | 542 | AC_DEFUN([IT_PROG_INTLTOOL], [ | ||
177 | 543 | AC_PREREQ([2.50])dnl | ||
178 | 544 | AC_REQUIRE([AM_NLS])dnl | ||
179 | 545 | |||
180 | 546 | case "$am__api_version" in | ||
181 | 547 | 1.[01234]) | ||
182 | 548 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | ||
183 | 549 | ;; | ||
184 | 550 | *) | ||
185 | 551 | ;; | ||
186 | 552 | esac | ||
187 | 553 | |||
188 | 554 | if test -n "$1"; then | ||
189 | 555 | AC_MSG_CHECKING([for intltool >= $1]) | ||
190 | 556 | |||
191 | 557 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
192 | 558 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | ||
193 | 559 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | ||
194 | 560 | ] | ||
195 | 561 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | ||
196 | 562 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | ||
197 | 563 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | ||
198 | 564 | fi | ||
199 | 565 | |||
200 | 566 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | ||
201 | 567 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | ||
202 | 568 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | ||
203 | 569 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | ||
204 | 570 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | ||
205 | 571 | fi | ||
206 | 572 | |||
207 | 573 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
208 | 574 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
209 | 575 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
210 | 576 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
211 | 577 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | ||
212 | 578 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
213 | 579 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
214 | 580 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
215 | 581 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
216 | 582 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
217 | 583 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
218 | 584 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | ||
219 | 585 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
220 | 586 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
221 | 587 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
222 | 588 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
223 | 589 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
224 | 590 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
225 | 591 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | ||
226 | 592 | |||
227 | 593 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | ||
228 | 594 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | ||
229 | 595 | _IT_SUBST(INTLTOOL_KEYS_RULE) | ||
230 | 596 | _IT_SUBST(INTLTOOL_PROP_RULE) | ||
231 | 597 | _IT_SUBST(INTLTOOL_OAF_RULE) | ||
232 | 598 | _IT_SUBST(INTLTOOL_PONG_RULE) | ||
233 | 599 | _IT_SUBST(INTLTOOL_SERVER_RULE) | ||
234 | 600 | _IT_SUBST(INTLTOOL_SHEET_RULE) | ||
235 | 601 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | ||
236 | 602 | _IT_SUBST(INTLTOOL_UI_RULE) | ||
237 | 603 | _IT_SUBST(INTLTOOL_XAM_RULE) | ||
238 | 604 | _IT_SUBST(INTLTOOL_KBD_RULE) | ||
239 | 605 | _IT_SUBST(INTLTOOL_XML_RULE) | ||
240 | 606 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | ||
241 | 607 | _IT_SUBST(INTLTOOL_CAVES_RULE) | ||
242 | 608 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | ||
243 | 609 | _IT_SUBST(INTLTOOL_THEME_RULE) | ||
244 | 610 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | ||
245 | 611 | _IT_SUBST(INTLTOOL_POLICY_RULE) | ||
246 | 612 | |||
247 | 613 | # Check the gettext tools to make sure they are GNU | ||
248 | 614 | AC_PATH_PROG(XGETTEXT, xgettext) | ||
249 | 615 | AC_PATH_PROG(MSGMERGE, msgmerge) | ||
250 | 616 | AC_PATH_PROG(MSGFMT, msgfmt) | ||
251 | 617 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | ||
252 | 618 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | ||
253 | 619 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
254 | 620 | fi | ||
255 | 621 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | ||
256 | 622 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | ||
257 | 623 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | ||
258 | 624 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | ||
259 | 625 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | ||
260 | 626 | fi | ||
261 | 627 | |||
262 | 628 | AC_PATH_PROG(INTLTOOL_PERL, perl) | ||
263 | 629 | if test -z "$INTLTOOL_PERL"; then | ||
264 | 630 | AC_MSG_ERROR([perl not found]) | ||
265 | 631 | fi | ||
266 | 632 | AC_MSG_CHECKING([for perl >= 5.8.1]) | ||
267 | 633 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | ||
268 | 634 | if test $? -ne 0; then | ||
269 | 635 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | ||
270 | 636 | else | ||
271 | 637 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | ||
272 | 638 | AC_MSG_RESULT([$IT_PERL_VERSION]) | ||
273 | 639 | fi | ||
274 | 640 | if test "x$2" != "xno-xml"; then | ||
275 | 641 | AC_MSG_CHECKING([for XML::Parser]) | ||
276 | 642 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | ||
277 | 643 | AC_MSG_RESULT([ok]) | ||
278 | 644 | else | ||
279 | 645 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | ||
280 | 646 | fi | ||
281 | 647 | fi | ||
282 | 648 | |||
283 | 649 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | ||
284 | 650 | AC_SUBST(ALL_LINGUAS) | ||
285 | 651 | |||
286 | 652 | # Set DATADIRNAME correctly if it is not set yet | ||
287 | 653 | # (copied from glib-gettext.m4) | ||
288 | 654 | if test -z "$DATADIRNAME"; then | ||
289 | 655 | AC_LINK_IFELSE( | ||
290 | 656 | [AC_LANG_PROGRAM([[]], | ||
291 | 657 | [[extern int _nl_msg_cat_cntr; | ||
292 | 658 | return _nl_msg_cat_cntr]])], | ||
293 | 659 | [DATADIRNAME=share], | ||
294 | 660 | [case $host in | ||
295 | 661 | *-*-solaris*) | ||
296 | 662 | dnl On Solaris, if bind_textdomain_codeset is in libc, | ||
297 | 663 | dnl GNU format message catalog is always supported, | ||
298 | 664 | dnl since both are added to the libc all together. | ||
299 | 665 | dnl Hence, we'd like to go with DATADIRNAME=share | ||
300 | 666 | dnl in this case. | ||
301 | 667 | AC_CHECK_FUNC(bind_textdomain_codeset, | ||
302 | 668 | [DATADIRNAME=share], [DATADIRNAME=lib]) | ||
303 | 669 | ;; | ||
304 | 670 | *) | ||
305 | 671 | [DATADIRNAME=lib] | ||
306 | 672 | ;; | ||
307 | 673 | esac]) | ||
308 | 674 | fi | ||
309 | 675 | AC_SUBST(DATADIRNAME) | ||
310 | 676 | |||
311 | 677 | IT_PO_SUBDIR([po]) | ||
312 | 678 | |||
313 | 679 | ]) | ||
314 | 680 | |||
315 | 681 | |||
316 | 682 | # IT_PO_SUBDIR(DIRNAME) | ||
317 | 683 | # --------------------- | ||
318 | 684 | # All po subdirs have to be declared with this macro; the subdir "po" is | ||
319 | 685 | # declared by IT_PROG_INTLTOOL. | ||
320 | 686 | # | ||
321 | 687 | AC_DEFUN([IT_PO_SUBDIR], | ||
322 | 688 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | ||
323 | 689 | dnl | ||
324 | 690 | dnl The following CONFIG_COMMANDS should be executed at the very end | ||
325 | 691 | dnl of config.status. | ||
326 | 692 | AC_CONFIG_COMMANDS_PRE([ | ||
327 | 693 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | ||
328 | 694 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | ||
329 | 695 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | ||
330 | 696 | fi | ||
331 | 697 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | ||
332 | 698 | >"$1/stamp-it.tmp" | ||
333 | 699 | [sed '/^#/d | ||
334 | 700 | s/^[[].*] *// | ||
335 | 701 | /^[ ]*$/d | ||
336 | 702 | '"s|^| $ac_top_srcdir/|" \ | ||
337 | 703 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | ||
338 | 704 | ] | ||
339 | 705 | [sed '/^POTFILES =/,/[^\\]$/ { | ||
340 | 706 | /^POTFILES =/!d | ||
341 | 707 | r $1/POTFILES | ||
342 | 708 | } | ||
343 | 709 | ' "$1/Makefile.in" >"$1/Makefile"] | ||
344 | 710 | rm -f "$1/Makefile.tmp" | ||
345 | 711 | mv "$1/stamp-it.tmp" "$1/stamp-it" | ||
346 | 712 | ]) | ||
347 | 713 | ])dnl | ||
348 | 714 | ]) | ||
349 | 715 | |||
350 | 716 | # _IT_SUBST(VARIABLE) | ||
351 | 717 | # ------------------- | ||
352 | 718 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | ||
353 | 719 | # | ||
354 | 720 | AC_DEFUN([_IT_SUBST], | ||
355 | 721 | [ | ||
356 | 722 | AC_SUBST([$1]) | ||
357 | 723 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | ||
358 | 724 | ] | ||
359 | 725 | ) | ||
360 | 726 | |||
361 | 727 | # deprecated macros | ||
362 | 728 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | ||
363 | 729 | # A hint is needed for aclocal from Automake <= 1.9.4: | ||
364 | 730 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | ||
365 | 731 | |||
366 | 732 | |||
367 | 733 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
368 | 734 | # | ||
369 | 735 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
370 | 736 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
371 | 737 | # Inc. | ||
372 | 738 | # Written by Gordon Matzigkeit, 1996 | ||
373 | 739 | # | ||
374 | 740 | # This file is free software; the Free Software Foundation gives | ||
375 | 741 | # unlimited permission to copy and/or distribute it, with or without | ||
376 | 742 | # modifications, as long as this notice is preserved. | ||
377 | 743 | |||
378 | 744 | m4_define([_LT_COPYING], [dnl | ||
379 | 745 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | ||
380 | 746 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | ||
381 | 747 | # Inc. | ||
382 | 748 | # Written by Gordon Matzigkeit, 1996 | ||
383 | 749 | # | ||
384 | 750 | # This file is part of GNU Libtool. | ||
385 | 751 | # | ||
386 | 752 | # GNU Libtool is free software; you can redistribute it and/or | ||
387 | 753 | # modify it under the terms of the GNU General Public License as | ||
388 | 754 | # published by the Free Software Foundation; either version 2 of | ||
389 | 755 | # the License, or (at your option) any later version. | ||
390 | 756 | # | ||
391 | 757 | # As a special exception to the GNU General Public License, | ||
392 | 758 | # if you distribute this file as part of a program or library that | ||
393 | 759 | # is built using GNU Libtool, you may include this file under the | ||
394 | 760 | # same distribution terms that you use for the rest of that program. | ||
395 | 761 | # | ||
396 | 762 | # GNU Libtool is distributed in the hope that it will be useful, | ||
397 | 763 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
398 | 764 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
399 | 765 | # GNU General Public License for more details. | ||
400 | 766 | # | ||
401 | 767 | # You should have received a copy of the GNU General Public License | ||
402 | 768 | # along with GNU Libtool; see the file COPYING. If not, a copy | ||
403 | 769 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | ||
404 | 770 | # obtained by writing to the Free Software Foundation, Inc., | ||
405 | 771 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
406 | 772 | ]) | ||
407 | 773 | |||
408 | 774 | # serial 57 LT_INIT | ||
409 | 775 | |||
410 | 776 | |||
411 | 777 | # LT_PREREQ(VERSION) | ||
412 | 778 | # ------------------ | ||
413 | 779 | # Complain and exit if this libtool version is less that VERSION. | ||
414 | 780 | m4_defun([LT_PREREQ], | ||
415 | 781 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | ||
416 | 782 | [m4_default([$3], | ||
417 | 783 | [m4_fatal([Libtool version $1 or higher is required], | ||
418 | 784 | 63)])], | ||
419 | 785 | [$2])]) | ||
420 | 786 | |||
421 | 787 | |||
422 | 788 | # _LT_CHECK_BUILDDIR | ||
423 | 789 | # ------------------ | ||
424 | 790 | # Complain if the absolute build directory name contains unusual characters | ||
425 | 791 | m4_defun([_LT_CHECK_BUILDDIR], | ||
426 | 792 | [case `pwd` in | ||
427 | 793 | *\ * | *\ *) | ||
428 | 794 | AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | ||
429 | 795 | esac | ||
430 | 796 | ]) | ||
431 | 797 | |||
432 | 798 | |||
433 | 799 | # LT_INIT([OPTIONS]) | ||
434 | 800 | # ------------------ | ||
435 | 801 | AC_DEFUN([LT_INIT], | ||
436 | 802 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | ||
437 | 803 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | ||
438 | 804 | AC_BEFORE([$0], [LT_LANG])dnl | ||
439 | 805 | AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
440 | 806 | AC_BEFORE([$0], [LTDL_INIT])dnl | ||
441 | 807 | m4_require([_LT_CHECK_BUILDDIR])dnl | ||
442 | 808 | |||
443 | 809 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: | ||
444 | 810 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | ||
445 | 811 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | ||
446 | 812 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | ||
447 | 813 | dnl unless we require an AC_DEFUNed macro: | ||
448 | 814 | AC_REQUIRE([LTOPTIONS_VERSION])dnl | ||
449 | 815 | AC_REQUIRE([LTSUGAR_VERSION])dnl | ||
450 | 816 | AC_REQUIRE([LTVERSION_VERSION])dnl | ||
451 | 817 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | ||
452 | 818 | m4_require([_LT_PROG_LTMAIN])dnl | ||
453 | 819 | |||
454 | 820 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | ||
455 | 821 | |||
456 | 822 | dnl Parse OPTIONS | ||
457 | 823 | _LT_SET_OPTIONS([$0], [$1]) | ||
458 | 824 | |||
459 | 825 | # This can be used to rebuild libtool when needed | ||
460 | 826 | LIBTOOL_DEPS="$ltmain" | ||
461 | 827 | |||
462 | 828 | # Always use our own libtool. | ||
463 | 829 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
464 | 830 | AC_SUBST(LIBTOOL)dnl | ||
465 | 831 | |||
466 | 832 | _LT_SETUP | ||
467 | 833 | |||
468 | 834 | # Only expand once: | ||
469 | 835 | m4_define([LT_INIT]) | ||
470 | 836 | ])# LT_INIT | ||
471 | 837 | |||
472 | 838 | # Old names: | ||
473 | 839 | AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | ||
474 | 840 | AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | ||
475 | 841 | dnl aclocal-1.4 backwards compatibility: | ||
476 | 842 | dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | ||
477 | 843 | dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | ||
478 | 844 | |||
479 | 845 | |||
480 | 846 | # _LT_CC_BASENAME(CC) | ||
481 | 847 | # ------------------- | ||
482 | 848 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
483 | 849 | m4_defun([_LT_CC_BASENAME], | ||
484 | 850 | [for cc_temp in $1""; do | ||
485 | 851 | case $cc_temp in | ||
486 | 852 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
487 | 853 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
488 | 854 | \-*) ;; | ||
489 | 855 | *) break;; | ||
490 | 856 | esac | ||
491 | 857 | done | ||
492 | 858 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | ||
493 | 859 | ]) | ||
494 | 860 | |||
495 | 861 | |||
496 | 862 | # _LT_FILEUTILS_DEFAULTS | ||
497 | 863 | # ---------------------- | ||
498 | 864 | # It is okay to use these file commands and assume they have been set | ||
499 | 865 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | ||
500 | 866 | m4_defun([_LT_FILEUTILS_DEFAULTS], | ||
501 | 867 | [: ${CP="cp -f"} | ||
502 | 868 | : ${MV="mv -f"} | ||
503 | 869 | : ${RM="rm -f"} | ||
504 | 870 | ])# _LT_FILEUTILS_DEFAULTS | ||
505 | 871 | |||
506 | 872 | |||
507 | 873 | # _LT_SETUP | ||
508 | 874 | # --------- | ||
509 | 875 | m4_defun([_LT_SETUP], | ||
510 | 876 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
511 | 877 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
512 | 878 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | ||
513 | 879 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | ||
514 | 880 | |||
515 | 881 | _LT_DECL([], [host_alias], [0], [The host system])dnl | ||
516 | 882 | _LT_DECL([], [host], [0])dnl | ||
517 | 883 | _LT_DECL([], [host_os], [0])dnl | ||
518 | 884 | dnl | ||
519 | 885 | _LT_DECL([], [build_alias], [0], [The build system])dnl | ||
520 | 886 | _LT_DECL([], [build], [0])dnl | ||
521 | 887 | _LT_DECL([], [build_os], [0])dnl | ||
522 | 888 | dnl | ||
523 | 889 | AC_REQUIRE([AC_PROG_CC])dnl | ||
524 | 890 | AC_REQUIRE([LT_PATH_LD])dnl | ||
525 | 891 | AC_REQUIRE([LT_PATH_NM])dnl | ||
526 | 892 | dnl | ||
527 | 893 | AC_REQUIRE([AC_PROG_LN_S])dnl | ||
528 | 894 | test -z "$LN_S" && LN_S="ln -s" | ||
529 | 895 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | ||
530 | 896 | dnl | ||
531 | 897 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl | ||
532 | 898 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | ||
533 | 899 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | ||
534 | 900 | dnl | ||
535 | 901 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
536 | 902 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
537 | 903 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | ||
538 | 904 | m4_require([_LT_CMD_RELOAD])dnl | ||
539 | 905 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | ||
540 | 906 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | ||
541 | 907 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | ||
542 | 908 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
543 | 909 | m4_require([_LT_WITH_SYSROOT])dnl | ||
544 | 910 | |||
545 | 911 | _LT_CONFIG_LIBTOOL_INIT([ | ||
546 | 912 | # See if we are running on zsh, and set the options which allow our | ||
547 | 913 | # commands through without removal of \ escapes INIT. | ||
548 | 914 | if test -n "\${ZSH_VERSION+set}" ; then | ||
549 | 915 | setopt NO_GLOB_SUBST | ||
550 | 916 | fi | ||
551 | 917 | ]) | ||
552 | 918 | if test -n "${ZSH_VERSION+set}" ; then | ||
553 | 919 | setopt NO_GLOB_SUBST | ||
554 | 920 | fi | ||
555 | 921 | |||
556 | 922 | _LT_CHECK_OBJDIR | ||
557 | 923 | |||
558 | 924 | m4_require([_LT_TAG_COMPILER])dnl | ||
559 | 925 | |||
560 | 926 | case $host_os in | ||
561 | 927 | aix3*) | ||
562 | 928 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
563 | 929 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
564 | 930 | # vanish in a puff of smoke. | ||
565 | 931 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
566 | 932 | COLLECT_NAMES= | ||
567 | 933 | export COLLECT_NAMES | ||
568 | 934 | fi | ||
569 | 935 | ;; | ||
570 | 936 | esac | ||
571 | 937 | |||
572 | 938 | # Global variables: | ||
573 | 939 | ofile=libtool | ||
574 | 940 | can_build_shared=yes | ||
575 | 941 | |||
576 | 942 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
577 | 943 | # which needs '.lib'). | ||
578 | 944 | libext=a | ||
579 | 945 | |||
580 | 946 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
581 | 947 | |||
582 | 948 | old_CC="$CC" | ||
583 | 949 | old_CFLAGS="$CFLAGS" | ||
584 | 950 | |||
585 | 951 | # Set sane defaults for various variables | ||
586 | 952 | test -z "$CC" && CC=cc | ||
587 | 953 | test -z "$LTCC" && LTCC=$CC | ||
588 | 954 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
589 | 955 | test -z "$LD" && LD=ld | ||
590 | 956 | test -z "$ac_objext" && ac_objext=o | ||
591 | 957 | |||
592 | 958 | _LT_CC_BASENAME([$compiler]) | ||
593 | 959 | |||
594 | 960 | # Only perform the check for file, if the check method requires it | ||
595 | 961 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
596 | 962 | case $deplibs_check_method in | ||
597 | 963 | file_magic*) | ||
598 | 964 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
599 | 965 | _LT_PATH_MAGIC | ||
600 | 966 | fi | ||
601 | 967 | ;; | ||
602 | 968 | esac | ||
603 | 969 | |||
604 | 970 | # Use C for the default configuration in the libtool script | ||
605 | 971 | LT_SUPPORTED_TAG([CC]) | ||
606 | 972 | _LT_LANG_C_CONFIG | ||
607 | 973 | _LT_LANG_DEFAULT_CONFIG | ||
608 | 974 | _LT_CONFIG_COMMANDS | ||
609 | 975 | ])# _LT_SETUP | ||
610 | 976 | |||
611 | 977 | |||
612 | 978 | # _LT_PREPARE_SED_QUOTE_VARS | ||
613 | 979 | # -------------------------- | ||
614 | 980 | # Define a few sed substitution that help us do robust quoting. | ||
615 | 981 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | ||
616 | 982 | [# Backslashify metacharacters that are still active within | ||
617 | 983 | # double-quoted strings. | ||
618 | 984 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | ||
619 | 985 | |||
620 | 986 | # Same as above, but do not quote variable references. | ||
621 | 987 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | ||
622 | 988 | |||
623 | 989 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
624 | 990 | # double_quote_subst'ed string. | ||
625 | 991 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
626 | 992 | |||
627 | 993 | # Sed substitution to delay expansion of an escaped single quote. | ||
628 | 994 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | ||
629 | 995 | |||
630 | 996 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
631 | 997 | no_glob_subst='s/\*/\\\*/g' | ||
632 | 998 | ]) | ||
633 | 999 | |||
634 | 1000 | # _LT_PROG_LTMAIN | ||
635 | 1001 | # --------------- | ||
636 | 1002 | # Note that this code is called both from `configure', and `config.status' | ||
637 | 1003 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | ||
638 | 1004 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | ||
639 | 1005 | # so we pass a copy along to make sure it has a sensible value anyway. | ||
640 | 1006 | m4_defun([_LT_PROG_LTMAIN], | ||
641 | 1007 | [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | ||
642 | 1008 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | ||
643 | 1009 | ltmain="$ac_aux_dir/ltmain.sh" | ||
644 | 1010 | ])# _LT_PROG_LTMAIN | ||
645 | 1011 | |||
646 | 1012 | |||
647 | 1013 | |||
648 | 1014 | # So that we can recreate a full libtool script including additional | ||
649 | 1015 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | ||
650 | 1016 | # in macros and then make a single call at the end using the `libtool' | ||
651 | 1017 | # label. | ||
652 | 1018 | |||
653 | 1019 | |||
654 | 1020 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | ||
655 | 1021 | # ---------------------------------------- | ||
656 | 1022 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
657 | 1023 | m4_define([_LT_CONFIG_LIBTOOL_INIT], | ||
658 | 1024 | [m4_ifval([$1], | ||
659 | 1025 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | ||
660 | 1026 | [$1 | ||
661 | 1027 | ])])]) | ||
662 | 1028 | |||
663 | 1029 | # Initialize. | ||
664 | 1030 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | ||
665 | 1031 | |||
666 | 1032 | |||
667 | 1033 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | ||
668 | 1034 | # ------------------------------ | ||
669 | 1035 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | ||
670 | 1036 | m4_define([_LT_CONFIG_LIBTOOL], | ||
671 | 1037 | [m4_ifval([$1], | ||
672 | 1038 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | ||
673 | 1039 | [$1 | ||
674 | 1040 | ])])]) | ||
675 | 1041 | |||
676 | 1042 | # Initialize. | ||
677 | 1043 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | ||
678 | 1044 | |||
679 | 1045 | |||
680 | 1046 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | ||
681 | 1047 | # ----------------------------------------------------- | ||
682 | 1048 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], | ||
683 | 1049 | [_LT_CONFIG_LIBTOOL([$1]) | ||
684 | 1050 | _LT_CONFIG_LIBTOOL_INIT([$2]) | ||
685 | 1051 | ]) | ||
686 | 1052 | |||
687 | 1053 | |||
688 | 1054 | # _LT_FORMAT_COMMENT([COMMENT]) | ||
689 | 1055 | # ----------------------------- | ||
690 | 1056 | # Add leading comment marks to the start of each line, and a trailing | ||
691 | 1057 | # full-stop to the whole comment if one is not present already. | ||
692 | 1058 | m4_define([_LT_FORMAT_COMMENT], | ||
693 | 1059 | [m4_ifval([$1], [ | ||
694 | 1060 | m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | ||
695 | 1061 | [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | ||
696 | 1062 | )]) | ||
697 | 1063 | |||
698 | 1064 | |||
699 | 1065 | |||
700 | 1066 | |||
701 | 1067 | |||
702 | 1068 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | ||
703 | 1069 | # ------------------------------------------------------------------- | ||
704 | 1070 | # CONFIGNAME is the name given to the value in the libtool script. | ||
705 | 1071 | # VARNAME is the (base) name used in the configure script. | ||
706 | 1072 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | ||
707 | 1073 | # VARNAME. Any other value will be used directly. | ||
708 | 1074 | m4_define([_LT_DECL], | ||
709 | 1075 | [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | ||
710 | 1076 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | ||
711 | 1077 | [m4_ifval([$1], [$1], [$2])]) | ||
712 | 1078 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | ||
713 | 1079 | m4_ifval([$4], | ||
714 | 1080 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | ||
715 | 1081 | lt_dict_add_subkey([lt_decl_dict], [$2], | ||
716 | 1082 | [tagged?], [m4_ifval([$5], [yes], [no])])]) | ||
717 | 1083 | ]) | ||
718 | 1084 | |||
719 | 1085 | |||
720 | 1086 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | ||
721 | 1087 | # -------------------------------------------------------- | ||
722 | 1088 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | ||
723 | 1089 | |||
724 | 1090 | |||
725 | 1091 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | ||
726 | 1092 | # ------------------------------------------------ | ||
727 | 1093 | m4_define([lt_decl_tag_varnames], | ||
728 | 1094 | [_lt_decl_filter([tagged?], [yes], $@)]) | ||
729 | 1095 | |||
730 | 1096 | |||
731 | 1097 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | ||
732 | 1098 | # --------------------------------------------------------- | ||
733 | 1099 | m4_define([_lt_decl_filter], | ||
734 | 1100 | [m4_case([$#], | ||
735 | 1101 | [0], [m4_fatal([$0: too few arguments: $#])], | ||
736 | 1102 | [1], [m4_fatal([$0: too few arguments: $#: $1])], | ||
737 | 1103 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | ||
738 | 1104 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | ||
739 | 1105 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl | ||
740 | 1106 | ]) | ||
741 | 1107 | |||
742 | 1108 | |||
743 | 1109 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | ||
744 | 1110 | # -------------------------------------------------- | ||
745 | 1111 | m4_define([lt_decl_quote_varnames], | ||
746 | 1112 | [_lt_decl_filter([value], [1], $@)]) | ||
747 | 1113 | |||
748 | 1114 | |||
749 | 1115 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | ||
750 | 1116 | # --------------------------------------------------- | ||
751 | 1117 | m4_define([lt_decl_dquote_varnames], | ||
752 | 1118 | [_lt_decl_filter([value], [2], $@)]) | ||
753 | 1119 | |||
754 | 1120 | |||
755 | 1121 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | ||
756 | 1122 | # --------------------------------------------------- | ||
757 | 1123 | m4_define([lt_decl_varnames_tagged], | ||
758 | 1124 | [m4_assert([$# <= 2])dnl | ||
759 | 1125 | _$0(m4_quote(m4_default([$1], [[, ]])), | ||
760 | 1126 | m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | ||
761 | 1127 | m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | ||
762 | 1128 | m4_define([_lt_decl_varnames_tagged], | ||
763 | 1129 | [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | ||
764 | 1130 | |||
765 | 1131 | |||
766 | 1132 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | ||
767 | 1133 | # ------------------------------------------------ | ||
768 | 1134 | m4_define([lt_decl_all_varnames], | ||
769 | 1135 | [_$0(m4_quote(m4_default([$1], [[, ]])), | ||
770 | 1136 | m4_if([$2], [], | ||
771 | 1137 | m4_quote(lt_decl_varnames), | ||
772 | 1138 | m4_quote(m4_shift($@))))[]dnl | ||
773 | 1139 | ]) | ||
774 | 1140 | m4_define([_lt_decl_all_varnames], | ||
775 | 1141 | [lt_join($@, lt_decl_varnames_tagged([$1], | ||
776 | 1142 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | ||
777 | 1143 | ]) | ||
778 | 1144 | |||
779 | 1145 | |||
780 | 1146 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | ||
781 | 1147 | # ------------------------------------ | ||
782 | 1148 | # Quote a variable value, and forward it to `config.status' so that its | ||
783 | 1149 | # declaration there will have the same value as in `configure'. VARNAME | ||
784 | 1150 | # must have a single quote delimited value for this to work. | ||
785 | 1151 | m4_define([_LT_CONFIG_STATUS_DECLARE], | ||
786 | 1152 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | ||
787 | 1153 | |||
788 | 1154 | |||
789 | 1155 | # _LT_CONFIG_STATUS_DECLARATIONS | ||
790 | 1156 | # ------------------------------ | ||
791 | 1157 | # We delimit libtool config variables with single quotes, so when | ||
792 | 1158 | # we write them to config.status, we have to be sure to quote all | ||
793 | 1159 | # embedded single quotes properly. In configure, this macro expands | ||
794 | 1160 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | ||
795 | 1161 | # | ||
796 | 1162 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | ||
797 | 1163 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | ||
798 | 1164 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | ||
799 | 1165 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | ||
800 | 1166 | |||
801 | 1167 | |||
802 | 1168 | # _LT_LIBTOOL_TAGS | ||
803 | 1169 | # ---------------- | ||
804 | 1170 | # Output comment and list of tags supported by the script | ||
805 | 1171 | m4_defun([_LT_LIBTOOL_TAGS], | ||
806 | 1172 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | ||
807 | 1173 | available_tags="_LT_TAGS"dnl | ||
808 | 1174 | ]) | ||
809 | 1175 | |||
810 | 1176 | |||
811 | 1177 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | ||
812 | 1178 | # ----------------------------------- | ||
813 | 1179 | # Extract the dictionary values for VARNAME (optionally with TAG) and | ||
814 | 1180 | # expand to a commented shell variable setting: | ||
815 | 1181 | # | ||
816 | 1182 | # # Some comment about what VAR is for. | ||
817 | 1183 | # visible_name=$lt_internal_name | ||
818 | 1184 | m4_define([_LT_LIBTOOL_DECLARE], | ||
819 | 1185 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | ||
820 | 1186 | [description])))[]dnl | ||
821 | 1187 | m4_pushdef([_libtool_name], | ||
822 | 1188 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | ||
823 | 1189 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | ||
824 | 1190 | [0], [_libtool_name=[$]$1], | ||
825 | 1191 | [1], [_libtool_name=$lt_[]$1], | ||
826 | 1192 | [2], [_libtool_name=$lt_[]$1], | ||
827 | 1193 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | ||
828 | 1194 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | ||
829 | 1195 | ]) | ||
830 | 1196 | |||
831 | 1197 | |||
832 | 1198 | # _LT_LIBTOOL_CONFIG_VARS | ||
833 | 1199 | # ----------------------- | ||
834 | 1200 | # Produce commented declarations of non-tagged libtool config variables | ||
835 | 1201 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | ||
836 | 1202 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | ||
837 | 1203 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | ||
838 | 1204 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], | ||
839 | 1205 | [m4_foreach([_lt_var], | ||
840 | 1206 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | ||
841 | 1207 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | ||
842 | 1208 | |||
843 | 1209 | |||
844 | 1210 | # _LT_LIBTOOL_TAG_VARS(TAG) | ||
845 | 1211 | # ------------------------- | ||
846 | 1212 | m4_define([_LT_LIBTOOL_TAG_VARS], | ||
847 | 1213 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | ||
848 | 1214 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | ||
849 | 1215 | |||
850 | 1216 | |||
851 | 1217 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | ||
852 | 1218 | # ------------------------------ | ||
853 | 1219 | m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | ||
854 | 1220 | |||
855 | 1221 | |||
856 | 1222 | # _LT_CONFIG_COMMANDS | ||
857 | 1223 | # ------------------- | ||
858 | 1224 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | ||
859 | 1225 | # variables for single and double quote escaping we saved from calls | ||
860 | 1226 | # to _LT_DECL, we can put quote escaped variables declarations | ||
861 | 1227 | # into `config.status', and then the shell code to quote escape them in | ||
862 | 1228 | # for loops in `config.status'. Finally, any additional code accumulated | ||
863 | 1229 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | ||
864 | 1230 | m4_defun([_LT_CONFIG_COMMANDS], | ||
865 | 1231 | [AC_PROVIDE_IFELSE([LT_OUTPUT], | ||
866 | 1232 | dnl If the libtool generation code has been placed in $CONFIG_LT, | ||
867 | 1233 | dnl instead of duplicating it all over again into config.status, | ||
868 | 1234 | dnl then we will have config.status run $CONFIG_LT later, so it | ||
869 | 1235 | dnl needs to know what name is stored there: | ||
870 | 1236 | [AC_CONFIG_COMMANDS([libtool], | ||
871 | 1237 | [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | ||
872 | 1238 | dnl If the libtool generation code is destined for config.status, | ||
873 | 1239 | dnl expand the accumulated commands and init code now: | ||
874 | 1240 | [AC_CONFIG_COMMANDS([libtool], | ||
875 | 1241 | [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | ||
876 | 1242 | ])#_LT_CONFIG_COMMANDS | ||
877 | 1243 | |||
878 | 1244 | |||
879 | 1245 | # Initialize. | ||
880 | 1246 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | ||
881 | 1247 | [ | ||
882 | 1248 | |||
883 | 1249 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
884 | 1250 | # if CDPATH is set. | ||
885 | 1251 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
886 | 1252 | |||
887 | 1253 | sed_quote_subst='$sed_quote_subst' | ||
888 | 1254 | double_quote_subst='$double_quote_subst' | ||
889 | 1255 | delay_variable_subst='$delay_variable_subst' | ||
890 | 1256 | _LT_CONFIG_STATUS_DECLARATIONS | ||
891 | 1257 | LTCC='$LTCC' | ||
892 | 1258 | LTCFLAGS='$LTCFLAGS' | ||
893 | 1259 | compiler='$compiler_DEFAULT' | ||
894 | 1260 | |||
895 | 1261 | # A function that is used when there is no print builtin or printf. | ||
896 | 1262 | func_fallback_echo () | ||
897 | 1263 | { | ||
898 | 1264 | eval 'cat <<_LTECHO_EOF | ||
899 | 1265 | \$[]1 | ||
900 | 1266 | _LTECHO_EOF' | ||
901 | 1267 | } | ||
902 | 1268 | |||
903 | 1269 | # Quote evaled strings. | ||
904 | 1270 | for var in lt_decl_all_varnames([[ \ | ||
905 | 1271 | ]], lt_decl_quote_varnames); do | ||
906 | 1272 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
907 | 1273 | *[[\\\\\\\`\\"\\\$]]*) | ||
908 | 1274 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | ||
909 | 1275 | ;; | ||
910 | 1276 | *) | ||
911 | 1277 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
912 | 1278 | ;; | ||
913 | 1279 | esac | ||
914 | 1280 | done | ||
915 | 1281 | |||
916 | 1282 | # Double-quote double-evaled strings. | ||
917 | 1283 | for var in lt_decl_all_varnames([[ \ | ||
918 | 1284 | ]], lt_decl_dquote_varnames); do | ||
919 | 1285 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | ||
920 | 1286 | *[[\\\\\\\`\\"\\\$]]*) | ||
921 | 1287 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | ||
922 | 1288 | ;; | ||
923 | 1289 | *) | ||
924 | 1290 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | ||
925 | 1291 | ;; | ||
926 | 1292 | esac | ||
927 | 1293 | done | ||
928 | 1294 | |||
929 | 1295 | _LT_OUTPUT_LIBTOOL_INIT | ||
930 | 1296 | ]) | ||
931 | 1297 | |||
932 | 1298 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | ||
933 | 1299 | # ------------------------------------ | ||
934 | 1300 | # Generate a child script FILE with all initialization necessary to | ||
935 | 1301 | # reuse the environment learned by the parent script, and make the | ||
936 | 1302 | # file executable. If COMMENT is supplied, it is inserted after the | ||
937 | 1303 | # `#!' sequence but before initialization text begins. After this | ||
938 | 1304 | # macro, additional text can be appended to FILE to form the body of | ||
939 | 1305 | # the child script. The macro ends with non-zero status if the | ||
940 | 1306 | # file could not be fully written (such as if the disk is full). | ||
941 | 1307 | m4_ifdef([AS_INIT_GENERATED], | ||
942 | 1308 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | ||
943 | 1309 | [m4_defun([_LT_GENERATED_FILE_INIT], | ||
944 | 1310 | [m4_require([AS_PREPARE])]dnl | ||
945 | 1311 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | ||
946 | 1312 | [lt_write_fail=0 | ||
947 | 1313 | cat >$1 <<_ASEOF || lt_write_fail=1 | ||
948 | 1314 | #! $SHELL | ||
949 | 1315 | # Generated by $as_me. | ||
950 | 1316 | $2 | ||
951 | 1317 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
952 | 1318 | export SHELL | ||
953 | 1319 | _ASEOF | ||
954 | 1320 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | ||
955 | 1321 | AS_SHELL_SANITIZE | ||
956 | 1322 | _AS_PREPARE | ||
957 | 1323 | exec AS_MESSAGE_FD>&1 | ||
958 | 1324 | _ASEOF | ||
959 | 1325 | test $lt_write_fail = 0 && chmod +x $1[]dnl | ||
960 | 1326 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | ||
961 | 1327 | |||
962 | 1328 | # LT_OUTPUT | ||
963 | 1329 | # --------- | ||
964 | 1330 | # This macro allows early generation of the libtool script (before | ||
965 | 1331 | # AC_OUTPUT is called), incase it is used in configure for compilation | ||
966 | 1332 | # tests. | ||
967 | 1333 | AC_DEFUN([LT_OUTPUT], | ||
968 | 1334 | [: ${CONFIG_LT=./config.lt} | ||
969 | 1335 | AC_MSG_NOTICE([creating $CONFIG_LT]) | ||
970 | 1336 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | ||
971 | 1337 | [# Run this file to recreate a libtool stub with the current configuration.]) | ||
972 | 1338 | |||
973 | 1339 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
974 | 1340 | lt_cl_silent=false | ||
975 | 1341 | exec AS_MESSAGE_LOG_FD>>config.log | ||
976 | 1342 | { | ||
977 | 1343 | echo | ||
978 | 1344 | AS_BOX([Running $as_me.]) | ||
979 | 1345 | } >&AS_MESSAGE_LOG_FD | ||
980 | 1346 | |||
981 | 1347 | lt_cl_help="\ | ||
982 | 1348 | \`$as_me' creates a local libtool stub from the current configuration, | ||
983 | 1349 | for use in further configure time tests before the real libtool is | ||
984 | 1350 | generated. | ||
985 | 1351 | |||
986 | 1352 | Usage: $[0] [[OPTIONS]] | ||
987 | 1353 | |||
988 | 1354 | -h, --help print this help, then exit | ||
989 | 1355 | -V, --version print version number, then exit | ||
990 | 1356 | -q, --quiet do not print progress messages | ||
991 | 1357 | -d, --debug don't remove temporary files | ||
992 | 1358 | |||
993 | 1359 | Report bugs to <bug-libtool@gnu.org>." | ||
994 | 1360 | |||
995 | 1361 | lt_cl_version="\ | ||
996 | 1362 | m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | ||
997 | 1363 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | ||
998 | 1364 | configured by $[0], generated by m4_PACKAGE_STRING. | ||
999 | 1365 | |||
1000 | 1366 | Copyright (C) 2010 Free Software Foundation, Inc. | ||
1001 | 1367 | This config.lt script is free software; the Free Software Foundation | ||
1002 | 1368 | gives unlimited permision to copy, distribute and modify it." | ||
1003 | 1369 | |||
1004 | 1370 | while test $[#] != 0 | ||
1005 | 1371 | do | ||
1006 | 1372 | case $[1] in | ||
1007 | 1373 | --version | --v* | -V ) | ||
1008 | 1374 | echo "$lt_cl_version"; exit 0 ;; | ||
1009 | 1375 | --help | --h* | -h ) | ||
1010 | 1376 | echo "$lt_cl_help"; exit 0 ;; | ||
1011 | 1377 | --debug | --d* | -d ) | ||
1012 | 1378 | debug=: ;; | ||
1013 | 1379 | --quiet | --q* | --silent | --s* | -q ) | ||
1014 | 1380 | lt_cl_silent=: ;; | ||
1015 | 1381 | |||
1016 | 1382 | -*) AC_MSG_ERROR([unrecognized option: $[1] | ||
1017 | 1383 | Try \`$[0] --help' for more information.]) ;; | ||
1018 | 1384 | |||
1019 | 1385 | *) AC_MSG_ERROR([unrecognized argument: $[1] | ||
1020 | 1386 | Try \`$[0] --help' for more information.]) ;; | ||
1021 | 1387 | esac | ||
1022 | 1388 | shift | ||
1023 | 1389 | done | ||
1024 | 1390 | |||
1025 | 1391 | if $lt_cl_silent; then | ||
1026 | 1392 | exec AS_MESSAGE_FD>/dev/null | ||
1027 | 1393 | fi | ||
1028 | 1394 | _LTEOF | ||
1029 | 1395 | |||
1030 | 1396 | cat >>"$CONFIG_LT" <<_LTEOF | ||
1031 | 1397 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | ||
1032 | 1398 | _LTEOF | ||
1033 | 1399 | |||
1034 | 1400 | cat >>"$CONFIG_LT" <<\_LTEOF | ||
1035 | 1401 | AC_MSG_NOTICE([creating $ofile]) | ||
1036 | 1402 | _LT_OUTPUT_LIBTOOL_COMMANDS | ||
1037 | 1403 | AS_EXIT(0) | ||
1038 | 1404 | _LTEOF | ||
1039 | 1405 | chmod +x "$CONFIG_LT" | ||
1040 | 1406 | |||
1041 | 1407 | # configure is writing to config.log, but config.lt does its own redirection, | ||
1042 | 1408 | # appending to config.log, which fails on DOS, as config.log is still kept | ||
1043 | 1409 | # open by configure. Here we exec the FD to /dev/null, effectively closing | ||
1044 | 1410 | # config.log, so it can be properly (re)opened and appended to by config.lt. | ||
1045 | 1411 | lt_cl_success=: | ||
1046 | 1412 | test "$silent" = yes && | ||
1047 | 1413 | lt_config_lt_args="$lt_config_lt_args --quiet" | ||
1048 | 1414 | exec AS_MESSAGE_LOG_FD>/dev/null | ||
1049 | 1415 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | ||
1050 | 1416 | exec AS_MESSAGE_LOG_FD>>config.log | ||
1051 | 1417 | $lt_cl_success || AS_EXIT(1) | ||
1052 | 1418 | ])# LT_OUTPUT | ||
1053 | 1419 | |||
1054 | 1420 | |||
1055 | 1421 | # _LT_CONFIG(TAG) | ||
1056 | 1422 | # --------------- | ||
1057 | 1423 | # If TAG is the built-in tag, create an initial libtool script with a | ||
1058 | 1424 | # default configuration from the untagged config vars. Otherwise add code | ||
1059 | 1425 | # to config.status for appending the configuration named by TAG from the | ||
1060 | 1426 | # matching tagged config vars. | ||
1061 | 1427 | m4_defun([_LT_CONFIG], | ||
1062 | 1428 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1063 | 1429 | _LT_CONFIG_SAVE_COMMANDS([ | ||
1064 | 1430 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | ||
1065 | 1431 | m4_if(_LT_TAG, [C], [ | ||
1066 | 1432 | # See if we are running on zsh, and set the options which allow our | ||
1067 | 1433 | # commands through without removal of \ escapes. | ||
1068 | 1434 | if test -n "${ZSH_VERSION+set}" ; then | ||
1069 | 1435 | setopt NO_GLOB_SUBST | ||
1070 | 1436 | fi | ||
1071 | 1437 | |||
1072 | 1438 | cfgfile="${ofile}T" | ||
1073 | 1439 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | ||
1074 | 1440 | $RM "$cfgfile" | ||
1075 | 1441 | |||
1076 | 1442 | cat <<_LT_EOF >> "$cfgfile" | ||
1077 | 1443 | #! $SHELL | ||
1078 | 1444 | |||
1079 | 1445 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
1080 | 1446 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | ||
1081 | 1447 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
1082 | 1448 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
1083 | 1449 | # | ||
1084 | 1450 | _LT_COPYING | ||
1085 | 1451 | _LT_LIBTOOL_TAGS | ||
1086 | 1452 | |||
1087 | 1453 | # ### BEGIN LIBTOOL CONFIG | ||
1088 | 1454 | _LT_LIBTOOL_CONFIG_VARS | ||
1089 | 1455 | _LT_LIBTOOL_TAG_VARS | ||
1090 | 1456 | # ### END LIBTOOL CONFIG | ||
1091 | 1457 | |||
1092 | 1458 | _LT_EOF | ||
1093 | 1459 | |||
1094 | 1460 | case $host_os in | ||
1095 | 1461 | aix3*) | ||
1096 | 1462 | cat <<\_LT_EOF >> "$cfgfile" | ||
1097 | 1463 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
1098 | 1464 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
1099 | 1465 | # vanish in a puff of smoke. | ||
1100 | 1466 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
1101 | 1467 | COLLECT_NAMES= | ||
1102 | 1468 | export COLLECT_NAMES | ||
1103 | 1469 | fi | ||
1104 | 1470 | _LT_EOF | ||
1105 | 1471 | ;; | ||
1106 | 1472 | esac | ||
1107 | 1473 | |||
1108 | 1474 | _LT_PROG_LTMAIN | ||
1109 | 1475 | |||
1110 | 1476 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
1111 | 1477 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
1112 | 1478 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
1113 | 1479 | # is reportedly fixed, but why not run on old versions too? | ||
1114 | 1480 | sed '$q' "$ltmain" >> "$cfgfile" \ | ||
1115 | 1481 | || (rm -f "$cfgfile"; exit 1) | ||
1116 | 1482 | |||
1117 | 1483 | _LT_PROG_REPLACE_SHELLFNS | ||
1118 | 1484 | |||
1119 | 1485 | mv -f "$cfgfile" "$ofile" || | ||
1120 | 1486 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
1121 | 1487 | chmod +x "$ofile" | ||
1122 | 1488 | ], | ||
1123 | 1489 | [cat <<_LT_EOF >> "$ofile" | ||
1124 | 1490 | |||
1125 | 1491 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | ||
1126 | 1492 | dnl in a comment (ie after a #). | ||
1127 | 1493 | # ### BEGIN LIBTOOL TAG CONFIG: $1 | ||
1128 | 1494 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) | ||
1129 | 1495 | # ### END LIBTOOL TAG CONFIG: $1 | ||
1130 | 1496 | _LT_EOF | ||
1131 | 1497 | ])dnl /m4_if | ||
1132 | 1498 | ], | ||
1133 | 1499 | [m4_if([$1], [], [ | ||
1134 | 1500 | PACKAGE='$PACKAGE' | ||
1135 | 1501 | VERSION='$VERSION' | ||
1136 | 1502 | TIMESTAMP='$TIMESTAMP' | ||
1137 | 1503 | RM='$RM' | ||
1138 | 1504 | ofile='$ofile'], []) | ||
1139 | 1505 | ])dnl /_LT_CONFIG_SAVE_COMMANDS | ||
1140 | 1506 | ])# _LT_CONFIG | ||
1141 | 1507 | |||
1142 | 1508 | |||
1143 | 1509 | # LT_SUPPORTED_TAG(TAG) | ||
1144 | 1510 | # --------------------- | ||
1145 | 1511 | # Trace this macro to discover what tags are supported by the libtool | ||
1146 | 1512 | # --tag option, using: | ||
1147 | 1513 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | ||
1148 | 1514 | AC_DEFUN([LT_SUPPORTED_TAG], []) | ||
1149 | 1515 | |||
1150 | 1516 | |||
1151 | 1517 | # C support is built-in for now | ||
1152 | 1518 | m4_define([_LT_LANG_C_enabled], []) | ||
1153 | 1519 | m4_define([_LT_TAGS], []) | ||
1154 | 1520 | |||
1155 | 1521 | |||
1156 | 1522 | # LT_LANG(LANG) | ||
1157 | 1523 | # ------------- | ||
1158 | 1524 | # Enable libtool support for the given language if not already enabled. | ||
1159 | 1525 | AC_DEFUN([LT_LANG], | ||
1160 | 1526 | [AC_BEFORE([$0], [LT_OUTPUT])dnl | ||
1161 | 1527 | m4_case([$1], | ||
1162 | 1528 | [C], [_LT_LANG(C)], | ||
1163 | 1529 | [C++], [_LT_LANG(CXX)], | ||
1164 | 1530 | [Java], [_LT_LANG(GCJ)], | ||
1165 | 1531 | [Fortran 77], [_LT_LANG(F77)], | ||
1166 | 1532 | [Fortran], [_LT_LANG(FC)], | ||
1167 | 1533 | [Windows Resource], [_LT_LANG(RC)], | ||
1168 | 1534 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], | ||
1169 | 1535 | [_LT_LANG($1)], | ||
1170 | 1536 | [m4_fatal([$0: unsupported language: "$1"])])])dnl | ||
1171 | 1537 | ])# LT_LANG | ||
1172 | 1538 | |||
1173 | 1539 | |||
1174 | 1540 | # _LT_LANG(LANGNAME) | ||
1175 | 1541 | # ------------------ | ||
1176 | 1542 | m4_defun([_LT_LANG], | ||
1177 | 1543 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], | ||
1178 | 1544 | [LT_SUPPORTED_TAG([$1])dnl | ||
1179 | 1545 | m4_append([_LT_TAGS], [$1 ])dnl | ||
1180 | 1546 | m4_define([_LT_LANG_]$1[_enabled], [])dnl | ||
1181 | 1547 | _LT_LANG_$1_CONFIG($1)])dnl | ||
1182 | 1548 | ])# _LT_LANG | ||
1183 | 1549 | |||
1184 | 1550 | |||
1185 | 1551 | # _LT_LANG_DEFAULT_CONFIG | ||
1186 | 1552 | # ----------------------- | ||
1187 | 1553 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | ||
1188 | 1554 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1189 | 1555 | [LT_LANG(CXX)], | ||
1190 | 1556 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | ||
1191 | 1557 | |||
1192 | 1558 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1193 | 1559 | [LT_LANG(F77)], | ||
1194 | 1560 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | ||
1195 | 1561 | |||
1196 | 1562 | AC_PROVIDE_IFELSE([AC_PROG_FC], | ||
1197 | 1563 | [LT_LANG(FC)], | ||
1198 | 1564 | [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | ||
1199 | 1565 | |||
1200 | 1566 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | ||
1201 | 1567 | dnl pulling things in needlessly. | ||
1202 | 1568 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | ||
1203 | 1569 | [LT_LANG(GCJ)], | ||
1204 | 1570 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | ||
1205 | 1571 | [LT_LANG(GCJ)], | ||
1206 | 1572 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | ||
1207 | 1573 | [LT_LANG(GCJ)], | ||
1208 | 1574 | [m4_ifdef([AC_PROG_GCJ], | ||
1209 | 1575 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1210 | 1576 | m4_ifdef([A][M_PROG_GCJ], | ||
1211 | 1577 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | ||
1212 | 1578 | m4_ifdef([LT_PROG_GCJ], | ||
1213 | 1579 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | ||
1214 | 1580 | |||
1215 | 1581 | AC_PROVIDE_IFELSE([LT_PROG_RC], | ||
1216 | 1582 | [LT_LANG(RC)], | ||
1217 | 1583 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | ||
1218 | 1584 | ])# _LT_LANG_DEFAULT_CONFIG | ||
1219 | 1585 | |||
1220 | 1586 | # Obsolete macros: | ||
1221 | 1587 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | ||
1222 | 1588 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | ||
1223 | 1589 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | ||
1224 | 1590 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | ||
1225 | 1591 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | ||
1226 | 1592 | dnl aclocal-1.4 backwards compatibility: | ||
1227 | 1593 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | ||
1228 | 1594 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | ||
1229 | 1595 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | ||
1230 | 1596 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | ||
1231 | 1597 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | ||
1232 | 1598 | |||
1233 | 1599 | |||
1234 | 1600 | # _LT_TAG_COMPILER | ||
1235 | 1601 | # ---------------- | ||
1236 | 1602 | m4_defun([_LT_TAG_COMPILER], | ||
1237 | 1603 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1238 | 1604 | |||
1239 | 1605 | _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | ||
1240 | 1606 | _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | ||
1241 | 1607 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | ||
1242 | 1608 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | ||
1243 | 1609 | |||
1244 | 1610 | # If no C compiler was specified, use CC. | ||
1245 | 1611 | LTCC=${LTCC-"$CC"} | ||
1246 | 1612 | |||
1247 | 1613 | # If no C compiler flags were specified, use CFLAGS. | ||
1248 | 1614 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1249 | 1615 | |||
1250 | 1616 | # Allow CC to be a program name with arguments. | ||
1251 | 1617 | compiler=$CC | ||
1252 | 1618 | ])# _LT_TAG_COMPILER | ||
1253 | 1619 | |||
1254 | 1620 | |||
1255 | 1621 | # _LT_COMPILER_BOILERPLATE | ||
1256 | 1622 | # ------------------------ | ||
1257 | 1623 | # Check for compiler boilerplate output or warnings with | ||
1258 | 1624 | # the simple compiler test code. | ||
1259 | 1625 | m4_defun([_LT_COMPILER_BOILERPLATE], | ||
1260 | 1626 | [m4_require([_LT_DECL_SED])dnl | ||
1261 | 1627 | ac_outfile=conftest.$ac_objext | ||
1262 | 1628 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
1263 | 1629 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1264 | 1630 | _lt_compiler_boilerplate=`cat conftest.err` | ||
1265 | 1631 | $RM conftest* | ||
1266 | 1632 | ])# _LT_COMPILER_BOILERPLATE | ||
1267 | 1633 | |||
1268 | 1634 | |||
1269 | 1635 | # _LT_LINKER_BOILERPLATE | ||
1270 | 1636 | # ---------------------- | ||
1271 | 1637 | # Check for linker boilerplate output or warnings with | ||
1272 | 1638 | # the simple link test code. | ||
1273 | 1639 | m4_defun([_LT_LINKER_BOILERPLATE], | ||
1274 | 1640 | [m4_require([_LT_DECL_SED])dnl | ||
1275 | 1641 | ac_outfile=conftest.$ac_objext | ||
1276 | 1642 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | ||
1277 | 1643 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1278 | 1644 | _lt_linker_boilerplate=`cat conftest.err` | ||
1279 | 1645 | $RM -r conftest* | ||
1280 | 1646 | ])# _LT_LINKER_BOILERPLATE | ||
1281 | 1647 | |||
1282 | 1648 | # _LT_REQUIRED_DARWIN_CHECKS | ||
1283 | 1649 | # ------------------------- | ||
1284 | 1650 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | ||
1285 | 1651 | case $host_os in | ||
1286 | 1652 | rhapsody* | darwin*) | ||
1287 | 1653 | AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | ||
1288 | 1654 | AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | ||
1289 | 1655 | AC_CHECK_TOOL([LIPO], [lipo], [:]) | ||
1290 | 1656 | AC_CHECK_TOOL([OTOOL], [otool], [:]) | ||
1291 | 1657 | AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | ||
1292 | 1658 | _LT_DECL([], [DSYMUTIL], [1], | ||
1293 | 1659 | [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | ||
1294 | 1660 | _LT_DECL([], [NMEDIT], [1], | ||
1295 | 1661 | [Tool to change global to local symbols on Mac OS X]) | ||
1296 | 1662 | _LT_DECL([], [LIPO], [1], | ||
1297 | 1663 | [Tool to manipulate fat objects and archives on Mac OS X]) | ||
1298 | 1664 | _LT_DECL([], [OTOOL], [1], | ||
1299 | 1665 | [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | ||
1300 | 1666 | _LT_DECL([], [OTOOL64], [1], | ||
1301 | 1667 | [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | ||
1302 | 1668 | |||
1303 | 1669 | AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | ||
1304 | 1670 | [lt_cv_apple_cc_single_mod=no | ||
1305 | 1671 | if test -z "${LT_MULTI_MODULE}"; then | ||
1306 | 1672 | # By default we will add the -single_module flag. You can override | ||
1307 | 1673 | # by either setting the environment variable LT_MULTI_MODULE | ||
1308 | 1674 | # non-empty at configure time, or by adding -multi_module to the | ||
1309 | 1675 | # link flags. | ||
1310 | 1676 | rm -rf libconftest.dylib* | ||
1311 | 1677 | echo "int foo(void){return 1;}" > conftest.c | ||
1312 | 1678 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1313 | 1679 | -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | ||
1314 | 1680 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | ||
1315 | 1681 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | ||
1316 | 1682 | _lt_result=$? | ||
1317 | 1683 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | ||
1318 | 1684 | lt_cv_apple_cc_single_mod=yes | ||
1319 | 1685 | else | ||
1320 | 1686 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1321 | 1687 | fi | ||
1322 | 1688 | rm -rf libconftest.dylib* | ||
1323 | 1689 | rm -f conftest.* | ||
1324 | 1690 | fi]) | ||
1325 | 1691 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | ||
1326 | 1692 | [lt_cv_ld_exported_symbols_list], | ||
1327 | 1693 | [lt_cv_ld_exported_symbols_list=no | ||
1328 | 1694 | save_LDFLAGS=$LDFLAGS | ||
1329 | 1695 | echo "_main" > conftest.sym | ||
1330 | 1696 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | ||
1331 | 1697 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
1332 | 1698 | [lt_cv_ld_exported_symbols_list=yes], | ||
1333 | 1699 | [lt_cv_ld_exported_symbols_list=no]) | ||
1334 | 1700 | LDFLAGS="$save_LDFLAGS" | ||
1335 | 1701 | ]) | ||
1336 | 1702 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | ||
1337 | 1703 | [lt_cv_ld_force_load=no | ||
1338 | 1704 | cat > conftest.c << _LT_EOF | ||
1339 | 1705 | int forced_loaded() { return 2;} | ||
1340 | 1706 | _LT_EOF | ||
1341 | 1707 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | ||
1342 | 1708 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | ||
1343 | 1709 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | ||
1344 | 1710 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | ||
1345 | 1711 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1346 | 1712 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | ||
1347 | 1713 | cat > conftest.c << _LT_EOF | ||
1348 | 1714 | int main() { return 0;} | ||
1349 | 1715 | _LT_EOF | ||
1350 | 1716 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | ||
1351 | 1717 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | ||
1352 | 1718 | _lt_result=$? | ||
1353 | 1719 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | ||
1354 | 1720 | lt_cv_ld_force_load=yes | ||
1355 | 1721 | else | ||
1356 | 1722 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1357 | 1723 | fi | ||
1358 | 1724 | rm -f conftest.err libconftest.a conftest conftest.c | ||
1359 | 1725 | rm -rf conftest.dSYM | ||
1360 | 1726 | ]) | ||
1361 | 1727 | case $host_os in | ||
1362 | 1728 | rhapsody* | darwin1.[[012]]) | ||
1363 | 1729 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | ||
1364 | 1730 | darwin1.*) | ||
1365 | 1731 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1366 | 1732 | darwin*) # darwin 5.x on | ||
1367 | 1733 | # if running on 10.5 or later, the deployment target defaults | ||
1368 | 1734 | # to the OS version, if on x86, and 10.4, the deployment | ||
1369 | 1735 | # target defaults to 10.4. Don't you love it? | ||
1370 | 1736 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | ||
1371 | 1737 | 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | ||
1372 | 1738 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1373 | 1739 | 10.[[012]]*) | ||
1374 | 1740 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | ||
1375 | 1741 | 10.*) | ||
1376 | 1742 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | ||
1377 | 1743 | esac | ||
1378 | 1744 | ;; | ||
1379 | 1745 | esac | ||
1380 | 1746 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | ||
1381 | 1747 | _lt_dar_single_mod='$single_module' | ||
1382 | 1748 | fi | ||
1383 | 1749 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | ||
1384 | 1750 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | ||
1385 | 1751 | else | ||
1386 | 1752 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
1387 | 1753 | fi | ||
1388 | 1754 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | ||
1389 | 1755 | _lt_dsymutil='~$DSYMUTIL $lib || :' | ||
1390 | 1756 | else | ||
1391 | 1757 | _lt_dsymutil= | ||
1392 | 1758 | fi | ||
1393 | 1759 | ;; | ||
1394 | 1760 | esac | ||
1395 | 1761 | ]) | ||
1396 | 1762 | |||
1397 | 1763 | |||
1398 | 1764 | # _LT_DARWIN_LINKER_FEATURES | ||
1399 | 1765 | # -------------------------- | ||
1400 | 1766 | # Checks for linker and compiler features on darwin | ||
1401 | 1767 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | ||
1402 | 1768 | [ | ||
1403 | 1769 | m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | ||
1404 | 1770 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | ||
1405 | 1771 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
1406 | 1772 | _LT_TAGVAR(hardcode_automatic, $1)=yes | ||
1407 | 1773 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
1408 | 1774 | if test "$lt_cv_ld_force_load" = "yes"; then | ||
1409 | 1775 | _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\"`' | ||
1410 | 1776 | else | ||
1411 | 1777 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | ||
1412 | 1778 | fi | ||
1413 | 1779 | _LT_TAGVAR(link_all_deplibs, $1)=yes | ||
1414 | 1780 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | ||
1415 | 1781 | case $cc_basename in | ||
1416 | 1782 | ifort*) _lt_dar_can_shared=yes ;; | ||
1417 | 1783 | *) _lt_dar_can_shared=$GCC ;; | ||
1418 | 1784 | esac | ||
1419 | 1785 | if test "$_lt_dar_can_shared" = "yes"; then | ||
1420 | 1786 | output_verbose_link_cmd=func_echo_all | ||
1421 | 1787 | _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}" | ||
1422 | 1788 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | ||
1423 | 1789 | _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}" | ||
1424 | 1790 | _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}" | ||
1425 | 1791 | m4_if([$1], [CXX], | ||
1426 | 1792 | [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | ||
1427 | 1793 | _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}" | ||
1428 | 1794 | _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}" | ||
1429 | 1795 | fi | ||
1430 | 1796 | ],[]) | ||
1431 | 1797 | else | ||
1432 | 1798 | _LT_TAGVAR(ld_shlibs, $1)=no | ||
1433 | 1799 | fi | ||
1434 | 1800 | ]) | ||
1435 | 1801 | |||
1436 | 1802 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | ||
1437 | 1803 | # ---------------------------------- | ||
1438 | 1804 | # Links a minimal program and checks the executable | ||
1439 | 1805 | # for the system default hardcoded library path. In most cases, | ||
1440 | 1806 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
1441 | 1807 | # the location of the communication and MPI libs are included too. | ||
1442 | 1808 | # If we don't find anything, use the default library path according | ||
1443 | 1809 | # to the aix ld manual. | ||
1444 | 1810 | # Store the results from the different compilers for each TAGNAME. | ||
1445 | 1811 | # Allow to override them for all tags through lt_cv_aix_libpath. | ||
1446 | 1812 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | ||
1447 | 1813 | [m4_require([_LT_DECL_SED])dnl | ||
1448 | 1814 | if test "${lt_cv_aix_libpath+set}" = set; then | ||
1449 | 1815 | aix_libpath=$lt_cv_aix_libpath | ||
1450 | 1816 | else | ||
1451 | 1817 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | ||
1452 | 1818 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | ||
1453 | 1819 | lt_aix_libpath_sed='[ | ||
1454 | 1820 | /Import File Strings/,/^$/ { | ||
1455 | 1821 | /^0/ { | ||
1456 | 1822 | s/^0 *\([^ ]*\) *$/\1/ | ||
1457 | 1823 | p | ||
1458 | 1824 | } | ||
1459 | 1825 | }]' | ||
1460 | 1826 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1461 | 1827 | # Check for a 64-bit object if we didn't find anything. | ||
1462 | 1828 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1463 | 1829 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | ||
1464 | 1830 | fi],[]) | ||
1465 | 1831 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | ||
1466 | 1832 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | ||
1467 | 1833 | fi | ||
1468 | 1834 | ]) | ||
1469 | 1835 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | ||
1470 | 1836 | fi | ||
1471 | 1837 | ])# _LT_SYS_MODULE_PATH_AIX | ||
1472 | 1838 | |||
1473 | 1839 | |||
1474 | 1840 | # _LT_SHELL_INIT(ARG) | ||
1475 | 1841 | # ------------------- | ||
1476 | 1842 | m4_define([_LT_SHELL_INIT], | ||
1477 | 1843 | [m4_divert_text([M4SH-INIT], [$1 | ||
1478 | 1844 | ])])# _LT_SHELL_INIT | ||
1479 | 1845 | |||
1480 | 1846 | |||
1481 | 1847 | |||
1482 | 1848 | # _LT_PROG_ECHO_BACKSLASH | ||
1483 | 1849 | # ----------------------- | ||
1484 | 1850 | # Find how we can fake an echo command that does not interpret backslash. | ||
1485 | 1851 | # In particular, with Autoconf 2.60 or later we add some code to the start | ||
1486 | 1852 | # of the generated configure script which will find a shell with a builtin | ||
1487 | 1853 | # printf (which we can use as an echo command). | ||
1488 | 1854 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | ||
1489 | 1855 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1490 | 1856 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1491 | 1857 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1492 | 1858 | |||
1493 | 1859 | AC_MSG_CHECKING([how to print strings]) | ||
1494 | 1860 | # Test print first, because it will be a builtin if present. | ||
1495 | 1861 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | ||
1496 | 1862 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1497 | 1863 | ECHO='print -r --' | ||
1498 | 1864 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | ||
1499 | 1865 | ECHO='printf %s\n' | ||
1500 | 1866 | else | ||
1501 | 1867 | # Use this function as a fallback that always works. | ||
1502 | 1868 | func_fallback_echo () | ||
1503 | 1869 | { | ||
1504 | 1870 | eval 'cat <<_LTECHO_EOF | ||
1505 | 1871 | $[]1 | ||
1506 | 1872 | _LTECHO_EOF' | ||
1507 | 1873 | } | ||
1508 | 1874 | ECHO='func_fallback_echo' | ||
1509 | 1875 | fi | ||
1510 | 1876 | |||
1511 | 1877 | # func_echo_all arg... | ||
1512 | 1878 | # Invoke $ECHO with all args, space-separated. | ||
1513 | 1879 | func_echo_all () | ||
1514 | 1880 | { | ||
1515 | 1881 | $ECHO "$*" | ||
1516 | 1882 | } | ||
1517 | 1883 | |||
1518 | 1884 | case "$ECHO" in | ||
1519 | 1885 | printf*) AC_MSG_RESULT([printf]) ;; | ||
1520 | 1886 | print*) AC_MSG_RESULT([print -r]) ;; | ||
1521 | 1887 | *) AC_MSG_RESULT([cat]) ;; | ||
1522 | 1888 | esac | ||
1523 | 1889 | |||
1524 | 1890 | m4_ifdef([_AS_DETECT_SUGGESTED], | ||
1525 | 1891 | [_AS_DETECT_SUGGESTED([ | ||
1526 | 1892 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | ||
1527 | 1893 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | ||
1528 | 1894 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1529 | 1895 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | ||
1530 | 1896 | PATH=/empty FPATH=/empty; export PATH FPATH | ||
1531 | 1897 | test "X`printf %s $ECHO`" = "X$ECHO" \ | ||
1532 | 1898 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | ||
1533 | 1899 | |||
1534 | 1900 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | ||
1535 | 1901 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | ||
1536 | 1902 | ])# _LT_PROG_ECHO_BACKSLASH | ||
1537 | 1903 | |||
1538 | 1904 | |||
1539 | 1905 | # _LT_WITH_SYSROOT | ||
1540 | 1906 | # ---------------- | ||
1541 | 1907 | AC_DEFUN([_LT_WITH_SYSROOT], | ||
1542 | 1908 | [AC_MSG_CHECKING([for sysroot]) | ||
1543 | 1909 | AC_ARG_WITH([sysroot], | ||
1544 | 1910 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | ||
1545 | 1911 | (or the compiler's sysroot if not specified).], | ||
1546 | 1912 | [], [with_sysroot=no]) | ||
1547 | 1913 | |||
1548 | 1914 | dnl lt_sysroot will always be passed unquoted. We quote it here | ||
1549 | 1915 | dnl in case the user passed a directory name. | ||
1550 | 1916 | lt_sysroot= | ||
1551 | 1917 | case ${with_sysroot} in #( | ||
1552 | 1918 | yes) | ||
1553 | 1919 | if test "$GCC" = yes; then | ||
1554 | 1920 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | ||
1555 | 1921 | fi | ||
1556 | 1922 | ;; #( | ||
1557 | 1923 | /*) | ||
1558 | 1924 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | ||
1559 | 1925 | ;; #( | ||
1560 | 1926 | no|'') | ||
1561 | 1927 | ;; #( | ||
1562 | 1928 | *) | ||
1563 | 1929 | AC_MSG_RESULT([${with_sysroot}]) | ||
1564 | 1930 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | ||
1565 | 1931 | ;; | ||
1566 | 1932 | esac | ||
1567 | 1933 | |||
1568 | 1934 | AC_MSG_RESULT([${lt_sysroot:-no}]) | ||
1569 | 1935 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | ||
1570 | 1936 | [dependent libraries, and in which our libraries should be installed.])]) | ||
1571 | 1937 | |||
1572 | 1938 | # _LT_ENABLE_LOCK | ||
1573 | 1939 | # --------------- | ||
1574 | 1940 | m4_defun([_LT_ENABLE_LOCK], | ||
1575 | 1941 | [AC_ARG_ENABLE([libtool-lock], | ||
1576 | 1942 | [AS_HELP_STRING([--disable-libtool-lock], | ||
1577 | 1943 | [avoid locking (might break parallel builds)])]) | ||
1578 | 1944 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1579 | 1945 | |||
1580 | 1946 | # Some flags need to be propagated to the compiler or linker for good | ||
1581 | 1947 | # libtool support. | ||
1582 | 1948 | case $host in | ||
1583 | 1949 | ia64-*-hpux*) | ||
1584 | 1950 | # Find out which ABI we are using. | ||
1585 | 1951 | echo 'int i;' > conftest.$ac_ext | ||
1586 | 1952 | if AC_TRY_EVAL(ac_compile); then | ||
1587 | 1953 | case `/usr/bin/file conftest.$ac_objext` in | ||
1588 | 1954 | *ELF-32*) | ||
1589 | 1955 | HPUX_IA64_MODE="32" | ||
1590 | 1956 | ;; | ||
1591 | 1957 | *ELF-64*) | ||
1592 | 1958 | HPUX_IA64_MODE="64" | ||
1593 | 1959 | ;; | ||
1594 | 1960 | esac | ||
1595 | 1961 | fi | ||
1596 | 1962 | rm -rf conftest* | ||
1597 | 1963 | ;; | ||
1598 | 1964 | *-*-irix6*) | ||
1599 | 1965 | # Find out which ABI we are using. | ||
1600 | 1966 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | ||
1601 | 1967 | if AC_TRY_EVAL(ac_compile); then | ||
1602 | 1968 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
1603 | 1969 | case `/usr/bin/file conftest.$ac_objext` in | ||
1604 | 1970 | *32-bit*) | ||
1605 | 1971 | LD="${LD-ld} -melf32bsmip" | ||
1606 | 1972 | ;; | ||
1607 | 1973 | *N32*) | ||
1608 | 1974 | LD="${LD-ld} -melf32bmipn32" | ||
1609 | 1975 | ;; | ||
1610 | 1976 | *64-bit*) | ||
1611 | 1977 | LD="${LD-ld} -melf64bmip" | ||
1612 | 1978 | ;; | ||
1613 | 1979 | esac | ||
1614 | 1980 | else | ||
1615 | 1981 | case `/usr/bin/file conftest.$ac_objext` in | ||
1616 | 1982 | *32-bit*) | ||
1617 | 1983 | LD="${LD-ld} -32" | ||
1618 | 1984 | ;; | ||
1619 | 1985 | *N32*) | ||
1620 | 1986 | LD="${LD-ld} -n32" | ||
1621 | 1987 | ;; | ||
1622 | 1988 | *64-bit*) | ||
1623 | 1989 | LD="${LD-ld} -64" | ||
1624 | 1990 | ;; | ||
1625 | 1991 | esac | ||
1626 | 1992 | fi | ||
1627 | 1993 | fi | ||
1628 | 1994 | rm -rf conftest* | ||
1629 | 1995 | ;; | ||
1630 | 1996 | |||
1631 | 1997 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | ||
1632 | 1998 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | ||
1633 | 1999 | # Find out which ABI we are using. | ||
1634 | 2000 | echo 'int i;' > conftest.$ac_ext | ||
1635 | 2001 | if AC_TRY_EVAL(ac_compile); then | ||
1636 | 2002 | case `/usr/bin/file conftest.o` in | ||
1637 | 2003 | *32-bit*) | ||
1638 | 2004 | case $host in | ||
1639 | 2005 | x86_64-*kfreebsd*-gnu) | ||
1640 | 2006 | LD="${LD-ld} -m elf_i386_fbsd" | ||
1641 | 2007 | ;; | ||
1642 | 2008 | x86_64-*linux*) | ||
1643 | 2009 | LD="${LD-ld} -m elf_i386" | ||
1644 | 2010 | ;; | ||
1645 | 2011 | ppc64-*linux*|powerpc64-*linux*) | ||
1646 | 2012 | LD="${LD-ld} -m elf32ppclinux" | ||
1647 | 2013 | ;; | ||
1648 | 2014 | s390x-*linux*) | ||
1649 | 2015 | LD="${LD-ld} -m elf_s390" | ||
1650 | 2016 | ;; | ||
1651 | 2017 | sparc64-*linux*) | ||
1652 | 2018 | LD="${LD-ld} -m elf32_sparc" | ||
1653 | 2019 | ;; | ||
1654 | 2020 | esac | ||
1655 | 2021 | ;; | ||
1656 | 2022 | *64-bit*) | ||
1657 | 2023 | case $host in | ||
1658 | 2024 | x86_64-*kfreebsd*-gnu) | ||
1659 | 2025 | LD="${LD-ld} -m elf_x86_64_fbsd" | ||
1660 | 2026 | ;; | ||
1661 | 2027 | x86_64-*linux*) | ||
1662 | 2028 | LD="${LD-ld} -m elf_x86_64" | ||
1663 | 2029 | ;; | ||
1664 | 2030 | ppc*-*linux*|powerpc*-*linux*) | ||
1665 | 2031 | LD="${LD-ld} -m elf64ppc" | ||
1666 | 2032 | ;; | ||
1667 | 2033 | s390*-*linux*|s390*-*tpf*) | ||
1668 | 2034 | LD="${LD-ld} -m elf64_s390" | ||
1669 | 2035 | ;; | ||
1670 | 2036 | sparc*-*linux*) | ||
1671 | 2037 | LD="${LD-ld} -m elf64_sparc" | ||
1672 | 2038 | ;; | ||
1673 | 2039 | esac | ||
1674 | 2040 | ;; | ||
1675 | 2041 | esac | ||
1676 | 2042 | fi | ||
1677 | 2043 | rm -rf conftest* | ||
1678 | 2044 | ;; | ||
1679 | 2045 | |||
1680 | 2046 | *-*-sco3.2v5*) | ||
1681 | 2047 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
1682 | 2048 | SAVE_CFLAGS="$CFLAGS" | ||
1683 | 2049 | CFLAGS="$CFLAGS -belf" | ||
1684 | 2050 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | ||
1685 | 2051 | [AC_LANG_PUSH(C) | ||
1686 | 2052 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | ||
1687 | 2053 | AC_LANG_POP]) | ||
1688 | 2054 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
1689 | 2055 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
1690 | 2056 | CFLAGS="$SAVE_CFLAGS" | ||
1691 | 2057 | fi | ||
1692 | 2058 | ;; | ||
1693 | 2059 | sparc*-*solaris*) | ||
1694 | 2060 | # Find out which ABI we are using. | ||
1695 | 2061 | echo 'int i;' > conftest.$ac_ext | ||
1696 | 2062 | if AC_TRY_EVAL(ac_compile); then | ||
1697 | 2063 | case `/usr/bin/file conftest.o` in | ||
1698 | 2064 | *64-bit*) | ||
1699 | 2065 | case $lt_cv_prog_gnu_ld in | ||
1700 | 2066 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
1701 | 2067 | *) | ||
1702 | 2068 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | ||
1703 | 2069 | LD="${LD-ld} -64" | ||
1704 | 2070 | fi | ||
1705 | 2071 | ;; | ||
1706 | 2072 | esac | ||
1707 | 2073 | ;; | ||
1708 | 2074 | esac | ||
1709 | 2075 | fi | ||
1710 | 2076 | rm -rf conftest* | ||
1711 | 2077 | ;; | ||
1712 | 2078 | esac | ||
1713 | 2079 | |||
1714 | 2080 | need_locks="$enable_libtool_lock" | ||
1715 | 2081 | ])# _LT_ENABLE_LOCK | ||
1716 | 2082 | |||
1717 | 2083 | |||
1718 | 2084 | # _LT_PROG_AR | ||
1719 | 2085 | # ----------- | ||
1720 | 2086 | m4_defun([_LT_PROG_AR], | ||
1721 | 2087 | [AC_CHECK_TOOLS(AR, [ar], false) | ||
1722 | 2088 | : ${AR=ar} | ||
1723 | 2089 | : ${AR_FLAGS=cru} | ||
1724 | 2090 | _LT_DECL([], [AR], [1], [The archiver]) | ||
1725 | 2091 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | ||
1726 | 2092 | |||
1727 | 2093 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | ||
1728 | 2094 | [lt_cv_ar_at_file=no | ||
1729 | 2095 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | ||
1730 | 2096 | [echo conftest.$ac_objext > conftest.lst | ||
1731 | 2097 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | ||
1732 | 2098 | AC_TRY_EVAL([lt_ar_try]) | ||
1733 | 2099 | if test "$ac_status" -eq 0; then | ||
1734 | 2100 | # Ensure the archiver fails upon bogus file names. | ||
1735 | 2101 | rm -f conftest.$ac_objext libconftest.a | ||
1736 | 2102 | AC_TRY_EVAL([lt_ar_try]) | ||
1737 | 2103 | if test "$ac_status" -ne 0; then | ||
1738 | 2104 | lt_cv_ar_at_file=@ | ||
1739 | 2105 | fi | ||
1740 | 2106 | fi | ||
1741 | 2107 | rm -f conftest.* libconftest.a | ||
1742 | 2108 | ]) | ||
1743 | 2109 | ]) | ||
1744 | 2110 | |||
1745 | 2111 | if test "x$lt_cv_ar_at_file" = xno; then | ||
1746 | 2112 | archiver_list_spec= | ||
1747 | 2113 | else | ||
1748 | 2114 | archiver_list_spec=$lt_cv_ar_at_file | ||
1749 | 2115 | fi | ||
1750 | 2116 | _LT_DECL([], [archiver_list_spec], [1], | ||
1751 | 2117 | [How to feed a file listing to the archiver]) | ||
1752 | 2118 | ])# _LT_PROG_AR | ||
1753 | 2119 | |||
1754 | 2120 | |||
1755 | 2121 | # _LT_CMD_OLD_ARCHIVE | ||
1756 | 2122 | # ------------------- | ||
1757 | 2123 | m4_defun([_LT_CMD_OLD_ARCHIVE], | ||
1758 | 2124 | [_LT_PROG_AR | ||
1759 | 2125 | |||
1760 | 2126 | AC_CHECK_TOOL(STRIP, strip, :) | ||
1761 | 2127 | test -z "$STRIP" && STRIP=: | ||
1762 | 2128 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | ||
1763 | 2129 | |||
1764 | 2130 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
1765 | 2131 | test -z "$RANLIB" && RANLIB=: | ||
1766 | 2132 | _LT_DECL([], [RANLIB], [1], | ||
1767 | 2133 | [Commands used to install an old-style archive]) | ||
1768 | 2134 | |||
1769 | 2135 | # Determine commands to create old-style static archives. | ||
1770 | 2136 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | ||
1771 | 2137 | old_postinstall_cmds='chmod 644 $oldlib' | ||
1772 | 2138 | old_postuninstall_cmds= | ||
1773 | 2139 | |||
1774 | 2140 | if test -n "$RANLIB"; then | ||
1775 | 2141 | case $host_os in | ||
1776 | 2142 | openbsd*) | ||
1777 | 2143 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
1778 | 2144 | ;; | ||
1779 | 2145 | *) | ||
1780 | 2146 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
1781 | 2147 | ;; | ||
1782 | 2148 | esac | ||
1783 | 2149 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
1784 | 2150 | fi | ||
1785 | 2151 | |||
1786 | 2152 | case $host_os in | ||
1787 | 2153 | darwin*) | ||
1788 | 2154 | lock_old_archive_extraction=yes ;; | ||
1789 | 2155 | *) | ||
1790 | 2156 | lock_old_archive_extraction=no ;; | ||
1791 | 2157 | esac | ||
1792 | 2158 | _LT_DECL([], [old_postinstall_cmds], [2]) | ||
1793 | 2159 | _LT_DECL([], [old_postuninstall_cmds], [2]) | ||
1794 | 2160 | _LT_TAGDECL([], [old_archive_cmds], [2], | ||
1795 | 2161 | [Commands used to build an old-style archive]) | ||
1796 | 2162 | _LT_DECL([], [lock_old_archive_extraction], [0], | ||
1797 | 2163 | [Whether to use a lock for old archive extraction]) | ||
1798 | 2164 | ])# _LT_CMD_OLD_ARCHIVE | ||
1799 | 2165 | |||
1800 | 2166 | |||
1801 | 2167 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1802 | 2168 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1803 | 2169 | # ---------------------------------------------------------------- | ||
1804 | 2170 | # Check whether the given compiler option works | ||
1805 | 2171 | AC_DEFUN([_LT_COMPILER_OPTION], | ||
1806 | 2172 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1807 | 2173 | m4_require([_LT_DECL_SED])dnl | ||
1808 | 2174 | AC_CACHE_CHECK([$1], [$2], | ||
1809 | 2175 | [$2=no | ||
1810 | 2176 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
1811 | 2177 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1812 | 2178 | lt_compiler_flag="$3" | ||
1813 | 2179 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1814 | 2180 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1815 | 2181 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1816 | 2182 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1817 | 2183 | # The option is referenced via a variable to avoid confusing sed. | ||
1818 | 2184 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1819 | 2185 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
1820 | 2186 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1821 | 2187 | -e 's:$: $lt_compiler_flag:'` | ||
1822 | 2188 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1823 | 2189 | (eval "$lt_compile" 2>conftest.err) | ||
1824 | 2190 | ac_status=$? | ||
1825 | 2191 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1826 | 2192 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1827 | 2193 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
1828 | 2194 | # The compiler can only warn and ignore the option if not recognized | ||
1829 | 2195 | # So say no if there are warnings other than the usual output. | ||
1830 | 2196 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | ||
1831 | 2197 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1832 | 2198 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
1833 | 2199 | $2=yes | ||
1834 | 2200 | fi | ||
1835 | 2201 | fi | ||
1836 | 2202 | $RM conftest* | ||
1837 | 2203 | ]) | ||
1838 | 2204 | |||
1839 | 2205 | if test x"[$]$2" = xyes; then | ||
1840 | 2206 | m4_if([$5], , :, [$5]) | ||
1841 | 2207 | else | ||
1842 | 2208 | m4_if([$6], , :, [$6]) | ||
1843 | 2209 | fi | ||
1844 | 2210 | ])# _LT_COMPILER_OPTION | ||
1845 | 2211 | |||
1846 | 2212 | # Old name: | ||
1847 | 2213 | AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | ||
1848 | 2214 | dnl aclocal-1.4 backwards compatibility: | ||
1849 | 2215 | dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | ||
1850 | 2216 | |||
1851 | 2217 | |||
1852 | 2218 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1853 | 2219 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1854 | 2220 | # ---------------------------------------------------- | ||
1855 | 2221 | # Check whether the given linker option works | ||
1856 | 2222 | AC_DEFUN([_LT_LINKER_OPTION], | ||
1857 | 2223 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
1858 | 2224 | m4_require([_LT_DECL_SED])dnl | ||
1859 | 2225 | AC_CACHE_CHECK([$1], [$2], | ||
1860 | 2226 | [$2=no | ||
1861 | 2227 | save_LDFLAGS="$LDFLAGS" | ||
1862 | 2228 | LDFLAGS="$LDFLAGS $3" | ||
1863 | 2229 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | ||
1864 | 2230 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
1865 | 2231 | # The linker can only warn and ignore the option if not recognized | ||
1866 | 2232 | # So say no if there are warnings | ||
1867 | 2233 | if test -s conftest.err; then | ||
1868 | 2234 | # Append any errors to the config.log. | ||
1869 | 2235 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | ||
1870 | 2236 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | ||
1871 | 2237 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1872 | 2238 | if diff conftest.exp conftest.er2 >/dev/null; then | ||
1873 | 2239 | $2=yes | ||
1874 | 2240 | fi | ||
1875 | 2241 | else | ||
1876 | 2242 | $2=yes | ||
1877 | 2243 | fi | ||
1878 | 2244 | fi | ||
1879 | 2245 | $RM -r conftest* | ||
1880 | 2246 | LDFLAGS="$save_LDFLAGS" | ||
1881 | 2247 | ]) | ||
1882 | 2248 | |||
1883 | 2249 | if test x"[$]$2" = xyes; then | ||
1884 | 2250 | m4_if([$4], , :, [$4]) | ||
1885 | 2251 | else | ||
1886 | 2252 | m4_if([$5], , :, [$5]) | ||
1887 | 2253 | fi | ||
1888 | 2254 | ])# _LT_LINKER_OPTION | ||
1889 | 2255 | |||
1890 | 2256 | # Old name: | ||
1891 | 2257 | AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | ||
1892 | 2258 | dnl aclocal-1.4 backwards compatibility: | ||
1893 | 2259 | dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | ||
1894 | 2260 | |||
1895 | 2261 | |||
1896 | 2262 | # LT_CMD_MAX_LEN | ||
1897 | 2263 | #--------------- | ||
1898 | 2264 | AC_DEFUN([LT_CMD_MAX_LEN], | ||
1899 | 2265 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
1900 | 2266 | # find the maximum length of command line arguments | ||
1901 | 2267 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1902 | 2268 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1903 | 2269 | i=0 | ||
1904 | 2270 | teststring="ABCD" | ||
1905 | 2271 | |||
1906 | 2272 | case $build_os in | ||
1907 | 2273 | msdosdjgpp*) | ||
1908 | 2274 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
1909 | 2275 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
1910 | 2276 | # during glob expansion). Even if it were fixed, the result of this | ||
1911 | 2277 | # check would be larger than it should be. | ||
1912 | 2278 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
1913 | 2279 | ;; | ||
1914 | 2280 | |||
1915 | 2281 | gnu*) | ||
1916 | 2282 | # Under GNU Hurd, this test is not required because there is | ||
1917 | 2283 | # no limit to the length of command line arguments. | ||
1918 | 2284 | # Libtool will interpret -1 as no limit whatsoever | ||
1919 | 2285 | lt_cv_sys_max_cmd_len=-1; | ||
1920 | 2286 | ;; | ||
1921 | 2287 | |||
1922 | 2288 | cygwin* | mingw* | cegcc*) | ||
1923 | 2289 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
1924 | 2290 | # about 5 minutes as the teststring grows exponentially. | ||
1925 | 2291 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
1926 | 2292 | # you end up with a "frozen" computer, even though with patience | ||
1927 | 2293 | # the test eventually succeeds (with a max line length of 256k). | ||
1928 | 2294 | # Instead, let's just punt: use the minimum linelength reported by | ||
1929 | 2295 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
1930 | 2296 | lt_cv_sys_max_cmd_len=8192; | ||
1931 | 2297 | ;; | ||
1932 | 2298 | |||
1933 | 2299 | mint*) | ||
1934 | 2300 | # On MiNT this can take a long time and run out of memory. | ||
1935 | 2301 | lt_cv_sys_max_cmd_len=8192; | ||
1936 | 2302 | ;; | ||
1937 | 2303 | |||
1938 | 2304 | amigaos*) | ||
1939 | 2305 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
1940 | 2306 | # So we just punt and use a minimum line length of 8192. | ||
1941 | 2307 | lt_cv_sys_max_cmd_len=8192; | ||
1942 | 2308 | ;; | ||
1943 | 2309 | |||
1944 | 2310 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
1945 | 2311 | # This has been around since 386BSD, at least. Likely further. | ||
1946 | 2312 | if test -x /sbin/sysctl; then | ||
1947 | 2313 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
1948 | 2314 | elif test -x /usr/sbin/sysctl; then | ||
1949 | 2315 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
1950 | 2316 | else | ||
1951 | 2317 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
1952 | 2318 | fi | ||
1953 | 2319 | # And add a safety zone | ||
1954 | 2320 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
1955 | 2321 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
1956 | 2322 | ;; | ||
1957 | 2323 | |||
1958 | 2324 | interix*) | ||
1959 | 2325 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
1960 | 2326 | lt_cv_sys_max_cmd_len=196608 | ||
1961 | 2327 | ;; | ||
1962 | 2328 | |||
1963 | 2329 | osf*) | ||
1964 | 2330 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
1965 | 2331 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
1966 | 2332 | # nice to cause kernel panics so lets avoid the loop below. | ||
1967 | 2333 | # First set a reasonable default. | ||
1968 | 2334 | lt_cv_sys_max_cmd_len=16384 | ||
1969 | 2335 | # | ||
1970 | 2336 | if test -x /sbin/sysconfig; then | ||
1971 | 2337 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
1972 | 2338 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
1973 | 2339 | esac | ||
1974 | 2340 | fi | ||
1975 | 2341 | ;; | ||
1976 | 2342 | sco3.2v5*) | ||
1977 | 2343 | lt_cv_sys_max_cmd_len=102400 | ||
1978 | 2344 | ;; | ||
1979 | 2345 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
1980 | 2346 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
1981 | 2347 | if test -n "$kargmax"; then | ||
1982 | 2348 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
1983 | 2349 | else | ||
1984 | 2350 | lt_cv_sys_max_cmd_len=32768 | ||
1985 | 2351 | fi | ||
1986 | 2352 | ;; | ||
1987 | 2353 | *) | ||
1988 | 2354 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | ||
1989 | 2355 | if test -n "$lt_cv_sys_max_cmd_len"; then | ||
1990 | 2356 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | ||
1991 | 2357 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
1992 | 2358 | else | ||
1993 | 2359 | # Make teststring a little bigger before we do anything with it. | ||
1994 | 2360 | # a 1K string should be a reasonable start. | ||
1995 | 2361 | for i in 1 2 3 4 5 6 7 8 ; do | ||
1996 | 2362 | teststring=$teststring$teststring | ||
1997 | 2363 | done | ||
1998 | 2364 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
1999 | 2365 | # If test is not a shell built-in, we'll probably end up computing a | ||
2000 | 2366 | # maximum length that is only half of the actual maximum length, but | ||
2001 | 2367 | # we can't tell. | ||
2002 | 2368 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | ||
2003 | 2369 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | ||
2004 | 2370 | test $i != 17 # 1/2 MB should be enough | ||
2005 | 2371 | do | ||
2006 | 2372 | i=`expr $i + 1` | ||
2007 | 2373 | teststring=$teststring$teststring | ||
2008 | 2374 | done | ||
2009 | 2375 | # Only check the string length outside the loop. | ||
2010 | 2376 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | ||
2011 | 2377 | teststring= | ||
2012 | 2378 | # Add a significant safety factor because C++ compilers can tack on | ||
2013 | 2379 | # massive amounts of additional arguments before passing them to the | ||
2014 | 2380 | # linker. It appears as though 1/2 is a usable value. | ||
2015 | 2381 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
2016 | 2382 | fi | ||
2017 | 2383 | ;; | ||
2018 | 2384 | esac | ||
2019 | 2385 | ]) | ||
2020 | 2386 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
2021 | 2387 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
2022 | 2388 | else | ||
2023 | 2389 | AC_MSG_RESULT(none) | ||
2024 | 2390 | fi | ||
2025 | 2391 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
2026 | 2392 | _LT_DECL([], [max_cmd_len], [0], | ||
2027 | 2393 | [What is the maximum length of a command?]) | ||
2028 | 2394 | ])# LT_CMD_MAX_LEN | ||
2029 | 2395 | |||
2030 | 2396 | # Old name: | ||
2031 | 2397 | AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | ||
2032 | 2398 | dnl aclocal-1.4 backwards compatibility: | ||
2033 | 2399 | dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | ||
2034 | 2400 | |||
2035 | 2401 | |||
2036 | 2402 | # _LT_HEADER_DLFCN | ||
2037 | 2403 | # ---------------- | ||
2038 | 2404 | m4_defun([_LT_HEADER_DLFCN], | ||
2039 | 2405 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | ||
2040 | 2406 | ])# _LT_HEADER_DLFCN | ||
2041 | 2407 | |||
2042 | 2408 | |||
2043 | 2409 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
2044 | 2410 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
2045 | 2411 | # ---------------------------------------------------------------- | ||
2046 | 2412 | m4_defun([_LT_TRY_DLOPEN_SELF], | ||
2047 | 2413 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2048 | 2414 | if test "$cross_compiling" = yes; then : | ||
2049 | 2415 | [$4] | ||
2050 | 2416 | else | ||
2051 | 2417 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
2052 | 2418 | lt_status=$lt_dlunknown | ||
2053 | 2419 | cat > conftest.$ac_ext <<_LT_EOF | ||
2054 | 2420 | [#line $LINENO "configure" | ||
2055 | 2421 | #include "confdefs.h" | ||
2056 | 2422 | |||
2057 | 2423 | #if HAVE_DLFCN_H | ||
2058 | 2424 | #include <dlfcn.h> | ||
2059 | 2425 | #endif | ||
2060 | 2426 | |||
2061 | 2427 | #include <stdio.h> | ||
2062 | 2428 | |||
2063 | 2429 | #ifdef RTLD_GLOBAL | ||
2064 | 2430 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
2065 | 2431 | #else | ||
2066 | 2432 | # ifdef DL_GLOBAL | ||
2067 | 2433 | # define LT_DLGLOBAL DL_GLOBAL | ||
2068 | 2434 | # else | ||
2069 | 2435 | # define LT_DLGLOBAL 0 | ||
2070 | 2436 | # endif | ||
2071 | 2437 | #endif | ||
2072 | 2438 | |||
2073 | 2439 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
2074 | 2440 | find out it does not work in some platform. */ | ||
2075 | 2441 | #ifndef LT_DLLAZY_OR_NOW | ||
2076 | 2442 | # ifdef RTLD_LAZY | ||
2077 | 2443 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
2078 | 2444 | # else | ||
2079 | 2445 | # ifdef DL_LAZY | ||
2080 | 2446 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
2081 | 2447 | # else | ||
2082 | 2448 | # ifdef RTLD_NOW | ||
2083 | 2449 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
2084 | 2450 | # else | ||
2085 | 2451 | # ifdef DL_NOW | ||
2086 | 2452 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
2087 | 2453 | # else | ||
2088 | 2454 | # define LT_DLLAZY_OR_NOW 0 | ||
2089 | 2455 | # endif | ||
2090 | 2456 | # endif | ||
2091 | 2457 | # endif | ||
2092 | 2458 | # endif | ||
2093 | 2459 | #endif | ||
2094 | 2460 | |||
2095 | 2461 | /* When -fvisbility=hidden is used, assume the code has been annotated | ||
2096 | 2462 | correspondingly for the symbols needed. */ | ||
2097 | 2463 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | ||
2098 | 2464 | int fnord () __attribute__((visibility("default"))); | ||
2099 | 2465 | #endif | ||
2100 | 2466 | |||
2101 | 2467 | int fnord () { return 42; } | ||
2102 | 2468 | int main () | ||
2103 | 2469 | { | ||
2104 | 2470 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
2105 | 2471 | int status = $lt_dlunknown; | ||
2106 | 2472 | |||
2107 | 2473 | if (self) | ||
2108 | 2474 | { | ||
2109 | 2475 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
2110 | 2476 | else | ||
2111 | 2477 | { | ||
2112 | 2478 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
2113 | 2479 | else puts (dlerror ()); | ||
2114 | 2480 | } | ||
2115 | 2481 | /* dlclose (self); */ | ||
2116 | 2482 | } | ||
2117 | 2483 | else | ||
2118 | 2484 | puts (dlerror ()); | ||
2119 | 2485 | |||
2120 | 2486 | return status; | ||
2121 | 2487 | }] | ||
2122 | 2488 | _LT_EOF | ||
2123 | 2489 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
2124 | 2490 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
2125 | 2491 | lt_status=$? | ||
2126 | 2492 | case x$lt_status in | ||
2127 | 2493 | x$lt_dlno_uscore) $1 ;; | ||
2128 | 2494 | x$lt_dlneed_uscore) $2 ;; | ||
2129 | 2495 | x$lt_dlunknown|x*) $3 ;; | ||
2130 | 2496 | esac | ||
2131 | 2497 | else : | ||
2132 | 2498 | # compilation failed | ||
2133 | 2499 | $3 | ||
2134 | 2500 | fi | ||
2135 | 2501 | fi | ||
2136 | 2502 | rm -fr conftest* | ||
2137 | 2503 | ])# _LT_TRY_DLOPEN_SELF | ||
2138 | 2504 | |||
2139 | 2505 | |||
2140 | 2506 | # LT_SYS_DLOPEN_SELF | ||
2141 | 2507 | # ------------------ | ||
2142 | 2508 | AC_DEFUN([LT_SYS_DLOPEN_SELF], | ||
2143 | 2509 | [m4_require([_LT_HEADER_DLFCN])dnl | ||
2144 | 2510 | if test "x$enable_dlopen" != xyes; then | ||
2145 | 2511 | enable_dlopen=unknown | ||
2146 | 2512 | enable_dlopen_self=unknown | ||
2147 | 2513 | enable_dlopen_self_static=unknown | ||
2148 | 2514 | else | ||
2149 | 2515 | lt_cv_dlopen=no | ||
2150 | 2516 | lt_cv_dlopen_libs= | ||
2151 | 2517 | |||
2152 | 2518 | case $host_os in | ||
2153 | 2519 | beos*) | ||
2154 | 2520 | lt_cv_dlopen="load_add_on" | ||
2155 | 2521 | lt_cv_dlopen_libs= | ||
2156 | 2522 | lt_cv_dlopen_self=yes | ||
2157 | 2523 | ;; | ||
2158 | 2524 | |||
2159 | 2525 | mingw* | pw32* | cegcc*) | ||
2160 | 2526 | lt_cv_dlopen="LoadLibrary" | ||
2161 | 2527 | lt_cv_dlopen_libs= | ||
2162 | 2528 | ;; | ||
2163 | 2529 | |||
2164 | 2530 | cygwin*) | ||
2165 | 2531 | lt_cv_dlopen="dlopen" | ||
2166 | 2532 | lt_cv_dlopen_libs= | ||
2167 | 2533 | ;; | ||
2168 | 2534 | |||
2169 | 2535 | darwin*) | ||
2170 | 2536 | # if libdl is installed we need to link against it | ||
2171 | 2537 | AC_CHECK_LIB([dl], [dlopen], | ||
2172 | 2538 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
2173 | 2539 | lt_cv_dlopen="dyld" | ||
2174 | 2540 | lt_cv_dlopen_libs= | ||
2175 | 2541 | lt_cv_dlopen_self=yes | ||
2176 | 2542 | ]) | ||
2177 | 2543 | ;; | ||
2178 | 2544 | |||
2179 | 2545 | *) | ||
2180 | 2546 | AC_CHECK_FUNC([shl_load], | ||
2181 | 2547 | [lt_cv_dlopen="shl_load"], | ||
2182 | 2548 | [AC_CHECK_LIB([dld], [shl_load], | ||
2183 | 2549 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | ||
2184 | 2550 | [AC_CHECK_FUNC([dlopen], | ||
2185 | 2551 | [lt_cv_dlopen="dlopen"], | ||
2186 | 2552 | [AC_CHECK_LIB([dl], [dlopen], | ||
2187 | 2553 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
2188 | 2554 | [AC_CHECK_LIB([svld], [dlopen], | ||
2189 | 2555 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2190 | 2556 | [AC_CHECK_LIB([dld], [dld_link], | ||
2191 | 2557 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | ||
2192 | 2558 | ]) | ||
2193 | 2559 | ]) | ||
2194 | 2560 | ]) | ||
2195 | 2561 | ]) | ||
2196 | 2562 | ]) | ||
2197 | 2563 | ;; | ||
2198 | 2564 | esac | ||
2199 | 2565 | |||
2200 | 2566 | if test "x$lt_cv_dlopen" != xno; then | ||
2201 | 2567 | enable_dlopen=yes | ||
2202 | 2568 | else | ||
2203 | 2569 | enable_dlopen=no | ||
2204 | 2570 | fi | ||
2205 | 2571 | |||
2206 | 2572 | case $lt_cv_dlopen in | ||
2207 | 2573 | dlopen) | ||
2208 | 2574 | save_CPPFLAGS="$CPPFLAGS" | ||
2209 | 2575 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2210 | 2576 | |||
2211 | 2577 | save_LDFLAGS="$LDFLAGS" | ||
2212 | 2578 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2213 | 2579 | |||
2214 | 2580 | save_LIBS="$LIBS" | ||
2215 | 2581 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2216 | 2582 | |||
2217 | 2583 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2218 | 2584 | lt_cv_dlopen_self, [dnl | ||
2219 | 2585 | _LT_TRY_DLOPEN_SELF( | ||
2220 | 2586 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2221 | 2587 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2222 | 2588 | ]) | ||
2223 | 2589 | |||
2224 | 2590 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2225 | 2591 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2226 | 2592 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2227 | 2593 | lt_cv_dlopen_self_static, [dnl | ||
2228 | 2594 | _LT_TRY_DLOPEN_SELF( | ||
2229 | 2595 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2230 | 2596 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2231 | 2597 | ]) | ||
2232 | 2598 | fi | ||
2233 | 2599 | |||
2234 | 2600 | CPPFLAGS="$save_CPPFLAGS" | ||
2235 | 2601 | LDFLAGS="$save_LDFLAGS" | ||
2236 | 2602 | LIBS="$save_LIBS" | ||
2237 | 2603 | ;; | ||
2238 | 2604 | esac | ||
2239 | 2605 | |||
2240 | 2606 | case $lt_cv_dlopen_self in | ||
2241 | 2607 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2242 | 2608 | *) enable_dlopen_self=unknown ;; | ||
2243 | 2609 | esac | ||
2244 | 2610 | |||
2245 | 2611 | case $lt_cv_dlopen_self_static in | ||
2246 | 2612 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2247 | 2613 | *) enable_dlopen_self_static=unknown ;; | ||
2248 | 2614 | esac | ||
2249 | 2615 | fi | ||
2250 | 2616 | _LT_DECL([dlopen_support], [enable_dlopen], [0], | ||
2251 | 2617 | [Whether dlopen is supported]) | ||
2252 | 2618 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | ||
2253 | 2619 | [Whether dlopen of programs is supported]) | ||
2254 | 2620 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | ||
2255 | 2621 | [Whether dlopen of statically linked programs is supported]) | ||
2256 | 2622 | ])# LT_SYS_DLOPEN_SELF | ||
2257 | 2623 | |||
2258 | 2624 | # Old name: | ||
2259 | 2625 | AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | ||
2260 | 2626 | dnl aclocal-1.4 backwards compatibility: | ||
2261 | 2627 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | ||
2262 | 2628 | |||
2263 | 2629 | |||
2264 | 2630 | # _LT_COMPILER_C_O([TAGNAME]) | ||
2265 | 2631 | # --------------------------- | ||
2266 | 2632 | # Check to see if options -c and -o are simultaneously supported by compiler. | ||
2267 | 2633 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | ||
2268 | 2634 | m4_defun([_LT_COMPILER_C_O], | ||
2269 | 2635 | [m4_require([_LT_DECL_SED])dnl | ||
2270 | 2636 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2271 | 2637 | m4_require([_LT_TAG_COMPILER])dnl | ||
2272 | 2638 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2273 | 2639 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2274 | 2640 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2275 | 2641 | $RM -r conftest 2>/dev/null | ||
2276 | 2642 | mkdir conftest | ||
2277 | 2643 | cd conftest | ||
2278 | 2644 | mkdir out | ||
2279 | 2645 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2280 | 2646 | |||
2281 | 2647 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2282 | 2648 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2283 | 2649 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2284 | 2650 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2285 | 2651 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2286 | 2652 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2287 | 2653 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2288 | 2654 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2289 | 2655 | -e 's:$: $lt_compiler_flag:'` | ||
2290 | 2656 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2291 | 2657 | (eval "$lt_compile" 2>out/conftest.err) | ||
2292 | 2658 | ac_status=$? | ||
2293 | 2659 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2294 | 2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2295 | 2661 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2296 | 2662 | then | ||
2297 | 2663 | # The compiler can only warn and ignore the option if not recognized | ||
2298 | 2664 | # So say no if there are warnings | ||
2299 | 2665 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | ||
2300 | 2666 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2301 | 2667 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2302 | 2668 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2303 | 2669 | fi | ||
2304 | 2670 | fi | ||
2305 | 2671 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2306 | 2672 | $RM conftest* | ||
2307 | 2673 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2308 | 2674 | # template instantiation | ||
2309 | 2675 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | ||
2310 | 2676 | $RM out/* && rmdir out | ||
2311 | 2677 | cd .. | ||
2312 | 2678 | $RM -r conftest | ||
2313 | 2679 | $RM conftest* | ||
2314 | 2680 | ]) | ||
2315 | 2681 | _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | ||
2316 | 2682 | [Does compiler simultaneously support -c and -o options?]) | ||
2317 | 2683 | ])# _LT_COMPILER_C_O | ||
2318 | 2684 | |||
2319 | 2685 | |||
2320 | 2686 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | ||
2321 | 2687 | # ---------------------------------- | ||
2322 | 2688 | # Check to see if we can do hard links to lock some files if needed | ||
2323 | 2689 | m4_defun([_LT_COMPILER_FILE_LOCKS], | ||
2324 | 2690 | [m4_require([_LT_ENABLE_LOCK])dnl | ||
2325 | 2691 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2326 | 2692 | _LT_COMPILER_C_O([$1]) | ||
2327 | 2693 | |||
2328 | 2694 | hard_links="nottested" | ||
2329 | 2695 | if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
2330 | 2696 | # do not overwrite the value of need_locks provided by the user | ||
2331 | 2697 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
2332 | 2698 | hard_links=yes | ||
2333 | 2699 | $RM conftest* | ||
2334 | 2700 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2335 | 2701 | touch conftest.a | ||
2336 | 2702 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
2337 | 2703 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2338 | 2704 | AC_MSG_RESULT([$hard_links]) | ||
2339 | 2705 | if test "$hard_links" = no; then | ||
2340 | 2706 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
2341 | 2707 | need_locks=warn | ||
2342 | 2708 | fi | ||
2343 | 2709 | else | ||
2344 | 2710 | need_locks=no | ||
2345 | 2711 | fi | ||
2346 | 2712 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | ||
2347 | 2713 | ])# _LT_COMPILER_FILE_LOCKS | ||
2348 | 2714 | |||
2349 | 2715 | |||
2350 | 2716 | # _LT_CHECK_OBJDIR | ||
2351 | 2717 | # ---------------- | ||
2352 | 2718 | m4_defun([_LT_CHECK_OBJDIR], | ||
2353 | 2719 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
2354 | 2720 | [rm -f .libs 2>/dev/null | ||
2355 | 2721 | mkdir .libs 2>/dev/null | ||
2356 | 2722 | if test -d .libs; then | ||
2357 | 2723 | lt_cv_objdir=.libs | ||
2358 | 2724 | else | ||
2359 | 2725 | # MS-DOS does not allow filenames that begin with a dot. | ||
2360 | 2726 | lt_cv_objdir=_libs | ||
2361 | 2727 | fi | ||
2362 | 2728 | rmdir .libs 2>/dev/null]) | ||
2363 | 2729 | objdir=$lt_cv_objdir | ||
2364 | 2730 | _LT_DECL([], [objdir], [0], | ||
2365 | 2731 | [The name of the directory that contains temporary libtool files])dnl | ||
2366 | 2732 | m4_pattern_allow([LT_OBJDIR])dnl | ||
2367 | 2733 | AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | ||
2368 | 2734 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | ||
2369 | 2735 | ])# _LT_CHECK_OBJDIR | ||
2370 | 2736 | |||
2371 | 2737 | |||
2372 | 2738 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | ||
2373 | 2739 | # -------------------------------------- | ||
2374 | 2740 | # Check hardcoding attributes. | ||
2375 | 2741 | m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | ||
2376 | 2742 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
2377 | 2743 | _LT_TAGVAR(hardcode_action, $1)= | ||
2378 | 2744 | if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | ||
2379 | 2745 | test -n "$_LT_TAGVAR(runpath_var, $1)" || | ||
2380 | 2746 | test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
2381 | 2747 | |||
2382 | 2748 | # We can hardcode non-existent directories. | ||
2383 | 2749 | if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | ||
2384 | 2750 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
2385 | 2751 | # have to relink, otherwise we might link with an installed library | ||
2386 | 2752 | # when we should be linking with a yet-to-be-installed one | ||
2387 | 2753 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
2388 | 2754 | test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
2389 | 2755 | # Linking always hardcodes the temporary library directory. | ||
2390 | 2756 | _LT_TAGVAR(hardcode_action, $1)=relink | ||
2391 | 2757 | else | ||
2392 | 2758 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
2393 | 2759 | _LT_TAGVAR(hardcode_action, $1)=immediate | ||
2394 | 2760 | fi | ||
2395 | 2761 | else | ||
2396 | 2762 | # We cannot hardcode anything, or else we can only hardcode existing | ||
2397 | 2763 | # directories. | ||
2398 | 2764 | _LT_TAGVAR(hardcode_action, $1)=unsupported | ||
2399 | 2765 | fi | ||
2400 | 2766 | AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | ||
2401 | 2767 | |||
2402 | 2768 | if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | ||
2403 | 2769 | test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | ||
2404 | 2770 | # Fast installation is not supported | ||
2405 | 2771 | enable_fast_install=no | ||
2406 | 2772 | elif test "$shlibpath_overrides_runpath" = yes || | ||
2407 | 2773 | test "$enable_shared" = no; then | ||
2408 | 2774 | # Fast installation is not necessary | ||
2409 | 2775 | enable_fast_install=needless | ||
2410 | 2776 | fi | ||
2411 | 2777 | _LT_TAGDECL([], [hardcode_action], [0], | ||
2412 | 2778 | [How to hardcode a shared library path into an executable]) | ||
2413 | 2779 | ])# _LT_LINKER_HARDCODE_LIBPATH | ||
2414 | 2780 | |||
2415 | 2781 | |||
2416 | 2782 | # _LT_CMD_STRIPLIB | ||
2417 | 2783 | # ---------------- | ||
2418 | 2784 | m4_defun([_LT_CMD_STRIPLIB], | ||
2419 | 2785 | [m4_require([_LT_DECL_EGREP]) | ||
2420 | 2786 | striplib= | ||
2421 | 2787 | old_striplib= | ||
2422 | 2788 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
2423 | 2789 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | ||
2424 | 2790 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
2425 | 2791 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2426 | 2792 | AC_MSG_RESULT([yes]) | ||
2427 | 2793 | else | ||
2428 | 2794 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2429 | 2795 | case $host_os in | ||
2430 | 2796 | darwin*) | ||
2431 | 2797 | if test -n "$STRIP" ; then | ||
2432 | 2798 | striplib="$STRIP -x" | ||
2433 | 2799 | old_striplib="$STRIP -S" | ||
2434 | 2800 | AC_MSG_RESULT([yes]) | ||
2435 | 2801 | else | ||
2436 | 2802 | AC_MSG_RESULT([no]) | ||
2437 | 2803 | fi | ||
2438 | 2804 | ;; | ||
2439 | 2805 | *) | ||
2440 | 2806 | AC_MSG_RESULT([no]) | ||
2441 | 2807 | ;; | ||
2442 | 2808 | esac | ||
2443 | 2809 | fi | ||
2444 | 2810 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | ||
2445 | 2811 | _LT_DECL([], [striplib], [1]) | ||
2446 | 2812 | ])# _LT_CMD_STRIPLIB | ||
2447 | 2813 | |||
2448 | 2814 | |||
2449 | 2815 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | ||
2450 | 2816 | # ----------------------------- | ||
2451 | 2817 | # PORTME Fill in your ld.so characteristics | ||
2452 | 2818 | m4_defun([_LT_SYS_DYNAMIC_LINKER], | ||
2453 | 2819 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
2454 | 2820 | m4_require([_LT_DECL_EGREP])dnl | ||
2455 | 2821 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
2456 | 2822 | m4_require([_LT_DECL_OBJDUMP])dnl | ||
2457 | 2823 | m4_require([_LT_DECL_SED])dnl | ||
2458 | 2824 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | ||
2459 | 2825 | AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2460 | 2826 | m4_if([$1], | ||
2461 | 2827 | [], [ | ||
2462 | 2828 | if test "$GCC" = yes; then | ||
2463 | 2829 | case $host_os in | ||
2464 | 2830 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | ||
2465 | 2831 | *) lt_awk_arg="/^libraries:/" ;; | ||
2466 | 2832 | esac | ||
2467 | 2833 | case $host_os in | ||
2468 | 2834 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | ||
2469 | 2835 | *) lt_sed_strip_eq="s,=/,/,g" ;; | ||
2470 | 2836 | esac | ||
2471 | 2837 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | ||
2472 | 2838 | case $lt_search_path_spec in | ||
2473 | 2839 | *\;*) | ||
2474 | 2840 | # if the path contains ";" then we assume it to be the separator | ||
2475 | 2841 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
2476 | 2842 | # assumed that no part of a normal pathname contains ";" but that should | ||
2477 | 2843 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
2478 | 2844 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | ||
2479 | 2845 | ;; | ||
2480 | 2846 | *) | ||
2481 | 2847 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | ||
2482 | 2848 | ;; | ||
2483 | 2849 | esac | ||
2484 | 2850 | # Ok, now we have the path, separated by spaces, we can step through it | ||
2485 | 2851 | # and add multilib dir if necessary. | ||
2486 | 2852 | lt_tmp_lt_search_path_spec= | ||
2487 | 2853 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | ||
2488 | 2854 | for lt_sys_path in $lt_search_path_spec; do | ||
2489 | 2855 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | ||
2490 | 2856 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | ||
2491 | 2857 | else | ||
2492 | 2858 | test -d "$lt_sys_path" && \ | ||
2493 | 2859 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | ||
2494 | 2860 | fi | ||
2495 | 2861 | done | ||
2496 | 2862 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | ||
2497 | 2863 | BEGIN {RS=" "; FS="/|\n";} { | ||
2498 | 2864 | lt_foo=""; | ||
2499 | 2865 | lt_count=0; | ||
2500 | 2866 | for (lt_i = NF; lt_i > 0; lt_i--) { | ||
2501 | 2867 | if ($lt_i != "" && $lt_i != ".") { | ||
2502 | 2868 | if ($lt_i == "..") { | ||
2503 | 2869 | lt_count++; | ||
2504 | 2870 | } else { | ||
2505 | 2871 | if (lt_count == 0) { | ||
2506 | 2872 | lt_foo="/" $lt_i lt_foo; | ||
2507 | 2873 | } else { | ||
2508 | 2874 | lt_count--; | ||
2509 | 2875 | } | ||
2510 | 2876 | } | ||
2511 | 2877 | } | ||
2512 | 2878 | } | ||
2513 | 2879 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | ||
2514 | 2880 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | ||
2515 | 2881 | }'` | ||
2516 | 2882 | # AWK program above erroneously prepends '/' to C:/dos/paths | ||
2517 | 2883 | # for these hosts. | ||
2518 | 2884 | case $host_os in | ||
2519 | 2885 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | ||
2520 | 2886 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | ||
2521 | 2887 | esac | ||
2522 | 2888 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | ||
2523 | 2889 | else | ||
2524 | 2890 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2525 | 2891 | fi]) | ||
2526 | 2892 | library_names_spec= | ||
2527 | 2893 | libname_spec='lib$name' | ||
2528 | 2894 | soname_spec= | ||
2529 | 2895 | shrext_cmds=".so" | ||
2530 | 2896 | postinstall_cmds= | ||
2531 | 2897 | postuninstall_cmds= | ||
2532 | 2898 | finish_cmds= | ||
2533 | 2899 | finish_eval= | ||
2534 | 2900 | shlibpath_var= | ||
2535 | 2901 | shlibpath_overrides_runpath=unknown | ||
2536 | 2902 | version_type=none | ||
2537 | 2903 | dynamic_linker="$host_os ld.so" | ||
2538 | 2904 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2539 | 2905 | need_lib_prefix=unknown | ||
2540 | 2906 | hardcode_into_libs=no | ||
2541 | 2907 | |||
2542 | 2908 | # when you set need_version to no, make sure it does not cause -set_version | ||
2543 | 2909 | # flags to be left without arguments | ||
2544 | 2910 | need_version=unknown | ||
2545 | 2911 | |||
2546 | 2912 | case $host_os in | ||
2547 | 2913 | aix3*) | ||
2548 | 2914 | version_type=linux | ||
2549 | 2915 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
2550 | 2916 | shlibpath_var=LIBPATH | ||
2551 | 2917 | |||
2552 | 2918 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
2553 | 2919 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2554 | 2920 | ;; | ||
2555 | 2921 | |||
2556 | 2922 | aix[[4-9]]*) | ||
2557 | 2923 | version_type=linux | ||
2558 | 2924 | need_lib_prefix=no | ||
2559 | 2925 | need_version=no | ||
2560 | 2926 | hardcode_into_libs=yes | ||
2561 | 2927 | if test "$host_cpu" = ia64; then | ||
2562 | 2928 | # AIX 5 supports IA64 | ||
2563 | 2929 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2564 | 2930 | shlibpath_var=LD_LIBRARY_PATH | ||
2565 | 2931 | else | ||
2566 | 2932 | # With GCC up to 2.95.x, collect2 would create an import file | ||
2567 | 2933 | # for dependence libraries. The import file would start with | ||
2568 | 2934 | # the line `#! .'. This would cause the generated library to | ||
2569 | 2935 | # depend on `.', always an invalid library. This was fixed in | ||
2570 | 2936 | # development snapshots of GCC prior to 3.0. | ||
2571 | 2937 | case $host_os in | ||
2572 | 2938 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2573 | 2939 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2574 | 2940 | echo ' yes ' | ||
2575 | 2941 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | ||
2576 | 2942 | : | ||
2577 | 2943 | else | ||
2578 | 2944 | can_build_shared=no | ||
2579 | 2945 | fi | ||
2580 | 2946 | ;; | ||
2581 | 2947 | esac | ||
2582 | 2948 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
2583 | 2949 | # soname into executable. Probably we can add versioning support to | ||
2584 | 2950 | # collect2, so additional links can be useful in future. | ||
2585 | 2951 | if test "$aix_use_runtimelinking" = yes; then | ||
2586 | 2952 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2587 | 2953 | # instead of lib<name>.a to let people know that these are not | ||
2588 | 2954 | # typical AIX shared libraries. | ||
2589 | 2955 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2590 | 2956 | else | ||
2591 | 2957 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
2592 | 2958 | # and later when we are not doing run time linking. | ||
2593 | 2959 | library_names_spec='${libname}${release}.a $libname.a' | ||
2594 | 2960 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2595 | 2961 | fi | ||
2596 | 2962 | shlibpath_var=LIBPATH | ||
2597 | 2963 | fi | ||
2598 | 2964 | ;; | ||
2599 | 2965 | |||
2600 | 2966 | amigaos*) | ||
2601 | 2967 | case $host_cpu in | ||
2602 | 2968 | powerpc) | ||
2603 | 2969 | # Since July 2007 AmigaOS4 officially supports .so libraries. | ||
2604 | 2970 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | ||
2605 | 2971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2606 | 2972 | ;; | ||
2607 | 2973 | m68k) | ||
2608 | 2974 | library_names_spec='$libname.ixlibrary $libname.a' | ||
2609 | 2975 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2610 | 2976 | 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' | ||
2611 | 2977 | ;; | ||
2612 | 2978 | esac | ||
2613 | 2979 | ;; | ||
2614 | 2980 | |||
2615 | 2981 | beos*) | ||
2616 | 2982 | library_names_spec='${libname}${shared_ext}' | ||
2617 | 2983 | dynamic_linker="$host_os ld.so" | ||
2618 | 2984 | shlibpath_var=LIBRARY_PATH | ||
2619 | 2985 | ;; | ||
2620 | 2986 | |||
2621 | 2987 | bsdi[[45]]*) | ||
2622 | 2988 | version_type=linux | ||
2623 | 2989 | need_version=no | ||
2624 | 2990 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2625 | 2991 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2626 | 2992 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2627 | 2993 | shlibpath_var=LD_LIBRARY_PATH | ||
2628 | 2994 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2629 | 2995 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2630 | 2996 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
2631 | 2997 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2632 | 2998 | # libtool to hard-code these into programs | ||
2633 | 2999 | ;; | ||
2634 | 3000 | |||
2635 | 3001 | cygwin* | mingw* | pw32* | cegcc*) | ||
2636 | 3002 | version_type=windows | ||
2637 | 3003 | shrext_cmds=".dll" | ||
2638 | 3004 | need_version=no | ||
2639 | 3005 | need_lib_prefix=no | ||
2640 | 3006 | |||
2641 | 3007 | case $GCC,$cc_basename in | ||
2642 | 3008 | yes,*) | ||
2643 | 3009 | # gcc | ||
2644 | 3010 | library_names_spec='$libname.dll.a' | ||
2645 | 3011 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2646 | 3012 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2647 | 3013 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
2648 | 3014 | dldir=$destdir/`dirname \$dlpath`~ | ||
2649 | 3015 | test -d \$dldir || mkdir -p \$dldir~ | ||
2650 | 3016 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
2651 | 3017 | chmod a+x \$dldir/$dlname~ | ||
2652 | 3018 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | ||
2653 | 3019 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | ||
2654 | 3020 | fi' | ||
2655 | 3021 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2656 | 3022 | dlpath=$dir/\$dldll~ | ||
2657 | 3023 | $RM \$dlpath' | ||
2658 | 3024 | shlibpath_overrides_runpath=yes | ||
2659 | 3025 | |||
2660 | 3026 | case $host_os in | ||
2661 | 3027 | cygwin*) | ||
2662 | 3028 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
2663 | 3029 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2664 | 3030 | m4_if([$1], [],[ | ||
2665 | 3031 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | ||
2666 | 3032 | ;; | ||
2667 | 3033 | mingw* | cegcc*) | ||
2668 | 3034 | # MinGW DLLs use traditional 'lib' prefix | ||
2669 | 3035 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2670 | 3036 | ;; | ||
2671 | 3037 | pw32*) | ||
2672 | 3038 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2673 | 3039 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2674 | 3040 | ;; | ||
2675 | 3041 | esac | ||
2676 | 3042 | dynamic_linker='Win32 ld.exe' | ||
2677 | 3043 | ;; | ||
2678 | 3044 | |||
2679 | 3045 | *,cl*) | ||
2680 | 3046 | # Native MSVC | ||
2681 | 3047 | libname_spec='$name' | ||
2682 | 3048 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2683 | 3049 | library_names_spec='${libname}.dll.lib' | ||
2684 | 3050 | |||
2685 | 3051 | case $build_os in | ||
2686 | 3052 | mingw*) | ||
2687 | 3053 | sys_lib_search_path_spec= | ||
2688 | 3054 | lt_save_ifs=$IFS | ||
2689 | 3055 | IFS=';' | ||
2690 | 3056 | for lt_path in $LIB | ||
2691 | 3057 | do | ||
2692 | 3058 | IFS=$lt_save_ifs | ||
2693 | 3059 | # Let DOS variable expansion print the short 8.3 style file name. | ||
2694 | 3060 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | ||
2695 | 3061 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | ||
2696 | 3062 | done | ||
2697 | 3063 | IFS=$lt_save_ifs | ||
2698 | 3064 | # Convert to MSYS style. | ||
2699 | 3065 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | ||
2700 | 3066 | ;; | ||
2701 | 3067 | cygwin*) | ||
2702 | 3068 | # Convert to unix form, then to dos form, then back to unix form | ||
2703 | 3069 | # but this time dos style (no spaces!) so that the unix form looks | ||
2704 | 3070 | # like /cygdrive/c/PROGRA~1:/cygdr... | ||
2705 | 3071 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | ||
2706 | 3072 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | ||
2707 | 3073 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2708 | 3074 | ;; | ||
2709 | 3075 | *) | ||
2710 | 3076 | sys_lib_search_path_spec="$LIB" | ||
2711 | 3077 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | ||
2712 | 3078 | # It is most probably a Windows format PATH. | ||
2713 | 3079 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2714 | 3080 | else | ||
2715 | 3081 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2716 | 3082 | fi | ||
2717 | 3083 | # FIXME: find the short name or the path components, as spaces are | ||
2718 | 3084 | # common. (e.g. "Program Files" -> "PROGRA~1") | ||
2719 | 3085 | ;; | ||
2720 | 3086 | esac | ||
2721 | 3087 | |||
2722 | 3088 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2723 | 3089 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2724 | 3090 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | ||
2725 | 3091 | dldir=$destdir/`dirname \$dlpath`~ | ||
2726 | 3092 | test -d \$dldir || mkdir -p \$dldir~ | ||
2727 | 3093 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
2728 | 3094 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2729 | 3095 | dlpath=$dir/\$dldll~ | ||
2730 | 3096 | $RM \$dlpath' | ||
2731 | 3097 | shlibpath_overrides_runpath=yes | ||
2732 | 3098 | dynamic_linker='Win32 link.exe' | ||
2733 | 3099 | ;; | ||
2734 | 3100 | |||
2735 | 3101 | *) | ||
2736 | 3102 | # Assume MSVC wrapper | ||
2737 | 3103 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
2738 | 3104 | dynamic_linker='Win32 ld.exe' | ||
2739 | 3105 | ;; | ||
2740 | 3106 | esac | ||
2741 | 3107 | # FIXME: first we should search . and the directory the executable is in | ||
2742 | 3108 | shlibpath_var=PATH | ||
2743 | 3109 | ;; | ||
2744 | 3110 | |||
2745 | 3111 | darwin* | rhapsody*) | ||
2746 | 3112 | dynamic_linker="$host_os dyld" | ||
2747 | 3113 | version_type=darwin | ||
2748 | 3114 | need_lib_prefix=no | ||
2749 | 3115 | need_version=no | ||
2750 | 3116 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
2751 | 3117 | soname_spec='${libname}${release}${major}$shared_ext' | ||
2752 | 3118 | shlibpath_overrides_runpath=yes | ||
2753 | 3119 | shlibpath_var=DYLD_LIBRARY_PATH | ||
2754 | 3120 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
2755 | 3121 | m4_if([$1], [],[ | ||
2756 | 3122 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | ||
2757 | 3123 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
2758 | 3124 | ;; | ||
2759 | 3125 | |||
2760 | 3126 | dgux*) | ||
2761 | 3127 | version_type=linux | ||
2762 | 3128 | need_lib_prefix=no | ||
2763 | 3129 | need_version=no | ||
2764 | 3130 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
2765 | 3131 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2766 | 3132 | shlibpath_var=LD_LIBRARY_PATH | ||
2767 | 3133 | ;; | ||
2768 | 3134 | |||
2769 | 3135 | freebsd1*) | ||
2770 | 3136 | dynamic_linker=no | ||
2771 | 3137 | ;; | ||
2772 | 3138 | |||
2773 | 3139 | freebsd* | dragonfly*) | ||
2774 | 3140 | # DragonFly does not have aout. When/if they implement a new | ||
2775 | 3141 | # versioning mechanism, adjust this. | ||
2776 | 3142 | if test -x /usr/bin/objformat; then | ||
2777 | 3143 | objformat=`/usr/bin/objformat` | ||
2778 | 3144 | else | ||
2779 | 3145 | case $host_os in | ||
2780 | 3146 | freebsd[[123]]*) objformat=aout ;; | ||
2781 | 3147 | *) objformat=elf ;; | ||
2782 | 3148 | esac | ||
2783 | 3149 | fi | ||
2784 | 3150 | version_type=freebsd-$objformat | ||
2785 | 3151 | case $version_type in | ||
2786 | 3152 | freebsd-elf*) | ||
2787 | 3153 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2788 | 3154 | need_version=no | ||
2789 | 3155 | need_lib_prefix=no | ||
2790 | 3156 | ;; | ||
2791 | 3157 | freebsd-*) | ||
2792 | 3158 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
2793 | 3159 | need_version=yes | ||
2794 | 3160 | ;; | ||
2795 | 3161 | esac | ||
2796 | 3162 | shlibpath_var=LD_LIBRARY_PATH | ||
2797 | 3163 | case $host_os in | ||
2798 | 3164 | freebsd2*) | ||
2799 | 3165 | shlibpath_overrides_runpath=yes | ||
2800 | 3166 | ;; | ||
2801 | 3167 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
2802 | 3168 | shlibpath_overrides_runpath=yes | ||
2803 | 3169 | hardcode_into_libs=yes | ||
2804 | 3170 | ;; | ||
2805 | 3171 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
2806 | 3172 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
2807 | 3173 | shlibpath_overrides_runpath=no | ||
2808 | 3174 | hardcode_into_libs=yes | ||
2809 | 3175 | ;; | ||
2810 | 3176 | *) # from 4.6 on, and DragonFly | ||
2811 | 3177 | shlibpath_overrides_runpath=yes | ||
2812 | 3178 | hardcode_into_libs=yes | ||
2813 | 3179 | ;; | ||
2814 | 3180 | esac | ||
2815 | 3181 | ;; | ||
2816 | 3182 | |||
2817 | 3183 | gnu*) | ||
2818 | 3184 | version_type=linux | ||
2819 | 3185 | need_lib_prefix=no | ||
2820 | 3186 | need_version=no | ||
2821 | 3187 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2822 | 3188 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2823 | 3189 | shlibpath_var=LD_LIBRARY_PATH | ||
2824 | 3190 | shlibpath_overrides_runpath=no | ||
2825 | 3191 | hardcode_into_libs=yes | ||
2826 | 3192 | ;; | ||
2827 | 3193 | |||
2828 | 3194 | haiku*) | ||
2829 | 3195 | version_type=linux | ||
2830 | 3196 | need_lib_prefix=no | ||
2831 | 3197 | need_version=no | ||
2832 | 3198 | dynamic_linker="$host_os runtime_loader" | ||
2833 | 3199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2834 | 3200 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2835 | 3201 | shlibpath_var=LIBRARY_PATH | ||
2836 | 3202 | shlibpath_overrides_runpath=yes | ||
2837 | 3203 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | ||
2838 | 3204 | hardcode_into_libs=yes | ||
2839 | 3205 | ;; | ||
2840 | 3206 | |||
2841 | 3207 | hpux9* | hpux10* | hpux11*) | ||
2842 | 3208 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
2843 | 3209 | # link against other versions. | ||
2844 | 3210 | version_type=sunos | ||
2845 | 3211 | need_lib_prefix=no | ||
2846 | 3212 | need_version=no | ||
2847 | 3213 | case $host_cpu in | ||
2848 | 3214 | ia64*) | ||
2849 | 3215 | shrext_cmds='.so' | ||
2850 | 3216 | hardcode_into_libs=yes | ||
2851 | 3217 | dynamic_linker="$host_os dld.so" | ||
2852 | 3218 | shlibpath_var=LD_LIBRARY_PATH | ||
2853 | 3219 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2854 | 3220 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2855 | 3221 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2856 | 3222 | if test "X$HPUX_IA64_MODE" = X32; then | ||
2857 | 3223 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
2858 | 3224 | else | ||
2859 | 3225 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
2860 | 3226 | fi | ||
2861 | 3227 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2862 | 3228 | ;; | ||
2863 | 3229 | hppa*64*) | ||
2864 | 3230 | shrext_cmds='.sl' | ||
2865 | 3231 | hardcode_into_libs=yes | ||
2866 | 3232 | dynamic_linker="$host_os dld.sl" | ||
2867 | 3233 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
2868 | 3234 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2869 | 3235 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2870 | 3236 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2871 | 3237 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
2872 | 3238 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2873 | 3239 | ;; | ||
2874 | 3240 | *) | ||
2875 | 3241 | shrext_cmds='.sl' | ||
2876 | 3242 | dynamic_linker="$host_os dld.sl" | ||
2877 | 3243 | shlibpath_var=SHLIB_PATH | ||
2878 | 3244 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
2879 | 3245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2880 | 3246 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2881 | 3247 | ;; | ||
2882 | 3248 | esac | ||
2883 | 3249 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | ||
2884 | 3250 | postinstall_cmds='chmod 555 $lib' | ||
2885 | 3251 | # or fails outright, so override atomically: | ||
2886 | 3252 | install_override_mode=555 | ||
2887 | 3253 | ;; | ||
2888 | 3254 | |||
2889 | 3255 | interix[[3-9]]*) | ||
2890 | 3256 | version_type=linux | ||
2891 | 3257 | need_lib_prefix=no | ||
2892 | 3258 | need_version=no | ||
2893 | 3259 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2894 | 3260 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2895 | 3261 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
2896 | 3262 | shlibpath_var=LD_LIBRARY_PATH | ||
2897 | 3263 | shlibpath_overrides_runpath=no | ||
2898 | 3264 | hardcode_into_libs=yes | ||
2899 | 3265 | ;; | ||
2900 | 3266 | |||
2901 | 3267 | irix5* | irix6* | nonstopux*) | ||
2902 | 3268 | case $host_os in | ||
2903 | 3269 | nonstopux*) version_type=nonstopux ;; | ||
2904 | 3270 | *) | ||
2905 | 3271 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
2906 | 3272 | version_type=linux | ||
2907 | 3273 | else | ||
2908 | 3274 | version_type=irix | ||
2909 | 3275 | fi ;; | ||
2910 | 3276 | esac | ||
2911 | 3277 | need_lib_prefix=no | ||
2912 | 3278 | need_version=no | ||
2913 | 3279 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2914 | 3280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2915 | 3281 | case $host_os in | ||
2916 | 3282 | irix5* | nonstopux*) | ||
2917 | 3283 | libsuff= shlibsuff= | ||
2918 | 3284 | ;; | ||
2919 | 3285 | *) | ||
2920 | 3286 | case $LD in # libtool.m4 will add one of these switches to LD | ||
2921 | 3287 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
2922 | 3288 | libsuff= shlibsuff= libmagic=32-bit;; | ||
2923 | 3289 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
2924 | 3290 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
2925 | 3291 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
2926 | 3292 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
2927 | 3293 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
2928 | 3294 | esac | ||
2929 | 3295 | ;; | ||
2930 | 3296 | esac | ||
2931 | 3297 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
2932 | 3298 | shlibpath_overrides_runpath=no | ||
2933 | 3299 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
2934 | 3300 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
2935 | 3301 | hardcode_into_libs=yes | ||
2936 | 3302 | ;; | ||
2937 | 3303 | |||
2938 | 3304 | # No shared lib support for Linux oldld, aout, or coff. | ||
2939 | 3305 | linux*oldld* | linux*aout* | linux*coff*) | ||
2940 | 3306 | dynamic_linker=no | ||
2941 | 3307 | ;; | ||
2942 | 3308 | |||
2943 | 3309 | # This must be Linux ELF. | ||
2944 | 3310 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
2945 | 3311 | version_type=linux | ||
2946 | 3312 | need_lib_prefix=no | ||
2947 | 3313 | need_version=no | ||
2948 | 3314 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2949 | 3315 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2950 | 3316 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
2951 | 3317 | shlibpath_var=LD_LIBRARY_PATH | ||
2952 | 3318 | shlibpath_overrides_runpath=no | ||
2953 | 3319 | |||
2954 | 3320 | # Some binutils ld are patched to set DT_RUNPATH | ||
2955 | 3321 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | ||
2956 | 3322 | [lt_cv_shlibpath_overrides_runpath=no | ||
2957 | 3323 | save_LDFLAGS=$LDFLAGS | ||
2958 | 3324 | save_libdir=$libdir | ||
2959 | 3325 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | ||
2960 | 3326 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | ||
2961 | 3327 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | ||
2962 | 3328 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | ||
2963 | 3329 | [lt_cv_shlibpath_overrides_runpath=yes])]) | ||
2964 | 3330 | LDFLAGS=$save_LDFLAGS | ||
2965 | 3331 | libdir=$save_libdir | ||
2966 | 3332 | ]) | ||
2967 | 3333 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | ||
2968 | 3334 | |||
2969 | 3335 | # This implies no fast_install, which is unacceptable. | ||
2970 | 3336 | # Some rework will be needed to allow for fast_install | ||
2971 | 3337 | # before this can be enabled. | ||
2972 | 3338 | hardcode_into_libs=yes | ||
2973 | 3339 | |||
2974 | 3340 | # Append ld.so.conf contents to the search path | ||
2975 | 3341 | if test -f /etc/ld.so.conf; then | ||
2976 | 3342 | 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' ' '` | ||
2977 | 3343 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
2978 | 3344 | fi | ||
2979 | 3345 | |||
2980 | 3346 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
2981 | 3347 | # powerpc, because MkLinux only supported shared libraries with the | ||
2982 | 3348 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
2983 | 3349 | # most powerpc-linux boxes support dynamic linking these days and | ||
2984 | 3350 | # people can always --disable-shared, the test was removed, and we | ||
2985 | 3351 | # assume the GNU/Linux dynamic linker is in use. | ||
2986 | 3352 | dynamic_linker='GNU/Linux ld.so' | ||
2987 | 3353 | ;; | ||
2988 | 3354 | |||
2989 | 3355 | netbsdelf*-gnu) | ||
2990 | 3356 | version_type=linux | ||
2991 | 3357 | need_lib_prefix=no | ||
2992 | 3358 | need_version=no | ||
2993 | 3359 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2994 | 3360 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2995 | 3361 | shlibpath_var=LD_LIBRARY_PATH | ||
2996 | 3362 | shlibpath_overrides_runpath=no | ||
2997 | 3363 | hardcode_into_libs=yes | ||
2998 | 3364 | dynamic_linker='NetBSD ld.elf_so' | ||
2999 | 3365 | ;; | ||
3000 | 3366 | |||
3001 | 3367 | netbsd*) | ||
3002 | 3368 | version_type=sunos | ||
3003 | 3369 | need_lib_prefix=no | ||
3004 | 3370 | need_version=no | ||
3005 | 3371 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | ||
3006 | 3372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3007 | 3373 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3008 | 3374 | dynamic_linker='NetBSD (a.out) ld.so' | ||
3009 | 3375 | else | ||
3010 | 3376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
3011 | 3377 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3012 | 3378 | dynamic_linker='NetBSD ld.elf_so' | ||
3013 | 3379 | fi | ||
3014 | 3380 | shlibpath_var=LD_LIBRARY_PATH | ||
3015 | 3381 | shlibpath_overrides_runpath=yes | ||
3016 | 3382 | hardcode_into_libs=yes | ||
3017 | 3383 | ;; | ||
3018 | 3384 | |||
3019 | 3385 | newsos6) | ||
3020 | 3386 | version_type=linux | ||
3021 | 3387 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3022 | 3388 | shlibpath_var=LD_LIBRARY_PATH | ||
3023 | 3389 | shlibpath_overrides_runpath=yes | ||
3024 | 3390 | ;; | ||
3025 | 3391 | |||
3026 | 3392 | *nto* | *qnx*) | ||
3027 | 3393 | version_type=qnx | ||
3028 | 3394 | need_lib_prefix=no | ||
3029 | 3395 | need_version=no | ||
3030 | 3396 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3031 | 3397 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3032 | 3398 | shlibpath_var=LD_LIBRARY_PATH | ||
3033 | 3399 | shlibpath_overrides_runpath=no | ||
3034 | 3400 | hardcode_into_libs=yes | ||
3035 | 3401 | dynamic_linker='ldqnx.so' | ||
3036 | 3402 | ;; | ||
3037 | 3403 | |||
3038 | 3404 | openbsd*) | ||
3039 | 3405 | version_type=sunos | ||
3040 | 3406 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
3041 | 3407 | need_lib_prefix=no | ||
3042 | 3408 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
3043 | 3409 | case $host_os in | ||
3044 | 3410 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
3045 | 3411 | *) need_version=no ;; | ||
3046 | 3412 | esac | ||
3047 | 3413 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3048 | 3414 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
3049 | 3415 | shlibpath_var=LD_LIBRARY_PATH | ||
3050 | 3416 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3051 | 3417 | case $host_os in | ||
3052 | 3418 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
3053 | 3419 | shlibpath_overrides_runpath=no | ||
3054 | 3420 | ;; | ||
3055 | 3421 | *) | ||
3056 | 3422 | shlibpath_overrides_runpath=yes | ||
3057 | 3423 | ;; | ||
3058 | 3424 | esac | ||
3059 | 3425 | else | ||
3060 | 3426 | shlibpath_overrides_runpath=yes | ||
3061 | 3427 | fi | ||
3062 | 3428 | ;; | ||
3063 | 3429 | |||
3064 | 3430 | os2*) | ||
3065 | 3431 | libname_spec='$name' | ||
3066 | 3432 | shrext_cmds=".dll" | ||
3067 | 3433 | need_lib_prefix=no | ||
3068 | 3434 | library_names_spec='$libname${shared_ext} $libname.a' | ||
3069 | 3435 | dynamic_linker='OS/2 ld.exe' | ||
3070 | 3436 | shlibpath_var=LIBPATH | ||
3071 | 3437 | ;; | ||
3072 | 3438 | |||
3073 | 3439 | osf3* | osf4* | osf5*) | ||
3074 | 3440 | version_type=osf | ||
3075 | 3441 | need_lib_prefix=no | ||
3076 | 3442 | need_version=no | ||
3077 | 3443 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3078 | 3444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3079 | 3445 | shlibpath_var=LD_LIBRARY_PATH | ||
3080 | 3446 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
3081 | 3447 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
3082 | 3448 | ;; | ||
3083 | 3449 | |||
3084 | 3450 | rdos*) | ||
3085 | 3451 | dynamic_linker=no | ||
3086 | 3452 | ;; | ||
3087 | 3453 | |||
3088 | 3454 | solaris*) | ||
3089 | 3455 | version_type=linux | ||
3090 | 3456 | need_lib_prefix=no | ||
3091 | 3457 | need_version=no | ||
3092 | 3458 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3093 | 3459 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3094 | 3460 | shlibpath_var=LD_LIBRARY_PATH | ||
3095 | 3461 | shlibpath_overrides_runpath=yes | ||
3096 | 3462 | hardcode_into_libs=yes | ||
3097 | 3463 | # ldd complains unless libraries are executable | ||
3098 | 3464 | postinstall_cmds='chmod +x $lib' | ||
3099 | 3465 | ;; | ||
3100 | 3466 | |||
3101 | 3467 | sunos4*) | ||
3102 | 3468 | version_type=sunos | ||
3103 | 3469 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
3104 | 3470 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
3105 | 3471 | shlibpath_var=LD_LIBRARY_PATH | ||
3106 | 3472 | shlibpath_overrides_runpath=yes | ||
3107 | 3473 | if test "$with_gnu_ld" = yes; then | ||
3108 | 3474 | need_lib_prefix=no | ||
3109 | 3475 | fi | ||
3110 | 3476 | need_version=yes | ||
3111 | 3477 | ;; | ||
3112 | 3478 | |||
3113 | 3479 | sysv4 | sysv4.3*) | ||
3114 | 3480 | version_type=linux | ||
3115 | 3481 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3116 | 3482 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3117 | 3483 | shlibpath_var=LD_LIBRARY_PATH | ||
3118 | 3484 | case $host_vendor in | ||
3119 | 3485 | sni) | ||
3120 | 3486 | shlibpath_overrides_runpath=no | ||
3121 | 3487 | need_lib_prefix=no | ||
3122 | 3488 | runpath_var=LD_RUN_PATH | ||
3123 | 3489 | ;; | ||
3124 | 3490 | siemens) | ||
3125 | 3491 | need_lib_prefix=no | ||
3126 | 3492 | ;; | ||
3127 | 3493 | motorola) | ||
3128 | 3494 | need_lib_prefix=no | ||
3129 | 3495 | need_version=no | ||
3130 | 3496 | shlibpath_overrides_runpath=no | ||
3131 | 3497 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
3132 | 3498 | ;; | ||
3133 | 3499 | esac | ||
3134 | 3500 | ;; | ||
3135 | 3501 | |||
3136 | 3502 | sysv4*MP*) | ||
3137 | 3503 | if test -d /usr/nec ;then | ||
3138 | 3504 | version_type=linux | ||
3139 | 3505 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
3140 | 3506 | soname_spec='$libname${shared_ext}.$major' | ||
3141 | 3507 | shlibpath_var=LD_LIBRARY_PATH | ||
3142 | 3508 | fi | ||
3143 | 3509 | ;; | ||
3144 | 3510 | |||
3145 | 3511 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3146 | 3512 | version_type=freebsd-elf | ||
3147 | 3513 | need_lib_prefix=no | ||
3148 | 3514 | need_version=no | ||
3149 | 3515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
3150 | 3516 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3151 | 3517 | shlibpath_var=LD_LIBRARY_PATH | ||
3152 | 3518 | shlibpath_overrides_runpath=yes | ||
3153 | 3519 | hardcode_into_libs=yes | ||
3154 | 3520 | if test "$with_gnu_ld" = yes; then | ||
3155 | 3521 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
3156 | 3522 | else | ||
3157 | 3523 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
3158 | 3524 | case $host_os in | ||
3159 | 3525 | sco3.2v5*) | ||
3160 | 3526 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
3161 | 3527 | ;; | ||
3162 | 3528 | esac | ||
3163 | 3529 | fi | ||
3164 | 3530 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
3165 | 3531 | ;; | ||
3166 | 3532 | |||
3167 | 3533 | tpf*) | ||
3168 | 3534 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | ||
3169 | 3535 | version_type=linux | ||
3170 | 3536 | need_lib_prefix=no | ||
3171 | 3537 | need_version=no | ||
3172 | 3538 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3173 | 3539 | shlibpath_var=LD_LIBRARY_PATH | ||
3174 | 3540 | shlibpath_overrides_runpath=no | ||
3175 | 3541 | hardcode_into_libs=yes | ||
3176 | 3542 | ;; | ||
3177 | 3543 | |||
3178 | 3544 | uts4*) | ||
3179 | 3545 | version_type=linux | ||
3180 | 3546 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
3181 | 3547 | soname_spec='${libname}${release}${shared_ext}$major' | ||
3182 | 3548 | shlibpath_var=LD_LIBRARY_PATH | ||
3183 | 3549 | ;; | ||
3184 | 3550 | |||
3185 | 3551 | *) | ||
3186 | 3552 | dynamic_linker=no | ||
3187 | 3553 | ;; | ||
3188 | 3554 | esac | ||
3189 | 3555 | AC_MSG_RESULT([$dynamic_linker]) | ||
3190 | 3556 | test "$dynamic_linker" = no && can_build_shared=no | ||
3191 | 3557 | |||
3192 | 3558 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
3193 | 3559 | if test "$GCC" = yes; then | ||
3194 | 3560 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
3195 | 3561 | fi | ||
3196 | 3562 | |||
3197 | 3563 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | ||
3198 | 3564 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | ||
3199 | 3565 | fi | ||
3200 | 3566 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | ||
3201 | 3567 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | ||
3202 | 3568 | fi | ||
3203 | 3569 | |||
3204 | 3570 | _LT_DECL([], [variables_saved_for_relink], [1], | ||
3205 | 3571 | [Variables whose values should be saved in libtool wrapper scripts and | ||
3206 | 3572 | restored at link time]) | ||
3207 | 3573 | _LT_DECL([], [need_lib_prefix], [0], | ||
3208 | 3574 | [Do we need the "lib" prefix for modules?]) | ||
3209 | 3575 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | ||
3210 | 3576 | _LT_DECL([], [version_type], [0], [Library versioning type]) | ||
3211 | 3577 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | ||
3212 | 3578 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | ||
3213 | 3579 | _LT_DECL([], [shlibpath_overrides_runpath], [0], | ||
3214 | 3580 | [Is shlibpath searched before the hard-coded library search path?]) | ||
3215 | 3581 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | ||
3216 | 3582 | _LT_DECL([], [library_names_spec], [1], | ||
3217 | 3583 | [[List of archive names. First name is the real one, the rest are links. | ||
3218 | 3584 | The last name is the one that the linker finds with -lNAME]]) | ||
3219 | 3585 | _LT_DECL([], [soname_spec], [1], | ||
3220 | 3586 | [[The coded name of the library, if different from the real name]]) | ||
3221 | 3587 | _LT_DECL([], [install_override_mode], [1], | ||
3222 | 3588 | [Permission mode override for installation of shared libraries]) | ||
3223 | 3589 | _LT_DECL([], [postinstall_cmds], [2], | ||
3224 | 3590 | [Command to use after installation of a shared archive]) | ||
3225 | 3591 | _LT_DECL([], [postuninstall_cmds], [2], | ||
3226 | 3592 | [Command to use after uninstallation of a shared archive]) | ||
3227 | 3593 | _LT_DECL([], [finish_cmds], [2], | ||
3228 | 3594 | [Commands used to finish a libtool library installation in a directory]) | ||
3229 | 3595 | _LT_DECL([], [finish_eval], [1], | ||
3230 | 3596 | [[As "finish_cmds", except a single script fragment to be evaled but | ||
3231 | 3597 | not shown]]) | ||
3232 | 3598 | _LT_DECL([], [hardcode_into_libs], [0], | ||
3233 | 3599 | [Whether we should hardcode library paths into libraries]) | ||
3234 | 3600 | _LT_DECL([], [sys_lib_search_path_spec], [2], | ||
3235 | 3601 | [Compile-time system search path for libraries]) | ||
3236 | 3602 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | ||
3237 | 3603 | [Run-time system search path for libraries]) | ||
3238 | 3604 | ])# _LT_SYS_DYNAMIC_LINKER | ||
3239 | 3605 | |||
3240 | 3606 | |||
3241 | 3607 | # _LT_PATH_TOOL_PREFIX(TOOL) | ||
3242 | 3608 | # -------------------------- | ||
3243 | 3609 | # find a file program which can recognize shared library | ||
3244 | 3610 | AC_DEFUN([_LT_PATH_TOOL_PREFIX], | ||
3245 | 3611 | [m4_require([_LT_DECL_EGREP])dnl | ||
3246 | 3612 | AC_MSG_CHECKING([for $1]) | ||
3247 | 3613 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3248 | 3614 | [case $MAGIC_CMD in | ||
3249 | 3615 | [[\\/*] | ?:[\\/]*]) | ||
3250 | 3616 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
3251 | 3617 | ;; | ||
3252 | 3618 | *) | ||
3253 | 3619 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
3254 | 3620 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3255 | 3621 | dnl $ac_dummy forces splitting on constant user-supplied paths. | ||
3256 | 3622 | dnl POSIX.2 word splitting is done only on the output of word expansions, | ||
3257 | 3623 | dnl not every word. This closes a longstanding sh security hole. | ||
3258 | 3624 | ac_dummy="m4_if([$2], , $PATH, [$2])" | ||
3259 | 3625 | for ac_dir in $ac_dummy; do | ||
3260 | 3626 | IFS="$lt_save_ifs" | ||
3261 | 3627 | test -z "$ac_dir" && ac_dir=. | ||
3262 | 3628 | if test -f $ac_dir/$1; then | ||
3263 | 3629 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3264 | 3630 | if test -n "$file_magic_test_file"; then | ||
3265 | 3631 | case $deplibs_check_method in | ||
3266 | 3632 | "file_magic "*) | ||
3267 | 3633 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
3268 | 3634 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3269 | 3635 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
3270 | 3636 | $EGREP "$file_magic_regex" > /dev/null; then | ||
3271 | 3637 | : | ||
3272 | 3638 | else | ||
3273 | 3639 | cat <<_LT_EOF 1>&2 | ||
3274 | 3640 | |||
3275 | 3641 | *** Warning: the command libtool uses to detect shared libraries, | ||
3276 | 3642 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
3277 | 3643 | *** The result is that libtool may fail to recognize shared libraries | ||
3278 | 3644 | *** as such. This will affect the creation of libtool libraries that | ||
3279 | 3645 | *** depend on shared libraries, but programs linked with such libtool | ||
3280 | 3646 | *** libraries will work regardless of this problem. Nevertheless, you | ||
3281 | 3647 | *** may want to report the problem to your system manager and/or to | ||
3282 | 3648 | *** bug-libtool@gnu.org | ||
3283 | 3649 | |||
3284 | 3650 | _LT_EOF | ||
3285 | 3651 | fi ;; | ||
3286 | 3652 | esac | ||
3287 | 3653 | fi | ||
3288 | 3654 | break | ||
3289 | 3655 | fi | ||
3290 | 3656 | done | ||
3291 | 3657 | IFS="$lt_save_ifs" | ||
3292 | 3658 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
3293 | 3659 | ;; | ||
3294 | 3660 | esac]) | ||
3295 | 3661 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3296 | 3662 | if test -n "$MAGIC_CMD"; then | ||
3297 | 3663 | AC_MSG_RESULT($MAGIC_CMD) | ||
3298 | 3664 | else | ||
3299 | 3665 | AC_MSG_RESULT(no) | ||
3300 | 3666 | fi | ||
3301 | 3667 | _LT_DECL([], [MAGIC_CMD], [0], | ||
3302 | 3668 | [Used to examine libraries when file_magic_cmd begins with "file"])dnl | ||
3303 | 3669 | ])# _LT_PATH_TOOL_PREFIX | ||
3304 | 3670 | |||
3305 | 3671 | # Old name: | ||
3306 | 3672 | AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | ||
3307 | 3673 | dnl aclocal-1.4 backwards compatibility: | ||
3308 | 3674 | dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | ||
3309 | 3675 | |||
3310 | 3676 | |||
3311 | 3677 | # _LT_PATH_MAGIC | ||
3312 | 3678 | # -------------- | ||
3313 | 3679 | # find a file program which can recognize a shared library | ||
3314 | 3680 | m4_defun([_LT_PATH_MAGIC], | ||
3315 | 3681 | [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3316 | 3682 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
3317 | 3683 | if test -n "$ac_tool_prefix"; then | ||
3318 | 3684 | _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3319 | 3685 | else | ||
3320 | 3686 | MAGIC_CMD=: | ||
3321 | 3687 | fi | ||
3322 | 3688 | fi | ||
3323 | 3689 | ])# _LT_PATH_MAGIC | ||
3324 | 3690 | |||
3325 | 3691 | |||
3326 | 3692 | # LT_PATH_LD | ||
3327 | 3693 | # ---------- | ||
3328 | 3694 | # find the pathname to the GNU or non-GNU linker | ||
3329 | 3695 | AC_DEFUN([LT_PATH_LD], | ||
3330 | 3696 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
3331 | 3697 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3332 | 3698 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | ||
3333 | 3699 | m4_require([_LT_DECL_SED])dnl | ||
3334 | 3700 | m4_require([_LT_DECL_EGREP])dnl | ||
3335 | 3701 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | ||
3336 | 3702 | |||
3337 | 3703 | AC_ARG_WITH([gnu-ld], | ||
3338 | 3704 | [AS_HELP_STRING([--with-gnu-ld], | ||
3339 | 3705 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
3340 | 3706 | [test "$withval" = no || with_gnu_ld=yes], | ||
3341 | 3707 | [with_gnu_ld=no])dnl | ||
3342 | 3708 | |||
3343 | 3709 | ac_prog=ld | ||
3344 | 3710 | if test "$GCC" = yes; then | ||
3345 | 3711 | # Check if gcc -print-prog-name=ld gives a path. | ||
3346 | 3712 | AC_MSG_CHECKING([for ld used by $CC]) | ||
3347 | 3713 | case $host in | ||
3348 | 3714 | *-*-mingw*) | ||
3349 | 3715 | # gcc leaves a trailing carriage return which upsets mingw | ||
3350 | 3716 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3351 | 3717 | *) | ||
3352 | 3718 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3353 | 3719 | esac | ||
3354 | 3720 | case $ac_prog in | ||
3355 | 3721 | # Accept absolute paths. | ||
3356 | 3722 | [[\\/]]* | ?:[[\\/]]*) | ||
3357 | 3723 | re_direlt='/[[^/]][[^/]]*/\.\./' | ||
3358 | 3724 | # Canonicalize the pathname of ld | ||
3359 | 3725 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | ||
3360 | 3726 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | ||
3361 | 3727 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | ||
3362 | 3728 | done | ||
3363 | 3729 | test -z "$LD" && LD="$ac_prog" | ||
3364 | 3730 | ;; | ||
3365 | 3731 | "") | ||
3366 | 3732 | # If it fails, then pretend we aren't using GCC. | ||
3367 | 3733 | ac_prog=ld | ||
3368 | 3734 | ;; | ||
3369 | 3735 | *) | ||
3370 | 3736 | # If it is relative, then search for the first ld in PATH. | ||
3371 | 3737 | with_gnu_ld=unknown | ||
3372 | 3738 | ;; | ||
3373 | 3739 | esac | ||
3374 | 3740 | elif test "$with_gnu_ld" = yes; then | ||
3375 | 3741 | AC_MSG_CHECKING([for GNU ld]) | ||
3376 | 3742 | else | ||
3377 | 3743 | AC_MSG_CHECKING([for non-GNU ld]) | ||
3378 | 3744 | fi | ||
3379 | 3745 | AC_CACHE_VAL(lt_cv_path_LD, | ||
3380 | 3746 | [if test -z "$LD"; then | ||
3381 | 3747 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3382 | 3748 | for ac_dir in $PATH; do | ||
3383 | 3749 | IFS="$lt_save_ifs" | ||
3384 | 3750 | test -z "$ac_dir" && ac_dir=. | ||
3385 | 3751 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
3386 | 3752 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
3387 | 3753 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
3388 | 3754 | # but apparently some variants of GNU ld only accept -v. | ||
3389 | 3755 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
3390 | 3756 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
3391 | 3757 | *GNU* | *'with BFD'*) | ||
3392 | 3758 | test "$with_gnu_ld" != no && break | ||
3393 | 3759 | ;; | ||
3394 | 3760 | *) | ||
3395 | 3761 | test "$with_gnu_ld" != yes && break | ||
3396 | 3762 | ;; | ||
3397 | 3763 | esac | ||
3398 | 3764 | fi | ||
3399 | 3765 | done | ||
3400 | 3766 | IFS="$lt_save_ifs" | ||
3401 | 3767 | else | ||
3402 | 3768 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
3403 | 3769 | fi]) | ||
3404 | 3770 | LD="$lt_cv_path_LD" | ||
3405 | 3771 | if test -n "$LD"; then | ||
3406 | 3772 | AC_MSG_RESULT($LD) | ||
3407 | 3773 | else | ||
3408 | 3774 | AC_MSG_RESULT(no) | ||
3409 | 3775 | fi | ||
3410 | 3776 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
3411 | 3777 | _LT_PATH_LD_GNU | ||
3412 | 3778 | AC_SUBST([LD]) | ||
3413 | 3779 | |||
3414 | 3780 | _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | ||
3415 | 3781 | ])# LT_PATH_LD | ||
3416 | 3782 | |||
3417 | 3783 | # Old names: | ||
3418 | 3784 | AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | ||
3419 | 3785 | AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | ||
3420 | 3786 | dnl aclocal-1.4 backwards compatibility: | ||
3421 | 3787 | dnl AC_DEFUN([AM_PROG_LD], []) | ||
3422 | 3788 | dnl AC_DEFUN([AC_PROG_LD], []) | ||
3423 | 3789 | |||
3424 | 3790 | |||
3425 | 3791 | # _LT_PATH_LD_GNU | ||
3426 | 3792 | #- -------------- | ||
3427 | 3793 | m4_defun([_LT_PATH_LD_GNU], | ||
3428 | 3794 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | ||
3429 | 3795 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | ||
3430 | 3796 | case `$LD -v 2>&1 </dev/null` in | ||
3431 | 3797 | *GNU* | *'with BFD'*) | ||
3432 | 3798 | lt_cv_prog_gnu_ld=yes | ||
3433 | 3799 | ;; | ||
3434 | 3800 | *) | ||
3435 | 3801 | lt_cv_prog_gnu_ld=no | ||
3436 | 3802 | ;; | ||
3437 | 3803 | esac]) | ||
3438 | 3804 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3439 | 3805 | ])# _LT_PATH_LD_GNU | ||
3440 | 3806 | |||
3441 | 3807 | |||
3442 | 3808 | # _LT_CMD_RELOAD | ||
3443 | 3809 | # -------------- | ||
3444 | 3810 | # find reload flag for linker | ||
3445 | 3811 | # -- PORTME Some linkers may need a different reload flag. | ||
3446 | 3812 | m4_defun([_LT_CMD_RELOAD], | ||
3447 | 3813 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
3448 | 3814 | lt_cv_ld_reload_flag, | ||
3449 | 3815 | [lt_cv_ld_reload_flag='-r']) | ||
3450 | 3816 | reload_flag=$lt_cv_ld_reload_flag | ||
3451 | 3817 | case $reload_flag in | ||
3452 | 3818 | "" | " "*) ;; | ||
3453 | 3819 | *) reload_flag=" $reload_flag" ;; | ||
3454 | 3820 | esac | ||
3455 | 3821 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3456 | 3822 | case $host_os in | ||
3457 | 3823 | cygwin* | mingw* | pw32* | cegcc*) | ||
3458 | 3824 | if test "$GCC" != yes; then | ||
3459 | 3825 | reload_cmds=false | ||
3460 | 3826 | fi | ||
3461 | 3827 | ;; | ||
3462 | 3828 | darwin*) | ||
3463 | 3829 | if test "$GCC" = yes; then | ||
3464 | 3830 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
3465 | 3831 | else | ||
3466 | 3832 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3467 | 3833 | fi | ||
3468 | 3834 | ;; | ||
3469 | 3835 | esac | ||
3470 | 3836 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | ||
3471 | 3837 | _LT_TAGDECL([], [reload_cmds], [2])dnl | ||
3472 | 3838 | ])# _LT_CMD_RELOAD | ||
3473 | 3839 | |||
3474 | 3840 | |||
3475 | 3841 | # _LT_CHECK_MAGIC_METHOD | ||
3476 | 3842 | # ---------------------- | ||
3477 | 3843 | # how to check for library dependencies | ||
3478 | 3844 | # -- PORTME fill in with the dynamic library characteristics | ||
3479 | 3845 | m4_defun([_LT_CHECK_MAGIC_METHOD], | ||
3480 | 3846 | [m4_require([_LT_DECL_EGREP]) | ||
3481 | 3847 | m4_require([_LT_DECL_OBJDUMP]) | ||
3482 | 3848 | AC_CACHE_CHECK([how to recognize dependent libraries], | ||
3483 | 3849 | lt_cv_deplibs_check_method, | ||
3484 | 3850 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3485 | 3851 | lt_cv_file_magic_test_file= | ||
3486 | 3852 | lt_cv_deplibs_check_method='unknown' | ||
3487 | 3853 | # Need to set the preceding variable on all platforms that support | ||
3488 | 3854 | # interlibrary dependencies. | ||
3489 | 3855 | # 'none' -- dependencies not supported. | ||
3490 | 3856 | # `unknown' -- same as none, but documents that we really don't know. | ||
3491 | 3857 | # 'pass_all' -- all dependencies passed with no checks. | ||
3492 | 3858 | # 'test_compile' -- check by making test program. | ||
3493 | 3859 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3494 | 3860 | # which responds to the $file_magic_cmd with a given extended regex. | ||
3495 | 3861 | # If you have `file' or equivalent on your system and you're not sure | ||
3496 | 3862 | # whether `pass_all' will *always* work, you probably want this one. | ||
3497 | 3863 | |||
3498 | 3864 | case $host_os in | ||
3499 | 3865 | aix[[4-9]]*) | ||
3500 | 3866 | lt_cv_deplibs_check_method=pass_all | ||
3501 | 3867 | ;; | ||
3502 | 3868 | |||
3503 | 3869 | beos*) | ||
3504 | 3870 | lt_cv_deplibs_check_method=pass_all | ||
3505 | 3871 | ;; | ||
3506 | 3872 | |||
3507 | 3873 | bsdi[[45]]*) | ||
3508 | 3874 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
3509 | 3875 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3510 | 3876 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3511 | 3877 | ;; | ||
3512 | 3878 | |||
3513 | 3879 | cygwin*) | ||
3514 | 3880 | # func_win32_libid is a shell function defined in ltmain.sh | ||
3515 | 3881 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3516 | 3882 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3517 | 3883 | ;; | ||
3518 | 3884 | |||
3519 | 3885 | mingw* | pw32*) | ||
3520 | 3886 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
3521 | 3887 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | ||
3522 | 3888 | # unless we find 'file', for example because we are cross-compiling. | ||
3523 | 3889 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | ||
3524 | 3890 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | ||
3525 | 3891 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3526 | 3892 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3527 | 3893 | else | ||
3528 | 3894 | # Keep this pattern in sync with the one in func_win32_libid. | ||
3529 | 3895 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | ||
3530 | 3896 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3531 | 3897 | fi | ||
3532 | 3898 | ;; | ||
3533 | 3899 | |||
3534 | 3900 | cegcc*) | ||
3535 | 3901 | # use the weaker test based on 'objdump'. See mingw*. | ||
3536 | 3902 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | ||
3537 | 3903 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3538 | 3904 | ;; | ||
3539 | 3905 | |||
3540 | 3906 | darwin* | rhapsody*) | ||
3541 | 3907 | lt_cv_deplibs_check_method=pass_all | ||
3542 | 3908 | ;; | ||
3543 | 3909 | |||
3544 | 3910 | freebsd* | dragonfly*) | ||
3545 | 3911 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
3546 | 3912 | case $host_cpu in | ||
3547 | 3913 | i*86 ) | ||
3548 | 3914 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3549 | 3915 | # Let's accept both of them until this is cleared up. | ||
3550 | 3916 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
3551 | 3917 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3552 | 3918 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3553 | 3919 | ;; | ||
3554 | 3920 | esac | ||
3555 | 3921 | else | ||
3556 | 3922 | lt_cv_deplibs_check_method=pass_all | ||
3557 | 3923 | fi | ||
3558 | 3924 | ;; | ||
3559 | 3925 | |||
3560 | 3926 | gnu*) | ||
3561 | 3927 | lt_cv_deplibs_check_method=pass_all | ||
3562 | 3928 | ;; | ||
3563 | 3929 | |||
3564 | 3930 | haiku*) | ||
3565 | 3931 | lt_cv_deplibs_check_method=pass_all | ||
3566 | 3932 | ;; | ||
3567 | 3933 | |||
3568 | 3934 | hpux10.20* | hpux11*) | ||
3569 | 3935 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3570 | 3936 | case $host_cpu in | ||
3571 | 3937 | ia64*) | ||
3572 | 3938 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
3573 | 3939 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
3574 | 3940 | ;; | ||
3575 | 3941 | hppa*64*) | ||
3576 | 3942 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] | ||
3577 | 3943 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
3578 | 3944 | ;; | ||
3579 | 3945 | *) | ||
3580 | 3946 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | ||
3581 | 3947 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3582 | 3948 | ;; | ||
3583 | 3949 | esac | ||
3584 | 3950 | ;; | ||
3585 | 3951 | |||
3586 | 3952 | interix[[3-9]]*) | ||
3587 | 3953 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
3588 | 3954 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
3589 | 3955 | ;; | ||
3590 | 3956 | |||
3591 | 3957 | irix5* | irix6* | nonstopux*) | ||
3592 | 3958 | case $LD in | ||
3593 | 3959 | *-32|*"-32 ") libmagic=32-bit;; | ||
3594 | 3960 | *-n32|*"-n32 ") libmagic=N32;; | ||
3595 | 3961 | *-64|*"-64 ") libmagic=64-bit;; | ||
3596 | 3962 | *) libmagic=never-match;; | ||
3597 | 3963 | esac | ||
3598 | 3964 | lt_cv_deplibs_check_method=pass_all | ||
3599 | 3965 | ;; | ||
3600 | 3966 | |||
3601 | 3967 | # This must be Linux ELF. | ||
3602 | 3968 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
3603 | 3969 | lt_cv_deplibs_check_method=pass_all | ||
3604 | 3970 | ;; | ||
3605 | 3971 | |||
3606 | 3972 | netbsd* | netbsdelf*-gnu) | ||
3607 | 3973 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | ||
3608 | 3974 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3609 | 3975 | else | ||
3610 | 3976 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
3611 | 3977 | fi | ||
3612 | 3978 | ;; | ||
3613 | 3979 | |||
3614 | 3980 | newos6*) | ||
3615 | 3981 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
3616 | 3982 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3617 | 3983 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3618 | 3984 | ;; | ||
3619 | 3985 | |||
3620 | 3986 | *nto* | *qnx*) | ||
3621 | 3987 | lt_cv_deplibs_check_method=pass_all | ||
3622 | 3988 | ;; | ||
3623 | 3989 | |||
3624 | 3990 | openbsd*) | ||
3625 | 3991 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3626 | 3992 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
3627 | 3993 | else | ||
3628 | 3994 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3629 | 3995 | fi | ||
3630 | 3996 | ;; | ||
3631 | 3997 | |||
3632 | 3998 | osf3* | osf4* | osf5*) | ||
3633 | 3999 | lt_cv_deplibs_check_method=pass_all | ||
3634 | 4000 | ;; | ||
3635 | 4001 | |||
3636 | 4002 | rdos*) | ||
3637 | 4003 | lt_cv_deplibs_check_method=pass_all | ||
3638 | 4004 | ;; | ||
3639 | 4005 | |||
3640 | 4006 | solaris*) | ||
3641 | 4007 | lt_cv_deplibs_check_method=pass_all | ||
3642 | 4008 | ;; | ||
3643 | 4009 | |||
3644 | 4010 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3645 | 4011 | lt_cv_deplibs_check_method=pass_all | ||
3646 | 4012 | ;; | ||
3647 | 4013 | |||
3648 | 4014 | sysv4 | sysv4.3*) | ||
3649 | 4015 | case $host_vendor in | ||
3650 | 4016 | motorola) | ||
3651 | 4017 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | ||
3652 | 4018 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3653 | 4019 | ;; | ||
3654 | 4020 | ncr) | ||
3655 | 4021 | lt_cv_deplibs_check_method=pass_all | ||
3656 | 4022 | ;; | ||
3657 | 4023 | sequent) | ||
3658 | 4024 | lt_cv_file_magic_cmd='/bin/file' | ||
3659 | 4025 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
3660 | 4026 | ;; | ||
3661 | 4027 | sni) | ||
3662 | 4028 | lt_cv_file_magic_cmd='/bin/file' | ||
3663 | 4029 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
3664 | 4030 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3665 | 4031 | ;; | ||
3666 | 4032 | siemens) | ||
3667 | 4033 | lt_cv_deplibs_check_method=pass_all | ||
3668 | 4034 | ;; | ||
3669 | 4035 | pc) | ||
3670 | 4036 | lt_cv_deplibs_check_method=pass_all | ||
3671 | 4037 | ;; | ||
3672 | 4038 | esac | ||
3673 | 4039 | ;; | ||
3674 | 4040 | |||
3675 | 4041 | tpf*) | ||
3676 | 4042 | lt_cv_deplibs_check_method=pass_all | ||
3677 | 4043 | ;; | ||
3678 | 4044 | esac | ||
3679 | 4045 | ]) | ||
3680 | 4046 | |||
3681 | 4047 | file_magic_glob= | ||
3682 | 4048 | want_nocaseglob=no | ||
3683 | 4049 | if test "$build" = "$host"; then | ||
3684 | 4050 | case $host_os in | ||
3685 | 4051 | mingw* | pw32*) | ||
3686 | 4052 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | ||
3687 | 4053 | want_nocaseglob=yes | ||
3688 | 4054 | else | ||
3689 | 4055 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | ||
3690 | 4056 | fi | ||
3691 | 4057 | ;; | ||
3692 | 4058 | esac | ||
3693 | 4059 | fi | ||
3694 | 4060 | |||
3695 | 4061 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3696 | 4062 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3697 | 4063 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
3698 | 4064 | |||
3699 | 4065 | _LT_DECL([], [deplibs_check_method], [1], | ||
3700 | 4066 | [Method to check whether dependent libraries are shared objects]) | ||
3701 | 4067 | _LT_DECL([], [file_magic_cmd], [1], | ||
3702 | 4068 | [Command to use when deplibs_check_method = "file_magic"]) | ||
3703 | 4069 | _LT_DECL([], [file_magic_glob], [1], | ||
3704 | 4070 | [How to find potential files when deplibs_check_method = "file_magic"]) | ||
3705 | 4071 | _LT_DECL([], [want_nocaseglob], [1], | ||
3706 | 4072 | [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | ||
3707 | 4073 | ])# _LT_CHECK_MAGIC_METHOD | ||
3708 | 4074 | |||
3709 | 4075 | |||
3710 | 4076 | # LT_PATH_NM | ||
3711 | 4077 | # ---------- | ||
3712 | 4078 | # find the pathname to a BSD- or MS-compatible name lister | ||
3713 | 4079 | AC_DEFUN([LT_PATH_NM], | ||
3714 | 4080 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
3715 | 4081 | AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | ||
3716 | 4082 | [if test -n "$NM"; then | ||
3717 | 4083 | # Let the user override the test. | ||
3718 | 4084 | lt_cv_path_NM="$NM" | ||
3719 | 4085 | else | ||
3720 | 4086 | lt_nm_to_check="${ac_tool_prefix}nm" | ||
3721 | 4087 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | ||
3722 | 4088 | lt_nm_to_check="$lt_nm_to_check nm" | ||
3723 | 4089 | fi | ||
3724 | 4090 | for lt_tmp_nm in $lt_nm_to_check; do | ||
3725 | 4091 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3726 | 4092 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | ||
3727 | 4093 | IFS="$lt_save_ifs" | ||
3728 | 4094 | test -z "$ac_dir" && ac_dir=. | ||
3729 | 4095 | tmp_nm="$ac_dir/$lt_tmp_nm" | ||
3730 | 4096 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
3731 | 4097 | # Check to see if the nm accepts a BSD-compat flag. | ||
3732 | 4098 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
3733 | 4099 | # nm: unknown option "B" ignored | ||
3734 | 4100 | # Tru64's nm complains that /dev/null is an invalid object file | ||
3735 | 4101 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
3736 | 4102 | */dev/null* | *'Invalid file or object type'*) | ||
3737 | 4103 | lt_cv_path_NM="$tmp_nm -B" | ||
3738 | 4104 | break | ||
3739 | 4105 | ;; | ||
3740 | 4106 | *) | ||
3741 | 4107 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
3742 | 4108 | */dev/null*) | ||
3743 | 4109 | lt_cv_path_NM="$tmp_nm -p" | ||
3744 | 4110 | break | ||
3745 | 4111 | ;; | ||
3746 | 4112 | *) | ||
3747 | 4113 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3748 | 4114 | continue # so that we can try to find one that supports BSD flags | ||
3749 | 4115 | ;; | ||
3750 | 4116 | esac | ||
3751 | 4117 | ;; | ||
3752 | 4118 | esac | ||
3753 | 4119 | fi | ||
3754 | 4120 | done | ||
3755 | 4121 | IFS="$lt_save_ifs" | ||
3756 | 4122 | done | ||
3757 | 4123 | : ${lt_cv_path_NM=no} | ||
3758 | 4124 | fi]) | ||
3759 | 4125 | if test "$lt_cv_path_NM" != "no"; then | ||
3760 | 4126 | NM="$lt_cv_path_NM" | ||
3761 | 4127 | else | ||
3762 | 4128 | # Didn't find any BSD compatible name lister, look for dumpbin. | ||
3763 | 4129 | if test -n "$DUMPBIN"; then : | ||
3764 | 4130 | # Let the user override the test. | ||
3765 | 4131 | else | ||
3766 | 4132 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | ||
3767 | 4133 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | ||
3768 | 4134 | *COFF*) | ||
3769 | 4135 | DUMPBIN="$DUMPBIN -symbols" | ||
3770 | 4136 | ;; | ||
3771 | 4137 | *) | ||
3772 | 4138 | DUMPBIN=: | ||
3773 | 4139 | ;; | ||
3774 | 4140 | esac | ||
3775 | 4141 | fi | ||
3776 | 4142 | AC_SUBST([DUMPBIN]) | ||
3777 | 4143 | if test "$DUMPBIN" != ":"; then | ||
3778 | 4144 | NM="$DUMPBIN" | ||
3779 | 4145 | fi | ||
3780 | 4146 | fi | ||
3781 | 4147 | test -z "$NM" && NM=nm | ||
3782 | 4148 | AC_SUBST([NM]) | ||
3783 | 4149 | _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | ||
3784 | 4150 | |||
3785 | 4151 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | ||
3786 | 4152 | [lt_cv_nm_interface="BSD nm" | ||
3787 | 4153 | echo "int some_variable = 0;" > conftest.$ac_ext | ||
3788 | 4154 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | ||
3789 | 4155 | (eval "$ac_compile" 2>conftest.err) | ||
3790 | 4156 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3791 | 4157 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | ||
3792 | 4158 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | ||
3793 | 4159 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3794 | 4160 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | ||
3795 | 4161 | cat conftest.out >&AS_MESSAGE_LOG_FD | ||
3796 | 4162 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | ||
3797 | 4163 | lt_cv_nm_interface="MS dumpbin" | ||
3798 | 4164 | fi | ||
3799 | 4165 | rm -f conftest*]) | ||
3800 | 4166 | ])# LT_PATH_NM | ||
3801 | 4167 | |||
3802 | 4168 | # Old names: | ||
3803 | 4169 | AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | ||
3804 | 4170 | AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | ||
3805 | 4171 | dnl aclocal-1.4 backwards compatibility: | ||
3806 | 4172 | dnl AC_DEFUN([AM_PROG_NM], []) | ||
3807 | 4173 | dnl AC_DEFUN([AC_PROG_NM], []) | ||
3808 | 4174 | |||
3809 | 4175 | # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
3810 | 4176 | # -------------------------------- | ||
3811 | 4177 | # how to determine the name of the shared library | ||
3812 | 4178 | # associated with a specific link library. | ||
3813 | 4179 | # -- PORTME fill in with the dynamic library characteristics | ||
3814 | 4180 | m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | ||
3815 | 4181 | [m4_require([_LT_DECL_EGREP]) | ||
3816 | 4182 | m4_require([_LT_DECL_OBJDUMP]) | ||
3817 | 4183 | m4_require([_LT_DECL_DLLTOOL]) | ||
3818 | 4184 | AC_CACHE_CHECK([how to associate runtime and link libraries], | ||
3819 | 4185 | lt_cv_sharedlib_from_linklib_cmd, | ||
3820 | 4186 | [lt_cv_sharedlib_from_linklib_cmd='unknown' | ||
3821 | 4187 | |||
3822 | 4188 | case $host_os in | ||
3823 | 4189 | cygwin* | mingw* | pw32* | cegcc*) | ||
3824 | 4190 | # two different shell functions defined in ltmain.sh | ||
3825 | 4191 | # decide which to use based on capabilities of $DLLTOOL | ||
3826 | 4192 | case `$DLLTOOL --help 2>&1` in | ||
3827 | 4193 | *--identify-strict*) | ||
3828 | 4194 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | ||
3829 | 4195 | ;; | ||
3830 | 4196 | *) | ||
3831 | 4197 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | ||
3832 | 4198 | ;; | ||
3833 | 4199 | esac | ||
3834 | 4200 | ;; | ||
3835 | 4201 | *) | ||
3836 | 4202 | # fallback: assume linklib IS sharedlib | ||
3837 | 4203 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | ||
3838 | 4204 | ;; | ||
3839 | 4205 | esac | ||
3840 | 4206 | ]) | ||
3841 | 4207 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | ||
3842 | 4208 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | ||
3843 | 4209 | |||
3844 | 4210 | _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | ||
3845 | 4211 | [Command to associate shared and link libraries]) | ||
3846 | 4212 | ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | ||
3847 | 4213 | |||
3848 | 4214 | |||
3849 | 4215 | # _LT_PATH_MANIFEST_TOOL | ||
3850 | 4216 | # ---------------------- | ||
3851 | 4217 | # locate the manifest tool | ||
3852 | 4218 | m4_defun([_LT_PATH_MANIFEST_TOOL], | ||
3853 | 4219 | [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | ||
3854 | 4220 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | ||
3855 | 4221 | AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | ||
3856 | 4222 | [lt_cv_path_mainfest_tool=no | ||
3857 | 4223 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | ||
3858 | 4224 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | ||
3859 | 4225 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
3860 | 4226 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | ||
3861 | 4227 | lt_cv_path_mainfest_tool=yes | ||
3862 | 4228 | fi | ||
3863 | 4229 | rm -f conftest*]) | ||
3864 | 4230 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | ||
3865 | 4231 | MANIFEST_TOOL=: | ||
3866 | 4232 | fi | ||
3867 | 4233 | _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | ||
3868 | 4234 | ])# _LT_PATH_MANIFEST_TOOL | ||
3869 | 4235 | |||
3870 | 4236 | |||
3871 | 4237 | # LT_LIB_M | ||
3872 | 4238 | # -------- | ||
3873 | 4239 | # check for math library | ||
3874 | 4240 | AC_DEFUN([LT_LIB_M], | ||
3875 | 4241 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3876 | 4242 | LIBM= | ||
3877 | 4243 | case $host in | ||
3878 | 4244 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | ||
3879 | 4245 | # These system don't have libm, or don't need it | ||
3880 | 4246 | ;; | ||
3881 | 4247 | *-ncr-sysv4.3*) | ||
3882 | 4248 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | ||
3883 | 4249 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | ||
3884 | 4250 | ;; | ||
3885 | 4251 | *) | ||
3886 | 4252 | AC_CHECK_LIB(m, cos, LIBM="-lm") | ||
3887 | 4253 | ;; | ||
3888 | 4254 | esac | ||
3889 | 4255 | AC_SUBST([LIBM]) | ||
3890 | 4256 | ])# LT_LIB_M | ||
3891 | 4257 | |||
3892 | 4258 | # Old name: | ||
3893 | 4259 | AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | ||
3894 | 4260 | dnl aclocal-1.4 backwards compatibility: | ||
3895 | 4261 | dnl AC_DEFUN([AC_CHECK_LIBM], []) | ||
3896 | 4262 | |||
3897 | 4263 | |||
3898 | 4264 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | ||
3899 | 4265 | # ------------------------------- | ||
3900 | 4266 | m4_defun([_LT_COMPILER_NO_RTTI], | ||
3901 | 4267 | [m4_require([_LT_TAG_COMPILER])dnl | ||
3902 | 4268 | |||
3903 | 4269 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3904 | 4270 | |||
3905 | 4271 | if test "$GCC" = yes; then | ||
3906 | 4272 | case $cc_basename in | ||
3907 | 4273 | nvcc*) | ||
3908 | 4274 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | ||
3909 | 4275 | *) | ||
3910 | 4276 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | ||
3911 | 4277 | esac | ||
3912 | 4278 | |||
3913 | 4279 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
3914 | 4280 | lt_cv_prog_compiler_rtti_exceptions, | ||
3915 | 4281 | [-fno-rtti -fno-exceptions], [], | ||
3916 | 4282 | [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
3917 | 4283 | fi | ||
3918 | 4284 | _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | ||
3919 | 4285 | [Compiler flag to turn off builtin functions]) | ||
3920 | 4286 | ])# _LT_COMPILER_NO_RTTI | ||
3921 | 4287 | |||
3922 | 4288 | |||
3923 | 4289 | # _LT_CMD_GLOBAL_SYMBOLS | ||
3924 | 4290 | # ---------------------- | ||
3925 | 4291 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | ||
3926 | 4292 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
3927 | 4293 | AC_REQUIRE([AC_PROG_CC])dnl | ||
3928 | 4294 | AC_REQUIRE([AC_PROG_AWK])dnl | ||
3929 | 4295 | AC_REQUIRE([LT_PATH_NM])dnl | ||
3930 | 4296 | AC_REQUIRE([LT_PATH_LD])dnl | ||
3931 | 4297 | m4_require([_LT_DECL_SED])dnl | ||
3932 | 4298 | m4_require([_LT_DECL_EGREP])dnl | ||
3933 | 4299 | m4_require([_LT_TAG_COMPILER])dnl | ||
3934 | 4300 | |||
3935 | 4301 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
3936 | 4302 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
3937 | 4303 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
3938 | 4304 | [ | ||
3939 | 4305 | # These are sane defaults that work on at least a few old systems. | ||
3940 | 4306 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
3941 | 4307 | |||
3942 | 4308 | # Character class describing NM global symbol codes. | ||
3943 | 4309 | symcode='[[BCDEGRST]]' | ||
3944 | 4310 | |||
3945 | 4311 | # Regexp to match symbols that can be accessed directly from C. | ||
3946 | 4312 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
3947 | 4313 | |||
3948 | 4314 | # Define system-specific variables. | ||
3949 | 4315 | case $host_os in | ||
3950 | 4316 | aix*) | ||
3951 | 4317 | symcode='[[BCDT]]' | ||
3952 | 4318 | ;; | ||
3953 | 4319 | cygwin* | mingw* | pw32* | cegcc*) | ||
3954 | 4320 | symcode='[[ABCDGISTW]]' | ||
3955 | 4321 | ;; | ||
3956 | 4322 | hpux*) | ||
3957 | 4323 | if test "$host_cpu" = ia64; then | ||
3958 | 4324 | symcode='[[ABCDEGRST]]' | ||
3959 | 4325 | fi | ||
3960 | 4326 | ;; | ||
3961 | 4327 | irix* | nonstopux*) | ||
3962 | 4328 | symcode='[[BCDEGRST]]' | ||
3963 | 4329 | ;; | ||
3964 | 4330 | osf*) | ||
3965 | 4331 | symcode='[[BCDEGQRST]]' | ||
3966 | 4332 | ;; | ||
3967 | 4333 | solaris*) | ||
3968 | 4334 | symcode='[[BDRT]]' | ||
3969 | 4335 | ;; | ||
3970 | 4336 | sco3.2v5*) | ||
3971 | 4337 | symcode='[[DT]]' | ||
3972 | 4338 | ;; | ||
3973 | 4339 | sysv4.2uw2*) | ||
3974 | 4340 | symcode='[[DT]]' | ||
3975 | 4341 | ;; | ||
3976 | 4342 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
3977 | 4343 | symcode='[[ABDT]]' | ||
3978 | 4344 | ;; | ||
3979 | 4345 | sysv4) | ||
3980 | 4346 | symcode='[[DFNSTU]]' | ||
3981 | 4347 | ;; | ||
3982 | 4348 | esac | ||
3983 | 4349 | |||
3984 | 4350 | # If we're using GNU nm, then use its standard symbol codes. | ||
3985 | 4351 | case `$NM -V 2>&1` in | ||
3986 | 4352 | *GNU* | *'with BFD'*) | ||
3987 | 4353 | symcode='[[ABCDGIRSTW]]' ;; | ||
3988 | 4354 | esac | ||
3989 | 4355 | |||
3990 | 4356 | # Transform an extracted symbol line into a proper C declaration. | ||
3991 | 4357 | # Some systems (esp. on ia64) link data and code symbols differently, | ||
3992 | 4358 | # so use this general approach. | ||
3993 | 4359 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
3994 | 4360 | |||
3995 | 4361 | # Transform an extracted symbol line into symbol name and symbol address | ||
3996 | 4362 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | ||
3997 | 4363 | 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'" | ||
3998 | 4364 | |||
3999 | 4365 | # Handle CRLF in mingw tool chain | ||
4000 | 4366 | opt_cr= | ||
4001 | 4367 | case $build_os in | ||
4002 | 4368 | mingw*) | ||
4003 | 4369 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
4004 | 4370 | ;; | ||
4005 | 4371 | esac | ||
4006 | 4372 | |||
4007 | 4373 | # Try without a prefix underscore, then with it. | ||
4008 | 4374 | for ac_symprfx in "" "_"; do | ||
4009 | 4375 | |||
4010 | 4376 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
4011 | 4377 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
4012 | 4378 | |||
4013 | 4379 | # Write the raw and C identifiers. | ||
4014 | 4380 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4015 | 4381 | # Fake it for dumpbin and say T for any non-static function | ||
4016 | 4382 | # and D for any global variable. | ||
4017 | 4383 | # Also find C++ and __fastcall symbols from MSVC++, | ||
4018 | 4384 | # which start with @ or ?. | ||
4019 | 4385 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | ||
4020 | 4386 | " {last_section=section; section=\$ 3};"\ | ||
4021 | 4387 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | ||
4022 | 4388 | " \$ 0!~/External *\|/{next};"\ | ||
4023 | 4389 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | ||
4024 | 4390 | " {if(hide[section]) next};"\ | ||
4025 | 4391 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | ||
4026 | 4392 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | ||
4027 | 4393 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | ||
4028 | 4394 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | ||
4029 | 4395 | " ' prfx=^$ac_symprfx]" | ||
4030 | 4396 | else | ||
4031 | 4397 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
4032 | 4398 | fi | ||
4033 | 4399 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | ||
4034 | 4400 | |||
4035 | 4401 | # Check to see that the pipe works correctly. | ||
4036 | 4402 | pipe_works=no | ||
4037 | 4403 | |||
4038 | 4404 | rm -f conftest* | ||
4039 | 4405 | cat > conftest.$ac_ext <<_LT_EOF | ||
4040 | 4406 | #ifdef __cplusplus | ||
4041 | 4407 | extern "C" { | ||
4042 | 4408 | #endif | ||
4043 | 4409 | char nm_test_var; | ||
4044 | 4410 | void nm_test_func(void); | ||
4045 | 4411 | void nm_test_func(void){} | ||
4046 | 4412 | #ifdef __cplusplus | ||
4047 | 4413 | } | ||
4048 | 4414 | #endif | ||
4049 | 4415 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
4050 | 4416 | _LT_EOF | ||
4051 | 4417 | |||
4052 | 4418 | if AC_TRY_EVAL(ac_compile); then | ||
4053 | 4419 | # Now try to grab the symbols. | ||
4054 | 4420 | nlist=conftest.nm | ||
4055 | 4421 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | ||
4056 | 4422 | # Try sorting and uniquifying the output. | ||
4057 | 4423 | if sort "$nlist" | uniq > "$nlist"T; then | ||
4058 | 4424 | mv -f "$nlist"T "$nlist" | ||
4059 | 4425 | else | ||
4060 | 4426 | rm -f "$nlist"T | ||
4061 | 4427 | fi | ||
4062 | 4428 | |||
4063 | 4429 | # Make sure that we snagged all the symbols we need. | ||
4064 | 4430 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | ||
4065 | 4431 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | ||
4066 | 4432 | cat <<_LT_EOF > conftest.$ac_ext | ||
4067 | 4433 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | ||
4068 | 4434 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | ||
4069 | 4435 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | ||
4070 | 4436 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | ||
4071 | 4437 | # define LT@&t@_DLSYM_CONST | ||
4072 | 4438 | #elif defined(__osf__) | ||
4073 | 4439 | /* This system does not cope well with relocations in const data. */ | ||
4074 | 4440 | # define LT@&t@_DLSYM_CONST | ||
4075 | 4441 | #else | ||
4076 | 4442 | # define LT@&t@_DLSYM_CONST const | ||
4077 | 4443 | #endif | ||
4078 | 4444 | |||
4079 | 4445 | #ifdef __cplusplus | ||
4080 | 4446 | extern "C" { | ||
4081 | 4447 | #endif | ||
4082 | 4448 | |||
4083 | 4449 | _LT_EOF | ||
4084 | 4450 | # Now generate the symbol file. | ||
4085 | 4451 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | ||
4086 | 4452 | |||
4087 | 4453 | cat <<_LT_EOF >> conftest.$ac_ext | ||
4088 | 4454 | |||
4089 | 4455 | /* The mapping between symbol names and symbols. */ | ||
4090 | 4456 | LT@&t@_DLSYM_CONST struct { | ||
4091 | 4457 | const char *name; | ||
4092 | 4458 | void *address; | ||
4093 | 4459 | } | ||
4094 | 4460 | lt__PROGRAM__LTX_preloaded_symbols[[]] = | ||
4095 | 4461 | { | ||
4096 | 4462 | { "@PROGRAM@", (void *) 0 }, | ||
4097 | 4463 | _LT_EOF | ||
4098 | 4464 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | ||
4099 | 4465 | cat <<\_LT_EOF >> conftest.$ac_ext | ||
4100 | 4466 | {0, (void *) 0} | ||
4101 | 4467 | }; | ||
4102 | 4468 | |||
4103 | 4469 | /* This works around a problem in FreeBSD linker */ | ||
4104 | 4470 | #ifdef FREEBSD_WORKAROUND | ||
4105 | 4471 | static const void *lt_preloaded_setup() { | ||
4106 | 4472 | return lt__PROGRAM__LTX_preloaded_symbols; | ||
4107 | 4473 | } | ||
4108 | 4474 | #endif | ||
4109 | 4475 | |||
4110 | 4476 | #ifdef __cplusplus | ||
4111 | 4477 | } | ||
4112 | 4478 | #endif | ||
4113 | 4479 | _LT_EOF | ||
4114 | 4480 | # Now try linking the two files. | ||
4115 | 4481 | mv conftest.$ac_objext conftstm.$ac_objext | ||
4116 | 4482 | lt_globsym_save_LIBS=$LIBS | ||
4117 | 4483 | lt_globsym_save_CFLAGS=$CFLAGS | ||
4118 | 4484 | LIBS="conftstm.$ac_objext" | ||
4119 | 4485 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
4120 | 4486 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
4121 | 4487 | pipe_works=yes | ||
4122 | 4488 | fi | ||
4123 | 4489 | LIBS=$lt_globsym_save_LIBS | ||
4124 | 4490 | CFLAGS=$lt_globsym_save_CFLAGS | ||
4125 | 4491 | else | ||
4126 | 4492 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
4127 | 4493 | fi | ||
4128 | 4494 | else | ||
4129 | 4495 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
4130 | 4496 | fi | ||
4131 | 4497 | else | ||
4132 | 4498 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
4133 | 4499 | fi | ||
4134 | 4500 | else | ||
4135 | 4501 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
4136 | 4502 | cat conftest.$ac_ext >&5 | ||
4137 | 4503 | fi | ||
4138 | 4504 | rm -rf conftest* conftst* | ||
4139 | 4505 | |||
4140 | 4506 | # Do not use the global_symbol_pipe unless it works. | ||
4141 | 4507 | if test "$pipe_works" = yes; then | ||
4142 | 4508 | break | ||
4143 | 4509 | else | ||
4144 | 4510 | lt_cv_sys_global_symbol_pipe= | ||
4145 | 4511 | fi | ||
4146 | 4512 | done | ||
4147 | 4513 | ]) | ||
4148 | 4514 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
4149 | 4515 | lt_cv_sys_global_symbol_to_cdecl= | ||
4150 | 4516 | fi | ||
4151 | 4517 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
4152 | 4518 | AC_MSG_RESULT(failed) | ||
4153 | 4519 | else | ||
4154 | 4520 | AC_MSG_RESULT(ok) | ||
4155 | 4521 | fi | ||
4156 | 4522 | |||
4157 | 4523 | # Response file support. | ||
4158 | 4524 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | ||
4159 | 4525 | nm_file_list_spec='@' | ||
4160 | 4526 | elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | ||
4161 | 4527 | nm_file_list_spec='@' | ||
4162 | 4528 | fi | ||
4163 | 4529 | |||
4164 | 4530 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | ||
4165 | 4531 | [Take the output of nm and produce a listing of raw symbols and C names]) | ||
4166 | 4532 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | ||
4167 | 4533 | [Transform the output of nm in a proper C declaration]) | ||
4168 | 4534 | _LT_DECL([global_symbol_to_c_name_address], | ||
4169 | 4535 | [lt_cv_sys_global_symbol_to_c_name_address], [1], | ||
4170 | 4536 | [Transform the output of nm in a C name address pair]) | ||
4171 | 4537 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | ||
4172 | 4538 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | ||
4173 | 4539 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | ||
4174 | 4540 | _LT_DECL([], [nm_file_list_spec], [1], | ||
4175 | 4541 | [Specify filename containing input files for $NM]) | ||
4176 | 4542 | ]) # _LT_CMD_GLOBAL_SYMBOLS | ||
4177 | 4543 | |||
4178 | 4544 | |||
4179 | 4545 | # _LT_COMPILER_PIC([TAGNAME]) | ||
4180 | 4546 | # --------------------------- | ||
4181 | 4547 | m4_defun([_LT_COMPILER_PIC], | ||
4182 | 4548 | [m4_require([_LT_TAG_COMPILER])dnl | ||
4183 | 4549 | _LT_TAGVAR(lt_prog_compiler_wl, $1)= | ||
4184 | 4550 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4185 | 4551 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4186 | 4552 | |||
4187 | 4553 | m4_if([$1], [CXX], [ | ||
4188 | 4554 | # C++ specific cases for pic, static, wl, etc. | ||
4189 | 4555 | if test "$GXX" = yes; then | ||
4190 | 4556 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4191 | 4557 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4192 | 4558 | |||
4193 | 4559 | case $host_os in | ||
4194 | 4560 | aix*) | ||
4195 | 4561 | # All AIX code is PIC. | ||
4196 | 4562 | if test "$host_cpu" = ia64; then | ||
4197 | 4563 | # AIX 5 now supports IA64 processor | ||
4198 | 4564 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4199 | 4565 | fi | ||
4200 | 4566 | ;; | ||
4201 | 4567 | |||
4202 | 4568 | amigaos*) | ||
4203 | 4569 | case $host_cpu in | ||
4204 | 4570 | powerpc) | ||
4205 | 4571 | # see comment about AmigaOS4 .so support | ||
4206 | 4572 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4207 | 4573 | ;; | ||
4208 | 4574 | m68k) | ||
4209 | 4575 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
4210 | 4576 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
4211 | 4577 | # like `-m68040'. | ||
4212 | 4578 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
4213 | 4579 | ;; | ||
4214 | 4580 | esac | ||
4215 | 4581 | ;; | ||
4216 | 4582 | |||
4217 | 4583 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
4218 | 4584 | # PIC is the default for these OSes. | ||
4219 | 4585 | ;; | ||
4220 | 4586 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
4221 | 4587 | # This hack is so that the source file can tell whether it is being | ||
4222 | 4588 | # built for inclusion in a dll (and should export symbols for example). | ||
4223 | 4589 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
4224 | 4590 | # (--disable-auto-import) libraries | ||
4225 | 4591 | m4_if([$1], [GCJ], [], | ||
4226 | 4592 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4227 | 4593 | ;; | ||
4228 | 4594 | darwin* | rhapsody*) | ||
4229 | 4595 | # PIC is the default on this platform | ||
4230 | 4596 | # Common symbols not allowed in MH_DYLIB files | ||
4231 | 4597 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4232 | 4598 | ;; | ||
4233 | 4599 | *djgpp*) | ||
4234 | 4600 | # DJGPP does not support shared libraries at all | ||
4235 | 4601 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4236 | 4602 | ;; | ||
4237 | 4603 | haiku*) | ||
4238 | 4604 | # PIC is the default for Haiku. | ||
4239 | 4605 | # The "-static" flag exists, but is broken. | ||
4240 | 4606 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4241 | 4607 | ;; | ||
4242 | 4608 | interix[[3-9]]*) | ||
4243 | 4609 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4244 | 4610 | # Instead, we relocate shared libraries at runtime. | ||
4245 | 4611 | ;; | ||
4246 | 4612 | sysv4*MP*) | ||
4247 | 4613 | if test -d /usr/nec; then | ||
4248 | 4614 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
4249 | 4615 | fi | ||
4250 | 4616 | ;; | ||
4251 | 4617 | hpux*) | ||
4252 | 4618 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
4253 | 4619 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
4254 | 4620 | # sets the default TLS model and affects inlining. | ||
4255 | 4621 | case $host_cpu in | ||
4256 | 4622 | hppa*64*) | ||
4257 | 4623 | ;; | ||
4258 | 4624 | *) | ||
4259 | 4625 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4260 | 4626 | ;; | ||
4261 | 4627 | esac | ||
4262 | 4628 | ;; | ||
4263 | 4629 | *qnx* | *nto*) | ||
4264 | 4630 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4265 | 4631 | # it will coredump. | ||
4266 | 4632 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4267 | 4633 | ;; | ||
4268 | 4634 | *) | ||
4269 | 4635 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4270 | 4636 | ;; | ||
4271 | 4637 | esac | ||
4272 | 4638 | else | ||
4273 | 4639 | case $host_os in | ||
4274 | 4640 | aix[[4-9]]*) | ||
4275 | 4641 | # All AIX code is PIC. | ||
4276 | 4642 | if test "$host_cpu" = ia64; then | ||
4277 | 4643 | # AIX 5 now supports IA64 processor | ||
4278 | 4644 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4279 | 4645 | else | ||
4280 | 4646 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
4281 | 4647 | fi | ||
4282 | 4648 | ;; | ||
4283 | 4649 | chorus*) | ||
4284 | 4650 | case $cc_basename in | ||
4285 | 4651 | cxch68*) | ||
4286 | 4652 | # Green Hills C++ Compiler | ||
4287 | 4653 | # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
4288 | 4654 | ;; | ||
4289 | 4655 | esac | ||
4290 | 4656 | ;; | ||
4291 | 4657 | mingw* | cygwin* | os2* | pw32* | cegcc*) | ||
4292 | 4658 | # This hack is so that the source file can tell whether it is being | ||
4293 | 4659 | # built for inclusion in a dll (and should export symbols for example). | ||
4294 | 4660 | m4_if([$1], [GCJ], [], | ||
4295 | 4661 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4296 | 4662 | ;; | ||
4297 | 4663 | dgux*) | ||
4298 | 4664 | case $cc_basename in | ||
4299 | 4665 | ec++*) | ||
4300 | 4666 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4301 | 4667 | ;; | ||
4302 | 4668 | ghcx*) | ||
4303 | 4669 | # Green Hills C++ Compiler | ||
4304 | 4670 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4305 | 4671 | ;; | ||
4306 | 4672 | *) | ||
4307 | 4673 | ;; | ||
4308 | 4674 | esac | ||
4309 | 4675 | ;; | ||
4310 | 4676 | freebsd* | dragonfly*) | ||
4311 | 4677 | # FreeBSD uses GNU C++ | ||
4312 | 4678 | ;; | ||
4313 | 4679 | hpux9* | hpux10* | hpux11*) | ||
4314 | 4680 | case $cc_basename in | ||
4315 | 4681 | CC*) | ||
4316 | 4682 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4317 | 4683 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4318 | 4684 | if test "$host_cpu" != ia64; then | ||
4319 | 4685 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4320 | 4686 | fi | ||
4321 | 4687 | ;; | ||
4322 | 4688 | aCC*) | ||
4323 | 4689 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4324 | 4690 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4325 | 4691 | case $host_cpu in | ||
4326 | 4692 | hppa*64*|ia64*) | ||
4327 | 4693 | # +Z the default | ||
4328 | 4694 | ;; | ||
4329 | 4695 | *) | ||
4330 | 4696 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4331 | 4697 | ;; | ||
4332 | 4698 | esac | ||
4333 | 4699 | ;; | ||
4334 | 4700 | *) | ||
4335 | 4701 | ;; | ||
4336 | 4702 | esac | ||
4337 | 4703 | ;; | ||
4338 | 4704 | interix*) | ||
4339 | 4705 | # This is c89, which is MS Visual C++ (no shared libs) | ||
4340 | 4706 | # Anyone wants to do a port? | ||
4341 | 4707 | ;; | ||
4342 | 4708 | irix5* | irix6* | nonstopux*) | ||
4343 | 4709 | case $cc_basename in | ||
4344 | 4710 | CC*) | ||
4345 | 4711 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4346 | 4712 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4347 | 4713 | # CC pic flag -KPIC is the default. | ||
4348 | 4714 | ;; | ||
4349 | 4715 | *) | ||
4350 | 4716 | ;; | ||
4351 | 4717 | esac | ||
4352 | 4718 | ;; | ||
4353 | 4719 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
4354 | 4720 | case $cc_basename in | ||
4355 | 4721 | KCC*) | ||
4356 | 4722 | # KAI C++ Compiler | ||
4357 | 4723 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4358 | 4724 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4359 | 4725 | ;; | ||
4360 | 4726 | ecpc* ) | ||
4361 | 4727 | # old Intel C++ for x86_64 which still supported -KPIC. | ||
4362 | 4728 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4363 | 4729 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4364 | 4730 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4365 | 4731 | ;; | ||
4366 | 4732 | icpc* ) | ||
4367 | 4733 | # Intel C++, used to be incompatible with GCC. | ||
4368 | 4734 | # ICC 10 doesn't accept -KPIC any more. | ||
4369 | 4735 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4370 | 4736 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4371 | 4737 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4372 | 4738 | ;; | ||
4373 | 4739 | pgCC* | pgcpp*) | ||
4374 | 4740 | # Portland Group C++ compiler | ||
4375 | 4741 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4376 | 4742 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4377 | 4743 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4378 | 4744 | ;; | ||
4379 | 4745 | cxx*) | ||
4380 | 4746 | # Compaq C++ | ||
4381 | 4747 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
4382 | 4748 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
4383 | 4749 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4384 | 4750 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4385 | 4751 | ;; | ||
4386 | 4752 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | ||
4387 | 4753 | # IBM XL 8.0, 9.0 on PPC and BlueGene | ||
4388 | 4754 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4389 | 4755 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
4390 | 4756 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
4391 | 4757 | ;; | ||
4392 | 4758 | *) | ||
4393 | 4759 | case `$CC -V 2>&1 | sed 5q` in | ||
4394 | 4760 | *Sun\ C*) | ||
4395 | 4761 | # Sun C++ 5.9 | ||
4396 | 4762 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4397 | 4763 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4398 | 4764 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4399 | 4765 | ;; | ||
4400 | 4766 | esac | ||
4401 | 4767 | ;; | ||
4402 | 4768 | esac | ||
4403 | 4769 | ;; | ||
4404 | 4770 | lynxos*) | ||
4405 | 4771 | ;; | ||
4406 | 4772 | m88k*) | ||
4407 | 4773 | ;; | ||
4408 | 4774 | mvs*) | ||
4409 | 4775 | case $cc_basename in | ||
4410 | 4776 | cxx*) | ||
4411 | 4777 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
4412 | 4778 | ;; | ||
4413 | 4779 | *) | ||
4414 | 4780 | ;; | ||
4415 | 4781 | esac | ||
4416 | 4782 | ;; | ||
4417 | 4783 | netbsd* | netbsdelf*-gnu) | ||
4418 | 4784 | ;; | ||
4419 | 4785 | *qnx* | *nto*) | ||
4420 | 4786 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4421 | 4787 | # it will coredump. | ||
4422 | 4788 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4423 | 4789 | ;; | ||
4424 | 4790 | osf3* | osf4* | osf5*) | ||
4425 | 4791 | case $cc_basename in | ||
4426 | 4792 | KCC*) | ||
4427 | 4793 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
4428 | 4794 | ;; | ||
4429 | 4795 | RCC*) | ||
4430 | 4796 | # Rational C++ 2.4.1 | ||
4431 | 4797 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4432 | 4798 | ;; | ||
4433 | 4799 | cxx*) | ||
4434 | 4800 | # Digital/Compaq C++ | ||
4435 | 4801 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4436 | 4802 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
4437 | 4803 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
4438 | 4804 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4439 | 4805 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4440 | 4806 | ;; | ||
4441 | 4807 | *) | ||
4442 | 4808 | ;; | ||
4443 | 4809 | esac | ||
4444 | 4810 | ;; | ||
4445 | 4811 | psos*) | ||
4446 | 4812 | ;; | ||
4447 | 4813 | solaris*) | ||
4448 | 4814 | case $cc_basename in | ||
4449 | 4815 | CC* | sunCC*) | ||
4450 | 4816 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
4451 | 4817 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4452 | 4818 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4453 | 4819 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4454 | 4820 | ;; | ||
4455 | 4821 | gcx*) | ||
4456 | 4822 | # Green Hills C++ Compiler | ||
4457 | 4823 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4458 | 4824 | ;; | ||
4459 | 4825 | *) | ||
4460 | 4826 | ;; | ||
4461 | 4827 | esac | ||
4462 | 4828 | ;; | ||
4463 | 4829 | sunos4*) | ||
4464 | 4830 | case $cc_basename in | ||
4465 | 4831 | CC*) | ||
4466 | 4832 | # Sun C++ 4.x | ||
4467 | 4833 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4468 | 4834 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4469 | 4835 | ;; | ||
4470 | 4836 | lcc*) | ||
4471 | 4837 | # Lucid | ||
4472 | 4838 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4473 | 4839 | ;; | ||
4474 | 4840 | *) | ||
4475 | 4841 | ;; | ||
4476 | 4842 | esac | ||
4477 | 4843 | ;; | ||
4478 | 4844 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
4479 | 4845 | case $cc_basename in | ||
4480 | 4846 | CC*) | ||
4481 | 4847 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4482 | 4848 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4483 | 4849 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4484 | 4850 | ;; | ||
4485 | 4851 | esac | ||
4486 | 4852 | ;; | ||
4487 | 4853 | tandem*) | ||
4488 | 4854 | case $cc_basename in | ||
4489 | 4855 | NCC*) | ||
4490 | 4856 | # NonStop-UX NCC 3.20 | ||
4491 | 4857 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4492 | 4858 | ;; | ||
4493 | 4859 | *) | ||
4494 | 4860 | ;; | ||
4495 | 4861 | esac | ||
4496 | 4862 | ;; | ||
4497 | 4863 | vxworks*) | ||
4498 | 4864 | ;; | ||
4499 | 4865 | *) | ||
4500 | 4866 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4501 | 4867 | ;; | ||
4502 | 4868 | esac | ||
4503 | 4869 | fi | ||
4504 | 4870 | ], | ||
4505 | 4871 | [ | ||
4506 | 4872 | if test "$GCC" = yes; then | ||
4507 | 4873 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4508 | 4874 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4509 | 4875 | |||
4510 | 4876 | case $host_os in | ||
4511 | 4877 | aix*) | ||
4512 | 4878 | # All AIX code is PIC. | ||
4513 | 4879 | if test "$host_cpu" = ia64; then | ||
4514 | 4880 | # AIX 5 now supports IA64 processor | ||
4515 | 4881 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4516 | 4882 | fi | ||
4517 | 4883 | ;; | ||
4518 | 4884 | |||
4519 | 4885 | amigaos*) | ||
4520 | 4886 | case $host_cpu in | ||
4521 | 4887 | powerpc) | ||
4522 | 4888 | # see comment about AmigaOS4 .so support | ||
4523 | 4889 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4524 | 4890 | ;; | ||
4525 | 4891 | m68k) | ||
4526 | 4892 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
4527 | 4893 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
4528 | 4894 | # like `-m68040'. | ||
4529 | 4895 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
4530 | 4896 | ;; | ||
4531 | 4897 | esac | ||
4532 | 4898 | ;; | ||
4533 | 4899 | |||
4534 | 4900 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
4535 | 4901 | # PIC is the default for these OSes. | ||
4536 | 4902 | ;; | ||
4537 | 4903 | |||
4538 | 4904 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
4539 | 4905 | # This hack is so that the source file can tell whether it is being | ||
4540 | 4906 | # built for inclusion in a dll (and should export symbols for example). | ||
4541 | 4907 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | ||
4542 | 4908 | # (--disable-auto-import) libraries | ||
4543 | 4909 | m4_if([$1], [GCJ], [], | ||
4544 | 4910 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4545 | 4911 | ;; | ||
4546 | 4912 | |||
4547 | 4913 | darwin* | rhapsody*) | ||
4548 | 4914 | # PIC is the default on this platform | ||
4549 | 4915 | # Common symbols not allowed in MH_DYLIB files | ||
4550 | 4916 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
4551 | 4917 | ;; | ||
4552 | 4918 | |||
4553 | 4919 | haiku*) | ||
4554 | 4920 | # PIC is the default for Haiku. | ||
4555 | 4921 | # The "-static" flag exists, but is broken. | ||
4556 | 4922 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | ||
4557 | 4923 | ;; | ||
4558 | 4924 | |||
4559 | 4925 | hpux*) | ||
4560 | 4926 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | ||
4561 | 4927 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | ||
4562 | 4928 | # sets the default TLS model and affects inlining. | ||
4563 | 4929 | case $host_cpu in | ||
4564 | 4930 | hppa*64*) | ||
4565 | 4931 | # +Z the default | ||
4566 | 4932 | ;; | ||
4567 | 4933 | *) | ||
4568 | 4934 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4569 | 4935 | ;; | ||
4570 | 4936 | esac | ||
4571 | 4937 | ;; | ||
4572 | 4938 | |||
4573 | 4939 | interix[[3-9]]*) | ||
4574 | 4940 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
4575 | 4941 | # Instead, we relocate shared libraries at runtime. | ||
4576 | 4942 | ;; | ||
4577 | 4943 | |||
4578 | 4944 | msdosdjgpp*) | ||
4579 | 4945 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
4580 | 4946 | # on systems that don't support them. | ||
4581 | 4947 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4582 | 4948 | enable_shared=no | ||
4583 | 4949 | ;; | ||
4584 | 4950 | |||
4585 | 4951 | *nto* | *qnx*) | ||
4586 | 4952 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4587 | 4953 | # it will coredump. | ||
4588 | 4954 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4589 | 4955 | ;; | ||
4590 | 4956 | |||
4591 | 4957 | sysv4*MP*) | ||
4592 | 4958 | if test -d /usr/nec; then | ||
4593 | 4959 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
4594 | 4960 | fi | ||
4595 | 4961 | ;; | ||
4596 | 4962 | |||
4597 | 4963 | *) | ||
4598 | 4964 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4599 | 4965 | ;; | ||
4600 | 4966 | esac | ||
4601 | 4967 | |||
4602 | 4968 | case $cc_basename in | ||
4603 | 4969 | nvcc*) # Cuda Compiler Driver 2.2 | ||
4604 | 4970 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | ||
4605 | 4971 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | ||
4606 | 4972 | ;; | ||
4607 | 4973 | esac | ||
4608 | 4974 | else | ||
4609 | 4975 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
4610 | 4976 | case $host_os in | ||
4611 | 4977 | aix*) | ||
4612 | 4978 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4613 | 4979 | if test "$host_cpu" = ia64; then | ||
4614 | 4980 | # AIX 5 now supports IA64 processor | ||
4615 | 4981 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4616 | 4982 | else | ||
4617 | 4983 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
4618 | 4984 | fi | ||
4619 | 4985 | ;; | ||
4620 | 4986 | |||
4621 | 4987 | mingw* | cygwin* | pw32* | os2* | cegcc*) | ||
4622 | 4988 | # This hack is so that the source file can tell whether it is being | ||
4623 | 4989 | # built for inclusion in a dll (and should export symbols for example). | ||
4624 | 4990 | m4_if([$1], [GCJ], [], | ||
4625 | 4991 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | ||
4626 | 4992 | ;; | ||
4627 | 4993 | |||
4628 | 4994 | hpux9* | hpux10* | hpux11*) | ||
4629 | 4995 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4630 | 4996 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
4631 | 4997 | # not for PA HP-UX. | ||
4632 | 4998 | case $host_cpu in | ||
4633 | 4999 | hppa*64*|ia64*) | ||
4634 | 5000 | # +Z the default | ||
4635 | 5001 | ;; | ||
4636 | 5002 | *) | ||
4637 | 5003 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
4638 | 5004 | ;; | ||
4639 | 5005 | esac | ||
4640 | 5006 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
4641 | 5007 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
4642 | 5008 | ;; | ||
4643 | 5009 | |||
4644 | 5010 | irix5* | irix6* | nonstopux*) | ||
4645 | 5011 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4646 | 5012 | # PIC (with -KPIC) is the default. | ||
4647 | 5013 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4648 | 5014 | ;; | ||
4649 | 5015 | |||
4650 | 5016 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | ||
4651 | 5017 | case $cc_basename in | ||
4652 | 5018 | # old Intel for x86_64 which still supported -KPIC. | ||
4653 | 5019 | ecc*) | ||
4654 | 5020 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4655 | 5021 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4656 | 5022 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4657 | 5023 | ;; | ||
4658 | 5024 | # icc used to be incompatible with GCC. | ||
4659 | 5025 | # ICC 10 doesn't accept -KPIC any more. | ||
4660 | 5026 | icc* | ifort*) | ||
4661 | 5027 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4662 | 5028 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
4663 | 5029 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
4664 | 5030 | ;; | ||
4665 | 5031 | # Lahey Fortran 8.1. | ||
4666 | 5032 | lf95*) | ||
4667 | 5033 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4668 | 5034 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | ||
4669 | 5035 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | ||
4670 | 5036 | ;; | ||
4671 | 5037 | nagfor*) | ||
4672 | 5038 | # NAG Fortran compiler | ||
4673 | 5039 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | ||
4674 | 5040 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4675 | 5041 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4676 | 5042 | ;; | ||
4677 | 5043 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | ||
4678 | 5044 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
4679 | 5045 | # which looks to be a dead project) | ||
4680 | 5046 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4681 | 5047 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
4682 | 5048 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4683 | 5049 | ;; | ||
4684 | 5050 | ccc*) | ||
4685 | 5051 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4686 | 5052 | # All Alpha code is PIC. | ||
4687 | 5053 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4688 | 5054 | ;; | ||
4689 | 5055 | xl* | bgxl* | bgf* | mpixl*) | ||
4690 | 5056 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | ||
4691 | 5057 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4692 | 5058 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | ||
4693 | 5059 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | ||
4694 | 5060 | ;; | ||
4695 | 5061 | *) | ||
4696 | 5062 | case `$CC -V 2>&1 | sed 5q` in | ||
4697 | 5063 | *Sun\ F* | *Sun*Fortran*) | ||
4698 | 5064 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | ||
4699 | 5065 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4700 | 5066 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4701 | 5067 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | ||
4702 | 5068 | ;; | ||
4703 | 5069 | *Sun\ C*) | ||
4704 | 5070 | # Sun C 5.9 | ||
4705 | 5071 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4706 | 5072 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4707 | 5073 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4708 | 5074 | ;; | ||
4709 | 5075 | esac | ||
4710 | 5076 | ;; | ||
4711 | 5077 | esac | ||
4712 | 5078 | ;; | ||
4713 | 5079 | |||
4714 | 5080 | newsos6) | ||
4715 | 5081 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4716 | 5082 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4717 | 5083 | ;; | ||
4718 | 5084 | |||
4719 | 5085 | *nto* | *qnx*) | ||
4720 | 5086 | # QNX uses GNU C++, but need to define -shared option too, otherwise | ||
4721 | 5087 | # it will coredump. | ||
4722 | 5088 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | ||
4723 | 5089 | ;; | ||
4724 | 5090 | |||
4725 | 5091 | osf3* | osf4* | osf5*) | ||
4726 | 5092 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4727 | 5093 | # All OSF/1 code is PIC. | ||
4728 | 5094 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4729 | 5095 | ;; | ||
4730 | 5096 | |||
4731 | 5097 | rdos*) | ||
4732 | 5098 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
4733 | 5099 | ;; | ||
4734 | 5100 | |||
4735 | 5101 | solaris*) | ||
4736 | 5102 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4737 | 5103 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4738 | 5104 | case $cc_basename in | ||
4739 | 5105 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | ||
4740 | 5106 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
4741 | 5107 | *) | ||
4742 | 5108 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
4743 | 5109 | esac | ||
4744 | 5110 | ;; | ||
4745 | 5111 | |||
4746 | 5112 | sunos4*) | ||
4747 | 5113 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
4748 | 5114 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
4749 | 5115 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4750 | 5116 | ;; | ||
4751 | 5117 | |||
4752 | 5118 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
4753 | 5119 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4754 | 5120 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4755 | 5121 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4756 | 5122 | ;; | ||
4757 | 5123 | |||
4758 | 5124 | sysv4*MP*) | ||
4759 | 5125 | if test -d /usr/nec ;then | ||
4760 | 5126 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | ||
4761 | 5127 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4762 | 5128 | fi | ||
4763 | 5129 | ;; | ||
4764 | 5130 | |||
4765 | 5131 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
4766 | 5132 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4767 | 5133 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
4768 | 5134 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4769 | 5135 | ;; | ||
4770 | 5136 | |||
4771 | 5137 | unicos*) | ||
4772 | 5138 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
4773 | 5139 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4774 | 5140 | ;; | ||
4775 | 5141 | |||
4776 | 5142 | uts4*) | ||
4777 | 5143 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
4778 | 5144 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
4779 | 5145 | ;; | ||
4780 | 5146 | |||
4781 | 5147 | *) | ||
4782 | 5148 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
4783 | 5149 | ;; | ||
4784 | 5150 | esac | ||
4785 | 5151 | fi | ||
4786 | 5152 | ]) | ||
4787 | 5153 | case $host_os in | ||
4788 | 5154 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
4789 | 5155 | *djgpp*) | ||
4790 | 5156 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4791 | 5157 | ;; | ||
4792 | 5158 | *) | ||
4793 | 5159 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | ||
4794 | 5160 | ;; | ||
4795 | 5161 | esac | ||
4796 | 5162 | |||
4797 | 5163 | AC_CACHE_CHECK([for $compiler option to produce PIC], | ||
4798 | 5164 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | ||
4799 | 5165 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
4800 | 5166 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | ||
4801 | 5167 | |||
4802 | 5168 | # | ||
4803 | 5169 | # Check to make sure the PIC flag actually works. | ||
4804 | 5170 | # | ||
4805 | 5171 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | ||
4806 | 5172 | _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], | ||
4807 | 5173 | [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | ||
4808 | 5174 | [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], | ||
4809 | 5175 | [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | ||
4810 | 5176 | "" | " "*) ;; | ||
4811 | 5177 | *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; | ||
4812 | 5178 | esac], | ||
4813 | 5179 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | ||
4814 | 5180 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | ||
4815 | 5181 | fi | ||
4816 | 5182 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | ||
4817 | 5183 | [Additional compiler flags for building library objects]) | ||
4818 | 5184 | |||
4819 | 5185 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | ||
4820 | 5186 | [How to pass a linker flag through the compiler]) | ||
4821 | 5187 | # | ||
4822 | 5188 | # Check to make sure the static flag actually works. | ||
4823 | 5189 | # | ||
4824 | 5190 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" | ||
4825 | 5191 | _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
4826 | 5192 | _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | ||
4827 | 5193 | $lt_tmp_static_flag, | ||
4828 | 5194 | [], | ||
4829 | 5195 | [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
4830 | 5196 | _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | ||
4831 | 5197 | [Compiler flag to prevent dynamic linking]) | ||
4832 | 5198 | ])# _LT_COMPILER_PIC | ||
4833 | 5199 | |||
4834 | 5200 | |||
4835 | 5201 | # _LT_LINKER_SHLIBS([TAGNAME]) | ||
4836 | 5202 | # ---------------------------- | ||
4837 | 5203 | # See if the linker supports building shared libraries. | ||
4838 | 5204 | m4_defun([_LT_LINKER_SHLIBS], | ||
4839 | 5205 | [AC_REQUIRE([LT_PATH_LD])dnl | ||
4840 | 5206 | AC_REQUIRE([LT_PATH_NM])dnl | ||
4841 | 5207 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | ||
4842 | 5208 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | ||
4843 | 5209 | m4_require([_LT_DECL_EGREP])dnl | ||
4844 | 5210 | m4_require([_LT_DECL_SED])dnl | ||
4845 | 5211 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | ||
4846 | 5212 | m4_require([_LT_TAG_COMPILER])dnl | ||
4847 | 5213 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
4848 | 5214 | m4_if([$1], [CXX], [ | ||
4849 | 5215 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4850 | 5216 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
4851 | 5217 | case $host_os in | ||
4852 | 5218 | aix[[4-9]]*) | ||
4853 | 5219 | # If we're using GNU nm, then we don't want the "-C" option. | ||
4854 | 5220 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
4855 | 5221 | # Also, AIX nm treats weak defined symbols like other global defined | ||
4856 | 5222 | # symbols, whereas GNU nm marks them as "W". | ||
4857 | 5223 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | ||
4858 | 5224 | _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' | ||
4859 | 5225 | else | ||
4860 | 5226 | _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' | ||
4861 | 5227 | fi | ||
4862 | 5228 | ;; | ||
4863 | 5229 | pw32*) | ||
4864 | 5230 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
4865 | 5231 | ;; | ||
4866 | 5232 | cygwin* | mingw* | cegcc*) | ||
4867 | 5233 | case $cc_basename in | ||
4868 | 5234 | cl*) ;; | ||
4869 | 5235 | *) | ||
4870 | 5236 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | ||
4871 | 5237 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | ||
4872 | 5238 | ;; | ||
4873 | 5239 | esac | ||
4874 | 5240 | ;; | ||
4875 | 5241 | linux* | k*bsd*-gnu | gnu*) | ||
4876 | 5242 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
4877 | 5243 | ;; | ||
4878 | 5244 | *) | ||
4879 | 5245 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4880 | 5246 | ;; | ||
4881 | 5247 | esac | ||
4882 | 5248 | ], [ | ||
4883 | 5249 | runpath_var= | ||
4884 | 5250 | _LT_TAGVAR(allow_undefined_flag, $1)= | ||
4885 | 5251 | _LT_TAGVAR(always_export_symbols, $1)=no | ||
4886 | 5252 | _LT_TAGVAR(archive_cmds, $1)= | ||
4887 | 5253 | _LT_TAGVAR(archive_expsym_cmds, $1)= | ||
4888 | 5254 | _LT_TAGVAR(compiler_needs_object, $1)=no | ||
4889 | 5255 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4890 | 5256 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4891 | 5257 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
4892 | 5258 | _LT_TAGVAR(hardcode_automatic, $1)=no | ||
4893 | 5259 | _LT_TAGVAR(hardcode_direct, $1)=no | ||
4894 | 5260 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | ||
4895 | 5261 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4896 | 5262 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4897 | 5263 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | ||
4898 | 5264 | _LT_TAGVAR(hardcode_minus_L, $1)=no | ||
4899 | 5265 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4900 | 5266 | _LT_TAGVAR(inherit_rpath, $1)=no | ||
4901 | 5267 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | ||
4902 | 5268 | _LT_TAGVAR(module_cmds, $1)= | ||
4903 | 5269 | _LT_TAGVAR(module_expsym_cmds, $1)= | ||
4904 | 5270 | _LT_TAGVAR(old_archive_from_new_cmds, $1)= | ||
4905 | 5271 | _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | ||
4906 | 5272 | _LT_TAGVAR(thread_safe_flag_spec, $1)= | ||
4907 | 5273 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
4908 | 5274 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
4909 | 5275 | # included in the symbol list | ||
4910 | 5276 | _LT_TAGVAR(include_expsyms, $1)= | ||
4911 | 5277 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
4912 | 5278 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
4913 | 5279 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
4914 | 5280 | # as well as any symbol that contains `d'. | ||
4915 | 5281 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | ||
4916 | 5282 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
4917 | 5283 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
4918 | 5284 | # the symbol is explicitly referenced. Since portable code cannot | ||
4919 | 5285 | # rely on this symbol name, it's probably fine to never include it in | ||
4920 | 5286 | # preloaded symbol tables. | ||
4921 | 5287 | # Exclude shared library initialization/finalization symbols. | ||
4922 | 5288 | dnl Note also adjust exclude_expsyms for C++ above. | ||
4923 | 5289 | extract_expsyms_cmds= | ||
4924 | 5290 | |||
4925 | 5291 | case $host_os in | ||
4926 | 5292 | cygwin* | mingw* | pw32* | cegcc*) | ||
4927 | 5293 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
4928 | 5294 | # When not using gcc, we currently assume that we are using | ||
4929 | 5295 | # Microsoft Visual C++. | ||
4930 | 5296 | if test "$GCC" != yes; then | ||
4931 | 5297 | with_gnu_ld=no | ||
4932 | 5298 | fi | ||
4933 | 5299 | ;; | ||
4934 | 5300 | interix*) | ||
4935 | 5301 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
4936 | 5302 | with_gnu_ld=yes | ||
4937 | 5303 | ;; | ||
4938 | 5304 | openbsd*) | ||
4939 | 5305 | with_gnu_ld=no | ||
4940 | 5306 | ;; | ||
4941 | 5307 | linux* | k*bsd*-gnu | gnu*) | ||
4942 | 5308 | _LT_TAGVAR(link_all_deplibs, $1)=no | ||
4943 | 5309 | ;; | ||
4944 | 5310 | esac | ||
4945 | 5311 | |||
4946 | 5312 | _LT_TAGVAR(ld_shlibs, $1)=yes | ||
4947 | 5313 | |||
4948 | 5314 | # On some targets, GNU ld is compatible enough with the native linker | ||
4949 | 5315 | # that we're better off using the native interface for both. | ||
4950 | 5316 | lt_use_gnu_ld_interface=no | ||
4951 | 5317 | if test "$with_gnu_ld" = yes; then | ||
4952 | 5318 | case $host_os in | ||
4953 | 5319 | aix*) | ||
4954 | 5320 | # The AIX port of GNU ld has always aspired to compatibility | ||
4955 | 5321 | # with the native linker. However, as the warning in the GNU ld | ||
4956 | 5322 | # block says, versions before 2.19.5* couldn't really create working | ||
4957 | 5323 | # shared libraries, regardless of the interface used. | ||
4958 | 5324 | case `$LD -v 2>&1` in | ||
4959 | 5325 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | ||
4960 | 5326 | *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | ||
4961 | 5327 | *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | ||
4962 | 5328 | *) | ||
4963 | 5329 | lt_use_gnu_ld_interface=yes | ||
4964 | 5330 | ;; | ||
4965 | 5331 | esac | ||
4966 | 5332 | ;; | ||
4967 | 5333 | *) | ||
4968 | 5334 | lt_use_gnu_ld_interface=yes | ||
4969 | 5335 | ;; | ||
4970 | 5336 | esac | ||
4971 | 5337 | fi | ||
4972 | 5338 | |||
4973 | 5339 | if test "$lt_use_gnu_ld_interface" = yes; then | ||
4974 | 5340 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
4975 | 5341 | wlarc='${wl}' | ||
4976 | 5342 | |||
4977 | 5343 | # Set some defaults for GNU ld with shared library support. These | ||
4978 | 5344 | # are reset later if shared libraries are not supported. Putting them | ||
4979 | 5345 | # here allows them to be overridden if necessary. | ||
4980 | 5346 | runpath_var=LD_RUN_PATH | ||
4981 | 5347 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4982 | 5348 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4983 | 5349 | # ancient GNU ld didn't support --whole-archive et. al. | ||
4984 | 5350 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | ||
4985 | 5351 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
4986 | 5352 | else | ||
4987 | 5353 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | ||
4988 | 5354 | fi | ||
4989 | 5355 | supports_anon_versioning=no | ||
4990 | 5356 | case `$LD -v 2>&1` in | ||
4991 | 5357 | *GNU\ gold*) supports_anon_versioning=yes ;; | ||
4992 | 5358 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
4993 | 5359 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
4994 | 5360 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
4995 | 5361 | *\ 2.11.*) ;; # other 2.11 versions | ||
4996 | 5362 | *) supports_anon_versioning=yes ;; | ||
4997 | 5363 | esac | ||
4998 | 5364 | |||
4999 | 5365 | # See if GNU ld supports shared libraries. | ||
5000 | 5366 | case $host_os in |
The diff has been truncated for viewing.