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