wok-next view libstroke/stuff/patches/debian-changes.patch @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents
children
line source
1 Description: Debian changes before conversion to 3.0 (quilt)
2 See the Debian changelog for details.
3 Author: Hamish Moffatt <hamish@debian.org>
4 Last-Update: 2014-09-21
6 ---
7 --- libstroke-0.5.1.orig/Makefile.in
8 +++ libstroke-0.5.1/Makefile.in
9 @@ -1,6 +1,8 @@
10 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
11 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
12 +# @configure_input@
14 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
15 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
16 +# Free Software Foundation, Inc.
17 # This Makefile.in is free software; the Free Software Foundation
18 # gives unlimited permission to copy and/or distribute it,
19 # with or without modifications, as long as this notice is preserved.
20 @@ -10,78 +12,143 @@
21 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
22 # PARTICULAR PURPOSE.
24 -# don't build libgstroke if GTK is not available
25 -
26 -
27 -SHELL = @SHELL@
28 +@SET_MAKE@
30 srcdir = @srcdir@
31 top_srcdir = @top_srcdir@
32 VPATH = @srcdir@
33 -prefix = @prefix@
34 -exec_prefix = @exec_prefix@
35 -
36 -bindir = @bindir@
37 -sbindir = @sbindir@
38 -libexecdir = @libexecdir@
39 -datadir = @datadir@
40 -sysconfdir = @sysconfdir@
41 -sharedstatedir = @sharedstatedir@
42 -localstatedir = @localstatedir@
43 -libdir = @libdir@
44 -infodir = @infodir@
45 -mandir = @mandir@
46 -includedir = @includedir@
47 -oldincludedir = /usr/include
48 -
49 -DESTDIR =
50 -
51 pkgdatadir = $(datadir)/@PACKAGE@
52 pkglibdir = $(libdir)/@PACKAGE@
53 pkgincludedir = $(includedir)/@PACKAGE@
54 -
55 top_builddir = .
57 -ACLOCAL = @ACLOCAL@
58 -AUTOCONF = @AUTOCONF@
59 -AUTOMAKE = @AUTOMAKE@
60 -AUTOHEADER = @AUTOHEADER@
61 -
62 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
63 INSTALL = @INSTALL@
64 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
65 -INSTALL_DATA = @INSTALL_DATA@
66 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 -transform = @program_transform_name@
68 -
69 +install_sh_DATA = $(install_sh) -c -m 644
70 +install_sh_PROGRAM = $(install_sh) -c
71 +install_sh_SCRIPT = $(install_sh) -c
72 +INSTALL_HEADER = $(INSTALL_DATA)
73 +transform = $(program_transform_name)
74 NORMAL_INSTALL = :
75 PRE_INSTALL = :
76 POST_INSTALL = :
77 NORMAL_UNINSTALL = :
78 PRE_UNINSTALL = :
79 POST_UNINSTALL = :
80 -host_alias = @host_alias@
81 host_triplet = @host@
82 -AS = @AS@
83 +ACLOCAL = @ACLOCAL@
84 +AMDEP_FALSE = @AMDEP_FALSE@
85 +AMDEP_TRUE = @AMDEP_TRUE@
86 +AMTAR = @AMTAR@
87 +AR = @AR@
88 +AUTOCONF = @AUTOCONF@
89 +AUTOHEADER = @AUTOHEADER@
90 +AUTOMAKE = @AUTOMAKE@
91 +AWK = @AWK@
92 CC = @CC@
93 -DLLTOOL = @DLLTOOL@
94 +CCDEPMODE = @CCDEPMODE@
95 +CFLAGS = @CFLAGS@
96 +CPP = @CPP@
97 +CPPFLAGS = @CPPFLAGS@
98 +CXX = @CXX@
99 +CXXCPP = @CXXCPP@
100 +CXXDEPMODE = @CXXDEPMODE@
101 +CXXFLAGS = @CXXFLAGS@
102 +CYGPATH_W = @CYGPATH_W@
103 +DEFS = @DEFS@
104 +DEPDIR = @DEPDIR@
105 +ECHO = @ECHO@
106 +ECHO_C = @ECHO_C@
107 +ECHO_N = @ECHO_N@
108 +ECHO_T = @ECHO_T@
109 +EGREP = @EGREP@
110 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
111 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
112 +EXEEXT = @EXEEXT@
113 +F77 = @F77@
114 +FFLAGS = @FFLAGS@
115 GTK_CFLAGS = @GTK_CFLAGS@
116 GTK_CONFIG = @GTK_CONFIG@
117 GTK_LIBS = @GTK_LIBS@
118 -LD = @LD@
119 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
120 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
121 +INSTALL_DATA = @INSTALL_DATA@
122 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
123 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
124 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
125 +LDFLAGS = @LDFLAGS@
126 +LIBOBJS = @LIBOBJS@
127 +LIBS = @LIBS@
128 LIBTOOL = @LIBTOOL@
129 LN_S = @LN_S@
130 +LTLIBOBJS = @LTLIBOBJS@
131 MAINT = @MAINT@
132 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
133 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
134 MAKEINFO = @MAKEINFO@
135 -NM = @NM@
136 +OBJEXT = @OBJEXT@
137 PACKAGE = @PACKAGE@
138 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
139 +PACKAGE_NAME = @PACKAGE_NAME@
140 +PACKAGE_STRING = @PACKAGE_STRING@
141 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
142 +PACKAGE_VERSION = @PACKAGE_VERSION@
143 +PATH_SEPARATOR = @PATH_SEPARATOR@
144 RANLIB = @RANLIB@
145 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
146 +SET_MAKE = @SET_MAKE@
147 +SHELL = @SHELL@
148 +STRIP = @STRIP@
149 VERSION = @VERSION@
150 X_CFLAGS = @X_CFLAGS@
151 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
152 X_LDFLAGS = @X_LDFLAGS@
153 -@HAVE_LIBGTK_TRUE@GSTROKE_SUBDS = libgstroke
154 +X_LIBS = @X_LIBS@
155 +X_PRE_LIBS = @X_PRE_LIBS@
156 +ac_ct_AR = @ac_ct_AR@
157 +ac_ct_CC = @ac_ct_CC@
158 +ac_ct_CXX = @ac_ct_CXX@
159 +ac_ct_F77 = @ac_ct_F77@
160 +ac_ct_RANLIB = @ac_ct_RANLIB@
161 +ac_ct_STRIP = @ac_ct_STRIP@
162 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
163 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
164 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
165 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
166 +am__include = @am__include@
167 +am__leading_dot = @am__leading_dot@
168 +am__quote = @am__quote@
169 +bindir = @bindir@
170 +build = @build@
171 +build_alias = @build_alias@
172 +build_cpu = @build_cpu@
173 +build_os = @build_os@
174 +build_vendor = @build_vendor@
175 +datadir = @datadir@
176 +exec_prefix = @exec_prefix@
177 +host = @host@
178 +host_alias = @host_alias@
179 +host_cpu = @host_cpu@
180 +host_os = @host_os@
181 +host_vendor = @host_vendor@
182 +includedir = @includedir@
183 +infodir = @infodir@
184 +install_sh = @install_sh@
185 +libdir = @libdir@
186 +libexecdir = @libexecdir@
187 +localstatedir = @localstatedir@
188 +mandir = @mandir@
189 +oldincludedir = @oldincludedir@
190 +prefix = @prefix@
191 +program_transform_name = @program_transform_name@
192 +sbindir = @sbindir@
193 +sharedstatedir = @sharedstatedir@
194 +sysconfdir = @sysconfdir@
195 +target_alias = @target_alias@
196 @HAVE_LIBGTK_FALSE@GSTROKE_SUBDS =
198 +# don't build libgstroke if GTK is not available
199 +@HAVE_LIBGTK_TRUE@GSTROKE_SUBDS = libgstroke
200 +
201 SUBDIRS = libstroke $(GSTROKE_SUBDS) tests doc javastroke
203 EXTRA_DIST = COPYRIGHT CREDITS README.javastroke README.libgstroke
204 @@ -93,85 +160,90 @@ MOSTLYCLEANFILES = core *~
205 CLEANFILES = core *~
206 DISTCLEANFILES = core *~
207 MAINTAINERCLEANFILES = core *~
208 +subdir = .
209 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
210 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
211 CONFIG_HEADER = config.h
212 -CONFIG_CLEAN_FILES =
213 -DATA = $(m4data_DATA)
214 -
215 -DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
216 -Makefile.am Makefile.in NEWS TODO acconfig.h aclocal.m4 config.guess \
217 -config.h.in config.sub configure configure.in install-sh ltconfig \
218 -ltmain.sh missing mkinstalldirs
219 -
220 -
221 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
222 +CONFIG_CLEAN_FILES =
223 +DIST_SOURCES =
224 +DATA = $(m4data_DATA)
225 +
226 +
227 +RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \
228 + ps-recursive install-info-recursive uninstall-info-recursive \
229 + all-recursive install-data-recursive install-exec-recursive \
230 + installdirs-recursive install-recursive uninstall-recursive \
231 + check-recursive installcheck-recursive
232 +DIST_COMMON = README $(srcdir)/Makefile.in $(srcdir)/configure AUTHORS \
233 + COPYING ChangeLog INSTALL Makefile.am NEWS TODO acconfig.h \
234 + aclocal.m4 config.guess config.h.in config.sub configure \
235 + configure.in depcomp install-sh ltconfig ltmain.sh missing \
236 + mkinstalldirs
237 +DIST_SUBDIRS = libstroke libgstroke tests doc javastroke
238 +all: config.h
239 + $(MAKE) $(AM_MAKEFLAGS) all-recursive
241 -TAR = gtar
242 -GZIP_ENV = --best
243 -DIST_SUBDIRS = libstroke libgstroke tests doc javastroke
244 -all: all-redirect
245 .SUFFIXES:
246 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
247 - cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
249 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
250 - cd $(top_builddir) \
251 - && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
252 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
253 + configure.lineno
254 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
255 + cd $(top_srcdir) && \
256 + $(AUTOMAKE) --gnu Makefile
257 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
258 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)
260 -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
261 - cd $(srcdir) && $(ACLOCAL)
262 -
263 -config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
264 +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
265 $(SHELL) ./config.status --recheck
266 -$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
267 +$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
268 cd $(srcdir) && $(AUTOCONF)
270 -config.h: stamp-h
271 - @if test ! -f $@; then \
272 - rm -f stamp-h; \
273 - $(MAKE) stamp-h; \
274 - else :; fi
275 -stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
276 - cd $(top_builddir) \
277 - && CONFIG_FILES= CONFIG_HEADERS=config.h \
278 - $(SHELL) ./config.status
279 - @echo timestamp > stamp-h 2> /dev/null
280 -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
281 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in
282 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
283 +
284 +config.h: stamp-h1
285 @if test ! -f $@; then \
286 - rm -f $(srcdir)/stamp-h.in; \
287 - $(MAKE) $(srcdir)/stamp-h.in; \
288 + rm -f stamp-h1; \
289 + $(MAKE) stamp-h1; \
290 else :; fi
291 -$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
292 - cd $(top_srcdir) && $(AUTOHEADER)
293 - @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
295 -mostlyclean-hdr:
296 +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
297 + @rm -f stamp-h1
298 + cd $(top_builddir) && $(SHELL) ./config.status config.h
300 -clean-hdr:
301 +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.in $(ACLOCAL_M4) $(top_srcdir)/acconfig.h
302 + cd $(top_srcdir) && $(AUTOHEADER)
303 + touch $(srcdir)/config.h.in
305 distclean-hdr:
306 - -rm -f config.h
307 + -rm -f config.h stamp-h1
308 +
309 +mostlyclean-libtool:
310 + -rm -f *.lo
312 -maintainer-clean-hdr:
313 +clean-libtool:
314 + -rm -rf .libs _libs
316 +distclean-libtool:
317 + -rm -f libtool
318 +uninstall-info-am:
319 +m4dataDATA_INSTALL = $(INSTALL_DATA)
320 install-m4dataDATA: $(m4data_DATA)
321 @$(NORMAL_INSTALL)
322 $(mkinstalldirs) $(DESTDIR)$(m4datadir)
323 @list='$(m4data_DATA)'; for p in $$list; do \
324 - if test -f $(srcdir)/$$p; then \
325 - echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p"; \
326 - $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(m4datadir)/$$p; \
327 - else if test -f $$p; then \
328 - echo " $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p"; \
329 - $(INSTALL_DATA) $$p $(DESTDIR)$(m4datadir)/$$p; \
330 - fi; fi; \
331 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
332 + f="`echo $$p | sed -e 's|^.*/||'`"; \
333 + echo " $(m4dataDATA_INSTALL) $$d$$p $(DESTDIR)$(m4datadir)/$$f"; \
334 + $(m4dataDATA_INSTALL) $$d$$p $(DESTDIR)$(m4datadir)/$$f; \
335 done
337 uninstall-m4dataDATA:
338 @$(NORMAL_UNINSTALL)
339 - list='$(m4data_DATA)'; for p in $$list; do \
340 - rm -f $(DESTDIR)$(m4datadir)/$$p; \
341 + @list='$(m4data_DATA)'; for p in $$list; do \
342 + f="`echo $$p | sed -e 's|^.*/||'`"; \
343 + echo " rm -f $(DESTDIR)$(m4datadir)/$$f"; \
344 + rm -f $(DESTDIR)$(m4datadir)/$$f; \
345 done
347 # This directory's subdirectories are mostly independent; you can cd
348 @@ -180,13 +252,8 @@ uninstall-m4dataDATA:
349 # (1) if the variable is set in `config.status', edit `config.status'
350 # (which will cause the Makefiles to be regenerated when you run `make');
351 # (2) otherwise, pass the desired values on the `make' command line.
352 -
353 -@SET_MAKE@
354 -
355 -all-recursive install-data-recursive install-exec-recursive \
356 -installdirs-recursive install-recursive uninstall-recursive \
357 -check-recursive installcheck-recursive info-recursive dvi-recursive:
358 - @set fnord $(MAKEFLAGS); amf=$$2; \
359 +$(RECURSIVE_TARGETS):
360 + @set fnord $$MAKEFLAGS; amf=$$2; \
361 dot_seen=no; \
362 target=`echo $@ | sed s/-recursive//`; \
363 list='$(SUBDIRS)'; for subdir in $$list; do \
364 @@ -206,13 +273,18 @@ check-recursive installcheck-recursive i
366 mostlyclean-recursive clean-recursive distclean-recursive \
367 maintainer-clean-recursive:
368 - @set fnord $(MAKEFLAGS); amf=$$2; \
369 + @set fnord $$MAKEFLAGS; amf=$$2; \
370 dot_seen=no; \
371 - rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
372 - rev="$$subdir $$rev"; \
373 - test "$$subdir" = "." && dot_seen=yes; \
374 + case "$@" in \
375 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
376 + *) list='$(SUBDIRS)' ;; \
377 + esac; \
378 + rev=''; for subdir in $$list; do \
379 + if test "$$subdir" = "."; then :; else \
380 + rev="$$subdir $$rev"; \
381 + fi; \
382 done; \
383 - test "$$dot_seen" = "no" && rev=". $$rev"; \
384 + rev="$$rev ."; \
385 target=`echo $@ | sed s/-recursive//`; \
386 for subdir in $$rev; do \
387 echo "Making $$target in $$subdir"; \
388 @@ -228,135 +300,221 @@ tags-recursive:
389 list='$(SUBDIRS)'; for subdir in $$list; do \
390 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
391 done
392 +ctags-recursive:
393 + list='$(SUBDIRS)'; for subdir in $$list; do \
394 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
395 + done
396 +
397 +ETAGS = etags
398 +ETAGSFLAGS =
399 +
400 +CTAGS = ctags
401 +CTAGSFLAGS =
403 tags: TAGS
405 -ID: $(HEADERS) $(SOURCES) $(LISP)
406 - list='$(SOURCES) $(HEADERS)'; \
407 - unique=`for i in $$list; do echo $$i; done | \
408 - awk ' { files[$$0] = 1; } \
409 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
410 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
411 + unique=`for i in $$list; do \
412 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
413 + done | \
414 + $(AWK) ' { files[$$0] = 1; } \
415 END { for (i in files) print i; }'`; \
416 - here=`pwd` && cd $(srcdir) \
417 - && mkid -f$$here/ID $$unique $(LISP)
418 + mkid -fID $$unique
420 -TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
421 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
422 + $(TAGS_FILES) $(LISP)
423 tags=; \
424 here=`pwd`; \
425 + if (etags --etags-include --version) >/dev/null 2>&1; then \
426 + include_option=--etags-include; \
427 + else \
428 + include_option=--include; \
429 + fi; \
430 list='$(SUBDIRS)'; for subdir in $$list; do \
431 - if test "$$subdir" = .; then :; else \
432 - test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
433 - fi; \
434 + if test "$$subdir" = .; then :; else \
435 + test -f $$subdir/TAGS && \
436 + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
437 + fi; \
438 done; \
439 - list='$(SOURCES) $(HEADERS)'; \
440 - unique=`for i in $$list; do echo $$i; done | \
441 - awk ' { files[$$0] = 1; } \
442 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
443 + unique=`for i in $$list; do \
444 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
445 + done | \
446 + $(AWK) ' { files[$$0] = 1; } \
447 END { for (i in files) print i; }'`; \
448 - test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
449 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
450 -
451 -mostlyclean-tags:
452 -
453 -clean-tags:
454 + test -z "$(ETAGS_ARGS)$$tags$$unique" \
455 + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
456 + $$tags $$unique
457 +
458 +ctags: CTAGS
459 +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
460 + $(TAGS_FILES) $(LISP)
461 + tags=; \
462 + here=`pwd`; \
463 + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
464 + unique=`for i in $$list; do \
465 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
466 + done | \
467 + $(AWK) ' { files[$$0] = 1; } \
468 + END { for (i in files) print i; }'`; \
469 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
470 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
471 + $$tags $$unique
472 +
473 +GTAGS:
474 + here=`$(am__cd) $(top_builddir) && pwd` \
475 + && cd $(top_srcdir) \
476 + && gtags -i $(GTAGS_ARGS) $$here
478 distclean-tags:
479 - -rm -f TAGS ID
480 -
481 -maintainer-clean-tags:
482 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
483 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
485 +top_distdir = .
486 distdir = $(PACKAGE)-$(VERSION)
487 -top_distdir = $(distdir)
489 -# This target untars the dist file and tries a VPATH configuration. Then
490 -# it guarantees that the distribution is self-contained by making another
491 -# tarfile.
492 -distcheck: dist
493 - -rm -rf $(distdir)
494 - GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
495 - mkdir $(distdir)/=build
496 - mkdir $(distdir)/=inst
497 - dc_install_base=`cd $(distdir)/=inst && pwd`; \
498 - cd $(distdir)/=build \
499 - && ../configure --srcdir=.. --prefix=$$dc_install_base \
500 - && $(MAKE) $(AM_MAKEFLAGS) \
501 - && $(MAKE) $(AM_MAKEFLAGS) dvi \
502 - && $(MAKE) $(AM_MAKEFLAGS) check \
503 - && $(MAKE) $(AM_MAKEFLAGS) install \
504 - && $(MAKE) $(AM_MAKEFLAGS) installcheck \
505 - && $(MAKE) $(AM_MAKEFLAGS) dist
506 - -rm -rf $(distdir)
507 - @banner="$(distdir).tar.gz is ready for distribution"; \
508 - dashes=`echo "$$banner" | sed s/./=/g`; \
509 - echo "$$dashes"; \
510 - echo "$$banner"; \
511 - echo "$$dashes"
512 -dist: distdir
513 - -chmod -R a+r $(distdir)
514 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
515 - -rm -rf $(distdir)
516 -dist-all: distdir
517 - -chmod -R a+r $(distdir)
518 - GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
519 - -rm -rf $(distdir)
520 +am__remove_distdir = \
521 + { test ! -d $(distdir) \
522 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
523 + && rm -fr $(distdir); }; }
524 +
525 +GZIP_ENV = --best
526 +distuninstallcheck_listfiles = find . -type f -print
527 +distcleancheck_listfiles = find . -type f -print
528 +
529 distdir: $(DISTFILES)
530 - -rm -rf $(distdir)
531 + $(am__remove_distdir)
532 mkdir $(distdir)
533 - -chmod 777 $(distdir)
534 - here=`cd $(top_builddir) && pwd`; \
535 - top_distdir=`cd $(distdir) && pwd`; \
536 - distdir=`cd $(distdir) && pwd`; \
537 - cd $(top_srcdir) \
538 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
539 - @for file in $(DISTFILES); do \
540 - d=$(srcdir); \
541 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
542 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
543 + list='$(DISTFILES)'; for file in $$list; do \
544 + case $$file in \
545 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
546 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
547 + esac; \
548 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
549 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
550 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
551 + dir="/$$dir"; \
552 + $(mkinstalldirs) "$(distdir)$$dir"; \
553 + else \
554 + dir=''; \
555 + fi; \
556 if test -d $$d/$$file; then \
557 - cp -pr $$d/$$file $(distdir)/$$file; \
558 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
559 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
560 + fi; \
561 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
562 else \
563 test -f $(distdir)/$$file \
564 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
565 - || cp -p $$d/$$file $(distdir)/$$file || :; \
566 + || cp -p $$d/$$file $(distdir)/$$file \
567 + || exit 1; \
568 fi; \
569 done
570 - for subdir in $(DIST_SUBDIRS); do \
571 + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
572 if test "$$subdir" = .; then :; else \
573 test -d $(distdir)/$$subdir \
574 || mkdir $(distdir)/$$subdir \
575 || exit 1; \
576 - chmod 777 $(distdir)/$$subdir; \
577 - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
578 + (cd $$subdir && \
579 + $(MAKE) $(AM_MAKEFLAGS) \
580 + top_distdir="$(top_distdir)" \
581 + distdir=../$(distdir)/$$subdir \
582 + distdir) \
583 || exit 1; \
584 fi; \
585 done
586 -info-am:
587 -info: info-recursive
588 -dvi-am:
589 -dvi: dvi-recursive
590 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
591 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
592 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
593 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
594 + || chmod -R a+r $(distdir)
595 +dist-gzip: distdir
596 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
597 + $(am__remove_distdir)
598 +
599 +dist dist-all: distdir
600 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
601 + $(am__remove_distdir)
602 +
603 +# This target untars the dist file and tries a VPATH configuration. Then
604 +# it guarantees that the distribution is self-contained by making another
605 +# tarfile.
606 +distcheck: dist
607 + $(am__remove_distdir)
608 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
609 + chmod -R a-w $(distdir); chmod a+w $(distdir)
610 + mkdir $(distdir)/_build
611 + mkdir $(distdir)/_inst
612 + chmod a-w $(distdir)
613 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
614 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
615 + && cd $(distdir)/_build \
616 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
617 + $(DISTCHECK_CONFIGURE_FLAGS) \
618 + && $(MAKE) $(AM_MAKEFLAGS) \
619 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
620 + && $(MAKE) $(AM_MAKEFLAGS) check \
621 + && $(MAKE) $(AM_MAKEFLAGS) install \
622 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
623 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
624 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
625 + distuninstallcheck \
626 + && chmod -R a-w "$$dc_install_base" \
627 + && ({ \
628 + (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \
629 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
630 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
631 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
632 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
633 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
634 + && rm -rf "$$dc_destdir" \
635 + && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \
636 + && rm -f $(distdir).tar.gz \
637 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
638 + $(am__remove_distdir)
639 + @echo "$(distdir).tar.gz is ready for distribution" | \
640 + sed 'h;s/./=/g;p;x;p;x'
641 +distuninstallcheck:
642 + @cd $(distuninstallcheck_dir) \
643 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
644 + || { echo "ERROR: files left after uninstall:" ; \
645 + if test -n "$(DESTDIR)"; then \
646 + echo " (check DESTDIR support)"; \
647 + fi ; \
648 + $(distuninstallcheck_listfiles) ; \
649 + exit 1; } >&2
650 +distcleancheck: distclean
651 + @if test '$(srcdir)' = . ; then \
652 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
653 + exit 1 ; \
654 + fi
655 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
656 + || { echo "ERROR: files left in build directory after distclean:" ; \
657 + $(distcleancheck_listfiles) ; \
658 + exit 1; } >&2
659 check-am: all-am
660 check: check-recursive
661 -installcheck-am:
662 -installcheck: installcheck-recursive
663 -all-recursive-am: config.h
664 - $(MAKE) $(AM_MAKEFLAGS) all-recursive
665 +all-am: Makefile $(DATA) config.h
666 +installdirs: installdirs-recursive
667 +installdirs-am:
668 + $(mkinstalldirs) $(DESTDIR)$(m4datadir)
670 -install-exec-am:
671 +install: install-recursive
672 install-exec: install-exec-recursive
673 -
674 -install-data-am: install-m4dataDATA
675 install-data: install-data-recursive
676 +uninstall: uninstall-recursive
678 install-am: all-am
679 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
680 -install: install-recursive
681 -uninstall-am: uninstall-m4dataDATA
682 -uninstall: uninstall-recursive
683 -all-am: Makefile $(DATA) config.h
684 -all-redirect: all-recursive-am
685 -install-strip:
686 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
687 -installdirs: installdirs-recursive
688 -installdirs-am:
689 - $(mkinstalldirs) $(DESTDIR)$(m4datadir)
690 -
692 +installcheck: installcheck-recursive
693 +install-strip:
694 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
695 + INSTALL_STRIP_FLAG=-s \
696 + `test -z '$(STRIP)' || \
697 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
698 mostlyclean-generic:
699 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
701 @@ -364,48 +522,82 @@ clean-generic:
702 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
704 distclean-generic:
705 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
706 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
707 + -rm -f $(CONFIG_CLEAN_FILES)
708 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
710 maintainer-clean-generic:
711 + @echo "This command is intended for maintainers to use"
712 + @echo "it deletes files that may require special tools to rebuild."
713 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
714 -mostlyclean-am: mostlyclean-hdr mostlyclean-tags mostlyclean-generic
715 +clean: clean-recursive
717 -mostlyclean: mostlyclean-recursive
718 +clean-am: clean-generic clean-libtool mostlyclean-am
720 -clean-am: clean-hdr clean-tags clean-generic mostlyclean-am
721 +distclean: distclean-recursive
722 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
723 + -rm -f Makefile
724 +distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \
725 + distclean-tags
727 -clean: clean-recursive
728 +dvi: dvi-recursive
730 -distclean-am: distclean-hdr distclean-tags distclean-generic clean-am
731 - -rm -f libtool
732 +dvi-am:
734 -distclean: distclean-recursive
735 - -rm -f config.status
736 +info: info-recursive
738 -maintainer-clean-am: maintainer-clean-hdr maintainer-clean-tags \
739 - maintainer-clean-generic distclean-am
740 - @echo "This command is intended for maintainers to use;"
741 - @echo "it deletes files that may require special tools to rebuild."
742 +info-am:
743 +
744 +install-data-am: install-m4dataDATA
745 +
746 +install-exec-am:
747 +
748 +install-info: install-info-recursive
749 +
750 +install-man:
751 +
752 +installcheck-am:
754 maintainer-clean: maintainer-clean-recursive
755 - -rm -f config.status
756 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
757 + -rm -rf $(top_srcdir)/autom4te.cache
758 + -rm -f Makefile
759 +maintainer-clean-am: distclean-am maintainer-clean-generic
760 +
761 +mostlyclean: mostlyclean-recursive
762 +
763 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
764 +
765 +pdf: pdf-recursive
766 +
767 +pdf-am:
769 -.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
770 -uninstall-m4dataDATA install-m4dataDATA install-data-recursive \
771 -uninstall-data-recursive install-exec-recursive \
772 -uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
773 -all-recursive check-recursive installcheck-recursive info-recursive \
774 -dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
775 -maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
776 -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
777 -dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
778 -install-exec-am install-exec install-data-am install-data install-am \
779 -install uninstall-am uninstall all-redirect all-am all installdirs-am \
780 -installdirs mostlyclean-generic distclean-generic clean-generic \
781 -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
782 +ps: ps-recursive
784 +ps-am:
785 +
786 +uninstall-am: uninstall-info-am uninstall-m4dataDATA
787 +
788 +uninstall-info: uninstall-info-recursive
789 +
790 +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
791 + clean-generic clean-libtool clean-recursive ctags \
792 + ctags-recursive dist dist-all dist-gzip distcheck distclean \
793 + distclean-generic distclean-hdr distclean-libtool \
794 + distclean-recursive distclean-tags distcleancheck distdir \
795 + distuninstallcheck dvi dvi-am dvi-recursive info info-am \
796 + info-recursive install install-am install-data install-data-am \
797 + install-data-recursive install-exec install-exec-am \
798 + install-exec-recursive install-info install-info-am \
799 + install-info-recursive install-m4dataDATA install-man \
800 + install-recursive install-strip installcheck installcheck-am \
801 + installdirs installdirs-am installdirs-recursive \
802 + maintainer-clean maintainer-clean-generic \
803 + maintainer-clean-recursive mostlyclean mostlyclean-generic \
804 + mostlyclean-libtool mostlyclean-recursive pdf pdf-am \
805 + pdf-recursive ps ps-am ps-recursive tags tags-recursive \
806 + uninstall uninstall-am uninstall-info-am \
807 + uninstall-info-recursive uninstall-m4dataDATA \
808 + uninstall-recursive
810 # Tell versions [3.59,3.63) of GNU make to not export all variables.
811 # Otherwise a system limit (for SysV at least) may be exceeded.
812 --- libstroke-0.5.1.orig/aclocal.m4
813 +++ libstroke-0.5.1/aclocal.m4
814 @@ -1,70 +1,258 @@
815 -dnl aclocal.m4 generated automatically by aclocal 1.4
816 +# generated automatically by aclocal 1.7.8 -*- Autoconf -*-
818 -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
819 -dnl This file is free software; the Free Software Foundation
820 -dnl gives unlimited permission to copy and/or distribute it,
821 -dnl with or without modifications, as long as this notice is preserved.
822 -
823 -dnl This program is distributed in the hope that it will be useful,
824 -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
825 -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
826 -dnl PARTICULAR PURPOSE.
827 -
828 -# Do all the work for Automake. This macro actually does too much --
829 -# some checks are only needed if your package does certain things.
830 -# But this isn't really a big deal.
831 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
832 +# Free Software Foundation, Inc.
833 +# This file is free software; the Free Software Foundation
834 +# gives unlimited permission to copy and/or distribute it,
835 +# with or without modifications, as long as this notice is preserved.
836 +
837 +# This program is distributed in the hope that it will be useful,
838 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
839 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
840 +# PARTICULAR PURPOSE.
841 +
842 +# Do all the work for Automake. -*- Autoconf -*-
843 +
844 +# This macro actually does too much some checks are only needed if
845 +# your package does certain things. But this isn't really a big deal.
846 +
847 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
848 +# Free Software Foundation, Inc.
849 +
850 +# This program is free software; you can redistribute it and/or modify
851 +# it under the terms of the GNU General Public License as published by
852 +# the Free Software Foundation; either version 2, or (at your option)
853 +# any later version.
854 +
855 +# This program is distributed in the hope that it will be useful,
856 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
857 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
858 +# GNU General Public License for more details.
859 +
860 +# You should have received a copy of the GNU General Public License
861 +# along with this program; if not, write to the Free Software
862 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
863 +# 02111-1307, USA.
864 +
865 +# serial 10
866 +
867 +AC_PREREQ([2.54])
868 +
869 +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
870 +# the ones we care about.
871 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
872 +
873 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
874 +# AM_INIT_AUTOMAKE([OPTIONS])
875 +# -----------------------------------------------
876 +# The call with PACKAGE and VERSION arguments is the old style
877 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
878 +# and VERSION should now be passed to AC_INIT and removed from
879 +# the call to AM_INIT_AUTOMAKE.
880 +# We support both call styles for the transition. After
881 +# the next Automake release, Autoconf can make the AC_INIT
882 +# arguments mandatory, and then we can depend on a new Autoconf
883 +# release and drop the old call support.
884 +AC_DEFUN([AM_INIT_AUTOMAKE],
885 +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
886 + AC_REQUIRE([AC_PROG_INSTALL])dnl
887 +# test to see if srcdir already configured
888 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
889 + test -f $srcdir/config.status; then
890 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
891 +fi
893 -# serial 1
894 +# test whether we have cygpath
895 +if test -z "$CYGPATH_W"; then
896 + if (cygpath --version) >/dev/null 2>/dev/null; then
897 + CYGPATH_W='cygpath -w'
898 + else
899 + CYGPATH_W=echo
900 + fi
901 +fi
902 +AC_SUBST([CYGPATH_W])
903 +
904 +# Define the identity of the package.
905 +dnl Distinguish between old-style and new-style calls.
906 +m4_ifval([$2],
907 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
908 + AC_SUBST([PACKAGE], [$1])dnl
909 + AC_SUBST([VERSION], [$2])],
910 +[_AM_SET_OPTIONS([$1])dnl
911 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
912 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
913 +
914 +_AM_IF_OPTION([no-define],,
915 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
916 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
917 +
918 +# Some tools Automake needs.
919 +AC_REQUIRE([AM_SANITY_CHECK])dnl
920 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
921 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
922 +AM_MISSING_PROG(AUTOCONF, autoconf)
923 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
924 +AM_MISSING_PROG(AUTOHEADER, autoheader)
925 +AM_MISSING_PROG(MAKEINFO, makeinfo)
926 +AM_MISSING_PROG(AMTAR, tar)
927 +AM_PROG_INSTALL_SH
928 +AM_PROG_INSTALL_STRIP
929 +# We need awk for the "check" target. The system "awk" is bad on
930 +# some platforms.
931 +AC_REQUIRE([AC_PROG_AWK])dnl
932 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
933 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
934 +
935 +_AM_IF_OPTION([no-dependencies],,
936 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
937 + [_AM_DEPENDENCIES(CC)],
938 + [define([AC_PROG_CC],
939 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
940 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
941 + [_AM_DEPENDENCIES(CXX)],
942 + [define([AC_PROG_CXX],
943 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
944 +])
945 +])
947 -dnl Usage:
948 -dnl AM_INIT_AUTOMAKE(package,version, [no-define])
950 -AC_DEFUN(AM_INIT_AUTOMAKE,
951 -[AC_REQUIRE([AC_PROG_INSTALL])
952 -PACKAGE=[$1]
953 -AC_SUBST(PACKAGE)
954 -VERSION=[$2]
955 -AC_SUBST(VERSION)
956 -dnl test to see if srcdir already configured
957 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
958 - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
959 -fi
960 -ifelse([$3],,
961 -AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
962 -AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
963 -AC_REQUIRE([AM_SANITY_CHECK])
964 -AC_REQUIRE([AC_ARG_PROGRAM])
965 -dnl FIXME This is truly gross.
966 -missing_dir=`cd $ac_aux_dir && pwd`
967 -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
968 -AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
969 -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
970 -AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
971 -AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
972 -AC_REQUIRE([AC_PROG_MAKE_SET])])
973 +# When config.status generates a header, we must update the stamp-h file.
974 +# This file resides in the same directory as the config header
975 +# that is generated. The stamp files are numbered to have different names.
976 +
977 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
978 +# loop where config.status creates the headers, so we can generate
979 +# our stamp files there.
980 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
981 +[# Compute $1's index in $config_headers.
982 +_am_stamp_count=1
983 +for _am_header in $config_headers :; do
984 + case $_am_header in
985 + $1 | $1:* )
986 + break ;;
987 + * )
988 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
989 + esac
990 +done
991 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
992 +
993 +# Copyright 2002 Free Software Foundation, Inc.
994 +
995 +# This program is free software; you can redistribute it and/or modify
996 +# it under the terms of the GNU General Public License as published by
997 +# the Free Software Foundation; either version 2, or (at your option)
998 +# any later version.
999 +
1000 +# This program is distributed in the hope that it will be useful,
1001 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1002 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1003 +# GNU General Public License for more details.
1005 +# You should have received a copy of the GNU General Public License
1006 +# along with this program; if not, write to the Free Software
1007 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1009 +# AM_AUTOMAKE_VERSION(VERSION)
1010 +# ----------------------------
1011 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
1012 +# generated from the m4 files accompanying Automake X.Y.
1013 +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"])
1015 +# AM_SET_CURRENT_AUTOMAKE_VERSION
1016 +# -------------------------------
1017 +# Call AM_AUTOMAKE_VERSION so it can be traced.
1018 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
1019 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1020 + [AM_AUTOMAKE_VERSION([1.7.8])])
1022 +# Helper functions for option handling. -*- Autoconf -*-
1024 +# Copyright 2001, 2002 Free Software Foundation, Inc.
1026 +# This program is free software; you can redistribute it and/or modify
1027 +# it under the terms of the GNU General Public License as published by
1028 +# the Free Software Foundation; either version 2, or (at your option)
1029 +# any later version.
1031 +# This program is distributed in the hope that it will be useful,
1032 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1033 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1034 +# GNU General Public License for more details.
1036 +# You should have received a copy of the GNU General Public License
1037 +# along with this program; if not, write to the Free Software
1038 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1039 +# 02111-1307, USA.
1041 +# serial 2
1043 +# _AM_MANGLE_OPTION(NAME)
1044 +# -----------------------
1045 +AC_DEFUN([_AM_MANGLE_OPTION],
1046 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1048 +# _AM_SET_OPTION(NAME)
1049 +# ------------------------------
1050 +# Set option NAME. Presently that only means defining a flag for this option.
1051 +AC_DEFUN([_AM_SET_OPTION],
1052 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
1054 +# _AM_SET_OPTIONS(OPTIONS)
1055 +# ----------------------------------
1056 +# OPTIONS is a space-separated list of Automake options.
1057 +AC_DEFUN([_AM_SET_OPTIONS],
1058 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1060 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1061 +# -------------------------------------------
1062 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1063 +AC_DEFUN([_AM_IF_OPTION],
1064 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1067 # Check to make sure that the build environment is sane.
1070 -AC_DEFUN(AM_SANITY_CHECK,
1071 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1073 +# This program is free software; you can redistribute it and/or modify
1074 +# it under the terms of the GNU General Public License as published by
1075 +# the Free Software Foundation; either version 2, or (at your option)
1076 +# any later version.
1078 +# This program is distributed in the hope that it will be useful,
1079 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1080 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1081 +# GNU General Public License for more details.
1083 +# You should have received a copy of the GNU General Public License
1084 +# along with this program; if not, write to the Free Software
1085 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1086 +# 02111-1307, USA.
1088 +# serial 3
1090 +# AM_SANITY_CHECK
1091 +# ---------------
1092 +AC_DEFUN([AM_SANITY_CHECK],
1093 [AC_MSG_CHECKING([whether build environment is sane])
1094 # Just in case
1095 sleep 1
1096 -echo timestamp > conftestfile
1097 +echo timestamp > conftest.file
1098 # Do `set' in a subshell so we don't clobber the current shell's
1099 # arguments. Must try -L first in case configure is actually a
1100 # symlink; some systems play weird games with the mod time of symlinks
1101 # (eg FreeBSD returns the mod time of the symlink's containing
1102 # directory).
1103 if (
1104 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1105 - if test "[$]*" = "X"; then
1106 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1107 + if test "$[*]" = "X"; then
1108 # -L didn't work.
1109 - set X `ls -t $srcdir/configure conftestfile`
1110 + set X `ls -t $srcdir/configure conftest.file`
1111 fi
1112 - if test "[$]*" != "X $srcdir/configure conftestfile" \
1113 - && test "[$]*" != "X conftestfile $srcdir/configure"; then
1114 + rm -f conftest.file
1115 + if test "$[*]" != "X $srcdir/configure conftest.file" \
1116 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
1118 # If neither matched, then we have a broken ls. This can happen
1119 # if, for instance, CONFIG_SHELL is bash and it inherits a
1120 @@ -74,7 +262,7 @@ if (
1121 alias in your environment])
1122 fi
1124 - test "[$]2" = conftestfile
1125 + test "$[2]" = conftest.file
1127 then
1128 # Ok.
1129 @@ -83,84 +271,1050 @@ else
1130 AC_MSG_ERROR([newly created file is older than distributed files!
1131 Check your system clock])
1132 fi
1133 -rm -f conftest*
1134 AC_MSG_RESULT(yes)])
1136 -dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
1137 -dnl The program must properly implement --version.
1138 -AC_DEFUN(AM_MISSING_PROG,
1139 -[AC_MSG_CHECKING(for working $2)
1140 -# Run test in a subshell; some versions of sh will print an error if
1141 -# an executable is not found, even if stderr is redirected.
1142 -# Redirect stdin to placate older versions of autoconf. Sigh.
1143 -if ($2 --version) < /dev/null > /dev/null 2>&1; then
1144 - $1=$2
1145 - AC_MSG_RESULT(found)
1146 +# -*- Autoconf -*-
1149 +# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc.
1151 +# This program is free software; you can redistribute it and/or modify
1152 +# it under the terms of the GNU General Public License as published by
1153 +# the Free Software Foundation; either version 2, or (at your option)
1154 +# any later version.
1156 +# This program is distributed in the hope that it will be useful,
1157 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1158 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1159 +# GNU General Public License for more details.
1161 +# You should have received a copy of the GNU General Public License
1162 +# along with this program; if not, write to the Free Software
1163 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1164 +# 02111-1307, USA.
1166 +# serial 3
1168 +# AM_MISSING_PROG(NAME, PROGRAM)
1169 +# ------------------------------
1170 +AC_DEFUN([AM_MISSING_PROG],
1171 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
1172 +$1=${$1-"${am_missing_run}$2"}
1173 +AC_SUBST($1)])
1176 +# AM_MISSING_HAS_RUN
1177 +# ------------------
1178 +# Define MISSING if not defined so far and test if it supports --run.
1179 +# If it does, set am_missing_run to use it, otherwise, to nothing.
1180 +AC_DEFUN([AM_MISSING_HAS_RUN],
1181 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1182 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1183 +# Use eval to expand $SHELL
1184 +if eval "$MISSING --run true"; then
1185 + am_missing_run="$MISSING --run "
1186 else
1187 - $1="$3/missing $2"
1188 - AC_MSG_RESULT(missing)
1189 + am_missing_run=
1190 + AC_MSG_WARN([`missing' script is too old or missing])
1191 fi
1192 -AC_SUBST($1)])
1193 +])
1195 +# AM_AUX_DIR_EXPAND
1197 +# Copyright 2001 Free Software Foundation, Inc.
1199 +# This program is free software; you can redistribute it and/or modify
1200 +# it under the terms of the GNU General Public License as published by
1201 +# the Free Software Foundation; either version 2, or (at your option)
1202 +# any later version.
1204 +# This program is distributed in the hope that it will be useful,
1205 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1206 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1207 +# GNU General Public License for more details.
1209 +# You should have received a copy of the GNU General Public License
1210 +# along with this program; if not, write to the Free Software
1211 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1212 +# 02111-1307, USA.
1214 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
1215 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
1216 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
1217 +#
1218 +# Of course, Automake must honor this variable whenever it calls a
1219 +# tool from the auxiliary directory. The problem is that $srcdir (and
1220 +# therefore $ac_aux_dir as well) can be either absolute or relative,
1221 +# depending on how configure is run. This is pretty annoying, since
1222 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
1223 +# source directory, any form will work fine, but in subdirectories a
1224 +# relative path needs to be adjusted first.
1225 +#
1226 +# $ac_aux_dir/missing
1227 +# fails when called from a subdirectory if $ac_aux_dir is relative
1228 +# $top_srcdir/$ac_aux_dir/missing
1229 +# fails if $ac_aux_dir is absolute,
1230 +# fails when called from a subdirectory in a VPATH build with
1231 +# a relative $ac_aux_dir
1232 +#
1233 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
1234 +# are both prefixed by $srcdir. In an in-source build this is usually
1235 +# harmless because $srcdir is `.', but things will broke when you
1236 +# start a VPATH build or use an absolute $srcdir.
1237 +#
1238 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
1239 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
1240 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
1241 +# and then we would define $MISSING as
1242 +# MISSING="\${SHELL} $am_aux_dir/missing"
1243 +# This will work as long as MISSING is not called from configure, because
1244 +# unfortunately $(top_srcdir) has no meaning in configure.
1245 +# However there are other variables, like CC, which are often used in
1246 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
1247 +#
1248 +# Another solution, used here, is to always expand $ac_aux_dir to an
1249 +# absolute PATH. The drawback is that using absolute paths prevent a
1250 +# configured tree to be moved without reconfiguration.
1252 +# Rely on autoconf to set up CDPATH properly.
1253 +AC_PREREQ([2.50])
1255 +AC_DEFUN([AM_AUX_DIR_EXPAND], [
1256 +# expand $ac_aux_dir to an absolute path
1257 +am_aux_dir=`cd $ac_aux_dir && pwd`
1258 +])
1260 +# AM_PROG_INSTALL_SH
1261 +# ------------------
1262 +# Define $install_sh.
1264 +# Copyright 2001 Free Software Foundation, Inc.
1266 +# This program is free software; you can redistribute it and/or modify
1267 +# it under the terms of the GNU General Public License as published by
1268 +# the Free Software Foundation; either version 2, or (at your option)
1269 +# any later version.
1271 +# This program is distributed in the hope that it will be useful,
1272 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1273 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1274 +# GNU General Public License for more details.
1276 +# You should have received a copy of the GNU General Public License
1277 +# along with this program; if not, write to the Free Software
1278 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1279 +# 02111-1307, USA.
1281 +AC_DEFUN([AM_PROG_INSTALL_SH],
1282 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1283 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
1284 +AC_SUBST(install_sh)])
1286 +# AM_PROG_INSTALL_STRIP
1288 +# Copyright 2001 Free Software Foundation, Inc.
1290 +# This program is free software; you can redistribute it and/or modify
1291 +# it under the terms of the GNU General Public License as published by
1292 +# the Free Software Foundation; either version 2, or (at your option)
1293 +# any later version.
1295 +# This program is distributed in the hope that it will be useful,
1296 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1297 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1298 +# GNU General Public License for more details.
1300 +# You should have received a copy of the GNU General Public License
1301 +# along with this program; if not, write to the Free Software
1302 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1303 +# 02111-1307, USA.
1305 +# One issue with vendor `install' (even GNU) is that you can't
1306 +# specify the program used to strip binaries. This is especially
1307 +# annoying in cross-compiling environments, where the build's strip
1308 +# is unlikely to handle the host's binaries.
1309 +# Fortunately install-sh will honor a STRIPPROG variable, so we
1310 +# always use install-sh in `make install-strip', and initialize
1311 +# STRIPPROG with the value of the STRIP variable (set by the user).
1312 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
1313 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1314 +# Installed binaries are usually stripped using `strip' when the user
1315 +# run `make install-strip'. However `strip' might not be the right
1316 +# tool to use in cross-compilation environments, therefore Automake
1317 +# will honor the `STRIP' environment variable to overrule this program.
1318 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
1319 +if test "$cross_compiling" != no; then
1320 + AC_CHECK_TOOL([STRIP], [strip], :)
1321 +fi
1322 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1323 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
1325 +# -*- Autoconf -*-
1326 +# Copyright (C) 2003 Free Software Foundation, Inc.
1328 +# This program is free software; you can redistribute it and/or modify
1329 +# it under the terms of the GNU General Public License as published by
1330 +# the Free Software Foundation; either version 2, or (at your option)
1331 +# any later version.
1333 +# This program is distributed in the hope that it will be useful,
1334 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1335 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1336 +# GNU General Public License for more details.
1338 +# You should have received a copy of the GNU General Public License
1339 +# along with this program; if not, write to the Free Software
1340 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1341 +# 02111-1307, USA.
1343 +# serial 1
1345 +# Check whether the underlying file-system supports filenames
1346 +# with a leading dot. For instance MS-DOS doesn't.
1347 +AC_DEFUN([AM_SET_LEADING_DOT],
1348 +[rm -rf .tst 2>/dev/null
1349 +mkdir .tst 2>/dev/null
1350 +if test -d .tst; then
1351 + am__leading_dot=.
1352 +else
1353 + am__leading_dot=_
1354 +fi
1355 +rmdir .tst 2>/dev/null
1356 +AC_SUBST([am__leading_dot])])
1358 +# serial 5 -*- Autoconf -*-
1360 +# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
1362 +# This program is free software; you can redistribute it and/or modify
1363 +# it under the terms of the GNU General Public License as published by
1364 +# the Free Software Foundation; either version 2, or (at your option)
1365 +# any later version.
1367 +# This program is distributed in the hope that it will be useful,
1368 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1369 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1370 +# GNU General Public License for more details.
1372 +# You should have received a copy of the GNU General Public License
1373 +# along with this program; if not, write to the Free Software
1374 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1375 +# 02111-1307, USA.
1378 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
1379 +# written in clear, in which case automake, when reading aclocal.m4,
1380 +# will think it sees a *use*, and therefore will trigger all it's
1381 +# C support machinery. Also note that it means that autoscan, seeing
1382 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
1386 +# _AM_DEPENDENCIES(NAME)
1387 +# ----------------------
1388 +# See how the compiler implements dependency checking.
1389 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
1390 +# We try a few techniques and use that to set a single cache variable.
1391 +#
1392 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
1393 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
1394 +# dependency, and given that the user is not expected to run this macro,
1395 +# just rely on AC_PROG_CC.
1396 +AC_DEFUN([_AM_DEPENDENCIES],
1397 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
1398 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
1399 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
1400 +AC_REQUIRE([AM_DEP_TRACK])dnl
1402 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
1403 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
1404 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
1405 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
1406 + [depcc="$$1" am_compiler_list=])
1408 +AC_CACHE_CHECK([dependency style of $depcc],
1409 + [am_cv_$1_dependencies_compiler_type],
1410 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
1411 + # We make a subdir and do the tests there. Otherwise we can end up
1412 + # making bogus files that we don't know about and never remove. For
1413 + # instance it was reported that on HP-UX the gcc test will end up
1414 + # making a dummy file named `D' -- because `-MD' means `put the output
1415 + # in D'.
1416 + mkdir conftest.dir
1417 + # Copy depcomp to subdir because otherwise we won't find it if we're
1418 + # using a relative directory.
1419 + cp "$am_depcomp" conftest.dir
1420 + cd conftest.dir
1421 + # We will build objects and dependencies in a subdirectory because
1422 + # it helps to detect inapplicable dependency modes. For instance
1423 + # both Tru64's cc and ICC support -MD to output dependencies as a
1424 + # side effect of compilation, but ICC will put the dependencies in
1425 + # the current directory while Tru64 will put them in the object
1426 + # directory.
1427 + mkdir sub
1429 + am_cv_$1_dependencies_compiler_type=none
1430 + if test "$am_compiler_list" = ""; then
1431 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
1432 + fi
1433 + for depmode in $am_compiler_list; do
1434 + # Setup a source with many dependencies, because some compilers
1435 + # like to wrap large dependency lists on column 80 (with \), and
1436 + # we should not choose a depcomp mode which is confused by this.
1437 + #
1438 + # We need to recreate these files for each test, as the compiler may
1439 + # overwrite some of them when testing with obscure command lines.
1440 + # This happens at least with the AIX C compiler.
1441 + : > sub/conftest.c
1442 + for i in 1 2 3 4 5 6; do
1443 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
1444 + : > sub/conftst$i.h
1445 + done
1446 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
1448 + case $depmode in
1449 + nosideeffect)
1450 + # after this tag, mechanisms are not by side-effect, so they'll
1451 + # only be used when explicitly requested
1452 + if test "x$enable_dependency_tracking" = xyes; then
1453 + continue
1454 + else
1455 + break
1456 + fi
1457 + ;;
1458 + none) break ;;
1459 + esac
1460 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
1461 + # mode. It turns out that the SunPro C++ compiler does not properly
1462 + # handle `-M -o', and we need to detect this.
1463 + if depmode=$depmode \
1464 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
1465 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
1466 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
1467 + >/dev/null 2>conftest.err &&
1468 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
1469 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
1470 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
1471 + # icc doesn't choke on unknown options, it will just issue warnings
1472 + # (even with -Werror). So we grep stderr for any message
1473 + # that says an option was ignored.
1474 + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
1475 + am_cv_$1_dependencies_compiler_type=$depmode
1476 + break
1477 + fi
1478 + fi
1479 + done
1481 + cd ..
1482 + rm -rf conftest.dir
1483 +else
1484 + am_cv_$1_dependencies_compiler_type=none
1485 +fi
1486 +])
1487 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
1488 +AM_CONDITIONAL([am__fastdep$1], [
1489 + test "x$enable_dependency_tracking" != xno \
1490 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
1491 +])
1494 +# AM_SET_DEPDIR
1495 +# -------------
1496 +# Choose a directory name for dependency files.
1497 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
1498 +AC_DEFUN([AM_SET_DEPDIR],
1499 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
1500 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
1501 +])
1504 +# AM_DEP_TRACK
1505 +# ------------
1506 +AC_DEFUN([AM_DEP_TRACK],
1507 +[AC_ARG_ENABLE(dependency-tracking,
1508 +[ --disable-dependency-tracking Speeds up one-time builds
1509 + --enable-dependency-tracking Do not reject slow dependency extractors])
1510 +if test "x$enable_dependency_tracking" != xno; then
1511 + am_depcomp="$ac_aux_dir/depcomp"
1512 + AMDEPBACKSLASH='\'
1513 +fi
1514 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
1515 +AC_SUBST([AMDEPBACKSLASH])
1516 +])
1518 +# Generate code to set up dependency tracking. -*- Autoconf -*-
1520 +# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
1522 +# This program is free software; you can redistribute it and/or modify
1523 +# it under the terms of the GNU General Public License as published by
1524 +# the Free Software Foundation; either version 2, or (at your option)
1525 +# any later version.
1527 +# This program is distributed in the hope that it will be useful,
1528 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1529 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1530 +# GNU General Public License for more details.
1532 +# You should have received a copy of the GNU General Public License
1533 +# along with this program; if not, write to the Free Software
1534 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1535 +# 02111-1307, USA.
1537 +#serial 2
1539 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
1540 +# ------------------------------
1541 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
1542 +[for mf in $CONFIG_FILES; do
1543 + # Strip MF so we end up with the name of the file.
1544 + mf=`echo "$mf" | sed -e 's/:.*$//'`
1545 + # Check whether this is an Automake generated Makefile or not.
1546 + # We used to match only the files named `Makefile.in', but
1547 + # some people rename them; so instead we look at the file content.
1548 + # Grep'ing the first line is not enough: some people post-process
1549 + # each Makefile.in and add a new line on top of each file to say so.
1550 + # So let's grep whole file.
1551 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
1552 + dirpart=`AS_DIRNAME("$mf")`
1553 + else
1554 + continue
1555 + fi
1556 + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
1557 + # Extract the definition of DEP_FILES from the Makefile without
1558 + # running `make'.
1559 + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
1560 + test -z "$DEPDIR" && continue
1561 + # When using ansi2knr, U may be empty or an underscore; expand it
1562 + U=`sed -n -e '/^U = / s///p' < "$mf"`
1563 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
1564 + # We invoke sed twice because it is the simplest approach to
1565 + # changing $(DEPDIR) to its actual value in the expansion.
1566 + for file in `sed -n -e '
1567 + /^DEP_FILES = .*\\\\$/ {
1568 + s/^DEP_FILES = //
1569 + :loop
1570 + s/\\\\$//
1571 + p
1572 + n
1573 + /\\\\$/ b loop
1574 + p
1575 + }
1576 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
1577 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
1578 + # Make sure the directory exists.
1579 + test -f "$dirpart/$file" && continue
1580 + fdir=`AS_DIRNAME(["$file"])`
1581 + AS_MKDIR_P([$dirpart/$fdir])
1582 + # echo "creating $dirpart/$file"
1583 + echo '# dummy' > "$dirpart/$file"
1584 + done
1585 +done
1586 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
1589 +# AM_OUTPUT_DEPENDENCY_COMMANDS
1590 +# -----------------------------
1591 +# This macro should only be invoked once -- use via AC_REQUIRE.
1592 +#
1593 +# This code is only required when automatic dependency tracking
1594 +# is enabled. FIXME. This creates each `.P' file that we will
1595 +# need in order to bootstrap the dependency handling code.
1596 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
1597 +[AC_CONFIG_COMMANDS([depfiles],
1598 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
1599 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
1600 +])
1602 +# Check to see how 'make' treats includes. -*- Autoconf -*-
1604 +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
1606 +# This program is free software; you can redistribute it and/or modify
1607 +# it under the terms of the GNU General Public License as published by
1608 +# the Free Software Foundation; either version 2, or (at your option)
1609 +# any later version.
1611 +# This program is distributed in the hope that it will be useful,
1612 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1613 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1614 +# GNU General Public License for more details.
1616 +# You should have received a copy of the GNU General Public License
1617 +# along with this program; if not, write to the Free Software
1618 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1619 +# 02111-1307, USA.
1621 +# serial 2
1623 +# AM_MAKE_INCLUDE()
1624 +# -----------------
1625 +# Check to see how make treats includes.
1626 +AC_DEFUN([AM_MAKE_INCLUDE],
1627 +[am_make=${MAKE-make}
1628 +cat > confinc << 'END'
1629 +am__doit:
1630 + @echo done
1631 +.PHONY: am__doit
1632 +END
1633 +# If we don't find an include directive, just comment out the code.
1634 +AC_MSG_CHECKING([for style of include used by $am_make])
1635 +am__include="#"
1636 +am__quote=
1637 +_am_result=none
1638 +# First try GNU make style include.
1639 +echo "include confinc" > confmf
1640 +# We grep out `Entering directory' and `Leaving directory'
1641 +# messages which can occur if `w' ends up in MAKEFLAGS.
1642 +# In particular we don't look at `^make:' because GNU make might
1643 +# be invoked under some other name (usually "gmake"), in which
1644 +# case it prints its new name instead of `make'.
1645 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1646 + am__include=include
1647 + am__quote=
1648 + _am_result=GNU
1649 +fi
1650 +# Now try BSD make style include.
1651 +if test "$am__include" = "#"; then
1652 + echo '.include "confinc"' > confmf
1653 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1654 + am__include=.include
1655 + am__quote="\""
1656 + _am_result=BSD
1657 + fi
1658 +fi
1659 +AC_SUBST([am__include])
1660 +AC_SUBST([am__quote])
1661 +AC_MSG_RESULT([$_am_result])
1662 +rm -f confinc confmf
1663 +])
1665 -# Like AC_CONFIG_HEADER, but automatically create stamp file.
1666 +# AM_CONDITIONAL -*- Autoconf -*-
1668 -AC_DEFUN(AM_CONFIG_HEADER,
1669 -[AC_PREREQ([2.12])
1670 -AC_CONFIG_HEADER([$1])
1671 -dnl When config.status generates a header, we must update the stamp-h file.
1672 -dnl This file resides in the same directory as the config header
1673 -dnl that is generated. We must strip everything past the first ":",
1674 -dnl and everything past the last "/".
1675 -AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
1676 -ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
1677 -<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
1678 -<<am_indx=1
1679 -for am_file in <<$1>>; do
1680 - case " <<$>>CONFIG_HEADERS " in
1681 - *" <<$>>am_file "*<<)>>
1682 - echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
1683 - ;;
1684 - esac
1685 - am_indx=`expr "<<$>>am_indx" + 1`
1686 -done<<>>dnl>>)
1687 -changequote([,]))])
1690 -# serial 30 AM_PROG_LIBTOOL
1691 -AC_DEFUN(AM_PROG_LIBTOOL,
1692 -[AC_PREREQ(2.12.2)dnl
1693 -AC_REQUIRE([AM_ENABLE_SHARED])dnl
1694 -AC_REQUIRE([AM_ENABLE_STATIC])dnl
1695 +# Copyright 1997, 2000, 2001 Free Software Foundation, Inc.
1697 +# This program is free software; you can redistribute it and/or modify
1698 +# it under the terms of the GNU General Public License as published by
1699 +# the Free Software Foundation; either version 2, or (at your option)
1700 +# any later version.
1702 +# This program is distributed in the hope that it will be useful,
1703 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1704 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1705 +# GNU General Public License for more details.
1707 +# You should have received a copy of the GNU General Public License
1708 +# along with this program; if not, write to the Free Software
1709 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1710 +# 02111-1307, USA.
1712 +# serial 5
1714 +AC_PREREQ(2.52)
1716 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
1717 +# -------------------------------------
1718 +# Define a conditional.
1719 +AC_DEFUN([AM_CONDITIONAL],
1720 +[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
1721 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
1722 +AC_SUBST([$1_TRUE])
1723 +AC_SUBST([$1_FALSE])
1724 +if $2; then
1725 + $1_TRUE=
1726 + $1_FALSE='#'
1727 +else
1728 + $1_TRUE='#'
1729 + $1_FALSE=
1730 +fi
1731 +AC_CONFIG_COMMANDS_PRE(
1732 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
1733 + AC_MSG_ERROR([conditional "$1" was never defined.
1734 +Usually this means the macro was only invoked conditionally.])
1735 +fi])])
1737 +# Like AC_CONFIG_HEADER, but automatically create stamp file. -*- Autoconf -*-
1739 +# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc.
1741 +# This program is free software; you can redistribute it and/or modify
1742 +# it under the terms of the GNU General Public License as published by
1743 +# the Free Software Foundation; either version 2, or (at your option)
1744 +# any later version.
1746 +# This program is distributed in the hope that it will be useful,
1747 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
1748 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1749 +# GNU General Public License for more details.
1751 +# You should have received a copy of the GNU General Public License
1752 +# along with this program; if not, write to the Free Software
1753 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
1754 +# 02111-1307, USA.
1756 +AC_PREREQ([2.52])
1758 +# serial 6
1760 +# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
1761 +AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
1763 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1765 +# serial 47 AC_PROG_LIBTOOL
1766 +# Debian $Rev: 100 $
1769 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1770 +# -----------------------------------------------------------
1771 +# If this macro is not defined by Autoconf, define it here.
1772 +m4_ifdef([AC_PROVIDE_IFELSE],
1773 + [],
1774 + [m4_define([AC_PROVIDE_IFELSE],
1775 + [m4_ifdef([AC_PROVIDE_$1],
1776 + [$2], [$3])])])
1779 +# AC_PROG_LIBTOOL
1780 +# ---------------
1781 +AC_DEFUN([AC_PROG_LIBTOOL],
1782 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1783 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1784 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1785 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
1786 + [AC_LIBTOOL_CXX],
1787 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1788 + ])])
1789 +dnl And a similar setup for Fortran 77 support
1790 + AC_PROVIDE_IFELSE([AC_PROG_F77],
1791 + [AC_LIBTOOL_F77],
1792 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1793 +])])
1795 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1796 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1797 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1798 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1799 + [AC_LIBTOOL_GCJ],
1800 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1801 + [AC_LIBTOOL_GCJ],
1802 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1803 + [AC_LIBTOOL_GCJ],
1804 + [ifdef([AC_PROG_GCJ],
1805 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1806 + ifdef([A][M_PROG_GCJ],
1807 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1808 + ifdef([LT_AC_PROG_GCJ],
1809 + [define([LT_AC_PROG_GCJ],
1810 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1811 +])])# AC_PROG_LIBTOOL
1814 +# _AC_PROG_LIBTOOL
1815 +# ----------------
1816 +AC_DEFUN([_AC_PROG_LIBTOOL],
1817 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1818 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1819 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1820 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1822 +# This can be used to rebuild libtool when needed
1823 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1825 +# Always use our own libtool.
1826 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1827 +AC_SUBST(LIBTOOL)dnl
1829 +# Prevent multiple expansion
1830 +define([AC_PROG_LIBTOOL], [])
1831 +])# _AC_PROG_LIBTOOL
1834 +# AC_LIBTOOL_SETUP
1835 +# ----------------
1836 +AC_DEFUN([AC_LIBTOOL_SETUP],
1837 +[AC_PREREQ(2.50)dnl
1838 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
1839 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
1840 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1841 AC_REQUIRE([AC_CANONICAL_HOST])dnl
1842 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1843 -AC_REQUIRE([AC_PROG_RANLIB])dnl
1844 AC_REQUIRE([AC_PROG_CC])dnl
1845 -AC_REQUIRE([AM_PROG_LD])dnl
1846 -AC_REQUIRE([AM_PROG_NM])dnl
1847 -AC_REQUIRE([AM_SYS_NM_PARSE])dnl
1848 -AC_REQUIRE([AM_SYS_SYMBOL_UNDERSCORE])dnl
1849 +AC_REQUIRE([AC_PROG_LD])dnl
1850 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1851 +AC_REQUIRE([AC_PROG_NM])dnl
1853 AC_REQUIRE([AC_PROG_LN_S])dnl
1854 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1855 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1856 +AC_REQUIRE([AC_OBJEXT])dnl
1857 +AC_REQUIRE([AC_EXEEXT])dnl
1858 dnl
1859 -# Always use our own libtool.
1860 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1861 -AC_SUBST(LIBTOOL)dnl
1863 -# Check for any special flags to pass to ltconfig.
1864 -libtool_flags=
1865 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1866 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1867 -test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1868 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1869 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1870 +AC_LIBTOOL_SYS_MAX_CMD_LEN
1871 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1872 +AC_LIBTOOL_OBJDIR
1874 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1875 +_LT_AC_PROG_ECHO_BACKSLASH
1877 +case $host_os in
1878 +aix3*)
1879 + # AIX sometimes has problems with the GCC collect2 program. For some
1880 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1881 + # vanish in a puff of smoke.
1882 + if test "X${COLLECT_NAMES+set}" != Xset; then
1883 + COLLECT_NAMES=
1884 + export COLLECT_NAMES
1885 + fi
1886 + ;;
1887 +esac
1889 +# Sed substitution that helps us do robust quoting. It backslashifies
1890 +# metacharacters that are still active within double-quoted strings.
1891 +Xsed='sed -e s/^X//'
1892 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1894 +# Same as above, but do not quote variable references.
1895 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1897 +# Sed substitution to delay expansion of an escaped shell variable in a
1898 +# double_quote_subst'ed string.
1899 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1901 +# Sed substitution to avoid accidental globbing in evaled expressions
1902 +no_glob_subst='s/\*/\\\*/g'
1904 +# Constants:
1905 +rm="rm -f"
1907 +# Global variables:
1908 +default_ofile=libtool
1909 +can_build_shared=yes
1911 +# All known linkers require a `.a' archive for static linking (except M$VC,
1912 +# which needs '.lib').
1913 +libext=a
1914 +ltmain="$ac_aux_dir/ltmain.sh"
1915 +ofile="$default_ofile"
1916 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1918 +AC_CHECK_TOOL(AR, ar, false)
1919 +AC_CHECK_TOOL(RANLIB, ranlib, :)
1920 +AC_CHECK_TOOL(STRIP, strip, :)
1922 +old_CC="$CC"
1923 +old_CFLAGS="$CFLAGS"
1925 +# Set sane defaults for various variables
1926 +test -z "$AR" && AR=ar
1927 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1928 +test -z "$AS" && AS=as
1929 +test -z "$CC" && CC=cc
1930 +test -z "$LTCC" && LTCC=$CC
1931 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1932 +test -z "$LD" && LD=ld
1933 +test -z "$LN_S" && LN_S="ln -s"
1934 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1935 +test -z "$NM" && NM=nm
1936 +test -z "$SED" && SED=sed
1937 +test -z "$OBJDUMP" && OBJDUMP=objdump
1938 +test -z "$RANLIB" && RANLIB=:
1939 +test -z "$STRIP" && STRIP=:
1940 +test -z "$ac_objext" && ac_objext=o
1942 +# Determine commands to create old-style static archives.
1943 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1944 +old_postinstall_cmds='chmod 644 $oldlib'
1945 +old_postuninstall_cmds=
1947 +if test -n "$RANLIB"; then
1948 + case $host_os in
1949 + openbsd*)
1950 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
1951 + ;;
1952 + *)
1953 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
1954 + ;;
1955 + esac
1956 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1957 +fi
1959 +# Only perform the check for file, if the check method requires it
1960 +case $deplibs_check_method in
1961 +file_magic*)
1962 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1963 + AC_PATH_MAGIC
1964 + fi
1965 + ;;
1966 +esac
1968 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1969 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1970 +enable_win32_dll=yes, enable_win32_dll=no)
1972 +AC_ARG_ENABLE([libtool-lock],
1973 + [AC_HELP_STRING([--disable-libtool-lock],
1974 + [avoid locking (might break parallel builds)])])
1975 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1977 +AC_ARG_WITH([pic],
1978 + [AC_HELP_STRING([--with-pic],
1979 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1980 + [pic_mode="$withval"],
1981 + [pic_mode=default])
1982 +test -z "$pic_mode" && pic_mode=default
1984 +# Use C for the default configuration in the libtool script
1985 +tagname=
1986 +AC_LIBTOOL_LANG_C_CONFIG
1987 +_LT_AC_TAGCONFIG
1988 +])# AC_LIBTOOL_SETUP
1991 +# _LT_AC_SYS_COMPILER
1992 +# -------------------
1993 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1994 +[AC_REQUIRE([AC_PROG_CC])dnl
1996 +# If no C compiler was specified, use CC.
1997 +LTCC=${LTCC-"$CC"}
1999 +# Allow CC to be a program name with arguments.
2000 +compiler=$CC
2001 +])# _LT_AC_SYS_COMPILER
2004 +# _LT_AC_SYS_LIBPATH_AIX
2005 +# ----------------------
2006 +# Links a minimal program and checks the executable
2007 +# for the system default hardcoded library path. In most cases,
2008 +# this is /usr/lib:/lib, but when the MPI compilers are used
2009 +# the location of the communication and MPI libs are included too.
2010 +# If we don't find anything, use the default library path according
2011 +# to the aix ld manual.
2012 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
2013 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2014 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2015 +}'`
2016 +# Check for a 64-bit object if we didn't find anything.
2017 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
2018 +}'`; fi],[])
2019 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2020 +])# _LT_AC_SYS_LIBPATH_AIX
2023 +# _LT_AC_SHELL_INIT(ARG)
2024 +# ----------------------
2025 +AC_DEFUN([_LT_AC_SHELL_INIT],
2026 +[ifdef([AC_DIVERSION_NOTICE],
2027 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2028 + [AC_DIVERT_PUSH(NOTICE)])
2029 +$1
2030 +AC_DIVERT_POP
2031 +])# _LT_AC_SHELL_INIT
2034 +# _LT_AC_PROG_ECHO_BACKSLASH
2035 +# --------------------------
2036 +# Add some code to the start of the generated configure script which
2037 +# will find an echo command which doesn't interpret backslashes.
2038 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
2039 +[_LT_AC_SHELL_INIT([
2040 +# Check that we are running under the correct shell.
2041 +SHELL=${CONFIG_SHELL-/bin/sh}
2043 +case X$ECHO in
2044 +X*--fallback-echo)
2045 + # Remove one level of quotation (which was required for Make).
2046 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2047 + ;;
2048 +esac
2050 +echo=${ECHO-echo}
2051 +if test "X[$]1" = X--no-reexec; then
2052 + # Discard the --no-reexec flag, and continue.
2053 + shift
2054 +elif test "X[$]1" = X--fallback-echo; then
2055 + # Avoid inline document here, it may be left over
2056 + :
2057 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
2058 + # Yippee, $echo works!
2059 + :
2060 +else
2061 + # Restart under the correct shell.
2062 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2063 +fi
2065 +if test "X[$]1" = X--fallback-echo; then
2066 + # used as fallback echo
2067 + shift
2068 + cat <<EOF
2069 +[$]*
2070 +EOF
2071 + exit 0
2072 +fi
2074 +# The HP-UX ksh and POSIX shell print the target directory to stdout
2075 +# if CDPATH is set.
2076 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
2078 +if test -z "$ECHO"; then
2079 +if test "X${echo_test_string+set}" != Xset; then
2080 +# find a string as large as possible, as long as the shell can cope with it
2081 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2082 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2083 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
2084 + echo_test_string="`eval $cmd`" &&
2085 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
2086 + then
2087 + break
2088 + fi
2089 + done
2090 +fi
2092 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2093 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2094 + test "X$echo_testing_string" = "X$echo_test_string"; then
2095 + :
2096 +else
2097 + # The Solaris, AIX, and Digital Unix default echo programs unquote
2098 + # backslashes. This makes it impossible to quote backslashes using
2099 + # echo "$something" | sed 's/\\/\\\\/g'
2100 + #
2101 + # So, first we look for a working echo in the user's PATH.
2103 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2104 + for dir in $PATH /usr/ucb; do
2105 + IFS="$lt_save_ifs"
2106 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2107 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2108 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2109 + test "X$echo_testing_string" = "X$echo_test_string"; then
2110 + echo="$dir/echo"
2111 + break
2112 + fi
2113 + done
2114 + IFS="$lt_save_ifs"
2116 + if test "X$echo" = Xecho; then
2117 + # We didn't find a better echo, so look for alternatives.
2118 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
2119 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
2120 + test "X$echo_testing_string" = "X$echo_test_string"; then
2121 + # This shell has a builtin print -r that does the trick.
2122 + echo='print -r'
2123 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
2124 + test "X$CONFIG_SHELL" != X/bin/ksh; then
2125 + # If we have ksh, try running configure again with it.
2126 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2127 + export ORIGINAL_CONFIG_SHELL
2128 + CONFIG_SHELL=/bin/ksh
2129 + export CONFIG_SHELL
2130 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2131 + else
2132 + # Try using printf.
2133 + echo='printf %s\n'
2134 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
2135 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
2136 + test "X$echo_testing_string" = "X$echo_test_string"; then
2137 + # Cool, printf works
2138 + :
2139 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2140 + test "X$echo_testing_string" = 'X\t' &&
2141 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2142 + test "X$echo_testing_string" = "X$echo_test_string"; then
2143 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2144 + export CONFIG_SHELL
2145 + SHELL="$CONFIG_SHELL"
2146 + export SHELL
2147 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
2148 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2149 + test "X$echo_testing_string" = 'X\t' &&
2150 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2151 + test "X$echo_testing_string" = "X$echo_test_string"; then
2152 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
2153 + else
2154 + # maybe with a smaller string...
2155 + prev=:
2157 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2158 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
2159 + then
2160 + break
2161 + fi
2162 + prev="$cmd"
2163 + done
2165 + if test "$prev" != 'sed 50q "[$]0"'; then
2166 + echo_test_string=`eval $prev`
2167 + export echo_test_string
2168 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2169 + else
2170 + # Oops. We lost completely, so just stick with echo.
2171 + echo=echo
2172 + fi
2173 + fi
2174 + fi
2175 + fi
2176 +fi
2177 +fi
2179 +# Copy echo and quote the copy suitably for passing to libtool from
2180 +# the Makefile, instead of quoting the original, which is used later.
2181 +ECHO=$echo
2182 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2183 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2184 +fi
2186 +AC_SUBST(ECHO)
2187 +])])# _LT_AC_PROG_ECHO_BACKSLASH
2190 +# _LT_AC_LOCK
2191 +# -----------
2192 +AC_DEFUN([_LT_AC_LOCK],
2193 +[AC_ARG_ENABLE([libtool-lock],
2194 + [AC_HELP_STRING([--disable-libtool-lock],
2195 + [avoid locking (might break parallel builds)])])
2196 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2198 # Some flags need to be propagated to the compiler or linker for good
2199 # libtool support.
2200 -case "$host" in
2201 +case $host in
2202 +ia64-*-hpux*)
2203 + # Find out which ABI we are using.
2204 + echo 'int i;' > conftest.$ac_ext
2205 + if AC_TRY_EVAL(ac_compile); then
2206 + case `/usr/bin/file conftest.$ac_objext` in
2207 + *ELF-32*)
2208 + HPUX_IA64_MODE="32"
2209 + ;;
2210 + *ELF-64*)
2211 + HPUX_IA64_MODE="64"
2212 + ;;
2213 + esac
2214 + fi
2215 + rm -rf conftest*
2216 + ;;
2217 *-*-irix6*)
2218 # Find out which ABI we are using.
2219 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2220 if AC_TRY_EVAL(ac_compile); then
2221 - case "`/usr/bin/file conftest.o`" in
2222 + if test "$lt_cv_prog_gnu_ld" = yes; then
2223 + case `/usr/bin/file conftest.$ac_objext` in
2224 + *32-bit*)
2225 + LD="${LD-ld} -melf32bsmip"
2226 + ;;
2227 + *N32*)
2228 + LD="${LD-ld} -melf32bmipn32"
2229 + ;;
2230 + *64-bit*)
2231 + LD="${LD-ld} -melf64bmip"
2232 + ;;
2233 + esac
2234 + else
2235 + case `/usr/bin/file conftest.$ac_objext` in
2236 *32-bit*)
2237 LD="${LD-ld} -32"
2238 ;;
2239 @@ -171,6 +1325,55 @@ case "$host" in
2240 LD="${LD-ld} -64"
2241 ;;
2242 esac
2243 + fi
2244 + fi
2245 + rm -rf conftest*
2246 + ;;
2248 +x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
2249 + # Find out which ABI we are using.
2250 + echo 'int i;' > conftest.$ac_ext
2251 + if AC_TRY_EVAL(ac_compile); then
2252 + case "`/usr/bin/file conftest.o`" in
2253 + *32-bit*)
2254 + case $host in
2255 + x86_64-*linux*)
2256 + LD="${LD-ld} -m elf_i386"
2257 + ;;
2258 + powerpc64le-*)
2259 + LD="${LD-ld} -m elf32lppclinux"
2260 + ;;
2261 + powerpc64-*)
2262 + LD="${LD-ld} -m elf32ppclinux"
2263 + ;;
2264 + s390x-*linux*)
2265 + LD="${LD-ld} -m elf_s390"
2266 + ;;
2267 + sparc64-*linux*)
2268 + LD="${LD-ld} -m elf32_sparc"
2269 + ;;
2270 + esac
2271 + ;;
2272 + *64-bit*)
2273 + case $host in
2274 + x86_64-*linux*)
2275 + LD="${LD-ld} -m elf_x86_64"
2276 + ;;
2277 + powerpcle-*)
2278 + LD="${LD-ld} -m elf64lppc"
2279 + ;;
2280 + powerpc-*)
2281 + LD="${LD-ld} -m elf64ppc"
2282 + ;;
2283 + s390*-*linux*)
2284 + LD="${LD-ld} -m elf64_s390"
2285 + ;;
2286 + sparc*-*linux*)
2287 + LD="${LD-ld} -m elf64_sparc"
2288 + ;;
2289 + esac
2290 + ;;
2291 + esac
2292 fi
2293 rm -rf conftest*
2294 ;;
2295 @@ -180,492 +1383,5408 @@ case "$host" in
2296 SAVE_CFLAGS="$CFLAGS"
2297 CFLAGS="$CFLAGS -belf"
2298 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2299 - [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
2300 + [AC_LANG_PUSH(C)
2301 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2302 + AC_LANG_POP])
2303 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2304 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2305 CFLAGS="$SAVE_CFLAGS"
2306 fi
2307 ;;
2309 -*-*-cygwin32*)
2310 - AM_SYS_LIBTOOL_CYGWIN32
2311 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2312 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2313 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2314 + AC_CHECK_TOOL(AS, as, false)
2315 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
2316 ;;
2318 + ])
2319 esac
2321 -# enable the --disable-libtool-lock switch
2322 +need_locks="$enable_libtool_lock"
2324 -AC_ARG_ENABLE(libtool-lock,
2325 -[ --disable-libtool-lock force libtool not to do file locking],
2326 -need_locks=$enableval,
2327 -need_locks=yes)
2328 +])# _LT_AC_LOCK
2330 -if test x"$need_locks" = xno; then
2331 - libtool_flags="$libtool_flags --disable-lock"
2332 -fi
2334 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2335 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2336 +# ----------------------------------------------------------------
2337 +# Check whether the given compiler option works
2338 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2339 +[AC_REQUIRE([LT_AC_PROG_SED])
2340 +AC_CACHE_CHECK([$1], [$2],
2341 + [$2=no
2342 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2343 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2344 + lt_compiler_flag="$3"
2345 + # Insert the option either (1) after the last *FLAGS variable, or
2346 + # (2) before a word containing "conftest.", or (3) at the end.
2347 + # Note that $ac_compile itself does not contain backslashes and begins
2348 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2349 + # The option is referenced via a variable to avoid confusing sed.
2350 + lt_compile=`echo "$ac_compile" | $SED \
2351 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2352 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2353 + -e 's:$: $lt_compiler_flag:'`
2354 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2355 + (eval "$lt_compile" 2>conftest.err)
2356 + ac_status=$?
2357 + cat conftest.err >&AS_MESSAGE_LOG_FD
2358 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2359 + if (exit $ac_status) && test -s "$ac_outfile"; then
2360 + # The compiler can only warn and ignore the option if not recognized
2361 + # So say no if there are warnings
2362 + if test ! -s conftest.err; then
2363 + $2=yes
2364 + fi
2365 + fi
2366 + $rm conftest*
2367 +])
2369 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
2370 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2371 -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
2372 -DLLTOOL="$DLLTOOL" AS="$AS" \
2373 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2374 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
2375 -|| AC_MSG_ERROR([libtool configure failed])
2376 +if test x"[$]$2" = xyes; then
2377 + ifelse([$5], , :, [$5])
2378 +else
2379 + ifelse([$6], , :, [$6])
2380 +fi
2381 +])# AC_LIBTOOL_COMPILER_OPTION
2383 -# Redirect the config.log output again, so that the ltconfig log is not
2384 -# clobbered by the next message.
2385 -exec 5>>./config.log
2386 -])
2388 -# AM_ENABLE_SHARED - implement the --enable-shared flag
2389 -# Usage: AM_ENABLE_SHARED[(DEFAULT)]
2390 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
2391 -# `yes'.
2392 -AC_DEFUN(AM_ENABLE_SHARED,
2393 -[define([AM_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2394 -AC_ARG_ENABLE(shared,
2395 -changequote(<<, >>)dnl
2396 -<< --enable-shared[=PKGS] build shared libraries [default=>>AM_ENABLE_SHARED_DEFAULT],
2397 -changequote([, ])dnl
2398 -[p=${PACKAGE-default}
2399 -case "$enableval" in
2400 -yes) enable_shared=yes ;;
2401 -no) enable_shared=no ;;
2402 -*)
2403 - enable_shared=no
2404 - # Look at the argument we got. We use all the common list separators.
2405 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2406 - for pkg in $enableval; do
2407 - if test "X$pkg" = "X$p"; then
2408 - enable_shared=yes
2409 - fi
2410 - done
2411 - IFS="$ac_save_ifs"
2412 - ;;
2413 -esac],
2414 -enable_shared=AM_ENABLE_SHARED_DEFAULT)dnl
2415 -])
2417 -# AM_DISABLE_SHARED - set the default shared flag to --disable-shared
2418 -AC_DEFUN(AM_DISABLE_SHARED,
2419 -[AM_ENABLE_SHARED(no)])
2421 -# AM_DISABLE_STATIC - set the default static flag to --disable-static
2422 -AC_DEFUN(AM_DISABLE_STATIC,
2423 -[AM_ENABLE_STATIC(no)])
2425 -# AM_ENABLE_STATIC - implement the --enable-static flag
2426 -# Usage: AM_ENABLE_STATIC[(DEFAULT)]
2427 -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
2428 -# `yes'.
2429 -AC_DEFUN(AM_ENABLE_STATIC,
2430 -[define([AM_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2431 -AC_ARG_ENABLE(static,
2432 -changequote(<<, >>)dnl
2433 -<< --enable-static[=PKGS] build static libraries [default=>>AM_ENABLE_STATIC_DEFAULT],
2434 -changequote([, ])dnl
2435 -[p=${PACKAGE-default}
2436 -case "$enableval" in
2437 -yes) enable_static=yes ;;
2438 -no) enable_static=no ;;
2439 -*)
2440 - enable_static=no
2441 - # Look at the argument we got. We use all the common list separators.
2442 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2443 - for pkg in $enableval; do
2444 - if test "X$pkg" = "X$p"; then
2445 - enable_static=yes
2446 - fi
2447 - done
2448 - IFS="$ac_save_ifs"
2449 - ;;
2450 -esac],
2451 -enable_static=AM_ENABLE_STATIC_DEFAULT)dnl
2452 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2453 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2454 +# ------------------------------------------------------------
2455 +# Check whether the given compiler option works
2456 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2457 +[AC_CACHE_CHECK([$1], [$2],
2458 + [$2=no
2459 + save_LDFLAGS="$LDFLAGS"
2460 + LDFLAGS="$LDFLAGS $3"
2461 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
2462 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2463 + # The compiler can only warn and ignore the option if not recognized
2464 + # So say no if there are warnings
2465 + if test -s conftest.err; then
2466 + # Append any errors to the config.log.
2467 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2468 + else
2469 + $2=yes
2470 + fi
2471 + fi
2472 + $rm conftest*
2473 + LDFLAGS="$save_LDFLAGS"
2474 ])
2476 +if test x"[$]$2" = xyes; then
2477 + ifelse([$4], , :, [$4])
2478 +else
2479 + ifelse([$5], , :, [$5])
2480 +fi
2481 +])# AC_LIBTOOL_LINKER_OPTION
2483 -# AM_PROG_LD - find the path to the GNU or non-GNU linker
2484 -AC_DEFUN(AM_PROG_LD,
2485 -[AC_ARG_WITH(gnu-ld,
2486 -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
2487 -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
2488 -AC_REQUIRE([AC_PROG_CC])dnl
2489 -AC_REQUIRE([AC_CANONICAL_HOST])dnl
2490 -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2491 -ac_prog=ld
2492 -if test "$ac_cv_prog_gcc" = yes; then
2493 - # Check if gcc -print-prog-name=ld gives a path.
2494 - AC_MSG_CHECKING([for ld used by GCC])
2495 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
2496 - case "$ac_prog" in
2497 - # Accept absolute paths.
2498 -changequote(,)dnl
2499 - /* | [A-Za-z]:/*)
2500 - # Canonicalize the path of ld
2501 - re_direlt='/[^/][^/]*/\.\./'
2502 - sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%'
2503 -changequote([,])dnl
2504 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2505 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2506 - done
2507 - case "$host_os" in
2508 - cygwin*)
2509 - # Convert to a UNC path for cygwin
2510 - test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"`
2511 - ;;
2512 - *)
2513 - test -z "$LD" && LD="$ac_prog"
2514 - ;;
2515 - esac
2516 - ;;
2517 - ##
2518 - ## FIXME: The code fails later on if we try to use an $LD with
2519 - ## '\\' path separators.
2520 - ##
2521 -changequote(,)dnl
2522 - [A-Za-z]:[\\]*)
2523 - # Canonicalize the path of ld
2524 - re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)'
2525 - sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%'
2526 -changequote([,])dnl
2527 - sub_uncdir='s%\\%/%g'
2528 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2529 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"`
2530 - done
2531 - case "$host_os" in
2532 - cygwin*)
2533 - # Convert to a UNC path for cygwin
2534 - test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"`
2535 - ;;
2536 - *)
2537 - test -z "$LD" && LD="$ac_prog"
2538 - ;;
2539 - esac
2540 - ;;
2541 - "")
2542 - # If it fails, then pretend we aren't using GCC.
2543 - ac_prog=ld
2545 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
2546 +# --------------------------
2547 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2548 +[# find the maximum length of command line arguments
2549 +AC_MSG_CHECKING([the maximum length of command line arguments])
2550 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2551 + i=0
2552 + testring="ABCD"
2554 + case $build_os in
2555 + msdosdjgpp*)
2556 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2557 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2558 + # during glob expansion). Even if it were fixed, the result of this
2559 + # check would be larger than it should be.
2560 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2561 ;;
2562 - *)
2563 - # If it is relative, then search for the first ld in PATH.
2564 - with_gnu_ld=unknown
2566 + gnu*)
2567 + # Under GNU Hurd, this test is not required because there is
2568 + # no limit to the length of command line arguments.
2569 + # Libtool will interpret -1 as no limit whatsoever
2570 + lt_cv_sys_max_cmd_len=-1;
2571 + ;;
2573 + cygwin* | mingw*)
2574 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2575 + # about 5 minutes as the teststring grows exponentially.
2576 + # Worse, since 9x/ME are not pre-emptively multitasking,
2577 + # you end up with a "frozen" computer, even though with patience
2578 + # the test eventually succeeds (with a max line length of 256k).
2579 + # Instead, let's just punt: use the minimum linelength reported by
2580 + # all of the supported platforms: 8192 (on NT/2K/XP).
2581 + lt_cv_sys_max_cmd_len=8192;
2582 + ;;
2584 + amigaos*)
2585 + # On AmigaOS with pdksh, this test takes hours, literally.
2586 + # So we just punt and use a minimum line length of 8192.
2587 + lt_cv_sys_max_cmd_len=8192;
2588 + ;;
2590 + *)
2591 + # If test is not a shell built-in, we'll probably end up computing a
2592 + # maximum length that is only half of the actual maximum length, but
2593 + # we can't tell.
2594 + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
2595 + = "XX$testring") >/dev/null 2>&1 &&
2596 + new_result=`expr "X$testring" : ".*" 2>&1` &&
2597 + lt_cv_sys_max_cmd_len=$new_result &&
2598 + test $i != 17 # 1/2 MB should be enough
2599 + do
2600 + i=`expr $i + 1`
2601 + testring=$testring$testring
2602 + done
2603 + testring=
2604 + # Add a significant safety factor because C++ compilers can tack on massive
2605 + # amounts of additional arguments before passing them to the linker.
2606 + # It appears as though 1/2 is a usable value.
2607 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2608 ;;
2609 esac
2610 -elif test "$with_gnu_ld" = yes; then
2611 - AC_MSG_CHECKING([for GNU ld])
2612 +])
2613 +if test -n $lt_cv_sys_max_cmd_len ; then
2614 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2615 else
2616 - AC_MSG_CHECKING([for non-GNU ld])
2617 + AC_MSG_RESULT(none)
2618 fi
2619 -AC_CACHE_VAL(ac_cv_path_LD,
2620 -[if test -z "$LD"; then
2621 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2622 - for ac_dir in $PATH; do
2623 - test -z "$ac_dir" && ac_dir=.
2624 - if test -f "$ac_dir/$ac_prog"; then
2625 - ac_cv_path_LD="$ac_dir/$ac_prog"
2626 - # Check to see if the program is GNU ld. I'd rather use --version,
2627 - # but apparently some GNU ld's only accept -v.
2628 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2631 +# _LT_AC_CHECK_DLFCN
2632 +# --------------------
2633 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
2634 +[AC_CHECK_HEADERS(dlfcn.h)dnl
2635 +])# _LT_AC_CHECK_DLFCN
2638 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2639 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2640 +# ------------------------------------------------------------------
2641 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2642 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2643 +if test "$cross_compiling" = yes; then :
2644 + [$4]
2645 +else
2646 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2647 + lt_status=$lt_dlunknown
2648 + cat > conftest.$ac_ext <<EOF
2649 +[#line __oline__ "configure"
2650 +#include "confdefs.h"
2652 +#if HAVE_DLFCN_H
2653 +#include <dlfcn.h>
2654 +#endif
2656 +#include <stdio.h>
2658 +#ifdef RTLD_GLOBAL
2659 +# define LT_DLGLOBAL RTLD_GLOBAL
2660 +#else
2661 +# ifdef DL_GLOBAL
2662 +# define LT_DLGLOBAL DL_GLOBAL
2663 +# else
2664 +# define LT_DLGLOBAL 0
2665 +# endif
2666 +#endif
2668 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2669 + find out it does not work in some platform. */
2670 +#ifndef LT_DLLAZY_OR_NOW
2671 +# ifdef RTLD_LAZY
2672 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2673 +# else
2674 +# ifdef DL_LAZY
2675 +# define LT_DLLAZY_OR_NOW DL_LAZY
2676 +# else
2677 +# ifdef RTLD_NOW
2678 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2679 +# else
2680 +# ifdef DL_NOW
2681 +# define LT_DLLAZY_OR_NOW DL_NOW
2682 +# else
2683 +# define LT_DLLAZY_OR_NOW 0
2684 +# endif
2685 +# endif
2686 +# endif
2687 +# endif
2688 +#endif
2690 +#ifdef __cplusplus
2691 +extern "C" void exit (int);
2692 +#endif
2694 +void fnord() { int i=42;}
2695 +int main ()
2696 +{
2697 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2698 + int status = $lt_dlunknown;
2700 + if (self)
2701 + {
2702 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2703 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2704 + /* dlclose (self); */
2705 + }
2707 + exit (status);
2708 +}]
2709 +EOF
2710 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2711 + (./conftest; exit; ) 2>/dev/null
2712 + lt_status=$?
2713 + case x$lt_status in
2714 + x$lt_dlno_uscore) $1 ;;
2715 + x$lt_dlneed_uscore) $2 ;;
2716 + x$lt_unknown|x*) $3 ;;
2717 + esac
2718 + else :
2719 + # compilation failed
2720 + $3
2721 + fi
2722 +fi
2723 +rm -fr conftest*
2724 +])# _LT_AC_TRY_DLOPEN_SELF
2727 +# AC_LIBTOOL_DLOPEN_SELF
2728 +# -------------------
2729 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2730 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2731 +if test "x$enable_dlopen" != xyes; then
2732 + enable_dlopen=unknown
2733 + enable_dlopen_self=unknown
2734 + enable_dlopen_self_static=unknown
2735 +else
2736 + lt_cv_dlopen=no
2737 + lt_cv_dlopen_libs=
2739 + case $host_os in
2740 + beos*)
2741 + lt_cv_dlopen="load_add_on"
2742 + lt_cv_dlopen_libs=
2743 + lt_cv_dlopen_self=yes
2744 + ;;
2746 + mingw* | pw32*)
2747 + lt_cv_dlopen="LoadLibrary"
2748 + lt_cv_dlopen_libs=
2749 + ;;
2751 + cygwin*)
2752 + lt_cv_dlopen="dlopen"
2753 + lt_cv_dlopen_libs=
2754 + ;;
2756 + darwin*)
2757 + # if libdl is installed we need to link against it
2758 + AC_CHECK_LIB([dl], [dlopen],
2759 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2760 + lt_cv_dlopen="dyld"
2761 + lt_cv_dlopen_libs=
2762 + lt_cv_dlopen_self=yes
2763 + ])
2764 + ;;
2766 + *)
2767 + AC_CHECK_FUNC([shl_load],
2768 + [lt_cv_dlopen="shl_load"],
2769 + [AC_CHECK_LIB([dld], [shl_load],
2770 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2771 + [AC_CHECK_FUNC([dlopen],
2772 + [lt_cv_dlopen="dlopen"],
2773 + [AC_CHECK_LIB([dl], [dlopen],
2774 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2775 + [AC_CHECK_LIB([svld], [dlopen],
2776 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2777 + [AC_CHECK_LIB([dld], [dld_link],
2778 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2779 + ])
2780 + ])
2781 + ])
2782 + ])
2783 + ])
2784 + ;;
2785 + esac
2787 + if test "x$lt_cv_dlopen" != xno; then
2788 + enable_dlopen=yes
2789 + else
2790 + enable_dlopen=no
2791 + fi
2793 + case $lt_cv_dlopen in
2794 + dlopen)
2795 + save_CPPFLAGS="$CPPFLAGS"
2796 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2798 + save_LDFLAGS="$LDFLAGS"
2799 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2801 + save_LIBS="$LIBS"
2802 + LIBS="$lt_cv_dlopen_libs $LIBS"
2804 + AC_CACHE_CHECK([whether a program can dlopen itself],
2805 + lt_cv_dlopen_self, [dnl
2806 + _LT_AC_TRY_DLOPEN_SELF(
2807 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2808 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2809 + ])
2811 + if test "x$lt_cv_dlopen_self" = xyes; then
2812 + LDFLAGS="$LDFLAGS $link_static_flag"
2813 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2814 + lt_cv_dlopen_self_static, [dnl
2815 + _LT_AC_TRY_DLOPEN_SELF(
2816 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2817 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2818 + ])
2819 + fi
2821 + CPPFLAGS="$save_CPPFLAGS"
2822 + LDFLAGS="$save_LDFLAGS"
2823 + LIBS="$save_LIBS"
2824 + ;;
2825 + esac
2827 + case $lt_cv_dlopen_self in
2828 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2829 + *) enable_dlopen_self=unknown ;;
2830 + esac
2832 + case $lt_cv_dlopen_self_static in
2833 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2834 + *) enable_dlopen_self_static=unknown ;;
2835 + esac
2836 +fi
2837 +])# AC_LIBTOOL_DLOPEN_SELF
2840 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2841 +# ---------------------------------
2842 +# Check to see if options -c and -o are simultaneously supported by compiler
2843 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2844 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2845 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2846 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2847 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2848 + $rm -r conftest 2>/dev/null
2849 + mkdir conftest
2850 + cd conftest
2851 + mkdir out
2852 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2854 + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2855 + # that will create temporary files in the current directory regardless of
2856 + # the output directory. Thus, making CWD read-only will cause this test
2857 + # to fail, enabling locking or at least warning the user not to do parallel
2858 + # builds.
2859 + chmod -w .
2861 + lt_compiler_flag="-o out/conftest2.$ac_objext"
2862 + # Insert the option either (1) after the last *FLAGS variable, or
2863 + # (2) before a word containing "conftest.", or (3) at the end.
2864 + # Note that $ac_compile itself does not contain backslashes and begins
2865 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2866 + lt_compile=`echo "$ac_compile" | $SED \
2867 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
2868 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2869 + -e 's:$: $lt_compiler_flag:'`
2870 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2871 + (eval "$lt_compile" 2>out/conftest.err)
2872 + ac_status=$?
2873 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
2874 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2875 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
2876 + then
2877 + # The compiler can only warn and ignore the option if not recognized
2878 + # So say no if there are warnings
2879 + if test ! -s out/conftest.err; then
2880 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2881 + fi
2882 + fi
2883 + chmod u+w .
2884 + $rm conftest*
2885 + # SGI C++ compiler will create directory out/ii_files/ for
2886 + # template instantiation
2887 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2888 + $rm out/* && rmdir out
2889 + cd ..
2890 + rmdir conftest
2891 + $rm conftest*
2892 +])
2893 +])# AC_LIBTOOL_PROG_CC_C_O
2896 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2897 +# -----------------------------------------
2898 +# Check to see if we can do hard links to lock some files if needed
2899 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2900 +[AC_REQUIRE([_LT_AC_LOCK])dnl
2902 +hard_links="nottested"
2903 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2904 + # do not overwrite the value of need_locks provided by the user
2905 + AC_MSG_CHECKING([if we can lock with hard links])
2906 + hard_links=yes
2907 + $rm conftest*
2908 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2909 + touch conftest.a
2910 + ln conftest.a conftest.b 2>&5 || hard_links=no
2911 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2912 + AC_MSG_RESULT([$hard_links])
2913 + if test "$hard_links" = no; then
2914 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2915 + need_locks=warn
2916 + fi
2917 +else
2918 + need_locks=no
2919 +fi
2920 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2923 +# AC_LIBTOOL_OBJDIR
2924 +# -----------------
2925 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
2926 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2927 +[rm -f .libs 2>/dev/null
2928 +mkdir .libs 2>/dev/null
2929 +if test -d .libs; then
2930 + lt_cv_objdir=.libs
2931 +else
2932 + # MS-DOS does not allow filenames that begin with a dot.
2933 + lt_cv_objdir=_libs
2934 +fi
2935 +rmdir .libs 2>/dev/null])
2936 +objdir=$lt_cv_objdir
2937 +])# AC_LIBTOOL_OBJDIR
2940 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2941 +# ----------------------------------------------
2942 +# Check hardcoding attributes.
2943 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2944 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2945 +_LT_AC_TAGVAR(hardcode_action, $1)=
2946 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2947 + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
2948 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
2950 + # We can hardcode non-existant directories.
2951 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2952 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2953 + # have to relink, otherwise we might link with an installed library
2954 + # when we should be linking with a yet-to-be-installed one
2955 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2956 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2957 + # Linking always hardcodes the temporary library directory.
2958 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2959 + else
2960 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2961 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2962 + fi
2963 +else
2964 + # We cannot hardcode anything, or else we can only hardcode existing
2965 + # directories.
2966 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2967 +fi
2968 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2970 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2971 + # Fast installation is not supported
2972 + enable_fast_install=no
2973 +elif test "$shlibpath_overrides_runpath" = yes ||
2974 + test "$enable_shared" = no; then
2975 + # Fast installation is not necessary
2976 + enable_fast_install=needless
2977 +fi
2978 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2981 +# AC_LIBTOOL_SYS_LIB_STRIP
2982 +# ------------------------
2983 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2984 +[striplib=
2985 +old_striplib=
2986 +AC_MSG_CHECKING([whether stripping libraries is possible])
2987 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2988 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2989 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2990 + AC_MSG_RESULT([yes])
2991 +else
2992 +# FIXME - insert some real tests, host_os isn't really good enough
2993 + case $host_os in
2994 + darwin*)
2995 + if test -n "$STRIP" ; then
2996 + striplib="$STRIP -x"
2997 + AC_MSG_RESULT([yes])
2998 + else
2999 + AC_MSG_RESULT([no])
3000 +fi
3001 + ;;
3002 + *)
3003 + AC_MSG_RESULT([no])
3004 + ;;
3005 + esac
3006 +fi
3007 +])# AC_LIBTOOL_SYS_LIB_STRIP
3010 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3011 +# -----------------------------
3012 +# PORTME Fill in your ld.so characteristics
3013 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
3014 +[AC_MSG_CHECKING([dynamic linker characteristics])
3015 +library_names_spec=
3016 +libname_spec='lib$name'
3017 +soname_spec=
3018 +shrext=".so"
3019 +postinstall_cmds=
3020 +postuninstall_cmds=
3021 +finish_cmds=
3022 +finish_eval=
3023 +shlibpath_var=
3024 +shlibpath_overrides_runpath=unknown
3025 +version_type=none
3026 +dynamic_linker="$host_os ld.so"
3027 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
3028 +if test "$GCC" = yes; then
3029 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3030 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
3031 + # if the path contains ";" then we assume it to be the separator
3032 + # otherwise default to the standard path separator (i.e. ":") - it is
3033 + # assumed that no part of a normal pathname contains ";" but that should
3034 + # okay in the real world where ";" in dirpaths is itself problematic.
3035 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3036 + else
3037 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3038 + fi
3039 +else
3040 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3041 +fi
3042 +need_lib_prefix=unknown
3043 +hardcode_into_libs=no
3045 +# when you set need_version to no, make sure it does not cause -set_version
3046 +# flags to be left without arguments
3047 +need_version=unknown
3049 +case $host_os in
3050 +aix3*)
3051 + version_type=linux
3052 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3053 + shlibpath_var=LIBPATH
3055 + # AIX 3 has no versioning support, so we append a major version to the name.
3056 + soname_spec='${libname}${release}${shared_ext}$major'
3057 + ;;
3059 +aix4* | aix5*)
3060 + version_type=linux
3061 + need_lib_prefix=no
3062 + need_version=no
3063 + hardcode_into_libs=yes
3064 + if test "$host_cpu" = ia64; then
3065 + # AIX 5 supports IA64
3066 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3067 + shlibpath_var=LD_LIBRARY_PATH
3068 + else
3069 + # With GCC up to 2.95.x, collect2 would create an import file
3070 + # for dependence libraries. The import file would start with
3071 + # the line `#! .'. This would cause the generated library to
3072 + # depend on `.', always an invalid library. This was fixed in
3073 + # development snapshots of GCC prior to 3.0.
3074 + case $host_os in
3075 + aix4 | aix4.[[01]] | aix4.[[01]].*)
3076 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3077 + echo ' yes '
3078 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3079 + :
3080 + else
3081 + can_build_shared=no
3082 + fi
3083 + ;;
3084 + esac
3085 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3086 + # soname into executable. Probably we can add versioning support to
3087 + # collect2, so additional links can be useful in future.
3088 + if test "$aix_use_runtimelinking" = yes; then
3089 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
3090 + # instead of lib<name>.a to let people know that these are not
3091 + # typical AIX shared libraries.
3092 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3093 + else
3094 + # We preserve .a as extension for shared libraries through AIX4.2
3095 + # and later when we are not doing run time linking.
3096 + library_names_spec='${libname}${release}.a $libname.a'
3097 + soname_spec='${libname}${release}${shared_ext}$major'
3098 + fi
3099 + shlibpath_var=LIBPATH
3100 + fi
3101 + ;;
3103 +amigaos*)
3104 + library_names_spec='$libname.ixlibrary $libname.a'
3105 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
3106 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
3107 + ;;
3109 +beos*)
3110 + library_names_spec='${libname}${shared_ext}'
3111 + dynamic_linker="$host_os ld.so"
3112 + shlibpath_var=LIBRARY_PATH
3113 + ;;
3115 +bsdi4*)
3116 + version_type=linux
3117 + need_version=no
3118 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3119 + soname_spec='${libname}${release}${shared_ext}$major'
3120 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3121 + shlibpath_var=LD_LIBRARY_PATH
3122 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3123 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3124 + # the default ld.so.conf also contains /usr/contrib/lib and
3125 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3126 + # libtool to hard-code these into programs
3127 + ;;
3129 +cygwin* | mingw* | pw32*)
3130 + version_type=windows
3131 + shrext=".dll"
3132 + need_version=no
3133 + need_lib_prefix=no
3135 + case $GCC,$host_os in
3136 + yes,cygwin* | yes,mingw* | yes,pw32*)
3137 + library_names_spec='$libname.dll.a'
3138 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
3139 + postinstall_cmds='base_file=`basename \${file}`~
3140 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
3141 + dldir=$destdir/`dirname \$dlpath`~
3142 + test -d \$dldir || mkdir -p \$dldir~
3143 + $install_prog $dir/$dlname \$dldir/$dlname'
3144 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3145 + dlpath=$dir/\$dldll~
3146 + $rm \$dlpath'
3147 + shlibpath_overrides_runpath=yes
3149 + case $host_os in
3150 + cygwin*)
3151 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3152 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3153 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3154 + ;;
3155 + mingw*)
3156 + # MinGW DLLs use traditional 'lib' prefix
3157 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3158 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3159 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
3160 + # It is most probably a Windows format PATH printed by
3161 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
3162 + # path with ; separators, and with drive letters. We can handle the
3163 + # drive letters (cygwin fileutils understands them), so leave them,
3164 + # especially as we might pass files found there to a mingw objdump,
3165 + # which wouldn't understand a cygwinified path. Ahh.
3166 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3167 + else
3168 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3169 + fi
3170 + ;;
3171 + pw32*)
3172 + # pw32 DLLs use 'pw' prefix rather than 'lib'
3173 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3174 + ;;
3175 + esac
3176 + ;;
3178 + *)
3179 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3180 + ;;
3181 + esac
3182 + dynamic_linker='Win32 ld.exe'
3183 + # FIXME: first we should search . and the directory the executable is in
3184 + shlibpath_var=PATH
3185 + ;;
3187 +darwin* | rhapsody*)
3188 + dynamic_linker="$host_os dyld"
3189 + version_type=darwin
3190 + need_lib_prefix=no
3191 + need_version=no
3192 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3193 + soname_spec='${libname}${release}${major}$shared_ext'
3194 + shlibpath_overrides_runpath=yes
3195 + shlibpath_var=DYLD_LIBRARY_PATH
3196 + shrext='$(test .$module = .yes && echo .so || echo .dylib)'
3197 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
3198 + if test "$GCC" = yes; then
3199 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
3200 + else
3201 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
3202 + fi
3203 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3204 + ;;
3206 +dgux*)
3207 + version_type=linux
3208 + need_lib_prefix=no
3209 + need_version=no
3210 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3211 + soname_spec='${libname}${release}${shared_ext}$major'
3212 + shlibpath_var=LD_LIBRARY_PATH
3213 + ;;
3215 +freebsd1*)
3216 + dynamic_linker=no
3217 + ;;
3219 +kfreebsd*-gnu)
3220 + version_type=linux
3221 + need_lib_prefix=no
3222 + need_version=no
3223 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3224 + soname_spec='${libname}${release}${shared_ext}$major'
3225 + shlibpath_var=LD_LIBRARY_PATH
3226 + shlibpath_overrides_runpath=no
3227 + hardcode_into_libs=yes
3228 + dynamic_linker='GNU ld.so'
3229 + ;;
3231 +freebsd*)
3232 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3233 + version_type=freebsd-$objformat
3234 + case $version_type in
3235 + freebsd-elf*)
3236 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3237 + need_version=no
3238 + need_lib_prefix=no
3239 + ;;
3240 + freebsd-*)
3241 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3242 + need_version=yes
3243 + ;;
3244 + esac
3245 + shlibpath_var=LD_LIBRARY_PATH
3246 + case $host_os in
3247 + freebsd2*)
3248 + shlibpath_overrides_runpath=yes
3249 + ;;
3250 + freebsd3.[01]* | freebsdelf3.[01]*)
3251 + shlibpath_overrides_runpath=yes
3252 + hardcode_into_libs=yes
3253 + ;;
3254 + *) # from 3.2 on
3255 + shlibpath_overrides_runpath=no
3256 + hardcode_into_libs=yes
3257 + ;;
3258 + esac
3259 + ;;
3261 +gnu*)
3262 + version_type=linux
3263 + need_lib_prefix=no
3264 + need_version=no
3265 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3266 + soname_spec='${libname}${release}${shared_ext}$major'
3267 + shlibpath_var=LD_LIBRARY_PATH
3268 + hardcode_into_libs=yes
3269 + ;;
3271 +hpux9* | hpux10* | hpux11*)
3272 + # Give a soname corresponding to the major version so that dld.sl refuses to
3273 + # link against other versions.
3274 + version_type=sunos
3275 + need_lib_prefix=no
3276 + need_version=no
3277 + case "$host_cpu" in
3278 + ia64*)
3279 + shrext='.so'
3280 + hardcode_into_libs=yes
3281 + dynamic_linker="$host_os dld.so"
3282 + shlibpath_var=LD_LIBRARY_PATH
3283 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3284 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3285 + soname_spec='${libname}${release}${shared_ext}$major'
3286 + if test "X$HPUX_IA64_MODE" = X32; then
3287 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3288 + else
3289 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3290 + fi
3291 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3292 + ;;
3293 + hppa*64*)
3294 + shrext='.sl'
3295 + hardcode_into_libs=yes
3296 + dynamic_linker="$host_os dld.sl"
3297 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3298 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3299 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3300 + soname_spec='${libname}${release}${shared_ext}$major'
3301 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3302 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3303 + ;;
3304 + *)
3305 + shrext='.sl'
3306 + dynamic_linker="$host_os dld.sl"
3307 + shlibpath_var=SHLIB_PATH
3308 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3309 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3310 + soname_spec='${libname}${release}${shared_ext}$major'
3311 + ;;
3312 + esac
3313 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
3314 + postinstall_cmds='chmod 555 $lib'
3315 + ;;
3317 +irix5* | irix6* | nonstopux*)
3318 + case $host_os in
3319 + nonstopux*) version_type=nonstopux ;;
3320 + *)
3321 + if test "$lt_cv_prog_gnu_ld" = yes; then
3322 + version_type=linux
3323 + else
3324 + version_type=irix
3325 + fi ;;
3326 + esac
3327 + need_lib_prefix=no
3328 + need_version=no
3329 + soname_spec='${libname}${release}${shared_ext}$major'
3330 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3331 + case $host_os in
3332 + irix5* | nonstopux*)
3333 + libsuff= shlibsuff=
3334 + ;;
3335 + *)
3336 + case $LD in # libtool.m4 will add one of these switches to LD
3337 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3338 + libsuff= shlibsuff= libmagic=32-bit;;
3339 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3340 + libsuff=32 shlibsuff=N32 libmagic=N32;;
3341 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3342 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
3343 + *) libsuff= shlibsuff= libmagic=never-match;;
3344 + esac
3345 + ;;
3346 + esac
3347 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3348 + shlibpath_overrides_runpath=no
3349 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3350 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3351 + hardcode_into_libs=yes
3352 + ;;
3354 +# No shared lib support for Linux oldld, aout, or coff.
3355 +linux*oldld* | linux*aout* | linux*coff*)
3356 + dynamic_linker=no
3357 + ;;
3359 +# This must be Linux ELF.
3360 +linux*)
3361 + version_type=linux
3362 + need_lib_prefix=no
3363 + need_version=no
3364 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3365 + soname_spec='${libname}${release}${shared_ext}$major'
3366 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3367 + shlibpath_var=LD_LIBRARY_PATH
3368 + shlibpath_overrides_runpath=no
3369 + # This implies no fast_install, which is unacceptable.
3370 + # Some rework will be needed to allow for fast_install
3371 + # before this can be enabled.
3372 + hardcode_into_libs=yes
3374 + # /usr/X11R6/lib and /usr/local/lib are common enough...
3375 + sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
3377 + # We used to test for /lib/ld.so.1 and disable shared libraries on
3378 + # powerpc, because MkLinux only supported shared libraries with the
3379 + # GNU dynamic linker. Since this was broken with cross compilers,
3380 + # most powerpc-linux boxes support dynamic linking these days and
3381 + # people can always --disable-shared, the test was removed, and we
3382 + # assume the GNU/Linux dynamic linker is in use.
3383 + dynamic_linker='GNU/Linux ld.so'
3384 + ;;
3386 +knetbsd*-gnu)
3387 + version_type=linux
3388 + need_lib_prefix=no
3389 + need_version=no
3390 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3391 + soname_spec='${libname}${release}${shared_ext}$major'
3392 + shlibpath_var=LD_LIBRARY_PATH
3393 + shlibpath_overrides_runpath=no
3394 + hardcode_into_libs=yes
3395 + dynamic_linker='GNU ld.so'
3396 + ;;
3398 +netbsd*)
3399 + version_type=sunos
3400 + need_lib_prefix=no
3401 + need_version=no
3402 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3403 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3404 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3405 + dynamic_linker='NetBSD (a.out) ld.so'
3406 + else
3407 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
3408 + soname_spec='${libname}${release}${shared_ext}$major'
3409 + dynamic_linker='NetBSD ld.elf_so'
3410 + fi
3411 + shlibpath_var=LD_LIBRARY_PATH
3412 + shlibpath_overrides_runpath=yes
3413 + hardcode_into_libs=yes
3414 + ;;
3416 +newsos6)
3417 + version_type=linux
3418 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3419 + shlibpath_var=LD_LIBRARY_PATH
3420 + shlibpath_overrides_runpath=yes
3421 + ;;
3423 +nto-qnx*)
3424 + version_type=linux
3425 + need_lib_prefix=no
3426 + need_version=no
3427 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3428 + soname_spec='${libname}${release}${shared_ext}$major'
3429 + shlibpath_var=LD_LIBRARY_PATH
3430 + shlibpath_overrides_runpath=yes
3431 + ;;
3433 +openbsd*)
3434 + version_type=sunos
3435 + need_lib_prefix=no
3436 + need_version=yes
3437 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3438 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3439 + shlibpath_var=LD_LIBRARY_PATH
3440 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3441 + case $host_os in
3442 + openbsd2.[[89]] | openbsd2.[[89]].*)
3443 + shlibpath_overrides_runpath=no
3444 + ;;
3445 + *)
3446 + shlibpath_overrides_runpath=yes
3447 + ;;
3448 + esac
3449 + else
3450 + shlibpath_overrides_runpath=yes
3451 + fi
3452 + ;;
3454 +os2*)
3455 + libname_spec='$name'
3456 + shrext=".dll"
3457 + need_lib_prefix=no
3458 + library_names_spec='$libname${shared_ext} $libname.a'
3459 + dynamic_linker='OS/2 ld.exe'
3460 + shlibpath_var=LIBPATH
3461 + ;;
3463 +osf3* | osf4* | osf5*)
3464 + version_type=osf
3465 + need_lib_prefix=no
3466 + need_version=no
3467 + soname_spec='${libname}${release}${shared_ext}$major'
3468 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3469 + shlibpath_var=LD_LIBRARY_PATH
3470 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3471 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3472 + ;;
3474 +sco3.2v5*)
3475 + version_type=osf
3476 + soname_spec='${libname}${release}${shared_ext}$major'
3477 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3478 + shlibpath_var=LD_LIBRARY_PATH
3479 + ;;
3481 +solaris*)
3482 + version_type=linux
3483 + need_lib_prefix=no
3484 + need_version=no
3485 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3486 + soname_spec='${libname}${release}${shared_ext}$major'
3487 + shlibpath_var=LD_LIBRARY_PATH
3488 + shlibpath_overrides_runpath=yes
3489 + hardcode_into_libs=yes
3490 + # ldd complains unless libraries are executable
3491 + postinstall_cmds='chmod +x $lib'
3492 + ;;
3494 +sunos4*)
3495 + version_type=sunos
3496 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3497 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3498 + shlibpath_var=LD_LIBRARY_PATH
3499 + shlibpath_overrides_runpath=yes
3500 + if test "$with_gnu_ld" = yes; then
3501 + need_lib_prefix=no
3502 + fi
3503 + need_version=yes
3504 + ;;
3506 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3507 + version_type=linux
3508 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3509 + soname_spec='${libname}${release}${shared_ext}$major'
3510 + shlibpath_var=LD_LIBRARY_PATH
3511 + case $host_vendor in
3512 + sni)
3513 + shlibpath_overrides_runpath=no
3514 + need_lib_prefix=no
3515 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3516 + runpath_var=LD_RUN_PATH
3517 + ;;
3518 + siemens)
3519 + need_lib_prefix=no
3520 + ;;
3521 + motorola)
3522 + need_lib_prefix=no
3523 + need_version=no
3524 + shlibpath_overrides_runpath=no
3525 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3526 + ;;
3527 + esac
3528 + ;;
3530 +sysv4*MP*)
3531 + if test -d /usr/nec ;then
3532 + version_type=linux
3533 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3534 + soname_spec='$libname${shared_ext}.$major'
3535 + shlibpath_var=LD_LIBRARY_PATH
3536 + fi
3537 + ;;
3539 +uts4*)
3540 + version_type=linux
3541 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3542 + soname_spec='${libname}${release}${shared_ext}$major'
3543 + shlibpath_var=LD_LIBRARY_PATH
3544 + ;;
3546 +*)
3547 + dynamic_linker=no
3548 + ;;
3549 +esac
3550 +AC_MSG_RESULT([$dynamic_linker])
3551 +test "$dynamic_linker" = no && can_build_shared=no
3552 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3555 +# _LT_AC_TAGCONFIG
3556 +# ----------------
3557 +AC_DEFUN([_LT_AC_TAGCONFIG],
3558 +[AC_ARG_WITH([tags],
3559 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3560 + [include additional configurations @<:@automatic@:>@])],
3561 + [tagnames="$withval"])
3563 +if test -f "$ltmain" && test -n "$tagnames"; then
3564 + if test ! -f "${ofile}"; then
3565 + AC_MSG_WARN([output file `$ofile' does not exist])
3566 + fi
3568 + if test -z "$LTCC"; then
3569 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3570 + if test -z "$LTCC"; then
3571 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3572 + else
3573 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3574 + fi
3575 + fi
3577 + # Extract list of available tagged configurations in $ofile.
3578 + # Note that this assumes the entire list is on one line.
3579 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3581 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3582 + for tagname in $tagnames; do
3583 + IFS="$lt_save_ifs"
3584 + # Check whether tagname contains only valid characters
3585 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3586 + "") ;;
3587 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3588 + ;;
3589 + esac
3591 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3592 + then
3593 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3594 + fi
3596 + # Update the list of available tags.
3597 + if test -n "$tagname"; then
3598 + echo appending configuration tag \"$tagname\" to $ofile
3600 + case $tagname in
3601 + CXX)
3602 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
3603 + AC_LIBTOOL_LANG_CXX_CONFIG
3604 + else
3605 + tagname=""
3606 + fi
3607 + ;;
3609 + F77)
3610 + if test -n "$F77" && test "X$F77" != "Xno"; then
3611 + AC_LIBTOOL_LANG_F77_CONFIG
3612 + else
3613 + tagname=""
3614 + fi
3615 + ;;
3617 + GCJ)
3618 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3619 + AC_LIBTOOL_LANG_GCJ_CONFIG
3620 + else
3621 + tagname=""
3622 + fi
3623 + ;;
3625 + RC)
3626 + AC_LIBTOOL_LANG_RC_CONFIG
3627 + ;;
3629 + *)
3630 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3631 + ;;
3632 + esac
3634 + # Append the new tag name to the list of available tags.
3635 + if test -n "$tagname" ; then
3636 + available_tags="$available_tags $tagname"
3637 + fi
3638 + fi
3639 + done
3640 + IFS="$lt_save_ifs"
3642 + # Now substitute the updated list of available tags.
3643 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3644 + mv "${ofile}T" "$ofile"
3645 + chmod +x "$ofile"
3646 + else
3647 + rm -f "${ofile}T"
3648 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3649 + fi
3650 +fi
3651 +])# _LT_AC_TAGCONFIG
3654 +# AC_LIBTOOL_DLOPEN
3655 +# -----------------
3656 +# enable checks for dlopen support
3657 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3658 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3659 +])# AC_LIBTOOL_DLOPEN
3662 +# AC_LIBTOOL_WIN32_DLL
3663 +# --------------------
3664 +# declare package support for building win32 dll's
3665 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3666 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3667 +])# AC_LIBTOOL_WIN32_DLL
3670 +# AC_ENABLE_SHARED([DEFAULT])
3671 +# ---------------------------
3672 +# implement the --enable-shared flag
3673 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3674 +AC_DEFUN([AC_ENABLE_SHARED],
3675 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3676 +AC_ARG_ENABLE([shared],
3677 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3678 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3679 + [p=${PACKAGE-default}
3680 + case $enableval in
3681 + yes) enable_shared=yes ;;
3682 + no) enable_shared=no ;;
3683 + *)
3684 + enable_shared=no
3685 + # Look at the argument we got. We use all the common list separators.
3686 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687 + for pkg in $enableval; do
3688 + IFS="$lt_save_ifs"
3689 + if test "X$pkg" = "X$p"; then
3690 + enable_shared=yes
3691 + fi
3692 + done
3693 + IFS="$lt_save_ifs"
3694 + ;;
3695 + esac],
3696 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3697 +])# AC_ENABLE_SHARED
3700 +# AC_DISABLE_SHARED
3701 +# -----------------
3702 +#- set the default shared flag to --disable-shared
3703 +AC_DEFUN([AC_DISABLE_SHARED],
3704 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3705 +AC_ENABLE_SHARED(no)
3706 +])# AC_DISABLE_SHARED
3709 +# AC_ENABLE_STATIC([DEFAULT])
3710 +# ---------------------------
3711 +# implement the --enable-static flag
3712 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3713 +AC_DEFUN([AC_ENABLE_STATIC],
3714 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3715 +AC_ARG_ENABLE([static],
3716 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3717 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3718 + [p=${PACKAGE-default}
3719 + case $enableval in
3720 + yes) enable_static=yes ;;
3721 + no) enable_static=no ;;
3722 + *)
3723 + enable_static=no
3724 + # Look at the argument we got. We use all the common list separators.
3725 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726 + for pkg in $enableval; do
3727 + IFS="$lt_save_ifs"
3728 + if test "X$pkg" = "X$p"; then
3729 + enable_static=yes
3730 + fi
3731 + done
3732 + IFS="$lt_save_ifs"
3733 + ;;
3734 + esac],
3735 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3736 +])# AC_ENABLE_STATIC
3739 +# AC_DISABLE_STATIC
3740 +# -----------------
3741 +# set the default static flag to --disable-static
3742 +AC_DEFUN([AC_DISABLE_STATIC],
3743 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3744 +AC_ENABLE_STATIC(no)
3745 +])# AC_DISABLE_STATIC
3748 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3749 +# ---------------------------------
3750 +# implement the --enable-fast-install flag
3751 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3752 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3753 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3754 +AC_ARG_ENABLE([fast-install],
3755 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3756 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3757 + [p=${PACKAGE-default}
3758 + case $enableval in
3759 + yes) enable_fast_install=yes ;;
3760 + no) enable_fast_install=no ;;
3761 + *)
3762 + enable_fast_install=no
3763 + # Look at the argument we got. We use all the common list separators.
3764 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3765 + for pkg in $enableval; do
3766 + IFS="$lt_save_ifs"
3767 + if test "X$pkg" = "X$p"; then
3768 + enable_fast_install=yes
3769 + fi
3770 + done
3771 + IFS="$lt_save_ifs"
3772 + ;;
3773 + esac],
3774 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3775 +])# AC_ENABLE_FAST_INSTALL
3778 +# AC_DISABLE_FAST_INSTALL
3779 +# -----------------------
3780 +# set the default to --disable-fast-install
3781 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3782 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3783 +AC_ENABLE_FAST_INSTALL(no)
3784 +])# AC_DISABLE_FAST_INSTALL
3787 +# AC_LIBTOOL_PICMODE([MODE])
3788 +# --------------------------
3789 +# implement the --with-pic flag
3790 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3791 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3792 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3793 +pic_mode=ifelse($#,1,$1,default)
3794 +])# AC_LIBTOOL_PICMODE
3797 +# AC_PROG_EGREP
3798 +# -------------
3799 +# This is predefined starting with Autoconf 2.54, so this conditional
3800 +# definition can be removed once we require Autoconf 2.54 or later.
3801 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3802 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3803 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3804 + then ac_cv_prog_egrep='grep -E'
3805 + else ac_cv_prog_egrep='egrep'
3806 + fi])
3807 + EGREP=$ac_cv_prog_egrep
3808 + AC_SUBST([EGREP])
3809 +])])
3812 +# AC_PATH_TOOL_PREFIX
3813 +# -------------------
3814 +# find a file program which can recognise shared library
3815 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3816 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3817 +AC_MSG_CHECKING([for $1])
3818 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3819 +[case $MAGIC_CMD in
3820 +[[\\/*] | ?:[\\/]*])
3821 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3822 + ;;
3823 +*)
3824 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3825 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3826 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3827 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3828 +dnl not every word. This closes a longstanding sh security hole.
3829 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3830 + for ac_dir in $ac_dummy; do
3831 + IFS="$lt_save_ifs"
3832 + test -z "$ac_dir" && ac_dir=.
3833 + if test -f $ac_dir/$1; then
3834 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3835 + if test -n "$file_magic_test_file"; then
3836 + case $deplibs_check_method in
3837 + "file_magic "*)
3838 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3839 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3840 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3841 + $EGREP "$file_magic_regex" > /dev/null; then
3842 + :
3843 + else
3844 + cat <<EOF 1>&2
3846 +*** Warning: the command libtool uses to detect shared libraries,
3847 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3848 +*** The result is that libtool may fail to recognize shared libraries
3849 +*** as such. This will affect the creation of libtool libraries that
3850 +*** depend on shared libraries, but programs linked with such libtool
3851 +*** libraries will work regardless of this problem. Nevertheless, you
3852 +*** may want to report the problem to your system manager and/or to
3853 +*** bug-libtool@gnu.org
3855 +EOF
3856 + fi ;;
3857 + esac
3858 + fi
3859 + break
3860 + fi
3861 + done
3862 + IFS="$lt_save_ifs"
3863 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3864 + ;;
3865 +esac])
3866 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3867 +if test -n "$MAGIC_CMD"; then
3868 + AC_MSG_RESULT($MAGIC_CMD)
3869 +else
3870 + AC_MSG_RESULT(no)
3871 +fi
3872 +])# AC_PATH_TOOL_PREFIX
3875 +# AC_PATH_MAGIC
3876 +# -------------
3877 +# find a file program which can recognise a shared library
3878 +AC_DEFUN([AC_PATH_MAGIC],
3879 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3880 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3881 + if test -n "$ac_tool_prefix"; then
3882 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3883 + else
3884 + MAGIC_CMD=:
3885 + fi
3886 +fi
3887 +])# AC_PATH_MAGIC
3890 +# AC_PROG_LD
3891 +# ----------
3892 +# find the pathname to the GNU or non-GNU linker
3893 +AC_DEFUN([AC_PROG_LD],
3894 +[AC_ARG_WITH([gnu-ld],
3895 + [AC_HELP_STRING([--with-gnu-ld],
3896 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3897 + [test "$withval" = no || with_gnu_ld=yes],
3898 + [with_gnu_ld=no])
3899 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3900 +AC_REQUIRE([AC_PROG_CC])dnl
3901 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3902 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3903 +ac_prog=ld
3904 +if test "$GCC" = yes; then
3905 + # Check if gcc -print-prog-name=ld gives a path.
3906 + AC_MSG_CHECKING([for ld used by $CC])
3907 + case $host in
3908 + *-*-mingw*)
3909 + # gcc leaves a trailing carriage return which upsets mingw
3910 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3911 + *)
3912 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3913 + esac
3914 + case $ac_prog in
3915 + # Accept absolute paths.
3916 + [[\\/]]* | ?:[[\\/]]*)
3917 + re_direlt='/[[^/]][[^/]]*/\.\./'
3918 + # Canonicalize the pathname of ld
3919 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3920 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3921 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3922 + done
3923 + test -z "$LD" && LD="$ac_prog"
3924 + ;;
3925 + "")
3926 + # If it fails, then pretend we aren't using GCC.
3927 + ac_prog=ld
3928 + ;;
3929 + *)
3930 + # If it is relative, then search for the first ld in PATH.
3931 + with_gnu_ld=unknown
3932 + ;;
3933 + esac
3934 +elif test "$with_gnu_ld" = yes; then
3935 + AC_MSG_CHECKING([for GNU ld])
3936 +else
3937 + AC_MSG_CHECKING([for non-GNU ld])
3938 +fi
3939 +AC_CACHE_VAL(lt_cv_path_LD,
3940 +[if test -z "$LD"; then
3941 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3942 + for ac_dir in $PATH; do
3943 + IFS="$lt_save_ifs"
3944 + test -z "$ac_dir" && ac_dir=.
3945 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3946 + lt_cv_path_LD="$ac_dir/$ac_prog"
3947 + # Check to see if the program is GNU ld. I'd rather use --version,
3948 + # but apparently some GNU ld's only accept -v.
3949 # Break only if it was the GNU/non-GNU ld that we prefer.
3950 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3951 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3952 + *GNU* | *'with BFD'*)
3953 test "$with_gnu_ld" != no && break
3954 + ;;
3955 + *)
3956 + test "$with_gnu_ld" != yes && break
3957 + ;;
3958 + esac
3959 + fi
3960 + done
3961 + IFS="$lt_save_ifs"
3962 +else
3963 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3964 +fi])
3965 +LD="$lt_cv_path_LD"
3966 +if test -n "$LD"; then
3967 + AC_MSG_RESULT($LD)
3968 +else
3969 + AC_MSG_RESULT(no)
3970 +fi
3971 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3972 +AC_PROG_LD_GNU
3973 +])# AC_PROG_LD
3976 +# AC_PROG_LD_GNU
3977 +# --------------
3978 +AC_DEFUN([AC_PROG_LD_GNU],
3979 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3980 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3981 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
3982 +case `$LD -v 2>&1 </dev/null` in
3983 +*GNU* | *'with BFD'*)
3984 + lt_cv_prog_gnu_ld=yes
3985 + ;;
3986 +*)
3987 + lt_cv_prog_gnu_ld=no
3988 + ;;
3989 +esac])
3990 +with_gnu_ld=$lt_cv_prog_gnu_ld
3991 +])# AC_PROG_LD_GNU
3994 +# AC_PROG_LD_RELOAD_FLAG
3995 +# ----------------------
3996 +# find reload flag for linker
3997 +# -- PORTME Some linkers may need a different reload flag.
3998 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3999 +[AC_CACHE_CHECK([for $LD option to reload object files],
4000 + lt_cv_ld_reload_flag,
4001 + [lt_cv_ld_reload_flag='-r'])
4002 +reload_flag=$lt_cv_ld_reload_flag
4003 +case $reload_flag in
4004 +"" | " "*) ;;
4005 +*) reload_flag=" $reload_flag" ;;
4006 +esac
4007 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
4008 +])# AC_PROG_LD_RELOAD_FLAG
4011 +# AC_DEPLIBS_CHECK_METHOD
4012 +# -----------------------
4013 +# how to check for library dependencies
4014 +# -- PORTME fill in with the dynamic library characteristics
4015 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
4016 +[AC_CACHE_CHECK([how to recognise dependent libraries],
4017 +lt_cv_deplibs_check_method,
4018 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
4019 +lt_cv_file_magic_test_file=
4020 +lt_cv_deplibs_check_method='unknown'
4021 +# Need to set the preceding variable on all platforms that support
4022 +# interlibrary dependencies.
4023 +# 'none' -- dependencies not supported.
4024 +# `unknown' -- same as none, but documents that we really don't know.
4025 +# 'pass_all' -- all dependencies passed with no checks.
4026 +# 'test_compile' -- check by making test program.
4027 +# 'file_magic [[regex]]' -- check by looking for files in library path
4028 +# which responds to the $file_magic_cmd with a given extended regex.
4029 +# If you have `file' or equivalent on your system and you're not sure
4030 +# whether `pass_all' will *always* work, you probably want this one.
4032 +case $host_os in
4033 +aix4* | aix5*)
4034 + lt_cv_deplibs_check_method=pass_all
4035 + ;;
4037 +beos*)
4038 + lt_cv_deplibs_check_method=pass_all
4039 + ;;
4041 +bsdi4*)
4042 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4043 + lt_cv_file_magic_cmd='/usr/bin/file -L'
4044 + lt_cv_file_magic_test_file=/shlib/libc.so
4045 + ;;
4047 +cygwin* | mingw* | pw32*)
4048 + # win32_libid is a shell function defined in ltmain.sh
4049 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4050 + lt_cv_file_magic_cmd='win32_libid'
4051 + ;;
4053 +darwin* | rhapsody*)
4054 + lt_cv_deplibs_check_method=pass_all
4055 + ;;
4057 +freebsd* | kfreebsd*-gnu)
4058 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4059 + case $host_cpu in
4060 + i*86 )
4061 + # Not sure whether the presence of OpenBSD here was a mistake.
4062 + # Let's accept both of them until this is cleared up.
4063 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
4064 + lt_cv_file_magic_cmd=/usr/bin/file
4065 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4066 + ;;
4067 + esac
4068 + else
4069 + lt_cv_deplibs_check_method=pass_all
4070 + fi
4071 + ;;
4073 +gnu*)
4074 + lt_cv_deplibs_check_method=pass_all
4075 + ;;
4077 +hpux10.20* | hpux11*)
4078 + lt_cv_file_magic_cmd=/usr/bin/file
4079 + case "$host_cpu" in
4080 + ia64*)
4081 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4082 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4083 + ;;
4084 + hppa*64*)
4085 + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
4086 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4087 + ;;
4088 + *)
4089 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4090 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
4091 + ;;
4092 + esac
4093 + ;;
4095 +irix5* | irix6* | nonstopux*)
4096 + case $LD in
4097 + *-32|*"-32 ") libmagic=32-bit;;
4098 + *-n32|*"-n32 ") libmagic=N32;;
4099 + *-64|*"-64 ") libmagic=64-bit;;
4100 + *) libmagic=never-match;;
4101 + esac
4102 + lt_cv_deplibs_check_method=pass_all
4103 + ;;
4105 +# This must be Linux ELF.
4106 +linux*)
4107 + lt_cv_deplibs_check_method=pass_all
4108 + ;;
4110 +netbsd*)
4111 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4112 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4113 + else
4114 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4115 + fi
4116 + ;;
4118 +newos6*)
4119 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4120 + lt_cv_file_magic_cmd=/usr/bin/file
4121 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
4122 + ;;
4124 +nto-qnx*)
4125 + lt_cv_deplibs_check_method=unknown
4126 + ;;
4128 +openbsd*)
4129 + lt_cv_file_magic_cmd=/usr/bin/file
4130 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4131 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4132 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
4133 + else
4134 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4135 + fi
4136 + ;;
4138 +osf3* | osf4* | osf5*)
4139 + lt_cv_deplibs_check_method=pass_all
4140 + ;;
4142 +sco3.2v5*)
4143 + lt_cv_deplibs_check_method=pass_all
4144 + ;;
4146 +solaris*)
4147 + lt_cv_deplibs_check_method=pass_all
4148 + ;;
4150 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4151 + case $host_vendor in
4152 + motorola)
4153 + 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]]'
4154 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4155 + ;;
4156 + ncr)
4157 + lt_cv_deplibs_check_method=pass_all
4158 + ;;
4159 + sequent)
4160 + lt_cv_file_magic_cmd='/bin/file'
4161 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4162 + ;;
4163 + sni)
4164 + lt_cv_file_magic_cmd='/bin/file'
4165 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4166 + lt_cv_file_magic_test_file=/lib/libc.so
4167 + ;;
4168 + siemens)
4169 + lt_cv_deplibs_check_method=pass_all
4170 + ;;
4171 + esac
4172 + ;;
4174 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
4175 + lt_cv_deplibs_check_method=pass_all
4176 + ;;
4177 +esac
4178 +])
4179 +file_magic_cmd=$lt_cv_file_magic_cmd
4180 +deplibs_check_method=$lt_cv_deplibs_check_method
4181 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
4182 +])# AC_DEPLIBS_CHECK_METHOD
4185 +# AC_PROG_NM
4186 +# ----------
4187 +# find the pathname to a BSD-compatible name lister
4188 +AC_DEFUN([AC_PROG_NM],
4189 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
4190 +[if test -n "$NM"; then
4191 + # Let the user override the test.
4192 + lt_cv_path_NM="$NM"
4193 +else
4194 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4195 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4196 + IFS="$lt_save_ifs"
4197 + test -z "$ac_dir" && ac_dir=.
4198 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4199 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4200 + # Check to see if the nm accepts a BSD-compat flag.
4201 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4202 + # nm: unknown option "B" ignored
4203 + # Tru64's nm complains that /dev/null is an invalid object file
4204 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4205 + */dev/null* | *'Invalid file or object type'*)
4206 + lt_cv_path_NM="$tmp_nm -B"
4207 + break
4208 + ;;
4209 + *)
4210 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4211 + */dev/null*)
4212 + lt_cv_path_NM="$tmp_nm -p"
4213 + break
4214 + ;;
4215 + *)
4216 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4217 + continue # so that we can try to find one that supports BSD flags
4218 + ;;
4219 + esac
4220 + esac
4221 + fi
4222 + done
4223 + IFS="$lt_save_ifs"
4224 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4225 +fi])
4226 +NM="$lt_cv_path_NM"
4227 +])# AC_PROG_NM
4230 +# AC_CHECK_LIBM
4231 +# -------------
4232 +# check for math library
4233 +AC_DEFUN([AC_CHECK_LIBM],
4234 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4235 +LIBM=
4236 +case $host in
4237 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4238 + # These system don't have libm, or don't need it
4239 + ;;
4240 +*-ncr-sysv4.3*)
4241 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4242 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4243 + ;;
4244 +*)
4245 + AC_CHECK_LIB(m, cos, LIBM="-lm")
4246 + ;;
4247 +esac
4248 +])# AC_CHECK_LIBM
4251 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
4252 +# -----------------------------------
4253 +# sets LIBLTDL to the link flags for the libltdl convenience library and
4254 +# LTDLINCL to the include flags for the libltdl header and adds
4255 +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
4256 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4257 +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
4258 +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
4259 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4260 +# flat and you're not using automake, define top_builddir and
4261 +# top_srcdir appropriately in the Makefiles.
4262 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
4263 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4264 + case $enable_ltdl_convenience in
4265 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
4266 + "") enable_ltdl_convenience=yes
4267 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
4268 + esac
4269 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
4270 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4271 + # For backwards non-gettext consistent compatibility...
4272 + INCLTDL="$LTDLINCL"
4273 +])# AC_LIBLTDL_CONVENIENCE
4276 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
4277 +# -----------------------------------
4278 +# sets LIBLTDL to the link flags for the libltdl installable library and
4279 +# LTDLINCL to the include flags for the libltdl header and adds
4280 +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
4281 +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
4282 +# DIRECTORY is not provided and an installed libltdl is not found, it is
4283 +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
4284 +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
4285 +# quotes!). If your package is not flat and you're not using automake,
4286 +# define top_builddir and top_srcdir appropriately in the Makefiles.
4287 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4288 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4289 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4290 + AC_CHECK_LIB(ltdl, lt_dlinit,
4291 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4292 + [if test x"$enable_ltdl_install" = xno; then
4293 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4294 + else
4295 + enable_ltdl_install=yes
4296 + fi
4297 + ])
4298 + if test x"$enable_ltdl_install" = x"yes"; then
4299 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4300 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4301 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4302 + else
4303 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4304 + LIBLTDL="-lltdl"
4305 + LTDLINCL=
4306 + fi
4307 + # For backwards non-gettext consistent compatibility...
4308 + INCLTDL="$LTDLINCL"
4309 +])# AC_LIBLTDL_INSTALLABLE
4312 +# AC_LIBTOOL_CXX
4313 +# --------------
4314 +# enable support for C++ libraries
4315 +AC_DEFUN([AC_LIBTOOL_CXX],
4316 +[AC_REQUIRE([_LT_AC_LANG_CXX])
4317 +])# AC_LIBTOOL_CXX
4320 +# _LT_AC_LANG_CXX
4321 +# ---------------
4322 +AC_DEFUN([_LT_AC_LANG_CXX],
4323 +[AC_REQUIRE([AC_PROG_CXX])
4324 +AC_REQUIRE([AC_PROG_CXXCPP])
4325 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4326 +])# _LT_AC_LANG_CXX
4329 +# AC_LIBTOOL_F77
4330 +# --------------
4331 +# enable support for Fortran 77 libraries
4332 +AC_DEFUN([AC_LIBTOOL_F77],
4333 +[AC_REQUIRE([_LT_AC_LANG_F77])
4334 +])# AC_LIBTOOL_F77
4337 +# _LT_AC_LANG_F77
4338 +# ---------------
4339 +AC_DEFUN([_LT_AC_LANG_F77],
4340 +[AC_REQUIRE([AC_PROG_F77])
4341 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4342 +])# _LT_AC_LANG_F77
4345 +# AC_LIBTOOL_GCJ
4346 +# --------------
4347 +# enable support for GCJ libraries
4348 +AC_DEFUN([AC_LIBTOOL_GCJ],
4349 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4350 +])# AC_LIBTOOL_GCJ
4353 +# _LT_AC_LANG_GCJ
4354 +# ---------------
4355 +AC_DEFUN([_LT_AC_LANG_GCJ],
4356 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4357 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4358 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4359 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4360 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4361 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4362 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4363 +])# _LT_AC_LANG_GCJ
4366 +# AC_LIBTOOL_RC
4367 +# --------------
4368 +# enable support for Windows resource files
4369 +AC_DEFUN([AC_LIBTOOL_RC],
4370 +[AC_REQUIRE([LT_AC_PROG_RC])
4371 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4372 +])# AC_LIBTOOL_RC
4375 +# AC_LIBTOOL_LANG_C_CONFIG
4376 +# ------------------------
4377 +# Ensure that the configuration vars for the C compiler are
4378 +# suitably defined. Those variables are subsequently used by
4379 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4380 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4381 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4382 +[lt_save_CC="$CC"
4383 +AC_LANG_PUSH(C)
4385 +# Source file extension for C test sources.
4386 +ac_ext=c
4388 +# Object file extension for compiled C test sources.
4389 +objext=o
4390 +_LT_AC_TAGVAR(objext, $1)=$objext
4392 +# Code to be used in simple compile tests
4393 +lt_simple_compile_test_code="int some_variable = 0;\n"
4395 +# Code to be used in simple link tests
4396 +lt_simple_link_test_code='int main(){return(0);}\n'
4398 +_LT_AC_SYS_COMPILER
4400 +#
4401 +# Check for any special shared library compilation flags.
4402 +#
4403 +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
4404 +if test "$GCC" = no; then
4405 + case $host_os in
4406 + sco3.2v5*)
4407 + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
4408 + ;;
4409 + esac
4410 +fi
4411 +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
4412 + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
4413 + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
4414 + else
4415 + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
4416 + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
4417 + fi
4418 +fi
4421 +#
4422 +# Check to make sure the static flag actually works.
4423 +#
4424 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
4425 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
4426 + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
4427 + [],
4428 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
4431 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4432 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4433 +AC_LIBTOOL_PROG_CC_C_O($1)
4434 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4435 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4436 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4437 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4438 +AC_LIBTOOL_SYS_LIB_STRIP
4439 +AC_LIBTOOL_DLOPEN_SELF($1)
4441 +# Report which librarie types wil actually be built
4442 +AC_MSG_CHECKING([if libtool supports shared libraries])
4443 +AC_MSG_RESULT([$can_build_shared])
4445 +AC_MSG_CHECKING([whether to build shared libraries])
4446 +test "$can_build_shared" = "no" && enable_shared=no
4448 +# On AIX, shared libraries and static libraries use the same namespace, and
4449 +# are all built from PIC.
4450 +case "$host_os" in
4451 +aix3*)
4452 + test "$enable_shared" = yes && enable_static=no
4453 + if test -n "$RANLIB"; then
4454 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4455 + postinstall_cmds='$RANLIB $lib'
4456 + fi
4457 + ;;
4459 +aix4*)
4460 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4461 + test "$enable_shared" = yes && enable_static=no
4462 + fi
4463 + ;;
4464 + darwin* | rhapsody*)
4465 + if test "$GCC" = yes; then
4466 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4467 + case "$host_os" in
4468 + rhapsody* | darwin1.[[012]])
4469 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4470 + ;;
4471 + *) # Darwin 1.3 on
4472 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4473 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4474 + else
4475 + case ${MACOSX_DEPLOYMENT_TARGET} in
4476 + 10.[[012]])
4477 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4478 + ;;
4479 + 10.*)
4480 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4481 + ;;
4482 + esac
4483 + fi
4484 + ;;
4485 + esac
4486 + output_verbose_link_cmd='echo'
4487 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
4488 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4489 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4490 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4491 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4492 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4493 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4494 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4495 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4496 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4497 + else
4498 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4499 + fi
4500 + ;;
4501 +esac
4502 +AC_MSG_RESULT([$enable_shared])
4504 +AC_MSG_CHECKING([whether to build static libraries])
4505 +# Make sure either enable_shared or enable_static is yes.
4506 +test "$enable_shared" = yes || enable_static=yes
4507 +AC_MSG_RESULT([$enable_static])
4509 +AC_LIBTOOL_CONFIG($1)
4511 +AC_LANG_POP
4512 +CC="$lt_save_CC"
4513 +])# AC_LIBTOOL_LANG_C_CONFIG
4516 +# AC_LIBTOOL_LANG_CXX_CONFIG
4517 +# --------------------------
4518 +# Ensure that the configuration vars for the C compiler are
4519 +# suitably defined. Those variables are subsequently used by
4520 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4521 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4522 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4523 +[AC_LANG_PUSH(C++)
4524 +AC_REQUIRE([AC_PROG_CXX])
4525 +AC_REQUIRE([AC_PROG_CXXCPP])
4527 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4528 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4529 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4530 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4531 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4532 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4533 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4534 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4535 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4536 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4537 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4538 +_LT_AC_TAGVAR(module_cmds, $1)=
4539 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4540 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4541 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4542 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4543 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4544 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4546 +# Dependencies to place before and after the object being linked:
4547 +_LT_AC_TAGVAR(predep_objects, $1)=
4548 +_LT_AC_TAGVAR(postdep_objects, $1)=
4549 +_LT_AC_TAGVAR(predeps, $1)=
4550 +_LT_AC_TAGVAR(postdeps, $1)=
4551 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4553 +# Source file extension for C++ test sources.
4554 +ac_ext=cc
4556 +# Object file extension for compiled C++ test sources.
4557 +objext=o
4558 +_LT_AC_TAGVAR(objext, $1)=$objext
4560 +# Code to be used in simple compile tests
4561 +lt_simple_compile_test_code="int some_variable = 0;\n"
4563 +# Code to be used in simple link tests
4564 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
4566 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4567 +_LT_AC_SYS_COMPILER
4569 +# Allow CC to be a program name with arguments.
4570 +lt_save_CC=$CC
4571 +lt_save_LD=$LD
4572 +lt_save_GCC=$GCC
4573 +GCC=$GXX
4574 +lt_save_with_gnu_ld=$with_gnu_ld
4575 +lt_save_path_LD=$lt_cv_path_LD
4576 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4577 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4578 +else
4579 + unset lt_cv_prog_gnu_ld
4580 +fi
4581 +if test -n "${lt_cv_path_LDCXX+set}"; then
4582 + lt_cv_path_LD=$lt_cv_path_LDCXX
4583 +else
4584 + unset lt_cv_path_LD
4585 +fi
4586 +test -z "${LDCXX+set}" || LD=$LDCXX
4587 +CC=${CXX-"c++"}
4588 +compiler=$CC
4589 +_LT_AC_TAGVAR(compiler, $1)=$CC
4590 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
4592 +# We don't want -fno-exception wen compiling C++ code, so set the
4593 +# no_builtin_flag separately
4594 +if test "$GXX" = yes; then
4595 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4596 +else
4597 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4598 +fi
4600 +if test "$GXX" = yes; then
4601 + # Set up default GNU C++ configuration
4603 + AC_PROG_LD
4605 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4606 + # archiving commands below assume that GNU ld is being used.
4607 + if test "$with_gnu_ld" = yes; then
4608 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4609 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4611 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4612 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4614 + # If archive_cmds runs LD, not CC, wlarc should be empty
4615 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4616 + # investigate it a little bit more. (MM)
4617 + wlarc='${wl}'
4619 + # ancient GNU ld didn't support --whole-archive et. al.
4620 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4621 + grep 'no-whole-archive' > /dev/null; then
4622 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4623 + else
4624 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4625 + fi
4626 + else
4627 + with_gnu_ld=no
4628 + wlarc=
4630 + # A generic and very simple default shared library creation
4631 + # command for GNU C++ for the case where it uses the native
4632 + # linker, instead of GNU ld. If possible, this setting should
4633 + # overridden to take advantage of the native linker features on
4634 + # the platform it is being used on.
4635 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4636 + fi
4638 + # Commands to make compiler produce verbose output that lists
4639 + # what "hidden" libraries, object files and flags are used when
4640 + # linking a shared library.
4641 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4643 +else
4644 + GXX=no
4645 + with_gnu_ld=no
4646 + wlarc=
4647 +fi
4649 +# PORTME: fill in a description of your system's C++ link characteristics
4650 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4651 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4652 +case $host_os in
4653 + aix3*)
4654 + # FIXME: insert proper C++ library support
4655 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4656 + ;;
4657 + aix4* | aix5*)
4658 + if test "$host_cpu" = ia64; then
4659 + # On IA64, the linker does run time linking by default, so we don't
4660 + # have to do anything special.
4661 + aix_use_runtimelinking=no
4662 + exp_sym_flag='-Bexport'
4663 + no_entry_flag=""
4664 + else
4665 + aix_use_runtimelinking=no
4667 + # Test if we are trying to use run time linking or normal
4668 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4669 + # need to do runtime linking.
4670 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4671 + for ld_flag in $LDFLAGS; do
4672 + case $ld_flag in
4673 + *-brtl*)
4674 + aix_use_runtimelinking=yes
4675 + break
4676 + ;;
4677 + esac
4678 + done
4679 + esac
4681 + exp_sym_flag='-bexport'
4682 + no_entry_flag='-bnoentry'
4683 + fi
4685 + # When large executables or shared objects are built, AIX ld can
4686 + # have problems creating the table of contents. If linking a library
4687 + # or program results in "error TOC overflow" add -mminimal-toc to
4688 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4689 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4691 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4692 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4693 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4694 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4696 + if test "$GXX" = yes; then
4697 + case $host_os in aix4.[012]|aix4.[012].*)
4698 + # We only want to do this on AIX 4.2 and lower, the check
4699 + # below for broken collect2 doesn't work under 4.3+
4700 + collect2name=`${CC} -print-prog-name=collect2`
4701 + if test -f "$collect2name" && \
4702 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4703 + then
4704 + # We have reworked collect2
4705 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4706 + else
4707 + # We have old collect2
4708 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4709 + # It fails to find uninstalled libraries when the uninstalled
4710 + # path is not listed in the libpath. Setting hardcode_minus_L
4711 + # to unsupported forces relinking
4712 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4713 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4714 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4715 + fi
4716 + esac
4717 + shared_flag='-shared'
4718 + else
4719 + # not using gcc
4720 + if test "$host_cpu" = ia64; then
4721 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4722 + # chokes on -Wl,-G. The following line is correct:
4723 + shared_flag='-G'
4724 + else
4725 + if test "$aix_use_runtimelinking" = yes; then
4726 + shared_flag='${wl}-G'
4727 + else
4728 + shared_flag='${wl}-bM:SRE'
4729 + fi
4730 + fi
4731 + fi
4733 + # It seems that -bexpall does not export symbols beginning with
4734 + # underscore (_), so it is better to generate a list of symbols to export.
4735 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4736 + if test "$aix_use_runtimelinking" = yes; then
4737 + # Warning - without using the other runtime loading flags (-brtl),
4738 + # -berok will link without error, but may produce a broken library.
4739 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4740 + # Determine the default libpath from the value encoded in an empty executable.
4741 + _LT_AC_SYS_LIBPATH_AIX
4742 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4744 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4745 + else
4746 + if test "$host_cpu" = ia64; then
4747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4748 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4749 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4750 + else
4751 + # Determine the default libpath from the value encoded in an empty executable.
4752 + _LT_AC_SYS_LIBPATH_AIX
4753 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4754 + # Warning - without using the other run time loading flags,
4755 + # -berok will link without error, but may produce a broken library.
4756 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4757 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4758 + # -bexpall does not export symbols beginning with underscore (_)
4759 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4760 + # Exported symbols can be pulled into shared objects from archives
4761 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
4762 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4763 + # This is similar to how AIX traditionally builds it's shared libraries.
4764 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4765 + fi
4766 + fi
4767 + ;;
4768 + chorus*)
4769 + case $cc_basename in
4770 + *)
4771 + # FIXME: insert proper C++ library support
4772 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4773 + ;;
4774 + esac
4775 + ;;
4777 + cygwin* | mingw* | pw32*)
4778 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4779 + # as there is no search path for DLLs.
4780 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4781 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4782 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4783 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4785 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4786 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4787 + # If the export-symbols file already is a .def file (1st line
4788 + # is EXPORTS), use it as is; otherwise, prepend...
4789 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4790 + cp $export_symbols $output_objdir/$soname.def;
4791 + else
4792 + echo EXPORTS > $output_objdir/$soname.def;
4793 + cat $export_symbols >> $output_objdir/$soname.def;
4794 + fi~
4795 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
4796 + else
4797 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4798 + fi
4799 + ;;
4801 + darwin* | rhapsody*)
4802 + if test "$GXX" = yes; then
4803 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4804 + case "$host_os" in
4805 + rhapsody* | darwin1.[[012]])
4806 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
4807 + ;;
4808 + *) # Darwin 1.3 on
4809 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4810 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4811 + else
4812 + case ${MACOSX_DEPLOYMENT_TARGET} in
4813 + 10.[[012]])
4814 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
4815 + ;;
4816 + 10.*)
4817 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
4818 + ;;
4819 + esac
4820 + fi
4821 + ;;
4822 + esac
4823 + lt_int_apple_cc_single_mod=no
4824 + output_verbose_link_cmd='echo'
4825 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
4826 + lt_int_apple_cc_single_mod=yes
4827 + fi
4828 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4829 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4830 + else
4831 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
4832 + fi
4833 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4835 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
4836 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4837 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4838 + else
4839 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4840 + fi
4841 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4842 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4843 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4844 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4845 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
4846 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4847 + else
4848 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4849 + fi
4850 + ;;
4852 + dgux*)
4853 + case $cc_basename in
4854 + ec++)
4855 + # FIXME: insert proper C++ library support
4856 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4857 + ;;
4858 + ghcx)
4859 + # Green Hills C++ Compiler
4860 + # FIXME: insert proper C++ library support
4861 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4862 + ;;
4863 + *)
4864 + # FIXME: insert proper C++ library support
4865 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4866 + ;;
4867 + esac
4868 + ;;
4869 + freebsd[12]*)
4870 + # C++ shared libraries reported to be fairly broken before switch to ELF
4871 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4872 + ;;
4873 + freebsd-elf*)
4874 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4875 + ;;
4876 + freebsd* | kfreebsd*-gnu)
4877 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4878 + # conventions
4879 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4880 + ;;
4881 + gnu*)
4882 + ;;
4883 + hpux9*)
4884 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4885 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4886 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4887 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4888 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4889 + # but as the default
4890 + # location of the library.
4892 + case $cc_basename in
4893 + CC)
4894 + # FIXME: insert proper C++ library support
4895 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4896 + ;;
4897 + aCC)
4898 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4899 + # Commands to make compiler produce verbose output that lists
4900 + # what "hidden" libraries, object files and flags are used when
4901 + # linking a shared library.
4902 + #
4903 + # There doesn't appear to be a way to prevent this compiler from
4904 + # explicitly linking system object files so we need to strip them
4905 + # from the output so that they don't get included in the library
4906 + # dependencies.
4907 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4908 + ;;
4909 + *)
4910 + if test "$GXX" = yes; then
4911 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
4912 + else
4913 + # FIXME: insert proper C++ library support
4914 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4915 + fi
4916 + ;;
4917 + esac
4918 + ;;
4919 + hpux10*|hpux11*)
4920 + if test $with_gnu_ld = no; then
4921 + case "$host_cpu" in
4922 + hppa*64*)
4923 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4924 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4925 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4926 + ;;
4927 + ia64*)
4928 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4929 + ;;
4930 + *)
4931 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4932 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4933 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4934 + ;;
4935 + esac
4936 + fi
4937 + case "$host_cpu" in
4938 + hppa*64*)
4939 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4940 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4941 + ;;
4942 + ia64*)
4943 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4944 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4945 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4946 + # but as the default
4947 + # location of the library.
4948 + ;;
4949 + *)
4950 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4951 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4952 + # but as the default
4953 + # location of the library.
4954 + ;;
4955 + esac
4957 + case $cc_basename in
4958 + CC)
4959 + # FIXME: insert proper C++ library support
4960 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4961 + ;;
4962 + aCC)
4963 + case "$host_cpu" in
4964 + hppa*64*|ia64*)
4965 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4966 + ;;
4967 + *)
4968 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4969 + ;;
4970 + esac
4971 + # Commands to make compiler produce verbose output that lists
4972 + # what "hidden" libraries, object files and flags are used when
4973 + # linking a shared library.
4974 + #
4975 + # There doesn't appear to be a way to prevent this compiler from
4976 + # explicitly linking system object files so we need to strip them
4977 + # from the output so that they don't get included in the library
4978 + # dependencies.
4979 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
4980 + ;;
4981 + *)
4982 + if test "$GXX" = yes; then
4983 + if test $with_gnu_ld = no; then
4984 + case "$host_cpu" in
4985 + ia64*|hppa*64*)
4986 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
4987 + ;;
4988 + *)
4989 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4990 + ;;
4991 + esac
4992 + fi
4993 + else
4994 + # FIXME: insert proper C++ library support
4995 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4996 + fi
4997 + ;;
4998 + esac
4999 + ;;
5000 + irix5* | irix6*)
5001 + case $cc_basename in
5002 + CC)
5003 + # SGI C++
5004 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5006 + # Archives containing C++ object files must be created using
5007 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
5008 + # necessary to make sure instantiated templates are included
5009 + # in the archive.
5010 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
5011 + ;;
5012 + *)
5013 + if test "$GXX" = yes; then
5014 + if test "$with_gnu_ld" = no; then
5015 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5016 + else
5017 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
5018 + fi
5019 + fi
5020 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5021 + ;;
5022 + esac
5023 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5024 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5025 + ;;
5026 + linux*)
5027 + case $cc_basename in
5028 + KCC)
5029 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5031 + # KCC will only create a shared library if the output file
5032 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5033 + # to its proper name (with version) after linking.
5034 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5035 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
5036 + # Commands to make compiler produce verbose output that lists
5037 + # what "hidden" libraries, object files and flags are used when
5038 + # linking a shared library.
5039 + #
5040 + # There doesn't appear to be a way to prevent this compiler from
5041 + # explicitly linking system object files so we need to strip them
5042 + # from the output so that they don't get included in the library
5043 + # dependencies.
5044 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5046 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
5047 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5049 + # Archives containing C++ object files must be created using
5050 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5051 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5052 + ;;
5053 + icpc)
5054 + # Intel C++
5055 + with_gnu_ld=yes
5056 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5057 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5058 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5059 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5060 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5061 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
5062 + ;;
5063 + cxx)
5064 + # Compaq C++
5065 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
5066 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
5068 + runpath_var=LD_RUN_PATH
5069 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5070 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5072 + # Commands to make compiler produce verbose output that lists
5073 + # what "hidden" libraries, object files and flags are used when
5074 + # linking a shared library.
5075 + #
5076 + # There doesn't appear to be a way to prevent this compiler from
5077 + # explicitly linking system object files so we need to strip them
5078 + # from the output so that they don't get included in the library
5079 + # dependencies.
5080 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5081 + ;;
5082 + esac
5083 + ;;
5084 + lynxos*)
5085 + # FIXME: insert proper C++ library support
5086 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5087 + ;;
5088 + m88k*)
5089 + # FIXME: insert proper C++ library support
5090 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5091 + ;;
5092 + mvs*)
5093 + case $cc_basename in
5094 + cxx)
5095 + # FIXME: insert proper C++ library support
5096 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5097 + ;;
5098 + *)
5099 + # FIXME: insert proper C++ library support
5100 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5101 + ;;
5102 + esac
5103 + ;;
5104 + netbsd*)
5105 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5106 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
5107 + wlarc=
5108 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5109 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5110 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5111 + fi
5112 + # Workaround some broken pre-1.5 toolchains
5113 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
5114 + ;;
5115 + osf3*)
5116 + case $cc_basename in
5117 + KCC)
5118 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5120 + # KCC will only create a shared library if the output file
5121 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5122 + # to its proper name (with version) after linking.
5123 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5125 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5126 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5128 + # Archives containing C++ object files must be created using
5129 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
5130 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
5132 + ;;
5133 + RCC)
5134 + # Rational C++ 2.4.1
5135 + # FIXME: insert proper C++ library support
5136 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5137 + ;;
5138 + cxx)
5139 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5140 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5142 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5143 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5145 + # Commands to make compiler produce verbose output that lists
5146 + # what "hidden" libraries, object files and flags are used when
5147 + # linking a shared library.
5148 + #
5149 + # There doesn't appear to be a way to prevent this compiler from
5150 + # explicitly linking system object files so we need to strip them
5151 + # from the output so that they don't get included in the library
5152 + # dependencies.
5153 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5154 + ;;
5155 + *)
5156 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5157 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5158 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5160 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5161 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5163 + # Commands to make compiler produce verbose output that lists
5164 + # what "hidden" libraries, object files and flags are used when
5165 + # linking a shared library.
5166 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5168 + else
5169 + # FIXME: insert proper C++ library support
5170 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5171 + fi
5172 + ;;
5173 + esac
5174 + ;;
5175 + osf4* | osf5*)
5176 + case $cc_basename in
5177 + KCC)
5178 + # Kuck and Associates, Inc. (KAI) C++ Compiler
5180 + # KCC will only create a shared library if the output file
5181 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
5182 + # to its proper name (with version) after linking.
5183 + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
5185 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5186 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5188 + # Archives containing C++ object files must be created using
5189 + # the KAI C++ compiler.
5190 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
5191 + ;;
5192 + RCC)
5193 + # Rational C++ 2.4.1
5194 + # FIXME: insert proper C++ library support
5195 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5196 + ;;
5197 + cxx)
5198 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5199 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
5200 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
5201 + echo "-hidden">> $lib.exp~
5202 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
5203 + $rm $lib.exp'
5205 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5206 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5208 + # Commands to make compiler produce verbose output that lists
5209 + # what "hidden" libraries, object files and flags are used when
5210 + # linking a shared library.
5211 + #
5212 + # There doesn't appear to be a way to prevent this compiler from
5213 + # explicitly linking system object files so we need to strip them
5214 + # from the output so that they don't get included in the library
5215 + # dependencies.
5216 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5217 + ;;
5218 + *)
5219 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5220 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5221 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
5223 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5224 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5226 + # Commands to make compiler produce verbose output that lists
5227 + # what "hidden" libraries, object files and flags are used when
5228 + # linking a shared library.
5229 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
5231 + else
5232 + # FIXME: insert proper C++ library support
5233 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5234 + fi
5235 + ;;
5236 + esac
5237 + ;;
5238 + psos*)
5239 + # FIXME: insert proper C++ library support
5240 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5241 + ;;
5242 + sco*)
5243 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5244 + case $cc_basename in
5245 + CC)
5246 + # FIXME: insert proper C++ library support
5247 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5248 + ;;
5249 + *)
5250 + # FIXME: insert proper C++ library support
5251 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5252 + ;;
5253 + esac
5254 + ;;
5255 + sunos4*)
5256 + case $cc_basename in
5257 + CC)
5258 + # Sun C++ 4.x
5259 + # FIXME: insert proper C++ library support
5260 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5261 + ;;
5262 + lcc)
5263 + # Lucid
5264 + # FIXME: insert proper C++ library support
5265 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5266 + ;;
5267 + *)
5268 + # FIXME: insert proper C++ library support
5269 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5270 + ;;
5271 + esac
5272 + ;;
5273 + solaris*)
5274 + case $cc_basename in
5275 + CC)
5276 + # Sun C++ 4.2, 5.x and Centerline C++
5277 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5278 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5279 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5280 + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5282 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5283 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5284 + case $host_os in
5285 + solaris2.[0-5] | solaris2.[0-5].*) ;;
5286 + *)
5287 + # The C++ compiler is used as linker so we must use $wl
5288 + # flag to pass the commands to the underlying system
5289 + # linker.
5290 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5291 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5292 + ;;
5293 + esac
5294 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5296 + # Commands to make compiler produce verbose output that lists
5297 + # what "hidden" libraries, object files and flags are used when
5298 + # linking a shared library.
5299 + #
5300 + # There doesn't appear to be a way to prevent this compiler from
5301 + # explicitly linking system object files so we need to strip them
5302 + # from the output so that they don't get included in the library
5303 + # dependencies.
5304 + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
5306 + # Archives containing C++ object files must be created using
5307 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5308 + # necessary to make sure instantiated templates are included
5309 + # in the archive.
5310 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5311 + ;;
5312 + gcx)
5313 + # Green Hills C++ Compiler
5314 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5316 + # The C++ compiler must be used to create the archive.
5317 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5318 + ;;
5319 + *)
5320 + # GNU C++ compiler with Solaris linker
5321 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5322 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5323 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5324 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5325 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5326 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5328 + # Commands to make compiler produce verbose output that lists
5329 + # what "hidden" libraries, object files and flags are used when
5330 + # linking a shared library.
5331 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5332 + else
5333 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5334 + # platform.
5335 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5336 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5337 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5339 + # Commands to make compiler produce verbose output that lists
5340 + # what "hidden" libraries, object files and flags are used when
5341 + # linking a shared library.
5342 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5343 + fi
5345 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5346 + fi
5347 + ;;
5348 + esac
5349 + ;;
5350 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
5351 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5352 + ;;
5353 + tandem*)
5354 + case $cc_basename in
5355 + NCC)
5356 + # NonStop-UX NCC 3.20
5357 + # FIXME: insert proper C++ library support
5358 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5359 + ;;
5360 + *)
5361 + # FIXME: insert proper C++ library support
5362 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5363 + ;;
5364 + esac
5365 + ;;
5366 + vxworks*)
5367 + # FIXME: insert proper C++ library support
5368 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5369 + ;;
5370 + *)
5371 + # FIXME: insert proper C++ library support
5372 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5373 + ;;
5374 +esac
5375 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5376 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5378 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5379 +_LT_AC_TAGVAR(LD, $1)="$LD"
5381 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5382 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5383 +AC_LIBTOOL_PROG_CC_C_O($1)
5384 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5385 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5386 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5387 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5388 +AC_LIBTOOL_SYS_LIB_STRIP
5389 +AC_LIBTOOL_DLOPEN_SELF($1)
5391 +AC_LIBTOOL_CONFIG($1)
5393 +AC_LANG_POP
5394 +CC=$lt_save_CC
5395 +LDCXX=$LD
5396 +LD=$lt_save_LD
5397 +GCC=$lt_save_GCC
5398 +with_gnu_ldcxx=$with_gnu_ld
5399 +with_gnu_ld=$lt_save_with_gnu_ld
5400 +lt_cv_path_LDCXX=$lt_cv_path_LD
5401 +lt_cv_path_LD=$lt_save_path_LD
5402 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5403 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5404 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5406 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5407 +# ------------------------
5408 +# Figure out "hidden" library dependencies from verbose
5409 +# compiler output when linking a shared library.
5410 +# Parse the compiler output and extract the necessary
5411 +# objects, libraries and library flags.
5412 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5413 +dnl we can't use the lt_simple_compile_test_code here,
5414 +dnl because it contains code intended for an executable,
5415 +dnl not a library. It's possible we should let each
5416 +dnl tag define a new lt_????_link_test_code variable,
5417 +dnl but it's only used here...
5418 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5419 +int a;
5420 +void foo (void) { a = 0; }
5421 +EOF
5422 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5423 +class Foo
5424 +{
5425 +public:
5426 + Foo (void) { a = 0; }
5427 +private:
5428 + int a;
5429 +};
5430 +EOF
5431 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5432 + subroutine foo
5433 + implicit none
5434 + integer*4 a
5435 + a=0
5436 + return
5437 + end
5438 +EOF
5439 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5440 +public class foo {
5441 + private int a;
5442 + public void bar (void) {
5443 + a = 0;
5444 + }
5445 +};
5446 +EOF
5447 +])
5448 +dnl Parse the compiler output and extract the necessary
5449 +dnl objects, libraries and library flags.
5450 +if AC_TRY_EVAL(ac_compile); then
5451 + # Parse the compiler output and extract the necessary
5452 + # objects, libraries and library flags.
5454 + # Sentinel used to keep track of whether or not we are before
5455 + # the conftest object file.
5456 + pre_test_object_deps_done=no
5458 + # The `*' in the case matches for architectures that use `case' in
5459 + # $output_verbose_cmd can trigger glob expansion during the loop
5460 + # eval without this substitution.
5461 + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
5463 + for p in `eval $output_verbose_link_cmd`; do
5464 + case $p in
5466 + -L* | -R* | -l*)
5467 + # Some compilers place space between "-{L,R}" and the path.
5468 + # Remove the space.
5469 + if test $p = "-L" \
5470 + || test $p = "-R"; then
5471 + prev=$p
5472 + continue
5473 + else
5474 + prev=
5475 + fi
5477 + if test "$pre_test_object_deps_done" = no; then
5478 + case $p in
5479 + -L* | -R*)
5480 + # Internal compiler library paths should come after those
5481 + # provided the user. The postdeps already come after the
5482 + # user supplied libs so there is no need to process them.
5483 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5484 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5485 + else
5486 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5487 + fi
5488 + ;;
5489 + # The "-l" case would never come before the object being
5490 + # linked, so don't bother handling this case.
5491 + esac
5492 + else
5493 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5494 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5495 + else
5496 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5497 + fi
5498 + fi
5499 + ;;
5501 + *.$objext)
5502 + # This assumes that the test object file only shows up
5503 + # once in the compiler output.
5504 + if test "$p" = "conftest.$objext"; then
5505 + pre_test_object_deps_done=yes
5506 + continue
5507 + fi
5509 + if test "$pre_test_object_deps_done" = no; then
5510 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5511 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5512 + else
5513 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5514 + fi
5515 + else
5516 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5517 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5518 + else
5519 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5520 + fi
5521 + fi
5522 + ;;
5524 + *) ;; # Ignore the rest.
5526 + esac
5527 + done
5529 + # Clean up.
5530 + rm -f a.out a.exe
5531 +else
5532 + echo "libtool.m4: error: problem compiling $1 test program"
5533 +fi
5535 +$rm -f confest.$objext
5537 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5538 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5539 +esac
5540 +])# AC_LIBTOOL_POSTDEP_PREDEP
5542 +# AC_LIBTOOL_LANG_F77_CONFIG
5543 +# ------------------------
5544 +# Ensure that the configuration vars for the C compiler are
5545 +# suitably defined. Those variables are subsequently used by
5546 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5547 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5548 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5549 +[AC_REQUIRE([AC_PROG_F77])
5550 +AC_LANG_PUSH(Fortran 77)
5552 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5553 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5554 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5555 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5556 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5557 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5558 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5559 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5560 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5561 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5562 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5563 +_LT_AC_TAGVAR(module_cmds, $1)=
5564 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5565 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5566 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5567 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5568 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5569 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5571 +# Source file extension for f77 test sources.
5572 +ac_ext=f
5574 +# Object file extension for compiled f77 test sources.
5575 +objext=o
5576 +_LT_AC_TAGVAR(objext, $1)=$objext
5578 +# Code to be used in simple compile tests
5579 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5581 +# Code to be used in simple link tests
5582 +lt_simple_link_test_code=" program t\n end\n"
5584 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5585 +_LT_AC_SYS_COMPILER
5587 +# Allow CC to be a program name with arguments.
5588 +lt_save_CC="$CC"
5589 +CC=${F77-"f77"}
5590 +compiler=$CC
5591 +_LT_AC_TAGVAR(compiler, $1)=$CC
5592 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5594 +AC_MSG_CHECKING([if libtool supports shared libraries])
5595 +AC_MSG_RESULT([$can_build_shared])
5597 +AC_MSG_CHECKING([whether to build shared libraries])
5598 +test "$can_build_shared" = "no" && enable_shared=no
5600 +# On AIX, shared libraries and static libraries use the same namespace, and
5601 +# are all built from PIC.
5602 +case "$host_os" in
5603 +aix3*)
5604 + test "$enable_shared" = yes && enable_static=no
5605 + if test -n "$RANLIB"; then
5606 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
5607 + postinstall_cmds='$RANLIB $lib'
5608 + fi
5609 + ;;
5610 +aix4*)
5611 + test "$enable_shared" = yes && enable_static=no
5612 + ;;
5613 +esac
5614 +AC_MSG_RESULT([$enable_shared])
5616 +AC_MSG_CHECKING([whether to build static libraries])
5617 +# Make sure either enable_shared or enable_static is yes.
5618 +test "$enable_shared" = yes || enable_static=yes
5619 +AC_MSG_RESULT([$enable_static])
5621 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5623 +_LT_AC_TAGVAR(GCC, $1)="$G77"
5624 +_LT_AC_TAGVAR(LD, $1)="$LD"
5626 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5627 +AC_LIBTOOL_PROG_CC_C_O($1)
5628 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5629 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5630 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5631 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5632 +AC_LIBTOOL_SYS_LIB_STRIP
5635 +AC_LIBTOOL_CONFIG($1)
5637 +AC_LANG_POP
5638 +CC="$lt_save_CC"
5639 +])# AC_LIBTOOL_LANG_F77_CONFIG
5642 +# AC_LIBTOOL_LANG_GCJ_CONFIG
5643 +# --------------------------
5644 +# Ensure that the configuration vars for the C compiler are
5645 +# suitably defined. Those variables are subsequently used by
5646 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5647 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5648 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5649 +[AC_LANG_SAVE
5651 +# Source file extension for Java test sources.
5652 +ac_ext=java
5654 +# Object file extension for compiled Java test sources.
5655 +objext=o
5656 +_LT_AC_TAGVAR(objext, $1)=$objext
5658 +# Code to be used in simple compile tests
5659 +lt_simple_compile_test_code="class foo {}\n"
5661 +# Code to be used in simple link tests
5662 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
5664 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5665 +_LT_AC_SYS_COMPILER
5667 +# Allow CC to be a program name with arguments.
5668 +lt_save_CC="$CC"
5669 +CC=${GCJ-"gcj"}
5670 +compiler=$CC
5671 +_LT_AC_TAGVAR(compiler, $1)=$CC
5673 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
5674 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5676 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5677 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5678 +AC_LIBTOOL_PROG_CC_C_O($1)
5679 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5680 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5681 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5682 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5683 +AC_LIBTOOL_SYS_LIB_STRIP
5684 +AC_LIBTOOL_DLOPEN_SELF($1)
5686 +AC_LIBTOOL_CONFIG($1)
5688 +AC_LANG_RESTORE
5689 +CC="$lt_save_CC"
5690 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
5693 +# AC_LIBTOOL_LANG_RC_CONFIG
5694 +# --------------------------
5695 +# Ensure that the configuration vars for the Windows resource compiler are
5696 +# suitably defined. Those variables are subsequently used by
5697 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5698 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5699 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5700 +[AC_LANG_SAVE
5702 +# Source file extension for RC test sources.
5703 +ac_ext=rc
5705 +# Object file extension for compiled RC test sources.
5706 +objext=o
5707 +_LT_AC_TAGVAR(objext, $1)=$objext
5709 +# Code to be used in simple compile tests
5710 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5712 +# Code to be used in simple link tests
5713 +lt_simple_link_test_code="$lt_simple_compile_test_code"
5715 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5716 +_LT_AC_SYS_COMPILER
5718 +# Allow CC to be a program name with arguments.
5719 +lt_save_CC="$CC"
5720 +CC=${RC-"windres"}
5721 +compiler=$CC
5722 +_LT_AC_TAGVAR(compiler, $1)=$CC
5723 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5725 +AC_LIBTOOL_CONFIG($1)
5727 +AC_LANG_RESTORE
5728 +CC="$lt_save_CC"
5729 +])# AC_LIBTOOL_LANG_RC_CONFIG
5732 +# AC_LIBTOOL_CONFIG([TAGNAME])
5733 +# ----------------------------
5734 +# If TAGNAME is not passed, then create an initial libtool script
5735 +# with a default configuration from the untagged config vars. Otherwise
5736 +# add code to config.status for appending the configuration named by
5737 +# TAGNAME from the matching tagged config vars.
5738 +AC_DEFUN([AC_LIBTOOL_CONFIG],
5739 +[# The else clause should only fire when bootstrapping the
5740 +# libtool distribution, otherwise you forgot to ship ltmain.sh
5741 +# with your package, and you will get complaints that there are
5742 +# no rules to generate ltmain.sh.
5743 +if test -f "$ltmain"; then
5744 + # See if we are running on zsh, and set the options which allow our commands through
5745 + # without removal of \ escapes.
5746 + if test -n "${ZSH_VERSION+set}" ; then
5747 + setopt NO_GLOB_SUBST
5748 + fi
5749 + # Now quote all the things that may contain metacharacters while being
5750 + # careful not to overquote the AC_SUBSTed values. We take copies of the
5751 + # variables and quote the copies for generation of the libtool script.
5752 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
5753 + SED SHELL STRIP \
5754 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5755 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5756 + deplibs_check_method reload_flag reload_cmds need_locks \
5757 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5758 + lt_cv_sys_global_symbol_to_c_name_address \
5759 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5760 + old_postinstall_cmds old_postuninstall_cmds \
5761 + _LT_AC_TAGVAR(compiler, $1) \
5762 + _LT_AC_TAGVAR(CC, $1) \
5763 + _LT_AC_TAGVAR(LD, $1) \
5764 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5765 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5766 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5767 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5768 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5769 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5770 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5771 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5772 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
5773 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5774 + _LT_AC_TAGVAR(predep_objects, $1) \
5775 + _LT_AC_TAGVAR(postdep_objects, $1) \
5776 + _LT_AC_TAGVAR(predeps, $1) \
5777 + _LT_AC_TAGVAR(postdeps, $1) \
5778 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5779 + _LT_AC_TAGVAR(archive_cmds, $1) \
5780 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5781 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
5782 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5783 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5784 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5785 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
5786 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5787 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5788 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5789 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5790 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
5791 + _LT_AC_TAGVAR(module_cmds, $1) \
5792 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5793 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5794 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
5795 + _LT_AC_TAGVAR(include_expsyms, $1); do
5797 + case $var in
5798 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5799 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5800 + _LT_AC_TAGVAR(archive_cmds, $1) | \
5801 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5802 + _LT_AC_TAGVAR(module_cmds, $1) | \
5803 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5804 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5805 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5806 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
5807 + postinstall_cmds | postuninstall_cmds | \
5808 + old_postinstall_cmds | old_postuninstall_cmds | \
5809 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5810 + # Double-quote double-evaled strings.
5811 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5812 + ;;
5813 + *)
5814 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5815 + ;;
5816 + esac
5817 + done
5819 + case $lt_echo in
5820 + *'\[$]0 --fallback-echo"')
5821 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5822 + ;;
5823 + esac
5825 +ifelse([$1], [],
5826 + [cfgfile="${ofile}T"
5827 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5828 + $rm -f "$cfgfile"
5829 + AC_MSG_NOTICE([creating $ofile])],
5830 + [cfgfile="$ofile"])
5832 + cat <<__EOF__ >> "$cfgfile"
5833 +ifelse([$1], [],
5834 +[#! $SHELL
5836 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5837 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5838 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5839 +#
5840 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5841 +# Free Software Foundation, Inc.
5842 +#
5843 +# This file is part of GNU Libtool:
5844 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5845 +#
5846 +# This program is free software; you can redistribute it and/or modify
5847 +# it under the terms of the GNU General Public License as published by
5848 +# the Free Software Foundation; either version 2 of the License, or
5849 +# (at your option) any later version.
5850 +#
5851 +# This program is distributed in the hope that it will be useful, but
5852 +# WITHOUT ANY WARRANTY; without even the implied warranty of
5853 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5854 +# General Public License for more details.
5855 +#
5856 +# You should have received a copy of the GNU General Public License
5857 +# along with this program; if not, write to the Free Software
5858 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5859 +#
5860 +# As a special exception to the GNU General Public License, if you
5861 +# distribute this file as part of a program that contains a
5862 +# configuration script generated by Autoconf, you may include it under
5863 +# the same distribution terms that you use for the rest of that program.
5865 +# A sed program that does not truncate output.
5866 +SED=$lt_SED
5868 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5869 +Xsed="$SED -e s/^X//"
5871 +# The HP-UX ksh and POSIX shell print the target directory to stdout
5872 +# if CDPATH is set.
5873 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5875 +# The names of the tagged configurations supported by this script.
5876 +available_tags=
5878 +# ### BEGIN LIBTOOL CONFIG],
5879 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5881 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5883 +# Shell to use when invoking shell scripts.
5884 +SHELL=$lt_SHELL
5886 +# Whether or not to build shared libraries.
5887 +build_libtool_libs=$enable_shared
5889 +# Whether or not to build static libraries.
5890 +build_old_libs=$enable_static
5892 +# Whether or not to add -lc for building shared libraries.
5893 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5895 +# Whether or not to disallow shared libs when runtime libs are static
5896 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5898 +# Whether or not to optimize for fast installation.
5899 +fast_install=$enable_fast_install
5901 +# The host system.
5902 +host_alias=$host_alias
5903 +host=$host
5905 +# An echo program that does not interpret backslashes.
5906 +echo=$lt_echo
5908 +# The archiver.
5909 +AR=$lt_AR
5910 +AR_FLAGS=$lt_AR_FLAGS
5912 +# A C compiler.
5913 +LTCC=$lt_LTCC
5915 +# A language-specific compiler.
5916 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5918 +# Is the compiler the GNU C compiler?
5919 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5921 +# An ERE matcher.
5922 +EGREP=$lt_EGREP
5924 +# The linker used to build libraries.
5925 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5927 +# Whether we need hard or soft links.
5928 +LN_S=$lt_LN_S
5930 +# A BSD-compatible nm program.
5931 +NM=$lt_NM
5933 +# A symbol stripping program
5934 +STRIP=$lt_STRIP
5936 +# Used to examine libraries when file_magic_cmd begins "file"
5937 +MAGIC_CMD=$MAGIC_CMD
5939 +# Used on cygwin: DLL creation program.
5940 +DLLTOOL="$DLLTOOL"
5942 +# Used on cygwin: object dumper.
5943 +OBJDUMP="$OBJDUMP"
5945 +# Used on cygwin: assembler.
5946 +AS="$AS"
5948 +# The name of the directory that contains temporary libtool files.
5949 +objdir=$objdir
5951 +# How to create reloadable object files.
5952 +reload_flag=$lt_reload_flag
5953 +reload_cmds=$lt_reload_cmds
5955 +# How to pass a linker flag through the compiler.
5956 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5958 +# Object file suffix (normally "o").
5959 +objext="$ac_objext"
5961 +# Old archive suffix (normally "a").
5962 +libext="$libext"
5964 +# Shared library suffix (normally ".so").
5965 +shrext='$shrext'
5967 +# Executable file suffix (normally "").
5968 +exeext="$exeext"
5970 +# Additional compiler flags for building library objects.
5971 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5972 +pic_mode=$pic_mode
5974 +# What is the maximum length of a command?
5975 +max_cmd_len=$lt_cv_sys_max_cmd_len
5977 +# Does compiler simultaneously support -c and -o options?
5978 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5980 +# Must we lock files when doing compilation ?
5981 +need_locks=$lt_need_locks
5983 +# Do we need the lib prefix for modules?
5984 +need_lib_prefix=$need_lib_prefix
5986 +# Do we need a version for libraries?
5987 +need_version=$need_version
5989 +# Whether dlopen is supported.
5990 +dlopen_support=$enable_dlopen
5992 +# Whether dlopen of programs is supported.
5993 +dlopen_self=$enable_dlopen_self
5995 +# Whether dlopen of statically linked programs is supported.
5996 +dlopen_self_static=$enable_dlopen_self_static
5998 +# Compiler flag to prevent dynamic linking.
5999 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
6001 +# Compiler flag to turn off builtin functions.
6002 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
6004 +# Compiler flag to allow reflexive dlopens.
6005 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
6007 +# Compiler flag to generate shared objects directly from archives.
6008 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
6010 +# Compiler flag to generate thread-safe objects.
6011 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
6013 +# Library versioning type.
6014 +version_type=$version_type
6016 +# Format of library name prefix.
6017 +libname_spec=$lt_libname_spec
6019 +# List of archive names. First name is the real one, the rest are links.
6020 +# The last name is the one that the linker finds with -lNAME.
6021 +library_names_spec=$lt_library_names_spec
6023 +# The coded name of the library, if different from the real name.
6024 +soname_spec=$lt_soname_spec
6026 +# Commands used to build and install an old-style archive.
6027 +RANLIB=$lt_RANLIB
6028 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
6029 +old_postinstall_cmds=$lt_old_postinstall_cmds
6030 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
6032 +# Create an old-style archive from a shared archive.
6033 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
6035 +# Create a temporary old-style archive to link instead of a shared archive.
6036 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
6038 +# Commands used to build and install a shared archive.
6039 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
6040 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
6041 +postinstall_cmds=$lt_postinstall_cmds
6042 +postuninstall_cmds=$lt_postuninstall_cmds
6044 +# Commands used to build a loadable module (assumed same as above if empty)
6045 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
6046 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
6048 +# Commands to strip libraries.
6049 +old_striplib=$lt_old_striplib
6050 +striplib=$lt_striplib
6052 +# Dependencies to place before the objects being linked to create a
6053 +# shared library.
6054 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
6056 +# Dependencies to place after the objects being linked to create a
6057 +# shared library.
6058 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
6060 +# Dependencies to place before the objects being linked to create a
6061 +# shared library.
6062 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
6064 +# Dependencies to place after the objects being linked to create a
6065 +# shared library.
6066 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
6068 +# The library search path used internally by the compiler when linking
6069 +# a shared library.
6070 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
6072 +# Method to check whether dependent libraries are shared objects.
6073 +deplibs_check_method=$lt_deplibs_check_method
6075 +# Command to use when deplibs_check_method == file_magic.
6076 +file_magic_cmd=$lt_file_magic_cmd
6078 +# Flag that allows shared libraries with undefined symbols to be built.
6079 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
6081 +# Flag that forces no undefined symbols.
6082 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
6084 +# Commands used to finish a libtool library installation in a directory.
6085 +finish_cmds=$lt_finish_cmds
6087 +# Same as above, but a single script fragment to be evaled but not shown.
6088 +finish_eval=$lt_finish_eval
6090 +# Take the output of nm and produce a listing of raw symbols and C names.
6091 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6093 +# Transform the output of nm in a proper C declaration
6094 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6096 +# Transform the output of nm in a C name address pair
6097 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6099 +# This is the shared library runtime path variable.
6100 +runpath_var=$runpath_var
6102 +# This is the shared library path variable.
6103 +shlibpath_var=$shlibpath_var
6105 +# Is shlibpath searched before the hard-coded library search path?
6106 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6108 +# How to hardcode a shared library path into an executable.
6109 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
6111 +# Whether we should hardcode library paths into libraries.
6112 +hardcode_into_libs=$hardcode_into_libs
6114 +# Flag to hardcode \$libdir into a binary during linking.
6115 +# This must work even if \$libdir does not exist.
6116 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
6118 +# If ld is used when linking, flag to hardcode \$libdir into
6119 +# a binary during linking. This must work even if \$libdir does
6120 +# not exist.
6121 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
6123 +# Whether we need a single -rpath flag with a separated argument.
6124 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
6126 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6127 +# resulting binary.
6128 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
6130 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6131 +# resulting binary.
6132 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
6134 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6135 +# the resulting binary.
6136 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
6138 +# Set to yes if building a shared library automatically hardcodes DIR into the library
6139 +# and all subsequent libraries and executables linked against it.
6140 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
6142 +# Variables whose values should be saved in libtool wrapper scripts and
6143 +# restored at relink time.
6144 +variables_saved_for_relink="$variables_saved_for_relink"
6146 +# Whether libtool must link a program against all its dependency libraries.
6147 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
6149 +# Compile-time system search path for libraries
6150 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6152 +# Run-time system search path for libraries
6153 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6155 +# Fix the shell variable \$srcfile for the compiler.
6156 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
6158 +# Set to yes if exported symbols are required.
6159 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
6161 +# The commands to list exported symbols.
6162 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
6164 +# The commands to extract the exported symbol list from a shared archive.
6165 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
6167 +# Symbols that should not be listed in the preloaded symbols.
6168 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
6170 +# Symbols that must always be exported.
6171 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
6173 +ifelse([$1],[],
6174 +[# ### END LIBTOOL CONFIG],
6175 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6177 +__EOF__
6179 +ifelse([$1],[], [
6180 + case $host_os in
6181 + aix3*)
6182 + cat <<\EOF >> "$cfgfile"
6184 +# AIX sometimes has problems with the GCC collect2 program. For some
6185 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6186 +# vanish in a puff of smoke.
6187 +if test "X${COLLECT_NAMES+set}" != Xset; then
6188 + COLLECT_NAMES=
6189 + export COLLECT_NAMES
6190 +fi
6191 +EOF
6192 + ;;
6193 + esac
6195 + # We use sed instead of cat because bash on DJGPP gets confused if
6196 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6197 + # text mode, it properly converts lines to CR/LF. This bash problem
6198 + # is reportedly fixed, but why not run on old versions too?
6199 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6201 + mv -f "$cfgfile" "$ofile" || \
6202 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6203 + chmod +x "$ofile"
6204 +])
6205 +else
6206 + # If there is no Makefile yet, we rely on a make rule to execute
6207 + # `config.status --recheck' to rerun these tests and create the
6208 + # libtool script then.
6209 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6210 + if test -f "$ltmain_in"; then
6211 + test -f Makefile && make "$ltmain"
6212 + fi
6213 +fi
6214 +])# AC_LIBTOOL_CONFIG
6217 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6218 +# -------------------------------------------
6219 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6220 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6222 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6224 +if test "$GCC" = yes; then
6225 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6227 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6228 + lt_cv_prog_compiler_rtti_exceptions,
6229 + [-fno-rtti -fno-exceptions], [],
6230 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6231 +fi
6232 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6235 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6236 +# ---------------------------------
6237 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6238 +[AC_REQUIRE([AC_CANONICAL_HOST])
6239 +AC_REQUIRE([AC_PROG_NM])
6240 +AC_REQUIRE([AC_OBJEXT])
6241 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6242 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6243 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6244 +[
6245 +# These are sane defaults that work on at least a few old systems.
6246 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6248 +# Character class describing NM global symbol codes.
6249 +symcode='[[BCDEGRST]]'
6251 +# Regexp to match symbols that can be accessed directly from C.
6252 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6254 +# Transform the above into a raw symbol and a C symbol.
6255 +symxfrm='\1 \2\3 \3'
6257 +# Transform an extracted symbol line into a proper C declaration
6258 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6260 +# Transform an extracted symbol line into symbol name and symbol address
6261 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6263 +# Define system-specific variables.
6264 +case $host_os in
6265 +aix*)
6266 + symcode='[[BCDT]]'
6267 + ;;
6268 +cygwin* | mingw* | pw32*)
6269 + symcode='[[ABCDGISTW]]'
6270 + ;;
6271 +hpux*) # Its linker distinguishes data from code symbols
6272 + if test "$host_cpu" = ia64; then
6273 + symcode='[[ABCDEGRST]]'
6274 + fi
6275 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6276 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6277 + ;;
6278 +irix* | nonstopux*)
6279 + symcode='[[BCDEGRST]]'
6280 + ;;
6281 +osf*)
6282 + symcode='[[BCDEGQRST]]'
6283 + ;;
6284 +solaris* | sysv5*)
6285 + symcode='[[BDRT]]'
6286 + ;;
6287 +sysv4)
6288 + symcode='[[DFNSTU]]'
6289 + ;;
6290 +esac
6292 +# Handle CRLF in mingw tool chain
6293 +opt_cr=
6294 +case $build_os in
6295 +mingw*)
6296 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6297 + ;;
6298 +esac
6300 +# If we're using GNU nm, then use its standard symbol codes.
6301 +case `$NM -V 2>&1` in
6302 +*GNU* | *'with BFD'*)
6303 + symcode='[[ABCDGIRSTW]]' ;;
6304 +esac
6306 +# Try without a prefix undercore, then with it.
6307 +for ac_symprfx in "" "_"; do
6309 + # Write the raw and C identifiers.
6310 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
6312 + # Check to see that the pipe works correctly.
6313 + pipe_works=no
6315 + rm -f conftest*
6316 + cat > conftest.$ac_ext <<EOF
6317 +#ifdef __cplusplus
6318 +extern "C" {
6319 +#endif
6320 +char nm_test_var;
6321 +void nm_test_func(){}
6322 +#ifdef __cplusplus
6323 +}
6324 +#endif
6325 +int main(){nm_test_var='a';nm_test_func();return(0);}
6326 +EOF
6328 + if AC_TRY_EVAL(ac_compile); then
6329 + # Now try to grab the symbols.
6330 + nlist=conftest.nm
6331 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6332 + # Try sorting and uniquifying the output.
6333 + if sort "$nlist" | uniq > "$nlist"T; then
6334 + mv -f "$nlist"T "$nlist"
6335 + else
6336 + rm -f "$nlist"T
6337 + fi
6339 + # Make sure that we snagged all the symbols we need.
6340 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6341 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6342 + cat <<EOF > conftest.$ac_ext
6343 +#ifdef __cplusplus
6344 +extern "C" {
6345 +#endif
6347 +EOF
6348 + # Now generate the symbol file.
6349 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6351 + cat <<EOF >> conftest.$ac_ext
6352 +#if defined (__STDC__) && __STDC__
6353 +# define lt_ptr_t void *
6354 +#else
6355 +# define lt_ptr_t char *
6356 +# define const
6357 +#endif
6359 +/* The mapping between symbol names and symbols. */
6360 +const struct {
6361 + const char *name;
6362 + lt_ptr_t address;
6363 +}
6364 +lt_preloaded_symbols[[]] =
6365 +{
6366 +EOF
6367 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6368 + cat <<\EOF >> conftest.$ac_ext
6369 + {0, (lt_ptr_t) 0}
6370 +};
6372 +#ifdef __cplusplus
6373 +}
6374 +#endif
6375 +EOF
6376 + # Now try linking the two files.
6377 + mv conftest.$ac_objext conftstm.$ac_objext
6378 + lt_save_LIBS="$LIBS"
6379 + lt_save_CFLAGS="$CFLAGS"
6380 + LIBS="conftstm.$ac_objext"
6381 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6382 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6383 + pipe_works=yes
6384 + fi
6385 + LIBS="$lt_save_LIBS"
6386 + CFLAGS="$lt_save_CFLAGS"
6387 + else
6388 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6389 + fi
6390 + else
6391 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6392 + fi
6393 + else
6394 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6395 + fi
6396 + else
6397 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6398 + cat conftest.$ac_ext >&5
6399 + fi
6400 + rm -f conftest* conftst*
6402 + # Do not use the global_symbol_pipe unless it works.
6403 + if test "$pipe_works" = yes; then
6404 + break
6405 + else
6406 + lt_cv_sys_global_symbol_pipe=
6407 + fi
6408 +done
6409 +])
6410 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6411 + lt_cv_sys_global_symbol_to_cdecl=
6412 +fi
6413 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6414 + AC_MSG_RESULT(failed)
6415 +else
6416 + AC_MSG_RESULT(ok)
6417 +fi
6418 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6421 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6422 +# ---------------------------------------
6423 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6424 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6425 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6426 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6428 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6429 + ifelse([$1],[CXX],[
6430 + # C++ specific cases for pic, static, wl, etc.
6431 + if test "$GXX" = yes; then
6432 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6433 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6435 + case $host_os in
6436 + aix*)
6437 + # All AIX code is PIC.
6438 + if test "$host_cpu" = ia64; then
6439 + # AIX 5 now supports IA64 processor
6440 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6441 + fi
6442 + ;;
6443 + amigaos*)
6444 + # FIXME: we need at least 68020 code to build shared libraries, but
6445 + # adding the `-m68020' flag to GCC prevents building anything better,
6446 + # like `-m68040'.
6447 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6448 + ;;
6449 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6450 + # PIC is the default for these OSes.
6451 + ;;
6452 + mingw* | os2* | pw32*)
6453 + # This hack is so that the source file can tell whether it is being
6454 + # built for inclusion in a dll (and should export symbols for example).
6455 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6456 + ;;
6457 + darwin* | rhapsody*)
6458 + # PIC is the default on this platform
6459 + # Common symbols not allowed in MH_DYLIB files
6460 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6461 + ;;
6462 + *djgpp*)
6463 + # DJGPP does not support shared libraries at all
6464 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6465 + ;;
6466 + sysv4*MP*)
6467 + if test -d /usr/nec; then
6468 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6469 + fi
6470 + ;;
6471 + hpux*)
6472 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6473 + # not for PA HP-UX.
6474 + case "$host_cpu" in
6475 + hppa*64*|ia64*)
6476 + ;;
6477 + *)
6478 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6479 + ;;
6480 + esac
6481 + ;;
6482 + *)
6483 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6484 + ;;
6485 + esac
6486 + else
6487 + case $host_os in
6488 + aix4* | aix5*)
6489 + # All AIX code is PIC.
6490 + if test "$host_cpu" = ia64; then
6491 + # AIX 5 now supports IA64 processor
6492 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6493 + else
6494 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6495 + fi
6496 + ;;
6497 + chorus*)
6498 + case $cc_basename in
6499 + cxch68)
6500 + # Green Hills C++ Compiler
6501 + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
6502 + ;;
6503 + esac
6504 + ;;
6505 + dgux*)
6506 + case $cc_basename in
6507 + ec++)
6508 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6509 + ;;
6510 + ghcx)
6511 + # Green Hills C++ Compiler
6512 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6513 + ;;
6514 + *)
6515 + ;;
6516 + esac
6517 + ;;
6518 + freebsd* | kfreebsd*-gnu)
6519 + # FreeBSD uses GNU C++
6520 + ;;
6521 + hpux9* | hpux10* | hpux11*)
6522 + case $cc_basename in
6523 + CC)
6524 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6525 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6526 + if test "$host_cpu" != ia64; then
6527 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6528 + fi
6529 + ;;
6530 + aCC)
6531 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6532 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
6533 + case "$host_cpu" in
6534 + hppa*64*|ia64*)
6535 + # +Z the default
6536 + ;;
6537 + *)
6538 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6539 + ;;
6540 + esac
6541 + ;;
6542 + *)
6543 + ;;
6544 + esac
6545 + ;;
6546 + irix5* | irix6* | nonstopux*)
6547 + case $cc_basename in
6548 + CC)
6549 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6550 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6551 + # CC pic flag -KPIC is the default.
6552 + ;;
6553 + *)
6554 + ;;
6555 + esac
6556 + ;;
6557 + linux*)
6558 + case $cc_basename in
6559 + KCC)
6560 + # KAI C++ Compiler
6561 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6562 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6563 + ;;
6564 + icpc)
6565 + # Intel C++
6566 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6567 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6568 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6569 + ;;
6570 + cxx)
6571 + # Compaq C++
6572 + # Make sure the PIC flag is empty. It appears that all Alpha
6573 + # Linux and Compaq Tru64 Unix objects are PIC.
6574 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6575 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6576 + ;;
6577 + *)
6578 + ;;
6579 + esac
6580 + ;;
6581 + lynxos*)
6582 + ;;
6583 + m88k*)
6584 + ;;
6585 + mvs*)
6586 + case $cc_basename in
6587 + cxx)
6588 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6589 + ;;
6590 + *)
6591 + ;;
6592 + esac
6593 + ;;
6594 + netbsd*)
6595 + ;;
6596 + osf3* | osf4* | osf5*)
6597 + case $cc_basename in
6598 + KCC)
6599 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6600 + ;;
6601 + RCC)
6602 + # Rational C++ 2.4.1
6603 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6604 + ;;
6605 + cxx)
6606 + # Digital/Compaq C++
6607 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6608 + # Make sure the PIC flag is empty. It appears that all Alpha
6609 + # Linux and Compaq Tru64 Unix objects are PIC.
6610 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6611 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6612 + ;;
6613 + *)
6614 + ;;
6615 + esac
6616 + ;;
6617 + psos*)
6618 + ;;
6619 + sco*)
6620 + case $cc_basename in
6621 + CC)
6622 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6623 + ;;
6624 + *)
6625 + ;;
6626 + esac
6627 + ;;
6628 + solaris*)
6629 + case $cc_basename in
6630 + CC)
6631 + # Sun C++ 4.2, 5.x and Centerline C++
6632 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6633 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6634 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6635 + ;;
6636 + gcx)
6637 + # Green Hills C++ Compiler
6638 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6639 + ;;
6640 + *)
6641 + ;;
6642 + esac
6643 + ;;
6644 + sunos4*)
6645 + case $cc_basename in
6646 + CC)
6647 + # Sun C++ 4.x
6648 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6649 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6650 + ;;
6651 + lcc)
6652 + # Lucid
6653 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6654 + ;;
6655 + *)
6656 + ;;
6657 + esac
6658 + ;;
6659 + tandem*)
6660 + case $cc_basename in
6661 + NCC)
6662 + # NonStop-UX NCC 3.20
6663 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6664 + ;;
6665 + *)
6666 + ;;
6667 + esac
6668 + ;;
6669 + unixware*)
6670 + ;;
6671 + vxworks*)
6672 + ;;
6673 + *)
6674 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6675 + ;;
6676 + esac
6677 + fi
6678 +],
6679 +[
6680 + if test "$GCC" = yes; then
6681 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6682 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6684 + case $host_os in
6685 + aix*)
6686 + # All AIX code is PIC.
6687 + if test "$host_cpu" = ia64; then
6688 + # AIX 5 now supports IA64 processor
6689 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6690 + fi
6691 + ;;
6693 + amigaos*)
6694 + # FIXME: we need at least 68020 code to build shared libraries, but
6695 + # adding the `-m68020' flag to GCC prevents building anything better,
6696 + # like `-m68040'.
6697 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6698 + ;;
6700 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6701 + # PIC is the default for these OSes.
6702 + ;;
6704 + mingw* | pw32* | os2*)
6705 + # This hack is so that the source file can tell whether it is being
6706 + # built for inclusion in a dll (and should export symbols for example).
6707 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6708 + ;;
6710 + darwin* | rhapsody*)
6711 + # PIC is the default on this platform
6712 + # Common symbols not allowed in MH_DYLIB files
6713 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6714 + ;;
6716 + msdosdjgpp*)
6717 + # Just because we use GCC doesn't mean we suddenly get shared libraries
6718 + # on systems that don't support them.
6719 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6720 + enable_shared=no
6721 + ;;
6723 + sysv4*MP*)
6724 + if test -d /usr/nec; then
6725 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6726 + fi
6727 + ;;
6729 + hpux*)
6730 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6731 + # not for PA HP-UX.
6732 + case "$host_cpu" in
6733 + hppa*64*|ia64*)
6734 + # +Z the default
6735 + ;;
6736 + *)
6737 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6738 + ;;
6739 + esac
6740 + ;;
6742 + *)
6743 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6744 + ;;
6745 + esac
6746 + else
6747 + # PORTME Check for flag to pass linker flags through the system compiler.
6748 + case $host_os in
6749 + aix*)
6750 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6751 + if test "$host_cpu" = ia64; then
6752 + # AIX 5 now supports IA64 processor
6753 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6754 + else
6755 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6756 + fi
6757 + ;;
6759 + mingw* | pw32* | os2*)
6760 + # This hack is so that the source file can tell whether it is being
6761 + # built for inclusion in a dll (and should export symbols for example).
6762 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6763 + ;;
6765 + hpux9* | hpux10* | hpux11*)
6766 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6767 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6768 + # not for PA HP-UX.
6769 + case "$host_cpu" in
6770 + hppa*64*|ia64*)
6771 + # +Z the default
6772 + ;;
6773 + *)
6774 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6775 + ;;
6776 + esac
6777 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
6778 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6779 + ;;
6781 + irix5* | irix6* | nonstopux*)
6782 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6783 + # PIC (with -KPIC) is the default.
6784 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6785 + ;;
6787 + newsos6)
6788 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6789 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6790 + ;;
6792 + linux*)
6793 + case $CC in
6794 + icc* | ecc*)
6795 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6796 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6797 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6798 + ;;
6799 + ccc*)
6800 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6801 + # All Alpha code is PIC.
6802 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6803 + ;;
6804 + esac
6805 + ;;
6807 + osf3* | osf4* | osf5*)
6808 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6809 + # All OSF/1 code is PIC.
6810 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6811 + ;;
6813 + sco3.2v5*)
6814 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
6815 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
6816 + ;;
6818 + solaris*)
6819 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6820 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6821 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6822 + ;;
6824 + sunos4*)
6825 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6826 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6827 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6828 + ;;
6830 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6831 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6832 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6833 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6834 + ;;
6836 + sysv4*MP*)
6837 + if test -d /usr/nec ;then
6838 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6839 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6840 + fi
6841 + ;;
6843 + uts4*)
6844 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6845 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6846 + ;;
6848 + *)
6849 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6850 + ;;
6851 + esac
6852 + fi
6853 +])
6854 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6856 +#
6857 +# Check to make sure the PIC flag actually works.
6858 +#
6859 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6860 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6861 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6862 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6863 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6864 + "" | " "*) ;;
6865 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6866 + esac],
6867 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6868 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6869 +fi
6870 +case "$host_os" in
6871 + # For platforms which do not support PIC, -DPIC is meaningless:
6872 + *djgpp*)
6873 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6874 + ;;
6875 + *)
6876 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6877 + ;;
6878 +esac
6879 +])
6882 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6883 +# ------------------------------------
6884 +# See if the linker supports building shared libraries.
6885 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6886 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6887 +ifelse([$1],[CXX],[
6888 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6889 + case $host_os in
6890 + aix4* | aix5*)
6891 + # If we're using GNU nm, then we don't want the "-C" option.
6892 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
6893 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6894 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6895 + else
6896 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
6897 + fi
6898 + ;;
6899 + pw32*)
6900 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6901 + ;;
6902 + cygwin* | mingw*)
6903 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6904 + ;;
6905 + *)
6906 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6907 + ;;
6908 + esac
6909 +],[
6910 + runpath_var=
6911 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6912 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6913 + _LT_AC_TAGVAR(archive_cmds, $1)=
6914 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6915 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6916 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6917 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6918 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6919 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6920 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6921 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6922 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6923 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6924 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6925 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6926 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6927 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6928 + _LT_AC_TAGVAR(module_cmds, $1)=
6929 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6930 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
6931 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6932 + # include_expsyms should be a list of space-separated symbols to be *always*
6933 + # included in the symbol list
6934 + _LT_AC_TAGVAR(include_expsyms, $1)=
6935 + # exclude_expsyms can be an extended regexp of symbols to exclude
6936 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
6937 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6938 + # as well as any symbol that contains `d'.
6939 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6940 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6941 + # platforms (ab)use it in PIC code, but their linkers get confused if
6942 + # the symbol is explicitly referenced. Since portable code cannot
6943 + # rely on this symbol name, it's probably fine to never include it in
6944 + # preloaded symbol tables.
6945 + extract_expsyms_cmds=
6947 + case $host_os in
6948 + cygwin* | mingw* | pw32*)
6949 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
6950 + # When not using gcc, we currently assume that we are using
6951 + # Microsoft Visual C++.
6952 + if test "$GCC" != yes; then
6953 + with_gnu_ld=no
6954 + fi
6955 + ;;
6956 + openbsd*)
6957 + with_gnu_ld=no
6958 + ;;
6959 + esac
6961 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6962 + if test "$with_gnu_ld" = yes; then
6963 + # If archive_cmds runs LD, not CC, wlarc should be empty
6964 + wlarc='${wl}'
6966 + # See if GNU ld supports shared libraries.
6967 + case $host_os in
6968 + aix3* | aix4* | aix5*)
6969 + # On AIX/PPC, the GNU linker is very broken
6970 + if test "$host_cpu" != ia64; then
6971 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6972 + cat <<EOF 1>&2
6974 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6975 +*** to be unable to reliably create shared libraries on AIX.
6976 +*** Therefore, libtool is disabling shared libraries support. If you
6977 +*** really care for shared libraries, you may want to modify your PATH
6978 +*** so that a non-GNU linker is found, and then restart.
6980 +EOF
6981 + fi
6982 + ;;
6984 + amigaos*)
6985 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6986 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6987 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6989 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6990 + # that the semantics of dynamic libraries on AmigaOS, at least up
6991 + # to version 4, is to share data among multiple programs linked
6992 + # with the same dynamic library. Since this doesn't match the
6993 + # behavior of shared libraries on other platforms, we can't use
6994 + # them.
6995 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6996 + ;;
6998 + beos*)
6999 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7000 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7001 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7002 + # support --undefined. This deserves some investigation. FIXME
7003 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7004 + else
7005 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7006 + fi
7007 + ;;
7009 + cygwin* | mingw* | pw32*)
7010 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
7011 + # as there is no search path for DLLs.
7012 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7013 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7014 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
7015 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7016 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
7018 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7019 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7020 + # If the export-symbols file already is a .def file (1st line
7021 + # is EXPORTS), use it as is; otherwise, prepend...
7022 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7023 + cp $export_symbols $output_objdir/$soname.def;
7024 + else
7025 + echo EXPORTS > $output_objdir/$soname.def;
7026 + cat $export_symbols >> $output_objdir/$soname.def;
7027 + fi~
7028 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7029 + else
7030 + ld_shlibs=no
7031 + fi
7032 + ;;
7034 + netbsd*)
7035 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7036 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7037 + wlarc=
7038 + else
7039 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041 + fi
7042 + ;;
7044 + solaris* | sysv5*)
7045 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7046 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7047 + cat <<EOF 1>&2
7049 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7050 +*** create shared libraries on Solaris systems. Therefore, libtool
7051 +*** is disabling shared libraries support. We urge you to upgrade GNU
7052 +*** binutils to release 2.9.1 or newer. Another option is to modify
7053 +*** your PATH or compiler configuration so that the native linker is
7054 +*** used, and then restart.
7056 +EOF
7057 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060 + else
7061 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7062 + fi
7063 + ;;
7065 + sunos4*)
7066 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7067 + wlarc=
7068 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7069 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7070 + ;;
7072 + linux*)
7073 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
7074 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7075 + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
7076 + supports_anon_versioning=no
7077 + case `$LD -v 2>/dev/null` in
7078 + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
7079 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7080 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7081 + *\ 2.11.*) ;; # other 2.11 versions
7082 + *) supports_anon_versioning=yes ;;
7083 + esac
7084 + if test $supports_anon_versioning = yes; then
7085 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7086 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7087 +$echo "local: *; };" >> $output_objdir/$libname.ver~
7088 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7089 else
7090 - test "$with_gnu_ld" != yes && break
7091 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
7092 fi
7093 + else
7094 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7095 fi
7096 - done
7097 - IFS="$ac_save_ifs"
7098 -else
7099 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
7100 -fi])
7101 -LD="$ac_cv_path_LD"
7102 -if test -n "$LD"; then
7103 - AC_MSG_RESULT($LD)
7104 -else
7105 - AC_MSG_RESULT(no)
7106 -fi
7107 -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
7108 -AC_SUBST(LD)
7109 -AM_PROG_LD_GNU
7110 -])
7111 + ;;
7113 -AC_DEFUN(AM_PROG_LD_GNU,
7114 -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
7115 -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7116 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
7117 - ac_cv_prog_gnu_ld=yes
7118 -else
7119 - ac_cv_prog_gnu_ld=no
7120 -fi])
7121 -])
7122 + *)
7123 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7124 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7125 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7126 + else
7127 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7128 + fi
7129 + ;;
7130 + esac
7132 -# AM_PROG_NM - find the path to a BSD-compatible name lister
7133 -AC_DEFUN(AM_PROG_NM,
7134 -[AC_MSG_CHECKING([for BSD-compatible nm])
7135 -AC_CACHE_VAL(ac_cv_path_NM,
7136 -[if test -n "$NM"; then
7137 - # Let the user override the test.
7138 - ac_cv_path_NM="$NM"
7139 -else
7140 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7141 - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7142 - test -z "$ac_dir" && ac_dir=.
7143 - if test -f $ac_dir/nm; then
7144 - # Check to see if the nm accepts a BSD-compat flag.
7145 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7146 - # nm: unknown option "B" ignored
7147 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
7148 - ac_cv_path_NM="$ac_dir/nm -B"
7149 - break
7150 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
7151 - ac_cv_path_NM="$ac_dir/nm -p"
7152 - break
7153 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
7154 + runpath_var=LD_RUN_PATH
7155 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
7156 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
7157 + # ancient GNU ld didn't support --whole-archive et. al.
7158 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7159 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7160 else
7161 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
7162 - continue # so that we can try to find one that supports BSD flags
7163 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7164 fi
7165 fi
7166 - done
7167 - IFS="$ac_save_ifs"
7168 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
7169 -fi])
7170 -NM="$ac_cv_path_NM"
7171 -AC_MSG_RESULT([$NM])
7172 -AC_SUBST(NM)
7173 -])
7174 + else
7175 + # PORTME fill in a description of your system's linker (not GNU ld)
7176 + case $host_os in
7177 + aix3*)
7178 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7179 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7180 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7181 + # Note: this linker hardcodes the directories in LIBPATH if there
7182 + # are no directories specified by -L.
7183 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7184 + if test "$GCC" = yes && test -z "$link_static_flag"; then
7185 + # Neither direct hardcoding nor static linking is supported with a
7186 + # broken collect2.
7187 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7188 + fi
7189 + ;;
7191 -# AM_SYS_NM_PARSE - Check for command ro grab the raw symbol name followed
7192 -# by C symbol name from nm.
7193 -AC_DEFUN(AM_SYS_NM_PARSE,
7194 -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
7195 -AC_REQUIRE([AM_PROG_NM])dnl
7196 -# Check for command to grab the raw symbol name followed by C symbol from nm.
7197 -AC_MSG_CHECKING([command to parse $NM output])
7198 -AC_CACHE_VAL(ac_cv_sys_global_symbol_pipe,
7199 -[# These are sane defaults that work on at least a few old systems.
7200 -# {They come from Ultrix. What could be older than Ultrix?!! ;)}
7201 + aix4* | aix5*)
7202 + if test "$host_cpu" = ia64; then
7203 + # On IA64, the linker does run time linking by default, so we don't
7204 + # have to do anything special.
7205 + aix_use_runtimelinking=no
7206 + exp_sym_flag='-Bexport'
7207 + no_entry_flag=""
7208 + else
7209 + # If we're using GNU nm, then we don't want the "-C" option.
7210 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7211 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7212 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7213 + else
7214 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
7215 + fi
7216 + aix_use_runtimelinking=no
7218 + # Test if we are trying to use run time linking or normal
7219 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7220 + # need to do runtime linking.
7221 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7222 + for ld_flag in $LDFLAGS; do
7223 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7224 + aix_use_runtimelinking=yes
7225 + break
7226 + fi
7227 + done
7228 + esac
7230 -changequote(,)dnl
7231 -# Character class describing NM global symbol codes.
7232 -ac_symcode='[BCDEGRSTU]'
7233 + exp_sym_flag='-bexport'
7234 + no_entry_flag='-bnoentry'
7235 + fi
7237 -# Regexp to match symbols that can be accessed directly from C.
7238 -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7239 + # When large executables or shared objects are built, AIX ld can
7240 + # have problems creating the table of contents. If linking a library
7241 + # or program results in "error TOC overflow" add -mminimal-toc to
7242 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7243 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7245 + _LT_AC_TAGVAR(archive_cmds, $1)=''
7246 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7247 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7248 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7250 + if test "$GCC" = yes; then
7251 + case $host_os in aix4.[012]|aix4.[012].*)
7252 + # We only want to do this on AIX 4.2 and lower, the check
7253 + # below for broken collect2 doesn't work under 4.3+
7254 + collect2name=`${CC} -print-prog-name=collect2`
7255 + if test -f "$collect2name" && \
7256 + strings "$collect2name" | grep resolve_lib_name >/dev/null
7257 + then
7258 + # We have reworked collect2
7259 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7260 + else
7261 + # We have old collect2
7262 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7263 + # It fails to find uninstalled libraries when the uninstalled
7264 + # path is not listed in the libpath. Setting hardcode_minus_L
7265 + # to unsupported forces relinking
7266 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7267 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7268 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7269 + fi
7270 + esac
7271 + shared_flag='-shared'
7272 + else
7273 + # not using gcc
7274 + if test "$host_cpu" = ia64; then
7275 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7276 + # chokes on -Wl,-G. The following line is correct:
7277 + shared_flag='-G'
7278 + else
7279 + if test "$aix_use_runtimelinking" = yes; then
7280 + shared_flag='${wl}-G'
7281 + else
7282 + shared_flag='${wl}-bM:SRE'
7283 + fi
7284 + fi
7285 + fi
7287 -# Transform the above into a raw symbol and a C symbol.
7288 -ac_symxfrm='\1 \1'
7289 + # It seems that -bexpall does not export symbols beginning with
7290 + # underscore (_), so it is better to generate a list of symbols to export.
7291 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7292 + if test "$aix_use_runtimelinking" = yes; then
7293 + # Warning - without using the other runtime loading flags (-brtl),
7294 + # -berok will link without error, but may produce a broken library.
7295 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7296 + # Determine the default libpath from the value encoded in an empty executable.
7297 + _LT_AC_SYS_LIBPATH_AIX
7298 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7299 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7300 + else
7301 + if test "$host_cpu" = ia64; then
7302 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7303 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7304 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7305 + else
7306 + # Determine the default libpath from the value encoded in an empty executable.
7307 + _LT_AC_SYS_LIBPATH_AIX
7308 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7309 + # Warning - without using the other run time loading flags,
7310 + # -berok will link without error, but may produce a broken library.
7311 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7312 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7313 + # -bexpall does not export symbols beginning with underscore (_)
7314 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7315 + # Exported symbols can be pulled into shared objects from archives
7316 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
7317 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7318 + # This is similar to how AIX traditionally builds it's shared libraries.
7319 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7320 + fi
7321 + fi
7322 + ;;
7324 -# Define system-specific variables.
7325 -case "$host_os" in
7326 -aix*)
7327 - ac_symcode='[BCDTU]'
7328 - ;;
7329 -irix*)
7330 - # Cannot use undefined symbols on IRIX because inlined functions mess us up.
7331 - ac_symcode='[BCDEGRST]'
7332 - ;;
7333 -solaris*)
7334 - ac_symcode='[BDTU]'
7335 - ;;
7336 -esac
7337 + amigaos*)
7338 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7339 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7340 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7341 + # see comment about different semantics on the GNU ld section
7342 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7343 + ;;
7345 -# If we're using GNU nm, then use its standard symbol codes.
7346 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
7347 - ac_symcode='[ABCDGISTUW]'
7348 -fi
7349 + bsdi4*)
7350 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7351 + ;;
7353 -case "$host_os" in
7354 -cygwin32* | mingw32*)
7355 - # We do not want undefined symbols on cygwin32. The user must
7356 - # arrange to define them via -l arguments.
7357 - ac_symcode='[ABCDGISTW]'
7358 - ;;
7359 -esac
7360 -changequote([,])dnl
7361 + cygwin* | mingw* | pw32*)
7362 + # When not using gcc, we currently assume that we are using
7363 + # Microsoft Visual C++.
7364 + # hardcode_libdir_flag_spec is actually meaningless, as there is
7365 + # no search path for DLLs.
7366 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7367 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7368 + # Tell ltmain to make .lib files, not .a files.
7369 + libext=lib
7370 + # Tell ltmain to make .dll files, not .so files.
7371 + shrext=".dll"
7372 + # FIXME: Setting linknames here is a bad hack.
7373 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7374 + # The linker will automatically build a .lib file if we build a DLL.
7375 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7376 + # FIXME: Should let the user specify the lib program.
7377 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7378 + fix_srcfile_path='`cygpath -w "$srcfile"`'
7379 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7380 + ;;
7382 -# Try without a prefix undercore, then with it.
7383 -for ac_symprfx in "" "_"; do
7384 + darwin* | rhapsody*)
7385 + if test "$GXX" = yes ; then
7386 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7387 + case "$host_os" in
7388 + rhapsody* | darwin1.[[012]])
7389 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
7390 + ;;
7391 + *) # Darwin 1.3 on
7392 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7393 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7394 + else
7395 + case ${MACOSX_DEPLOYMENT_TARGET} in
7396 + 10.[[012]])
7397 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
7398 + ;;
7399 + 10.*)
7400 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
7401 + ;;
7402 + esac
7403 + fi
7404 + ;;
7405 + esac
7406 + lt_int_apple_cc_single_mod=no
7407 + output_verbose_link_cmd='echo'
7408 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7409 + lt_int_apple_cc_single_mod=yes
7410 + fi
7411 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7412 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7413 + else
7414 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -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'
7415 + fi
7416 + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7417 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7418 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7419 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7420 + else
7421 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7422 + fi
7423 + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7424 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7425 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7426 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7427 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
7428 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7429 + else
7430 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7431 + fi
7432 + ;;
7434 - # Write the raw and C identifiers.
7435 - # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here,
7436 - # otherwise AM_SYS_SYMBOL_UNDERSCORE will always be false
7437 - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'"
7438 + dgux*)
7439 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7441 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7442 + ;;
7444 - # Check to see that the pipe works correctly.
7445 - ac_pipe_works=no
7446 - cat > conftest.$ac_ext <<EOF
7447 -#ifdef __cplusplus
7448 -extern "C" {
7449 -#endif
7450 -char nm_test_var;
7451 -void nm_test_func(){}
7452 -#ifdef __cplusplus
7453 -}
7454 -#endif
7455 -int main(){nm_test_var='a';nm_test_func;return 0;}
7456 -EOF
7457 - if AC_TRY_EVAL(ac_compile); then
7458 - # Now try to grab the symbols.
7459 - ac_nlist=conftest.nm
7461 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
7462 + freebsd1*)
7463 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7464 + ;;
7466 - # Try sorting and uniquifying the output.
7467 - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
7468 - mv -f "$ac_nlist"T "$ac_nlist"
7469 - ac_wcout=`wc "$ac_nlist" 2>/dev/null`
7470 -changequote(,)dnl
7471 - ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
7472 -changequote([,])dnl
7473 - (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1
7474 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7475 + # support. Future versions do this automatically, but an explicit c++rt0.o
7476 + # does not break anything, and helps significantly (at the cost of a little
7477 + # extra space).
7478 + freebsd2.2*)
7479 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7480 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7481 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7482 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7483 + ;;
7485 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7486 + freebsd2*)
7487 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7488 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7489 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7490 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7491 + ;;
7493 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7494 + freebsd* | kfreebsd*-gnu)
7495 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7496 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7497 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7498 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7499 + ;;
7501 + hpux9*)
7502 + if test "$GCC" = yes; then
7503 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7504 else
7505 - rm -f "$ac_nlist"T
7506 - ac_count=-1
7507 + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7508 fi
7509 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7510 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7511 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7513 + # hardcode_minus_L: Not really in the search PATH,
7514 + # but as the default location of the library.
7515 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7516 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7517 + ;;
7519 - # Make sure that we snagged all the symbols we need.
7520 - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
7521 - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
7522 - cat <<EOF > conftest.c
7523 -#ifdef __cplusplus
7524 -extern "C" {
7525 -#endif
7526 + hpux10* | hpux11*)
7527 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7528 + case "$host_cpu" in
7529 + hppa*64*|ia64*)
7530 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7531 + ;;
7532 + *)
7533 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7534 + ;;
7535 + esac
7536 + else
7537 + case "$host_cpu" in
7538 + hppa*64*|ia64*)
7539 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7540 + ;;
7541 + *)
7542 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7543 + ;;
7544 + esac
7545 + fi
7546 + if test "$with_gnu_ld" = no; then
7547 + case "$host_cpu" in
7548 + hppa*64*)
7549 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7550 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7551 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7552 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7553 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7554 + ;;
7555 + ia64*)
7556 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7557 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7558 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7560 + # hardcode_minus_L: Not really in the search PATH,
7561 + # but as the default location of the library.
7562 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7563 + ;;
7564 + *)
7565 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7566 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7567 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7568 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7570 + # hardcode_minus_L: Not really in the search PATH,
7571 + # but as the default location of the library.
7572 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7573 + ;;
7574 + esac
7575 + fi
7576 + ;;
7578 -EOF
7579 - # Now generate the symbol file.
7580 - sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
7581 + irix5* | irix6* | nonstopux*)
7582 + if test "$GCC" = yes; then
7583 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7584 + else
7585 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7586 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7587 + fi
7588 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7589 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7590 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7591 + ;;
7593 - cat <<EOF >> conftest.c
7594 -#if defined (__STDC__) && __STDC__
7595 -# define lt_ptr_t void *
7596 -#else
7597 -# define lt_ptr_t char *
7598 -#endif
7599 + netbsd*)
7600 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7601 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7602 + else
7603 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7604 + fi
7605 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7606 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7607 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7608 + ;;
7610 -/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
7611 -int dld_preloaded_symbol_count = $ac_count;
7612 + newsos6)
7613 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7615 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7616 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7617 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7618 + ;;
7620 -/* The mapping between symbol names and symbols. */
7621 -struct {
7622 - char *name;
7623 - lt_ptr_t address;
7624 -}
7625 -changequote(,)dnl
7626 -dld_preloaded_symbols[] =
7627 -changequote([,])dnl
7628 -{
7629 -EOF
7630 - sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
7631 - cat <<\EOF >> conftest.c
7632 - {0, (lt_ptr_t) 0}
7633 -};
7634 + openbsd*)
7635 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7636 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7637 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7638 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7639 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7640 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7641 + else
7642 + case $host_os in
7643 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7644 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7645 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7646 + ;;
7647 + *)
7648 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7649 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7650 + ;;
7651 + esac
7652 + fi
7653 + ;;
7655 -#ifdef __cplusplus
7656 -}
7657 -#endif
7658 -EOF
7659 - # Now try linking the two files.
7660 - mv conftest.$ac_objext conftestm.$ac_objext
7661 - ac_save_LIBS="$LIBS"
7662 - ac_save_CFLAGS="$CFLAGS"
7663 - LIBS="conftestm.$ac_objext"
7664 - CFLAGS="$CFLAGS$no_builtin_flag"
7665 - if AC_TRY_EVAL(ac_link) && test -s conftest; then
7666 - ac_pipe_works=yes
7667 - else
7668 - echo "configure: failed program was:" >&AC_FD_CC
7669 - cat conftest.c >&AC_FD_CC
7670 - fi
7671 - LIBS="$ac_save_LIBS"
7672 - CFLAGS="$ac_save_CFLAGS"
7673 + os2*)
7674 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7675 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7676 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7677 + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7678 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7679 + ;;
7681 + osf3*)
7682 + if test "$GCC" = yes; then
7683 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7684 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7685 + else
7686 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7687 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7688 + fi
7689 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7690 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7691 + ;;
7693 + osf4* | osf5*) # as osf3* with the addition of -msym flag
7694 + if test "$GCC" = yes; then
7695 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7696 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7697 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7698 + else
7699 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7700 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
7701 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7702 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7704 + # Both c and cxx compiler support -rpath directly
7705 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7706 + fi
7707 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7708 + ;;
7710 + sco3.2v5*)
7711 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7713 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7714 + runpath_var=LD_RUN_PATH
7715 + hardcode_runpath_var=yes
7716 + ;;
7718 + solaris*)
7719 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7720 + if test "$GCC" = yes; then
7721 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7723 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7724 + else
7725 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7726 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7727 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7728 + fi
7729 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7730 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7731 + case $host_os in
7732 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7733 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7734 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7735 + esac
7736 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7737 + ;;
7739 + sunos4*)
7740 + if test "x$host_vendor" = xsequent; then
7741 + # Use $CC to link under sequent, because it throws in some extra .o
7742 + # files that make .init and .fini sections work.
7743 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7744 + else
7745 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7746 + fi
7747 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7748 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7749 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7750 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7751 + ;;
7753 + sysv4)
7754 + case $host_vendor in
7755 + sni)
7756 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7757 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7758 + ;;
7759 + siemens)
7760 + ## LD is ld it makes a PLAMLIB
7761 + ## CC just makes a GrossModule.
7762 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7763 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7764 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7765 + ;;
7766 + motorola)
7767 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7768 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7769 + ;;
7770 + esac
7771 + runpath_var='LD_RUN_PATH'
7772 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7773 + ;;
7775 + sysv4.3*)
7776 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7777 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7778 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7779 + ;;
7781 + sysv4*MP*)
7782 + if test -d /usr/nec; then
7783 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7784 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7785 + runpath_var=LD_RUN_PATH
7786 + hardcode_runpath_var=yes
7787 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7788 + fi
7789 + ;;
7791 + sysv4.2uw2*)
7792 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7793 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7794 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
7795 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7796 + hardcode_runpath_var=yes
7797 + runpath_var=LD_RUN_PATH
7798 + ;;
7800 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
7801 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
7802 + if test "$GCC" = yes; then
7803 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7804 + else
7805 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7806 + fi
7807 + runpath_var='LD_RUN_PATH'
7808 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7809 + ;;
7811 + sysv5*)
7812 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7813 + # $CC -shared without GNU ld will not create a library from C++
7814 + # object files and a static libstdc++, better avoid it by now
7815 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7816 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7817 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7818 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7819 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7820 + runpath_var='LD_RUN_PATH'
7821 + ;;
7823 + uts4*)
7824 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7826 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7827 + ;;
7829 + *)
7830 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7831 + ;;
7832 + esac
7833 + fi
7834 +])
7835 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7836 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7838 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7839 +if test "$GCC" = yes; then
7840 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7841 +fi
7843 +#
7844 +# Do we need to explicitly link libc?
7845 +#
7846 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7847 +x|xyes)
7848 + # Assume -lc should be added
7849 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7851 + if test "$enable_shared" = yes && test "$GCC" = yes; then
7852 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
7853 + *'~'*)
7854 + # FIXME: we may have to deal with multi-command sequences.
7855 + ;;
7856 + '$CC '*)
7857 + # Test whether the compiler implicitly links with -lc since on some
7858 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
7859 + # to ld, don't add -lc before -lgcc.
7860 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7861 + $rm conftest*
7862 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7864 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7865 + soname=conftest
7866 + lib=conftest
7867 + libobjs=conftest.$ac_objext
7868 + deplibs=
7869 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7870 + compiler_flags=-v
7871 + linker_flags=-v
7872 + verstring=
7873 + output_objdir=.
7874 + libname=conftest
7875 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7876 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7877 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7878 + then
7879 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7880 else
7881 - echo "cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
7882 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7883 fi
7884 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7885 else
7886 - echo "cannot find nm_test_var in $ac_nlist" >&AC_FD_CC
7887 + cat conftest.err 1>&5
7888 fi
7889 - else
7890 - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
7891 - fi
7892 - else
7893 - echo "$progname: failed program was:" >&AC_FD_CC
7894 - cat conftest.c >&AC_FD_CC
7895 + $rm conftest*
7896 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7897 + ;;
7898 + esac
7899 fi
7900 - rm -rf conftest*
7901 + ;;
7902 +esac
7903 +])# AC_LIBTOOL_PROG_LD_SHLIBS
7905 - # Do not use the global_symbol_pipe unless it works.
7906 - if test "$ac_pipe_works" = yes; then
7907 - if test x"$ac_symprfx" = x"_"; then
7908 - ac_cv_sys_symbol_underscore=yes
7909 - else
7910 - ac_cv_sys_symbol_underscore=no
7911 - fi
7912 - break
7913 - else
7914 - ac_cv_sys_global_symbol_pipe=
7915 - fi
7916 -done
7918 +# _LT_AC_FILE_LTDLL_C
7919 +# -------------------
7920 +# Be careful that the start marker always follows a newline.
7921 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7922 +# /* ltdll.c starts here */
7923 +# #define WIN32_LEAN_AND_MEAN
7924 +# #include <windows.h>
7925 +# #undef WIN32_LEAN_AND_MEAN
7926 +# #include <stdio.h>
7927 +#
7928 +# #ifndef __CYGWIN__
7929 +# # ifdef __CYGWIN32__
7930 +# # define __CYGWIN__ __CYGWIN32__
7931 +# # endif
7932 +# #endif
7933 +#
7934 +# #ifdef __cplusplus
7935 +# extern "C" {
7936 +# #endif
7937 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7938 +# #ifdef __cplusplus
7939 +# }
7940 +# #endif
7941 +#
7942 +# #ifdef __CYGWIN__
7943 +# #include <cygwin/cygwin_dll.h>
7944 +# DECLARE_CYGWIN_DLL( DllMain );
7945 +# #endif
7946 +# HINSTANCE __hDllInstance_base;
7947 +#
7948 +# BOOL APIENTRY
7949 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7950 +# {
7951 +# __hDllInstance_base = hInst;
7952 +# return TRUE;
7953 +# }
7954 +# /* ltdll.c ends here */
7955 +])# _LT_AC_FILE_LTDLL_C
7958 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7959 +# ---------------------------------
7960 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7963 +# old names
7964 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7965 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7966 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7967 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7968 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7969 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7970 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7972 +# This is just to silence aclocal about the macro not being used
7973 +ifelse([AC_DISABLE_FAST_INSTALL])
7975 +AC_DEFUN([LT_AC_PROG_GCJ],
7976 +[AC_CHECK_TOOL(GCJ, gcj, no)
7977 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7978 + AC_SUBST(GCJFLAGS)
7979 ])
7981 -ac_result=yes
7982 -if test -z "$ac_cv_sys_global_symbol_pipe"; then
7983 - ac_result=no
7984 -fi
7985 -AC_MSG_RESULT($ac_result)
7986 -])
7988 -# AM_SYS_LIBTOOL_CYGWIN32 - find tools needed on cygwin32
7989 -AC_DEFUN(AM_SYS_LIBTOOL_CYGWIN32,
7990 -[AC_CHECK_TOOL(DLLTOOL, dlltool, false)
7991 -AC_CHECK_TOOL(AS, as, false)
7992 -])
7994 -# AM_SYS_SYMBOL_UNDERSCORE - does the compiler prefix global symbols
7995 -# with an underscore?
7996 -AC_DEFUN(AM_SYS_SYMBOL_UNDERSCORE,
7997 -[AC_REQUIRE([AM_PROG_NM])dnl
7998 -AC_REQUIRE([AM_SYS_NM_PARSE])dnl
7999 -AC_MSG_CHECKING([for _ prefix in compiled symbols])
8000 -AC_CACHE_VAL(ac_cv_sys_symbol_underscore,
8001 -[ac_cv_sys_symbol_underscore=no
8002 -cat > conftest.$ac_ext <<EOF
8003 -void nm_test_func(){}
8004 -int main(){nm_test_func;return 0;}
8005 -EOF
8006 -if AC_TRY_EVAL(ac_compile); then
8007 - # Now try to grab the symbols.
8008 - ac_nlist=conftest.nm
8009 - if AC_TRY_EVAL(NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
8010 - # See whether the symbols have a leading underscore.
8011 - if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
8012 - ac_cv_sys_symbol_underscore=yes
8013 - else
8014 - if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
8015 - :
8016 - else
8017 - echo "configure: cannot find nm_test_func in $ac_nlist" >&AC_FD_CC
8018 +AC_DEFUN([LT_AC_PROG_RC],
8019 +[AC_CHECK_TOOL(RC, windres, no)
8020 +])
8022 +# NOTE: This macro has been submitted for inclusion into #
8023 +# GNU Autoconf as AC_PROG_SED. When it is available in #
8024 +# a released version of Autoconf we should remove this #
8025 +# macro and use it instead. #
8026 +# LT_AC_PROG_SED
8027 +# --------------
8028 +# Check for a fully-functional sed program, that truncates
8029 +# as few characters as possible. Prefer GNU sed if found.
8030 +AC_DEFUN([LT_AC_PROG_SED],
8031 +[AC_MSG_CHECKING([for a sed that does not truncate output])
8032 +AC_CACHE_VAL(lt_cv_path_SED,
8033 +[# Loop through the user's path and test for sed and gsed.
8034 +# Then use that list of sed's as ones to test for truncation.
8035 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8036 +for as_dir in $PATH
8037 +do
8038 + IFS=$as_save_IFS
8039 + test -z "$as_dir" && as_dir=.
8040 + for lt_ac_prog in sed gsed; do
8041 + for ac_exec_ext in '' $ac_executable_extensions; do
8042 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8043 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8044 fi
8045 - fi
8046 - else
8047 - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&AC_FD_CC
8048 + done
8049 + done
8050 +done
8051 +lt_ac_max=0
8052 +lt_ac_count=0
8053 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8054 +# along with /bin/sed that truncates output.
8055 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8056 + test ! -f $lt_ac_sed && break
8057 + cat /dev/null > conftest.in
8058 + lt_ac_count=0
8059 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8060 + # Check for GNU sed and select it if it is found.
8061 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8062 + lt_cv_path_SED=$lt_ac_sed
8063 + break
8064 fi
8065 -else
8066 - echo "configure: failed program was:" >&AC_FD_CC
8067 - cat conftest.c >&AC_FD_CC
8068 -fi
8069 -rm -rf conftest*
8070 + while true; do
8071 + cat conftest.in conftest.in >conftest.tmp
8072 + mv conftest.tmp conftest.in
8073 + cp conftest.in conftest.nl
8074 + echo >>conftest.nl
8075 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8076 + cmp -s conftest.out conftest.nl || break
8077 + # 10000 chars as input seems more than enough
8078 + test $lt_ac_count -gt 10 && break
8079 + lt_ac_count=`expr $lt_ac_count + 1`
8080 + if test $lt_ac_count -gt $lt_ac_max; then
8081 + lt_ac_max=$lt_ac_count
8082 + lt_cv_path_SED=$lt_ac_sed
8083 + fi
8084 + done
8085 +done
8086 +SED=$lt_cv_path_SED
8087 ])
8088 -AC_MSG_RESULT($ac_cv_sys_symbol_underscore)
8089 -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
8090 -AC_SUBST(USE_SYMBOL_UNDERSCORE)dnl
8091 +AC_MSG_RESULT([$SED])
8092 ])
8094 # Add --enable-maintainer-mode option to configure.
8095 # From Jim Meyering
8097 -# serial 1
8098 +# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
8100 +# This program is free software; you can redistribute it and/or modify
8101 +# it under the terms of the GNU General Public License as published by
8102 +# the Free Software Foundation; either version 2, or (at your option)
8103 +# any later version.
8105 +# This program is distributed in the hope that it will be useful,
8106 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
8107 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8108 +# GNU General Public License for more details.
8110 +# You should have received a copy of the GNU General Public License
8111 +# along with this program; if not, write to the Free Software
8112 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
8113 +# 02111-1307, USA.
8115 -AC_DEFUN(AM_MAINTAINER_MODE,
8116 +# serial 2
8118 +AC_DEFUN([AM_MAINTAINER_MODE],
8119 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8120 dnl maintainer-mode is disabled by default
8121 AC_ARG_ENABLE(maintainer-mode,
8122 @@ -673,25 +6792,14 @@ AC_DEFUN(AM_MAINTAINER_MODE,
8123 (and sometimes confusing) to the casual installer],
8124 USE_MAINTAINER_MODE=$enableval,
8125 USE_MAINTAINER_MODE=no)
8126 - AC_MSG_RESULT($USE_MAINTAINER_MODE)
8127 - AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
8128 + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8129 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8130 MAINT=$MAINTAINER_MODE_TRUE
8131 AC_SUBST(MAINT)dnl
8135 -# Define a conditional.
8137 -AC_DEFUN(AM_CONDITIONAL,
8138 -[AC_SUBST($1_TRUE)
8139 -AC_SUBST($1_FALSE)
8140 -if $2; then
8141 - $1_TRUE=
8142 - $1_FALSE='#'
8143 -else
8144 - $1_TRUE='#'
8145 - $1_FALSE=
8146 -fi])
8147 +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8149 # Configure paths for GTK+
8150 # Owen Taylor 97-11-3
8151 --- libstroke-0.5.1.orig/config.guess
8152 +++ libstroke-0.5.1/config.guess
8153 @@ -1,7 +1,11 @@
8154 #! /bin/sh
8155 # Attempt to guess a canonical system name.
8156 -# Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
8157 -#
8158 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
8159 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
8160 +# Inc.
8162 +timestamp='2007-07-22'
8164 # This file is free software; you can redistribute it and/or modify it
8165 # under the terms of the GNU General Public License as published by
8166 # the Free Software Foundation; either version 2 of the License, or
8167 @@ -14,160 +18,327 @@
8169 # You should have received a copy of the GNU General Public License
8170 # along with this program; if not, write to the Free Software
8171 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8172 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
8173 +# 02110-1301, USA.
8175 # As a special exception to the GNU General Public License, if you
8176 # distribute this file as part of a program that contains a
8177 # configuration script generated by Autoconf, you may include it under
8178 # the same distribution terms that you use for the rest of that program.
8180 -# Written by Per Bothner <bothner@cygnus.com>.
8181 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
8183 +# Originally written by Per Bothner <per@bothner.com>.
8184 +# Please send patches to <config-patches@gnu.org>. Submit a context
8185 +# diff and a properly formatted ChangeLog entry.
8187 # This script attempts to guess a canonical system name similar to
8188 # config.sub. If it succeeds, it prints the system name on stdout, and
8189 # exits with 0. Otherwise, it exits with 1.
8191 # The plan is that this can be called by configure scripts if you
8192 -# don't specify an explicit system type (host/target name).
8193 -#
8194 -# Only a few systems have been added to this list; please add others
8195 -# (but try to keep the structure clean).
8196 -#
8197 +# don't specify an explicit build system type.
8199 +me=`echo "$0" | sed -e 's,.*/,,'`
8201 +usage="\
8202 +Usage: $0 [OPTION]
8204 +Output the configuration name of the system \`$me' is run on.
8206 +Operation modes:
8207 + -h, --help print this help, then exit
8208 + -t, --time-stamp print date of last modification, then exit
8209 + -v, --version print version number, then exit
8211 +Report bugs and patches to <config-patches@gnu.org>."
8213 +version="\
8214 +GNU config.guess ($timestamp)
8216 +Originally written by Per Bothner.
8217 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8218 +Free Software Foundation, Inc.
8220 +This is free software; see the source for copying conditions. There is NO
8221 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8223 +help="
8224 +Try \`$me --help' for more information."
8226 +# Parse command line
8227 +while test $# -gt 0 ; do
8228 + case $1 in
8229 + --time-stamp | --time* | -t )
8230 + echo "$timestamp" ; exit ;;
8231 + --version | -v )
8232 + echo "$version" ; exit ;;
8233 + --help | --h* | -h )
8234 + echo "$usage"; exit ;;
8235 + -- ) # Stop option processing
8236 + shift; break ;;
8237 + - ) # Use stdin as input.
8238 + break ;;
8239 + -* )
8240 + echo "$me: invalid option $1$help" >&2
8241 + exit 1 ;;
8242 + * )
8243 + break ;;
8244 + esac
8245 +done
8247 +if test $# != 0; then
8248 + echo "$me: too many arguments$help" >&2
8249 + exit 1
8250 +fi
8252 +trap 'exit 1' 1 2 15
8254 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
8255 +# compiler to aid in system detection is discouraged as it requires
8256 +# temporary files to be created and, as you can see below, it is a
8257 +# headache to deal with in a portable fashion.
8259 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
8260 +# use `HOST_CC' if defined, but it is deprecated.
8262 +# Portable tmp directory creation inspired by the Autoconf team.
8264 +set_cc_for_build='
8265 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
8266 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
8267 +: ${TMPDIR=/tmp} ;
8268 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
8269 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
8270 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
8271 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
8272 +dummy=$tmp/dummy ;
8273 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
8274 +case $CC_FOR_BUILD,$HOST_CC,$CC in
8275 + ,,) echo "int x;" > $dummy.c ;
8276 + for c in cc gcc c89 c99 ; do
8277 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
8278 + CC_FOR_BUILD="$c"; break ;
8279 + fi ;
8280 + done ;
8281 + if test x"$CC_FOR_BUILD" = x ; then
8282 + CC_FOR_BUILD=no_compiler_found ;
8283 + fi
8284 + ;;
8285 + ,,*) CC_FOR_BUILD=$CC ;;
8286 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
8287 +esac ; set_cc_for_build= ;'
8289 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
8290 -# (ghazi@noc.rutgers.edu 8/24/94.)
8291 +# (ghazi@noc.rutgers.edu 1994-08-24)
8292 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
8293 PATH=$PATH:/.attbin ; export PATH
8294 fi
8296 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
8297 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
8298 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
8299 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
8300 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
8302 -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
8304 # Note: order is significant - the case branches are not exclusive.
8306 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
8307 + *:NetBSD:*:*)
8308 + # NetBSD (nbsd) targets should (where applicable) match one or
8309 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
8310 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
8311 + # switched to ELF, *-*-netbsd* would select the old
8312 + # object file format. This provides both forward
8313 + # compatibility and a consistent mechanism for selecting the
8314 + # object file format.
8315 + #
8316 + # Note: NetBSD doesn't particularly care about the vendor
8317 + # portion of the name. We always set it to "unknown".
8318 + sysctl="sysctl -n hw.machine_arch"
8319 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
8320 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
8321 + case "${UNAME_MACHINE_ARCH}" in
8322 + armeb) machine=armeb-unknown ;;
8323 + arm*) machine=arm-unknown ;;
8324 + sh3el) machine=shl-unknown ;;
8325 + sh3eb) machine=sh-unknown ;;
8326 + sh5el) machine=sh5le-unknown ;;
8327 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
8328 + esac
8329 + # The Operating System including object format, if it has switched
8330 + # to ELF recently, or will in the future.
8331 + case "${UNAME_MACHINE_ARCH}" in
8332 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
8333 + eval $set_cc_for_build
8334 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
8335 + | grep __ELF__ >/dev/null
8336 + then
8337 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
8338 + # Return netbsd for either. FIX?
8339 + os=netbsd
8340 + else
8341 + os=netbsdelf
8342 + fi
8343 + ;;
8344 + *)
8345 + os=netbsd
8346 + ;;
8347 + esac
8348 + # The OS release
8349 + # Debian GNU/NetBSD machines have a different userland, and
8350 + # thus, need a distinct triplet. However, they do not need
8351 + # kernel version information, so it can be replaced with a
8352 + # suitable tag, in the style of linux-gnu.
8353 + case "${UNAME_VERSION}" in
8354 + Debian*)
8355 + release='-gnu'
8356 + ;;
8357 + *)
8358 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
8359 + ;;
8360 + esac
8361 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
8362 + # contains redundant information, the shorter form:
8363 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
8364 + echo "${machine}-${os}${release}"
8365 + exit ;;
8366 + *:OpenBSD:*:*)
8367 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
8368 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
8369 + exit ;;
8370 + *:ekkoBSD:*:*)
8371 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
8372 + exit ;;
8373 + *:SolidBSD:*:*)
8374 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
8375 + exit ;;
8376 + macppc:MirBSD:*:*)
8377 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
8378 + exit ;;
8379 + *:MirBSD:*:*)
8380 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
8381 + exit ;;
8382 alpha:OSF1:*:*)
8383 - if test $UNAME_RELEASE = "V4.0"; then
8384 + case $UNAME_RELEASE in
8385 + *4.0)
8386 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
8387 - fi
8388 + ;;
8389 + *5.*)
8390 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
8391 + ;;
8392 + esac
8393 + # According to Compaq, /usr/sbin/psrinfo has been available on
8394 + # OSF/1 and Tru64 systems produced since 1995. I hope that
8395 + # covers most systems running today. This code pipes the CPU
8396 + # types through head -n 1, so we only detect the type of CPU 0.
8397 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
8398 + case "$ALPHA_CPU_TYPE" in
8399 + "EV4 (21064)")
8400 + UNAME_MACHINE="alpha" ;;
8401 + "EV4.5 (21064)")
8402 + UNAME_MACHINE="alpha" ;;
8403 + "LCA4 (21066/21068)")
8404 + UNAME_MACHINE="alpha" ;;
8405 + "EV5 (21164)")
8406 + UNAME_MACHINE="alphaev5" ;;
8407 + "EV5.6 (21164A)")
8408 + UNAME_MACHINE="alphaev56" ;;
8409 + "EV5.6 (21164PC)")
8410 + UNAME_MACHINE="alphapca56" ;;
8411 + "EV5.7 (21164PC)")
8412 + UNAME_MACHINE="alphapca57" ;;
8413 + "EV6 (21264)")
8414 + UNAME_MACHINE="alphaev6" ;;
8415 + "EV6.7 (21264A)")
8416 + UNAME_MACHINE="alphaev67" ;;
8417 + "EV6.8CB (21264C)")
8418 + UNAME_MACHINE="alphaev68" ;;
8419 + "EV6.8AL (21264B)")
8420 + UNAME_MACHINE="alphaev68" ;;
8421 + "EV6.8CX (21264D)")
8422 + UNAME_MACHINE="alphaev68" ;;
8423 + "EV6.9A (21264/EV69A)")
8424 + UNAME_MACHINE="alphaev69" ;;
8425 + "EV7 (21364)")
8426 + UNAME_MACHINE="alphaev7" ;;
8427 + "EV7.9 (21364A)")
8428 + UNAME_MACHINE="alphaev79" ;;
8429 + esac
8430 + # A Pn.n version is a patched version.
8431 # A Vn.n version is a released version.
8432 # A Tn.n version is a released field test version.
8433 # A Xn.n version is an unreleased experimental baselevel.
8434 # 1.2 uses "1.2" for uname -r.
8435 - cat <<EOF >dummy.s
8436 - .globl main
8437 - .ent main
8438 -main:
8439 - .frame \$30,0,\$26,0
8440 - .prologue 0
8441 - .long 0x47e03d80 # implver $0
8442 - lda \$2,259
8443 - .long 0x47e20c21 # amask $2,$1
8444 - srl \$1,8,\$2
8445 - sll \$2,2,\$2
8446 - sll \$0,3,\$0
8447 - addl \$1,\$0,\$0
8448 - addl \$2,\$0,\$0
8449 - ret \$31,(\$26),1
8450 - .end main
8451 -EOF
8452 - ${CC-cc} dummy.s -o dummy 2>/dev/null
8453 - if test "$?" = 0 ; then
8454 - ./dummy
8455 - case "$?" in
8456 - 7)
8457 - UNAME_MACHINE="alpha"
8458 - ;;
8459 - 15)
8460 - UNAME_MACHINE="alphaev5"
8461 - ;;
8462 - 14)
8463 - UNAME_MACHINE="alphaev56"
8464 - ;;
8465 - 10)
8466 - UNAME_MACHINE="alphapca56"
8467 - ;;
8468 - 16)
8469 - UNAME_MACHINE="alphaev6"
8470 - ;;
8471 - esac
8472 - fi
8473 - rm -f dummy.s dummy
8474 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
8475 - exit 0 ;;
8476 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
8477 + exit ;;
8478 + Alpha\ *:Windows_NT*:*)
8479 + # How do we know it's Interix rather than the generic POSIX subsystem?
8480 + # Should we change UNAME_MACHINE based on the output of uname instead
8481 + # of the specific Alpha model?
8482 + echo alpha-pc-interix
8483 + exit ;;
8484 21064:Windows_NT:50:3)
8485 echo alpha-dec-winnt3.5
8486 - exit 0 ;;
8487 + exit ;;
8488 Amiga*:UNIX_System_V:4.0:*)
8489 - echo m68k-cbm-sysv4
8490 - exit 0;;
8491 - amiga:NetBSD:*:*)
8492 - echo m68k-cbm-netbsd${UNAME_RELEASE}
8493 - exit 0 ;;
8494 - amiga:OpenBSD:*:*)
8495 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8496 - exit 0 ;;
8497 + echo m68k-unknown-sysv4
8498 + exit ;;
8499 *:[Aa]miga[Oo][Ss]:*:*)
8500 echo ${UNAME_MACHINE}-unknown-amigaos
8501 - exit 0 ;;
8502 - arc64:OpenBSD:*:*)
8503 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
8504 - exit 0 ;;
8505 - arc:OpenBSD:*:*)
8506 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8507 - exit 0 ;;
8508 - hkmips:OpenBSD:*:*)
8509 - echo mips-unknown-openbsd${UNAME_RELEASE}
8510 - exit 0 ;;
8511 - pmax:OpenBSD:*:*)
8512 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8513 - exit 0 ;;
8514 - sgi:OpenBSD:*:*)
8515 - echo mips-unknown-openbsd${UNAME_RELEASE}
8516 - exit 0 ;;
8517 - wgrisc:OpenBSD:*:*)
8518 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8519 - exit 0 ;;
8520 + exit ;;
8521 + *:[Mm]orph[Oo][Ss]:*:*)
8522 + echo ${UNAME_MACHINE}-unknown-morphos
8523 + exit ;;
8524 + *:OS/390:*:*)
8525 + echo i370-ibm-openedition
8526 + exit ;;
8527 + *:z/VM:*:*)
8528 + echo s390-ibm-zvmoe
8529 + exit ;;
8530 + *:OS400:*:*)
8531 + echo powerpc-ibm-os400
8532 + exit ;;
8533 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
8534 echo arm-acorn-riscix${UNAME_RELEASE}
8535 - exit 0;;
8536 - arm32:NetBSD:*:*)
8537 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
8538 - exit 0 ;;
8539 - SR2?01:HI-UX/MPP:*:*)
8540 + exit ;;
8541 + arm:riscos:*:*|arm:RISCOS:*:*)
8542 + echo arm-unknown-riscos
8543 + exit ;;
8544 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
8545 echo hppa1.1-hitachi-hiuxmpp
8546 - exit 0;;
8547 - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)
8548 + exit ;;
8549 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
8550 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
8551 if test "`(/bin/universe) 2>/dev/null`" = att ; then
8552 echo pyramid-pyramid-sysv3
8553 else
8554 echo pyramid-pyramid-bsd
8555 fi
8556 - exit 0 ;;
8557 - NILE:*:*:dcosx)
8558 + exit ;;
8559 + NILE*:*:*:dcosx)
8560 echo pyramid-pyramid-svr4
8561 - exit 0 ;;
8562 + exit ;;
8563 + DRS?6000:unix:4.0:6*)
8564 + echo sparc-icl-nx6
8565 + exit ;;
8566 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
8567 + case `/usr/bin/uname -p` in
8568 + sparc) echo sparc-icl-nx7; exit ;;
8569 + esac ;;
8570 sun4H:SunOS:5.*:*)
8571 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8572 - exit 0 ;;
8573 + exit ;;
8574 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
8575 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8576 - exit 0 ;;
8577 - i86pc:SunOS:5.*:*)
8578 + exit ;;
8579 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
8580 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8581 - exit 0 ;;
8582 + exit ;;
8583 sun4*:SunOS:6*:*)
8584 # According to config.sub, this is the proper way to canonicalize
8585 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
8586 # it's likely to be more like Solaris than SunOS4.
8587 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8588 - exit 0 ;;
8589 + exit ;;
8590 sun4*:SunOS:*:*)
8591 case "`/usr/bin/arch -k`" in
8592 Series*|S4*)
8593 @@ -176,12 +347,12 @@ EOF
8594 esac
8595 # Japanese Language versions have a version number like `4.1.3-JL'.
8596 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
8597 - exit 0 ;;
8598 + exit ;;
8599 sun3*:SunOS:*:*)
8600 echo m68k-sun-sunos${UNAME_RELEASE}
8601 - exit 0 ;;
8602 + exit ;;
8603 sun*:*:4.2BSD:*)
8604 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
8605 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
8606 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
8607 case "`/bin/arch`" in
8608 sun3)
8609 @@ -191,55 +362,63 @@ EOF
8610 echo sparc-sun-sunos${UNAME_RELEASE}
8611 ;;
8612 esac
8613 - exit 0 ;;
8614 + exit ;;
8615 aushp:SunOS:*:*)
8616 echo sparc-auspex-sunos${UNAME_RELEASE}
8617 - exit 0 ;;
8618 - atari*:NetBSD:*:*)
8619 - echo m68k-atari-netbsd${UNAME_RELEASE}
8620 - exit 0 ;;
8621 - atari*:OpenBSD:*:*)
8622 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8623 - exit 0 ;;
8624 - sun3*:NetBSD:*:*)
8625 - echo m68k-sun-netbsd${UNAME_RELEASE}
8626 - exit 0 ;;
8627 - sun3*:OpenBSD:*:*)
8628 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8629 - exit 0 ;;
8630 - mac68k:NetBSD:*:*)
8631 - echo m68k-apple-netbsd${UNAME_RELEASE}
8632 - exit 0 ;;
8633 - mac68k:OpenBSD:*:*)
8634 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8635 - exit 0 ;;
8636 - mvme68k:OpenBSD:*:*)
8637 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8638 - exit 0 ;;
8639 - mvme88k:OpenBSD:*:*)
8640 - echo m88k-unknown-openbsd${UNAME_RELEASE}
8641 - exit 0 ;;
8642 + exit ;;
8643 + # The situation for MiNT is a little confusing. The machine name
8644 + # can be virtually everything (everything which is not
8645 + # "atarist" or "atariste" at least should have a processor
8646 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
8647 + # to the lowercase version "mint" (or "freemint"). Finally
8648 + # the system name "TOS" denotes a system which is actually not
8649 + # MiNT. But MiNT is downward compatible to TOS, so this should
8650 + # be no problem.
8651 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
8652 + echo m68k-atari-mint${UNAME_RELEASE}
8653 + exit ;;
8654 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
8655 + echo m68k-atari-mint${UNAME_RELEASE}
8656 + exit ;;
8657 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
8658 + echo m68k-atari-mint${UNAME_RELEASE}
8659 + exit ;;
8660 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
8661 + echo m68k-milan-mint${UNAME_RELEASE}
8662 + exit ;;
8663 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
8664 + echo m68k-hades-mint${UNAME_RELEASE}
8665 + exit ;;
8666 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
8667 + echo m68k-unknown-mint${UNAME_RELEASE}
8668 + exit ;;
8669 + m68k:machten:*:*)
8670 + echo m68k-apple-machten${UNAME_RELEASE}
8671 + exit ;;
8672 powerpc:machten:*:*)
8673 echo powerpc-apple-machten${UNAME_RELEASE}
8674 - exit 0 ;;
8675 - macppc:NetBSD:*:*)
8676 - echo powerpc-apple-netbsd${UNAME_RELEASE}
8677 - exit 0 ;;
8678 + exit ;;
8679 RISC*:Mach:*:*)
8680 echo mips-dec-mach_bsd4.3
8681 - exit 0 ;;
8682 + exit ;;
8683 RISC*:ULTRIX:*:*)
8684 echo mips-dec-ultrix${UNAME_RELEASE}
8685 - exit 0 ;;
8686 + exit ;;
8687 VAX*:ULTRIX*:*:*)
8688 echo vax-dec-ultrix${UNAME_RELEASE}
8689 - exit 0 ;;
8690 - 2020:CLIX:*:*)
8691 + exit ;;
8692 + 2020:CLIX:*:* | 2430:CLIX:*:*)
8693 echo clipper-intergraph-clix${UNAME_RELEASE}
8694 - exit 0 ;;
8695 + exit ;;
8696 mips:*:*:UMIPS | mips:*:*:RISCos)
8697 - sed 's/^ //' << EOF >dummy.c
8698 - int main (argc, argv) int argc; char **argv; {
8699 + eval $set_cc_for_build
8700 + sed 's/^ //' << EOF >$dummy.c
8701 +#ifdef __cplusplus
8702 +#include <stdio.h> /* for printf() prototype */
8703 + int main (int argc, char *argv[]) {
8704 +#else
8705 + int main (argc, argv) int argc; char *argv[]; {
8706 +#endif
8707 #if defined (host_mips) && defined (MIPSEB)
8708 #if defined (SYSTYPE_SYSV)
8709 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
8710 @@ -254,62 +433,83 @@ EOF
8711 exit (-1);
8713 EOF
8714 - ${CC-cc} dummy.c -o dummy \
8715 - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
8716 - && rm dummy.c dummy && exit 0
8717 - rm -f dummy.c dummy
8718 + $CC_FOR_BUILD -o $dummy $dummy.c &&
8719 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
8720 + SYSTEM_NAME=`$dummy $dummyarg` &&
8721 + { echo "$SYSTEM_NAME"; exit; }
8722 echo mips-mips-riscos${UNAME_RELEASE}
8723 - exit 0 ;;
8724 + exit ;;
8725 + Motorola:PowerMAX_OS:*:*)
8726 + echo powerpc-motorola-powermax
8727 + exit ;;
8728 + Motorola:*:4.3:PL8-*)
8729 + echo powerpc-harris-powermax
8730 + exit ;;
8731 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
8732 + echo powerpc-harris-powermax
8733 + exit ;;
8734 Night_Hawk:Power_UNIX:*:*)
8735 echo powerpc-harris-powerunix
8736 - exit 0 ;;
8737 + exit ;;
8738 m88k:CX/UX:7*:*)
8739 echo m88k-harris-cxux7
8740 - exit 0 ;;
8741 + exit ;;
8742 m88k:*:4*:R4*)
8743 echo m88k-motorola-sysv4
8744 - exit 0 ;;
8745 + exit ;;
8746 m88k:*:3*:R3*)
8747 echo m88k-motorola-sysv3
8748 - exit 0 ;;
8749 + exit ;;
8750 AViiON:dgux:*:*)
8751 # DG/UX returns AViiON for all architectures
8752 UNAME_PROCESSOR=`/usr/bin/uname -p`
8753 - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
8754 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
8755 - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
8756 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
8757 + then
8758 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
8759 + [ ${TARGET_BINARY_INTERFACE}x = x ]
8760 + then
8761 echo m88k-dg-dgux${UNAME_RELEASE}
8762 - else
8763 + else
8764 echo m88k-dg-dguxbcs${UNAME_RELEASE}
8765 + fi
8766 + else
8767 + echo i586-dg-dgux${UNAME_RELEASE}
8768 fi
8769 - else echo i586-dg-dgux${UNAME_RELEASE}
8770 - fi
8771 - exit 0 ;;
8772 + exit ;;
8773 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
8774 echo m88k-dolphin-sysv3
8775 - exit 0 ;;
8776 + exit ;;
8777 M88*:*:R3*:*)
8778 # Delta 88k system running SVR3
8779 echo m88k-motorola-sysv3
8780 - exit 0 ;;
8781 + exit ;;
8782 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
8783 echo m88k-tektronix-sysv3
8784 - exit 0 ;;
8785 + exit ;;
8786 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
8787 echo m68k-tektronix-bsd
8788 - exit 0 ;;
8789 + exit ;;
8790 *:IRIX*:*:*)
8791 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
8792 - exit 0 ;;
8793 + exit ;;
8794 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
8795 - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
8796 - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
8797 - i?86:AIX:*:*)
8798 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
8799 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
8800 + i*86:AIX:*:*)
8801 echo i386-ibm-aix
8802 - exit 0 ;;
8803 + exit ;;
8804 + ia64:AIX:*:*)
8805 + if [ -x /usr/bin/oslevel ] ; then
8806 + IBM_REV=`/usr/bin/oslevel`
8807 + else
8808 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
8809 + fi
8810 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
8811 + exit ;;
8812 *:AIX:2:3)
8813 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
8814 - sed 's/^ //' << EOF >dummy.c
8815 + eval $set_cc_for_build
8816 + sed 's/^ //' << EOF >$dummy.c
8817 #include <sys/systemcfg.h>
8819 main()
8820 @@ -320,18 +520,21 @@ EOF
8821 exit(0);
8823 EOF
8824 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
8825 - rm -f dummy.c dummy
8826 - echo rs6000-ibm-aix3.2.5
8827 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
8828 + then
8829 + echo "$SYSTEM_NAME"
8830 + else
8831 + echo rs6000-ibm-aix3.2.5
8832 + fi
8833 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
8834 echo rs6000-ibm-aix3.2.4
8835 else
8836 echo rs6000-ibm-aix3.2
8837 fi
8838 - exit 0 ;;
8839 - *:AIX:*:4)
8840 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
8841 - if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
8842 + exit ;;
8843 + *:AIX:*:[45])
8844 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
8845 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
8846 IBM_ARCH=rs6000
8847 else
8848 IBM_ARCH=powerpc
8849 @@ -339,54 +542,73 @@ EOF
8850 if [ -x /usr/bin/oslevel ] ; then
8851 IBM_REV=`/usr/bin/oslevel`
8852 else
8853 - IBM_REV=4.${UNAME_RELEASE}
8854 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
8855 fi
8856 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
8857 - exit 0 ;;
8858 + exit ;;
8859 *:AIX:*:*)
8860 echo rs6000-ibm-aix
8861 - exit 0 ;;
8862 + exit ;;
8863 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
8864 echo romp-ibm-bsd4.4
8865 - exit 0 ;;
8866 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
8867 + exit ;;
8868 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
8869 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
8870 - exit 0 ;; # report: romp-ibm BSD 4.3
8871 + exit ;; # report: romp-ibm BSD 4.3
8872 *:BOSX:*:*)
8873 echo rs6000-bull-bosx
8874 - exit 0 ;;
8875 + exit ;;
8876 DPX/2?00:B.O.S.:*:*)
8877 echo m68k-bull-sysv3
8878 - exit 0 ;;
8879 + exit ;;
8880 9000/[34]??:4.3bsd:1.*:*)
8881 echo m68k-hp-bsd
8882 - exit 0 ;;
8883 + exit ;;
8884 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
8885 echo m68k-hp-bsd4.4
8886 - exit 0 ;;
8887 + exit ;;
8888 9000/[34678]??:HP-UX:*:*)
8889 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
8890 case "${UNAME_MACHINE}" in
8891 9000/31? ) HP_ARCH=m68000 ;;
8892 9000/[34]?? ) HP_ARCH=m68k ;;
8893 - 9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 )
8894 - sed 's/^ //' << EOF >dummy.c
8895 + 9000/[678][0-9][0-9])
8896 + if [ -x /usr/bin/getconf ]; then
8897 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
8898 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
8899 + case "${sc_cpu_version}" in
8900 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
8901 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
8902 + 532) # CPU_PA_RISC2_0
8903 + case "${sc_kernel_bits}" in
8904 + 32) HP_ARCH="hppa2.0n" ;;
8905 + 64) HP_ARCH="hppa2.0w" ;;
8906 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
8907 + esac ;;
8908 + esac
8909 + fi
8910 + if [ "${HP_ARCH}" = "" ]; then
8911 + eval $set_cc_for_build
8912 + sed 's/^ //' << EOF >$dummy.c
8914 + #define _HPUX_SOURCE
8915 #include <stdlib.h>
8916 #include <unistd.h>
8919 int main ()
8921 #if defined(_SC_KERNEL_BITS)
8922 long bits = sysconf(_SC_KERNEL_BITS);
8923 - #endif
8924 + #endif
8925 long cpu = sysconf (_SC_CPU_VERSION);
8927 - switch (cpu)
8929 + switch (cpu)
8931 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
8932 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
8933 - case CPU_PA_RISC2_0:
8934 + case CPU_PA_RISC2_0:
8935 #if defined(_SC_KERNEL_BITS)
8936 - switch (bits)
8937 + switch (bits)
8939 case 64: puts ("hppa2.0w"); break;
8940 case 32: puts ("hppa2.0n"); break;
8941 @@ -394,20 +616,46 @@ EOF
8942 } break;
8943 #else /* !defined(_SC_KERNEL_BITS) */
8944 puts ("hppa2.0"); break;
8945 - #endif
8946 + #endif
8947 default: puts ("hppa1.0"); break;
8949 exit (0);
8951 EOF
8952 - (${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`
8953 - rm -f dummy.c dummy
8954 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
8955 + test -z "$HP_ARCH" && HP_ARCH=hppa
8956 + fi ;;
8957 esac
8958 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
8959 + if [ ${HP_ARCH} = "hppa2.0w" ]
8960 + then
8961 + eval $set_cc_for_build
8963 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
8964 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
8965 + # generating 64-bit code. GNU and HP use different nomenclature:
8966 + #
8967 + # $ CC_FOR_BUILD=cc ./config.guess
8968 + # => hppa2.0w-hp-hpux11.23
8969 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
8970 + # => hppa64-hp-hpux11.23
8972 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
8973 + grep __LP64__ >/dev/null
8974 + then
8975 + HP_ARCH="hppa2.0w"
8976 + else
8977 + HP_ARCH="hppa64"
8978 + fi
8979 + fi
8980 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
8981 - exit 0 ;;
8982 + exit ;;
8983 + ia64:HP-UX:*:*)
8984 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
8985 + echo ia64-hp-hpux${HPUX_REV}
8986 + exit ;;
8987 3050*:HI-UX:*:*)
8988 - sed 's/^ //' << EOF >dummy.c
8989 + eval $set_cc_for_build
8990 + sed 's/^ //' << EOF >$dummy.c
8991 #include <unistd.h>
8992 int
8993 main ()
8994 @@ -432,341 +680,481 @@ EOF
8995 exit (0);
8997 EOF
8998 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
8999 - rm -f dummy.c dummy
9000 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
9001 + { echo "$SYSTEM_NAME"; exit; }
9002 echo unknown-hitachi-hiuxwe2
9003 - exit 0 ;;
9004 + exit ;;
9005 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
9006 echo hppa1.1-hp-bsd
9007 - exit 0 ;;
9008 + exit ;;
9009 9000/8??:4.3bsd:*:*)
9010 echo hppa1.0-hp-bsd
9011 - exit 0 ;;
9012 + exit ;;
9013 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
9014 + echo hppa1.0-hp-mpeix
9015 + exit ;;
9016 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
9017 echo hppa1.1-hp-osf
9018 - exit 0 ;;
9019 + exit ;;
9020 hp8??:OSF1:*:*)
9021 echo hppa1.0-hp-osf
9022 - exit 0 ;;
9023 - i?86:OSF1:*:*)
9024 + exit ;;
9025 + i*86:OSF1:*:*)
9026 if [ -x /usr/sbin/sysversion ] ; then
9027 echo ${UNAME_MACHINE}-unknown-osf1mk
9028 else
9029 echo ${UNAME_MACHINE}-unknown-osf1
9030 fi
9031 - exit 0 ;;
9032 + exit ;;
9033 parisc*:Lites*:*:*)
9034 echo hppa1.1-hp-lites
9035 - exit 0 ;;
9036 + exit ;;
9037 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
9038 echo c1-convex-bsd
9039 - exit 0 ;;
9040 + exit ;;
9041 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
9042 if getsysinfo -f scalar_acc
9043 then echo c32-convex-bsd
9044 else echo c2-convex-bsd
9045 fi
9046 - exit 0 ;;
9047 + exit ;;
9048 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
9049 echo c34-convex-bsd
9050 - exit 0 ;;
9051 + exit ;;
9052 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
9053 echo c38-convex-bsd
9054 - exit 0 ;;
9055 + exit ;;
9056 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
9057 echo c4-convex-bsd
9058 - exit 0 ;;
9059 - CRAY*X-MP:*:*:*)
9060 - echo xmp-cray-unicos
9061 - exit 0 ;;
9062 + exit ;;
9063 CRAY*Y-MP:*:*:*)
9064 - echo ymp-cray-unicos${UNAME_RELEASE}
9065 - exit 0 ;;
9066 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
9067 + exit ;;
9068 CRAY*[A-Z]90:*:*:*)
9069 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
9070 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
9071 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
9072 - exit 0 ;;
9073 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
9074 + -e 's/\.[^.]*$/.X/'
9075 + exit ;;
9076 CRAY*TS:*:*:*)
9077 - echo t90-cray-unicos${UNAME_RELEASE}
9078 - exit 0 ;;
9079 - CRAY-2:*:*:*)
9080 - echo cray2-cray-unicos
9081 - exit 0 ;;
9082 - F300:UNIX_System_V:*:*)
9083 - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
9084 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
9085 + exit ;;
9086 + CRAY*T3E:*:*:*)
9087 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
9088 + exit ;;
9089 + CRAY*SV1:*:*:*)
9090 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
9091 + exit ;;
9092 + *:UNICOS/mp:*:*)
9093 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
9094 + exit ;;
9095 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
9096 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
9097 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
9098 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
9099 - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
9100 - exit 0 ;;
9101 - F301:UNIX_System_V:*:*)
9102 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
9103 - exit 0 ;;
9104 - hp3[0-9][05]:NetBSD:*:*)
9105 - echo m68k-hp-netbsd${UNAME_RELEASE}
9106 - exit 0 ;;
9107 - hp300:OpenBSD:*:*)
9108 - echo m68k-unknown-openbsd${UNAME_RELEASE}
9109 - exit 0 ;;
9110 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
9111 + exit ;;
9112 + 5000:UNIX_System_V:4.*:*)
9113 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
9114 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
9115 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
9116 + exit ;;
9117 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
9118 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
9119 + exit ;;
9120 sparc*:BSD/OS:*:*)
9121 echo sparc-unknown-bsdi${UNAME_RELEASE}
9122 - exit 0 ;;
9123 - i?86:BSD/386:*:* | *:BSD/OS:*:*)
9124 - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
9125 - exit 0 ;;
9126 + exit ;;
9127 + *:BSD/OS:*:*)
9128 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
9129 + exit ;;
9130 *:FreeBSD:*:*)
9131 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
9132 - exit 0 ;;
9133 - *:NetBSD:*:*)
9134 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9135 - exit 0 ;;
9136 - *:OpenBSD:*:*)
9137 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9138 - exit 0 ;;
9139 + case ${UNAME_MACHINE} in
9140 + pc98)
9141 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
9142 + amd64)
9143 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
9144 + *)
9145 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
9146 + esac
9147 + exit ;;
9148 i*:CYGWIN*:*)
9149 - echo ${UNAME_MACHINE}-pc-cygwin32
9150 - exit 0 ;;
9151 - i*:MINGW*:*)
9152 + echo ${UNAME_MACHINE}-pc-cygwin
9153 + exit ;;
9154 + *:MINGW*:*)
9155 echo ${UNAME_MACHINE}-pc-mingw32
9156 - exit 0 ;;
9157 + exit ;;
9158 + i*:windows32*:*)
9159 + # uname -m includes "-pc" on this system.
9160 + echo ${UNAME_MACHINE}-mingw32
9161 + exit ;;
9162 + i*:PW*:*)
9163 + echo ${UNAME_MACHINE}-pc-pw32
9164 + exit ;;
9165 + *:Interix*:[3456]*)
9166 + case ${UNAME_MACHINE} in
9167 + x86)
9168 + echo i586-pc-interix${UNAME_RELEASE}
9169 + exit ;;
9170 + EM64T | authenticamd)
9171 + echo x86_64-unknown-interix${UNAME_RELEASE}
9172 + exit ;;
9173 + esac ;;
9174 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
9175 + echo i${UNAME_MACHINE}-pc-mks
9176 + exit ;;
9177 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
9178 + # How do we know it's Interix rather than the generic POSIX subsystem?
9179 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
9180 + # UNAME_MACHINE based on the output of uname instead of i386?
9181 + echo i586-pc-interix
9182 + exit ;;
9183 + i*:UWIN*:*)
9184 + echo ${UNAME_MACHINE}-pc-uwin
9185 + exit ;;
9186 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
9187 + echo x86_64-unknown-cygwin
9188 + exit ;;
9189 p*:CYGWIN*:*)
9190 - echo powerpcle-unknown-cygwin32
9191 - exit 0 ;;
9192 + echo powerpcle-unknown-cygwin
9193 + exit ;;
9194 prep*:SunOS:5.*:*)
9195 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
9196 - exit 0 ;;
9197 + exit ;;
9198 *:GNU:*:*)
9199 + # the GNU system
9200 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
9201 - exit 0 ;;
9202 - *:Linux:*:*)
9203 - # uname on the ARM produces all sorts of strangeness, and we need to
9204 - # filter it out.
9205 - case "$UNAME_MACHINE" in
9206 - arm* | sa110*) UNAME_MACHINE="arm" ;;
9207 + exit ;;
9208 + *:GNU/*:*:*)
9209 + # other systems with GNU libc and userland
9210 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
9211 + exit ;;
9212 + i*86:Minix:*:*)
9213 + echo ${UNAME_MACHINE}-pc-minix
9214 + exit ;;
9215 + arm*:Linux:*:*)
9216 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9217 + exit ;;
9218 + avr32*:Linux:*:*)
9219 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9220 + exit ;;
9221 + cris:Linux:*:*)
9222 + echo cris-axis-linux-gnu
9223 + exit ;;
9224 + crisv32:Linux:*:*)
9225 + echo crisv32-axis-linux-gnu
9226 + exit ;;
9227 + frv:Linux:*:*)
9228 + echo frv-unknown-linux-gnu
9229 + exit ;;
9230 + ia64:Linux:*:*)
9231 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9232 + exit ;;
9233 + m32r*:Linux:*:*)
9234 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9235 + exit ;;
9236 + m68*:Linux:*:*)
9237 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9238 + exit ;;
9239 + mips:Linux:*:*)
9240 + eval $set_cc_for_build
9241 + sed 's/^ //' << EOF >$dummy.c
9242 + #undef CPU
9243 + #undef mips
9244 + #undef mipsel
9245 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
9246 + CPU=mipsel
9247 + #else
9248 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
9249 + CPU=mips
9250 + #else
9251 + CPU=
9252 + #endif
9253 + #endif
9254 +EOF
9255 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
9256 + /^CPU/{
9257 + s: ::g
9258 + p
9259 + }'`"
9260 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
9261 + ;;
9262 + mips64:Linux:*:*)
9263 + eval $set_cc_for_build
9264 + sed 's/^ //' << EOF >$dummy.c
9265 + #undef CPU
9266 + #undef mips64
9267 + #undef mips64el
9268 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
9269 + CPU=mips64el
9270 + #else
9271 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
9272 + CPU=mips64
9273 + #else
9274 + CPU=
9275 + #endif
9276 + #endif
9277 +EOF
9278 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
9279 + /^CPU/{
9280 + s: ::g
9281 + p
9282 + }'`"
9283 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
9284 + ;;
9285 + or32:Linux:*:*)
9286 + echo or32-unknown-linux-gnu
9287 + exit ;;
9288 + ppc:Linux:*:*)
9289 + echo powerpc-unknown-linux-gnu
9290 + exit ;;
9291 + ppc64:Linux:*:*)
9292 + echo powerpc64-unknown-linux-gnu
9293 + exit ;;
9294 + alpha:Linux:*:*)
9295 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
9296 + EV5) UNAME_MACHINE=alphaev5 ;;
9297 + EV56) UNAME_MACHINE=alphaev56 ;;
9298 + PCA56) UNAME_MACHINE=alphapca56 ;;
9299 + PCA57) UNAME_MACHINE=alphapca56 ;;
9300 + EV6) UNAME_MACHINE=alphaev6 ;;
9301 + EV67) UNAME_MACHINE=alphaev67 ;;
9302 + EV68*) UNAME_MACHINE=alphaev68 ;;
9303 + esac
9304 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
9305 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
9306 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
9307 + exit ;;
9308 + parisc:Linux:*:* | hppa:Linux:*:*)
9309 + # Look for CPU level
9310 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
9311 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
9312 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
9313 + *) echo hppa-unknown-linux-gnu ;;
9314 esac
9316 + exit ;;
9317 + parisc64:Linux:*:* | hppa64:Linux:*:*)
9318 + echo hppa64-unknown-linux-gnu
9319 + exit ;;
9320 + s390:Linux:*:* | s390x:Linux:*:*)
9321 + echo ${UNAME_MACHINE}-ibm-linux
9322 + exit ;;
9323 + sh64*:Linux:*:*)
9324 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9325 + exit ;;
9326 + sh*:Linux:*:*)
9327 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9328 + exit ;;
9329 + sparc:Linux:*:* | sparc64:Linux:*:*)
9330 + echo ${UNAME_MACHINE}-unknown-linux-gnu
9331 + exit ;;
9332 + vax:Linux:*:*)
9333 + echo ${UNAME_MACHINE}-dec-linux-gnu
9334 + exit ;;
9335 + x86_64:Linux:*:*)
9336 + echo x86_64-unknown-linux-gnu
9337 + exit ;;
9338 + xtensa:Linux:*:*)
9339 + echo xtensa-unknown-linux-gnu
9340 + exit ;;
9341 + i*86:Linux:*:*)
9342 # The BFD linker knows what the default object file format is, so
9343 - # first see if it will tell us.
9344 - ld_help_string=`ld --help 2>&1`
9345 - ld_supported_emulations=`echo $ld_help_string \
9346 - | sed -ne '/supported emulations:/!d
9347 + # first see if it will tell us. cd to the root directory to prevent
9348 + # problems with other programs or directories called `ld' in the path.
9349 + # Set LC_ALL=C to ensure ld outputs messages in English.
9350 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
9351 + | sed -ne '/supported targets:/!d
9352 s/[ ][ ]*/ /g
9353 - s/.*supported emulations: *//
9354 + s/.*supported targets: *//
9355 s/ .*//
9356 p'`
9357 - case "$ld_supported_emulations" in
9358 - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
9359 - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
9360 - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
9361 - armlinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
9362 - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
9363 - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
9364 - esac
9366 - if test "${UNAME_MACHINE}" = "alpha" ; then
9367 - sed 's/^ //' <<EOF >dummy.s
9368 - .globl main
9369 - .ent main
9370 - main:
9371 - .frame \$30,0,\$26,0
9372 - .prologue 0
9373 - .long 0x47e03d80 # implver $0
9374 - lda \$2,259
9375 - .long 0x47e20c21 # amask $2,$1
9376 - srl \$1,8,\$2
9377 - sll \$2,2,\$2
9378 - sll \$0,3,\$0
9379 - addl \$1,\$0,\$0
9380 - addl \$2,\$0,\$0
9381 - ret \$31,(\$26),1
9382 - .end main
9383 -EOF
9384 - LIBC=""
9385 - ${CC-cc} dummy.s -o dummy 2>/dev/null
9386 - if test "$?" = 0 ; then
9387 - ./dummy
9388 - case "$?" in
9389 - 7)
9390 - UNAME_MACHINE="alpha"
9391 - ;;
9392 - 15)
9393 - UNAME_MACHINE="alphaev5"
9394 - ;;
9395 - 14)
9396 - UNAME_MACHINE="alphaev56"
9397 - ;;
9398 - 10)
9399 - UNAME_MACHINE="alphapca56"
9400 - ;;
9401 - 16)
9402 - UNAME_MACHINE="alphaev6"
9403 - ;;
9404 - esac
9406 - objdump --private-headers dummy | \
9407 - grep ld.so.1 > /dev/null
9408 - if test "$?" = 0 ; then
9409 - LIBC="libc1"
9410 - fi
9411 - fi
9412 - rm -f dummy.s dummy
9413 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
9414 - elif test "${UNAME_MACHINE}" = "mips" ; then
9415 - cat >dummy.c <<EOF
9416 -main(argc, argv)
9417 - int argc;
9418 - char *argv[];
9419 -{
9420 -#ifdef __MIPSEB__
9421 - printf ("%s-unknown-linux-gnu\n", argv[1]);
9422 -#endif
9423 -#ifdef __MIPSEL__
9424 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
9425 -#endif
9426 - return 0;
9427 -}
9428 -EOF
9429 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
9430 - rm -f dummy.c dummy
9431 - else
9432 - # Either a pre-BFD a.out linker (linux-gnuoldld)
9433 - # or one that does not give us useful --help.
9434 - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
9435 - # If ld does not provide *any* "supported emulations:"
9436 - # that means it is gnuoldld.
9437 - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
9438 - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
9440 - case "${UNAME_MACHINE}" in
9441 - i?86)
9442 - VENDOR=pc;
9443 - ;;
9444 - *)
9445 - VENDOR=unknown;
9446 - ;;
9447 - esac
9448 - # Determine whether the default compiler is a.out or elf
9449 - cat >dummy.c <<EOF
9450 -#include <features.h>
9451 -main(argc, argv)
9452 - int argc;
9453 - char *argv[];
9454 -{
9455 -#ifdef __ELF__
9456 -# ifdef __GLIBC__
9457 -# if __GLIBC__ >= 2
9458 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
9459 -# else
9460 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9461 -# endif
9462 -# else
9463 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9464 -# endif
9465 -#else
9466 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
9467 -#endif
9468 - return 0;
9469 -}
9470 + case "$ld_supported_targets" in
9471 + elf32-i386)
9472 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
9473 + ;;
9474 + a.out-i386-linux)
9475 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
9476 + exit ;;
9477 + coff-i386)
9478 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
9479 + exit ;;
9480 + "")
9481 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
9482 + # one that does not give us useful --help.
9483 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
9484 + exit ;;
9485 + esac
9486 + # Determine whether the default compiler is a.out or elf
9487 + eval $set_cc_for_build
9488 + sed 's/^ //' << EOF >$dummy.c
9489 + #include <features.h>
9490 + #ifdef __ELF__
9491 + # ifdef __GLIBC__
9492 + # if __GLIBC__ >= 2
9493 + LIBC=gnu
9494 + # else
9495 + LIBC=gnulibc1
9496 + # endif
9497 + # else
9498 + LIBC=gnulibc1
9499 + # endif
9500 + #else
9501 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
9502 + LIBC=gnu
9503 + #else
9504 + LIBC=gnuaout
9505 + #endif
9506 + #endif
9507 + #ifdef __dietlibc__
9508 + LIBC=dietlibc
9509 + #endif
9510 EOF
9511 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
9512 - rm -f dummy.c dummy
9513 - fi ;;
9514 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
9515 -# are messed up and put the nodename in both sysname and nodename.
9516 - i?86:DYNIX/ptx:4*:*)
9517 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
9518 + /^LIBC/{
9519 + s: ::g
9520 + p
9521 + }'`"
9522 + test x"${LIBC}" != x && {
9523 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
9524 + exit
9525 + }
9526 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
9527 + ;;
9528 + i*86:DYNIX/ptx:4*:*)
9529 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
9530 + # earlier versions are messed up and put the nodename in both
9531 + # sysname and nodename.
9532 echo i386-sequent-sysv4
9533 - exit 0 ;;
9534 - i?86:UNIX_SV:4.2MP:2.*)
9535 + exit ;;
9536 + i*86:UNIX_SV:4.2MP:2.*)
9537 # Unixware is an offshoot of SVR4, but it has its own version
9538 # number series starting with 2...
9539 # I am not positive that other SVR4 systems won't match this,
9540 # I just have to hope. -- rms.
9541 # Use sysv4.2uw... so that sysv4* matches it.
9542 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9543 - exit 0 ;;
9544 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
9545 + exit ;;
9546 + i*86:OS/2:*:*)
9547 + # If we were able to find `uname', then EMX Unix compatibility
9548 + # is probably installed.
9549 + echo ${UNAME_MACHINE}-pc-os2-emx
9550 + exit ;;
9551 + i*86:XTS-300:*:STOP)
9552 + echo ${UNAME_MACHINE}-unknown-stop
9553 + exit ;;
9554 + i*86:atheos:*:*)
9555 + echo ${UNAME_MACHINE}-unknown-atheos
9556 + exit ;;
9557 + i*86:syllable:*:*)
9558 + echo ${UNAME_MACHINE}-pc-syllable
9559 + exit ;;
9560 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
9561 + echo i386-unknown-lynxos${UNAME_RELEASE}
9562 + exit ;;
9563 + i*86:*DOS:*:*)
9564 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
9565 + exit ;;
9566 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
9567 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
9568 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
9569 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
9570 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
9571 else
9572 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
9573 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
9574 fi
9575 - exit 0 ;;
9576 - i?86:*:3.2:*)
9577 + exit ;;
9578 + i*86:*:5:[678]*)
9579 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
9580 + case `/bin/uname -X | grep "^Machine"` in
9581 + *486*) UNAME_MACHINE=i486 ;;
9582 + *Pentium) UNAME_MACHINE=i586 ;;
9583 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
9584 + esac
9585 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
9586 + exit ;;
9587 + i*86:*:3.2:*)
9588 if test -f /usr/options/cb.name; then
9589 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
9590 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
9591 elif /bin/uname -X 2>/dev/null >/dev/null ; then
9592 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
9593 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
9594 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
9595 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
9596 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
9597 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
9598 && UNAME_MACHINE=i586
9599 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
9600 + && UNAME_MACHINE=i686
9601 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
9602 + && UNAME_MACHINE=i686
9603 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
9604 else
9605 echo ${UNAME_MACHINE}-pc-sysv32
9606 fi
9607 - exit 0 ;;
9608 - i?86:UnixWare:*:*)
9609 - if /bin/uname -X 2>/dev/null >/dev/null ; then
9610 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
9611 - && UNAME_MACHINE=i586
9612 - fi
9613 - echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
9614 - exit 0 ;;
9615 + exit ;;
9616 pc:*:*:*)
9617 + # Left here for compatibility:
9618 # uname -m prints for DJGPP always 'pc', but it prints nothing about
9619 # the processor, so we play safe by assuming i386.
9620 echo i386-pc-msdosdjgpp
9621 - exit 0 ;;
9622 + exit ;;
9623 Intel:Mach:3*:*)
9624 echo i386-pc-mach3
9625 - exit 0 ;;
9626 + exit ;;
9627 paragon:*:*:*)
9628 echo i860-intel-osf1
9629 - exit 0 ;;
9630 + exit ;;
9631 i860:*:4.*:*) # i860-SVR4
9632 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
9633 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
9634 else # Add other i860-SVR4 vendors below as they are discovered.
9635 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
9636 fi
9637 - exit 0 ;;
9638 + exit ;;
9639 mini*:CTIX:SYS*5:*)
9640 # "miniframe"
9641 echo m68010-convergent-sysv
9642 - exit 0 ;;
9643 - M68*:*:R3V[567]*:*)
9644 - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
9645 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
9646 + exit ;;
9647 + mc68k:UNIX:SYSTEM5:3.51m)
9648 + echo m68k-convergent-sysv
9649 + exit ;;
9650 + M680?0:D-NIX:5.3:*)
9651 + echo m68k-diab-dnix
9652 + exit ;;
9653 + M68*:*:R3V[5678]*:*)
9654 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
9655 + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
9656 OS_REL=''
9657 test -r /etc/.relid \
9658 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
9659 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
9660 - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
9661 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
9662 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
9663 - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
9664 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
9665 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
9666 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
9667 - && echo i486-ncr-sysv4 && exit 0 ;;
9668 - m68*:LynxOS:2.*:*)
9669 + && { echo i486-ncr-sysv4; exit; } ;;
9670 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
9671 echo m68k-unknown-lynxos${UNAME_RELEASE}
9672 - exit 0 ;;
9673 + exit ;;
9674 mc68030:UNIX_System_V:4.*:*)
9675 echo m68k-atari-sysv4
9676 - exit 0 ;;
9677 - i?86:LynxOS:2.*:*)
9678 - echo i386-unknown-lynxos${UNAME_RELEASE}
9679 - exit 0 ;;
9680 + exit ;;
9681 TSUNAMI:LynxOS:2.*:*)
9682 echo sparc-unknown-lynxos${UNAME_RELEASE}
9683 - exit 0 ;;
9684 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
9685 + exit ;;
9686 + rs6000:LynxOS:2.*:*)
9687 echo rs6000-unknown-lynxos${UNAME_RELEASE}
9688 - exit 0 ;;
9689 + exit ;;
9690 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
9691 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
9692 + exit ;;
9693 SM[BE]S:UNIX_SV:*:*)
9694 echo mips-dde-sysv${UNAME_RELEASE}
9695 - exit 0 ;;
9696 + exit ;;
9697 + RM*:ReliantUNIX-*:*:*)
9698 + echo mips-sni-sysv4
9699 + exit ;;
9700 RM*:SINIX-*:*:*)
9701 echo mips-sni-sysv4
9702 - exit 0 ;;
9703 + exit ;;
9704 *:SINIX-*:*:*)
9705 if uname -p 2>/dev/null >/dev/null ; then
9706 UNAME_MACHINE=`(uname -p) 2>/dev/null`
9707 @@ -774,48 +1162,165 @@ EOF
9708 else
9709 echo ns32k-sni-sysv
9710 fi
9711 - exit 0 ;;
9712 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
9713 - # says <Richard.M.Bartel@ccMail.Census.GOV>
9714 + exit ;;
9715 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
9716 + # says <Richard.M.Bartel@ccMail.Census.GOV>
9717 echo i586-unisys-sysv4
9718 - exit 0 ;;
9719 + exit ;;
9720 *:UNIX_System_V:4*:FTX*)
9721 # From Gerald Hewes <hewes@openmarket.com>.
9722 # How about differentiating between stratus architectures? -djm
9723 echo hppa1.1-stratus-sysv4
9724 - exit 0 ;;
9725 + exit ;;
9726 *:*:*:FTX*)
9727 # From seanf@swdc.stratus.com.
9728 echo i860-stratus-sysv4
9729 - exit 0 ;;
9730 + exit ;;
9731 + i*86:VOS:*:*)
9732 + # From Paul.Green@stratus.com.
9733 + echo ${UNAME_MACHINE}-stratus-vos
9734 + exit ;;
9735 + *:VOS:*:*)
9736 + # From Paul.Green@stratus.com.
9737 + echo hppa1.1-stratus-vos
9738 + exit ;;
9739 mc68*:A/UX:*:*)
9740 echo m68k-apple-aux${UNAME_RELEASE}
9741 - exit 0 ;;
9742 - news*:NEWS-OS:*:6*)
9743 + exit ;;
9744 + news*:NEWS-OS:6*:*)
9745 echo mips-sony-newsos6
9746 - exit 0 ;;
9747 - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)
9748 + exit ;;
9749 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
9750 if [ -d /usr/nec ]; then
9751 echo mips-nec-sysv${UNAME_RELEASE}
9752 else
9753 echo mips-unknown-sysv${UNAME_RELEASE}
9754 fi
9755 - exit 0 ;;
9756 + exit ;;
9757 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
9758 echo powerpc-be-beos
9759 - exit 0 ;;
9760 + exit ;;
9761 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
9762 echo powerpc-apple-beos
9763 - exit 0 ;;
9764 + exit ;;
9765 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
9766 echo i586-pc-beos
9767 - exit 0 ;;
9768 + exit ;;
9769 + SX-4:SUPER-UX:*:*)
9770 + echo sx4-nec-superux${UNAME_RELEASE}
9771 + exit ;;
9772 + SX-5:SUPER-UX:*:*)
9773 + echo sx5-nec-superux${UNAME_RELEASE}
9774 + exit ;;
9775 + SX-6:SUPER-UX:*:*)
9776 + echo sx6-nec-superux${UNAME_RELEASE}
9777 + exit ;;
9778 + SX-7:SUPER-UX:*:*)
9779 + echo sx7-nec-superux${UNAME_RELEASE}
9780 + exit ;;
9781 + SX-8:SUPER-UX:*:*)
9782 + echo sx8-nec-superux${UNAME_RELEASE}
9783 + exit ;;
9784 + SX-8R:SUPER-UX:*:*)
9785 + echo sx8r-nec-superux${UNAME_RELEASE}
9786 + exit ;;
9787 + Power*:Rhapsody:*:*)
9788 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
9789 + exit ;;
9790 + *:Rhapsody:*:*)
9791 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
9792 + exit ;;
9793 + *:Darwin:*:*)
9794 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
9795 + case $UNAME_PROCESSOR in
9796 + unknown) UNAME_PROCESSOR=powerpc ;;
9797 + esac
9798 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
9799 + exit ;;
9800 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
9801 + UNAME_PROCESSOR=`uname -p`
9802 + if test "$UNAME_PROCESSOR" = "x86"; then
9803 + UNAME_PROCESSOR=i386
9804 + UNAME_MACHINE=pc
9805 + fi
9806 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
9807 + exit ;;
9808 + *:QNX:*:4*)
9809 + echo i386-pc-qnx
9810 + exit ;;
9811 + NSE-?:NONSTOP_KERNEL:*:*)
9812 + echo nse-tandem-nsk${UNAME_RELEASE}
9813 + exit ;;
9814 + NSR-?:NONSTOP_KERNEL:*:*)
9815 + echo nsr-tandem-nsk${UNAME_RELEASE}
9816 + exit ;;
9817 + *:NonStop-UX:*:*)
9818 + echo mips-compaq-nonstopux
9819 + exit ;;
9820 + BS2000:POSIX*:*:*)
9821 + echo bs2000-siemens-sysv
9822 + exit ;;
9823 + DS/*:UNIX_System_V:*:*)
9824 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
9825 + exit ;;
9826 + *:Plan9:*:*)
9827 + # "uname -m" is not consistent, so use $cputype instead. 386
9828 + # is converted to i386 for consistency with other x86
9829 + # operating systems.
9830 + if test "$cputype" = "386"; then
9831 + UNAME_MACHINE=i386
9832 + else
9833 + UNAME_MACHINE="$cputype"
9834 + fi
9835 + echo ${UNAME_MACHINE}-unknown-plan9
9836 + exit ;;
9837 + *:TOPS-10:*:*)
9838 + echo pdp10-unknown-tops10
9839 + exit ;;
9840 + *:TENEX:*:*)
9841 + echo pdp10-unknown-tenex
9842 + exit ;;
9843 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
9844 + echo pdp10-dec-tops20
9845 + exit ;;
9846 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
9847 + echo pdp10-xkl-tops20
9848 + exit ;;
9849 + *:TOPS-20:*:*)
9850 + echo pdp10-unknown-tops20
9851 + exit ;;
9852 + *:ITS:*:*)
9853 + echo pdp10-unknown-its
9854 + exit ;;
9855 + SEI:*:*:SEIUX)
9856 + echo mips-sei-seiux${UNAME_RELEASE}
9857 + exit ;;
9858 + *:DragonFly:*:*)
9859 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
9860 + exit ;;
9861 + *:*VMS:*:*)
9862 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
9863 + case "${UNAME_MACHINE}" in
9864 + A*) echo alpha-dec-vms ; exit ;;
9865 + I*) echo ia64-dec-vms ; exit ;;
9866 + V*) echo vax-dec-vms ; exit ;;
9867 + esac ;;
9868 + *:XENIX:*:SysV)
9869 + echo i386-pc-xenix
9870 + exit ;;
9871 + i*86:skyos:*:*)
9872 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
9873 + exit ;;
9874 + i*86:rdos:*:*)
9875 + echo ${UNAME_MACHINE}-pc-rdos
9876 + exit ;;
9877 esac
9879 #echo '(No uname command or uname output not recognized.)' 1>&2
9880 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
9882 -cat >dummy.c <<EOF
9883 +eval $set_cc_for_build
9884 +cat >$dummy.c <<EOF
9885 #ifdef _SEQUENT_
9886 # include <sys/types.h>
9887 # include <sys/utsname.h>
9888 @@ -840,7 +1345,7 @@ main ()
9889 #endif
9891 #if defined (__arm) && defined (__acorn) && defined (__unix)
9892 - printf ("arm-acorn-riscix"); exit (0);
9893 + printf ("arm-acorn-riscix\n"); exit (0);
9894 #endif
9896 #if defined (hp300) && !defined (hpux)
9897 @@ -853,7 +1358,10 @@ main ()
9898 #endif
9899 int version;
9900 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
9901 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
9902 + if (version < 4)
9903 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
9904 + else
9905 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
9906 exit (0);
9907 #endif
9909 @@ -898,11 +1406,24 @@ main ()
9910 #endif
9912 #if defined (vax)
9913 -#if !defined (ultrix)
9914 - printf ("vax-dec-bsd\n"); exit (0);
9915 -#else
9916 - printf ("vax-dec-ultrix\n"); exit (0);
9917 -#endif
9918 +# if !defined (ultrix)
9919 +# include <sys/param.h>
9920 +# if defined (BSD)
9921 +# if BSD == 43
9922 + printf ("vax-dec-bsd4.3\n"); exit (0);
9923 +# else
9924 +# if BSD == 199006
9925 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
9926 +# else
9927 + printf ("vax-dec-bsd\n"); exit (0);
9928 +# endif
9929 +# endif
9930 +# else
9931 + printf ("vax-dec-bsd\n"); exit (0);
9932 +# endif
9933 +# else
9934 + printf ("vax-dec-ultrix\n"); exit (0);
9935 +# endif
9936 #endif
9938 #if defined (alliant) && defined (i860)
9939 @@ -913,12 +1434,12 @@ main ()
9941 EOF
9943 -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
9944 -rm -f dummy.c dummy
9945 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
9946 + { echo "$SYSTEM_NAME"; exit; }
9948 # Apollos put the system type in the environment.
9950 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
9951 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
9953 # Convex versions that predate uname can use getsysinfo(1)
9955 @@ -927,25 +1448,69 @@ then
9956 case `getsysinfo -f cpu_type` in
9957 c1*)
9958 echo c1-convex-bsd
9959 - exit 0 ;;
9960 + exit ;;
9961 c2*)
9962 if getsysinfo -f scalar_acc
9963 then echo c32-convex-bsd
9964 else echo c2-convex-bsd
9965 fi
9966 - exit 0 ;;
9967 + exit ;;
9968 c34*)
9969 echo c34-convex-bsd
9970 - exit 0 ;;
9971 + exit ;;
9972 c38*)
9973 echo c38-convex-bsd
9974 - exit 0 ;;
9975 + exit ;;
9976 c4*)
9977 echo c4-convex-bsd
9978 - exit 0 ;;
9979 + exit ;;
9980 esac
9981 fi
9983 -#echo '(Unable to guess system type)' 1>&2
9984 +cat >&2 <<EOF
9985 +$0: unable to guess system type
9987 +This script, last modified $timestamp, has failed to recognize
9988 +the operating system you are using. It is advised that you
9989 +download the most up to date version of the config scripts from
9991 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
9992 +and
9993 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
9995 +If the version you run ($0) is already up to date, please
9996 +send the following data and any information you think might be
9997 +pertinent to <config-patches@gnu.org> in order to provide the needed
9998 +information to handle your system.
10000 +config.guess timestamp = $timestamp
10002 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
10003 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
10004 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
10005 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
10007 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
10008 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
10010 +hostinfo = `(hostinfo) 2>/dev/null`
10011 +/bin/universe = `(/bin/universe) 2>/dev/null`
10012 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
10013 +/bin/arch = `(/bin/arch) 2>/dev/null`
10014 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
10015 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
10017 +UNAME_MACHINE = ${UNAME_MACHINE}
10018 +UNAME_RELEASE = ${UNAME_RELEASE}
10019 +UNAME_SYSTEM = ${UNAME_SYSTEM}
10020 +UNAME_VERSION = ${UNAME_VERSION}
10021 +EOF
10023 exit 1
10025 +# Local variables:
10026 +# eval: (add-hook 'write-file-hooks 'time-stamp)
10027 +# time-stamp-start: "timestamp='"
10028 +# time-stamp-format: "%:y-%02m-%02d"
10029 +# time-stamp-end: "'"
10030 +# End:
10031 --- libstroke-0.5.1.orig/config.h.in
10032 +++ libstroke-0.5.1/config.h.in
10033 @@ -1,23 +1,63 @@
10034 -/* config.h.in. Generated automatically from configure.in by autoheader. */
10035 +/* config.h.in. Generated from configure.in by autoheader. */
10036 +/* Define if you want to use mouse footprints in X11. */
10037 +#undef STROKE_MOUSE_FOOTPRINTS
10039 -/* Define to empty if the keyword does not work. */
10040 -#undef const
10041 +/* Define to 1 if you have the <dlfcn.h> header file. */
10042 +#undef HAVE_DLFCN_H
10044 -/* Define if you have the ANSI C header files. */
10045 -#undef STDC_HEADERS
10046 +/* Define to 1 if you have the <inttypes.h> header file. */
10047 +#undef HAVE_INTTYPES_H
10049 -/* Define if the X Window System is missing or not being used. */
10050 -#undef X_DISPLAY_MISSING
10051 +/* Define if libgtk is available */
10052 +#undef HAVE_LIBGTK
10054 -/* Define if you want to use mouse footprints in X11. */
10055 -#undef STROKE_MOUSE_FOOTPRINTS
10056 +/* Define to 1 if you have the `m' library (-lm). */
10057 +#undef HAVE_LIBM
10059 +/* Define to 1 if you have the <memory.h> header file. */
10060 +#undef HAVE_MEMORY_H
10062 +/* Define to 1 if you have the <stdint.h> header file. */
10063 +#undef HAVE_STDINT_H
10065 +/* Define to 1 if you have the <stdlib.h> header file. */
10066 +#undef HAVE_STDLIB_H
10068 +/* Define to 1 if you have the <strings.h> header file. */
10069 +#undef HAVE_STRINGS_H
10071 -/* Define if you have the <unistd.h> header file. */
10072 +/* Define to 1 if you have the <string.h> header file. */
10073 +#undef HAVE_STRING_H
10075 +/* Define to 1 if you have the <sys/stat.h> header file. */
10076 +#undef HAVE_SYS_STAT_H
10078 +/* Define to 1 if you have the <sys/types.h> header file. */
10079 +#undef HAVE_SYS_TYPES_H
10081 +/* Define to 1 if you have the <unistd.h> header file. */
10082 #undef HAVE_UNISTD_H
10084 -/* Define if you have the m library (-lm). */
10085 -#undef HAVE_LIBM
10086 +/* Define to the address where bug reports for this package should be sent. */
10087 +#undef PACKAGE_BUGREPORT
10089 -/* Define if libgtk is available */
10090 -#undef HAVE_LIBGTK
10091 +/* Define to the full name of this package. */
10092 +#undef PACKAGE_NAME
10094 +/* Define to the full name and version of this package. */
10095 +#undef PACKAGE_STRING
10097 +/* Define to the one symbol short name of this package. */
10098 +#undef PACKAGE_TARNAME
10100 +/* Define to the version of this package. */
10101 +#undef PACKAGE_VERSION
10103 +/* Define to 1 if you have the ANSI C header files. */
10104 +#undef STDC_HEADERS
10106 +/* Define to 1 if the X Window System is missing or not being used. */
10107 +#undef X_DISPLAY_MISSING
10109 +/* Define to empty if `const' does not conform to ANSI C. */
10110 +#undef const
10111 --- libstroke-0.5.1.orig/config.sub
10112 +++ libstroke-0.5.1/config.sub
10113 @@ -1,6 +1,11 @@
10114 #! /bin/sh
10115 -# Configuration validation subroutine script, version 1.1.
10116 -# Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
10117 +# Configuration validation subroutine script.
10118 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
10119 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
10120 +# Inc.
10122 +timestamp='2007-06-28'
10124 # This file is (in principle) common to ALL GNU software.
10125 # The presence of a machine in this file suggests that SOME GNU software
10126 # can handle that machine. It does not imply ALL GNU software can.
10127 @@ -17,14 +22,18 @@
10129 # You should have received a copy of the GNU General Public License
10130 # along with this program; if not, write to the Free Software
10131 -# Foundation, Inc., 59 Temple Place - Suite 330,
10132 -# Boston, MA 02111-1307, USA.
10134 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
10135 +# 02110-1301, USA.
10136 +#
10137 # As a special exception to the GNU General Public License, if you
10138 # distribute this file as part of a program that contains a
10139 # configuration script generated by Autoconf, you may include it under
10140 # the same distribution terms that you use for the rest of that program.
10143 +# Please send patches to <config-patches@gnu.org>. Submit a context
10144 +# diff and a properly formatted ChangeLog entry.
10145 +#
10146 # Configuration subroutine to validate and canonicalize a configuration type.
10147 # Supply the specified configuration type as an argument.
10148 # If it is invalid, we print an error message on stderr and exit with code 1.
10149 @@ -45,30 +54,75 @@
10150 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
10151 # It is wrong to echo any other type of specification.
10153 -if [ x$1 = x ]
10154 -then
10155 - echo Configuration name missing. 1>&2
10156 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
10157 - echo "or $0 ALIAS" 1>&2
10158 - echo where ALIAS is a recognized configuration type. 1>&2
10159 - exit 1
10160 -fi
10161 +me=`echo "$0" | sed -e 's,.*/,,'`
10163 -# First pass through any local machine types.
10164 -case $1 in
10165 - *local*)
10166 - echo $1
10167 - exit 0
10168 - ;;
10169 - *)
10170 - ;;
10171 +usage="\
10172 +Usage: $0 [OPTION] CPU-MFR-OPSYS
10173 + $0 [OPTION] ALIAS
10175 +Canonicalize a configuration name.
10177 +Operation modes:
10178 + -h, --help print this help, then exit
10179 + -t, --time-stamp print date of last modification, then exit
10180 + -v, --version print version number, then exit
10182 +Report bugs and patches to <config-patches@gnu.org>."
10184 +version="\
10185 +GNU config.sub ($timestamp)
10187 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
10188 +Free Software Foundation, Inc.
10190 +This is free software; see the source for copying conditions. There is NO
10191 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
10193 +help="
10194 +Try \`$me --help' for more information."
10196 +# Parse command line
10197 +while test $# -gt 0 ; do
10198 + case $1 in
10199 + --time-stamp | --time* | -t )
10200 + echo "$timestamp" ; exit ;;
10201 + --version | -v )
10202 + echo "$version" ; exit ;;
10203 + --help | --h* | -h )
10204 + echo "$usage"; exit ;;
10205 + -- ) # Stop option processing
10206 + shift; break ;;
10207 + - ) # Use stdin as input.
10208 + break ;;
10209 + -* )
10210 + echo "$me: invalid option $1$help"
10211 + exit 1 ;;
10213 + *local*)
10214 + # First pass through any local machine types.
10215 + echo $1
10216 + exit ;;
10218 + * )
10219 + break ;;
10220 + esac
10221 +done
10223 +case $# in
10224 + 0) echo "$me: missing argument$help" >&2
10225 + exit 1;;
10226 + 1) ;;
10227 + *) echo "$me: too many arguments$help" >&2
10228 + exit 1;;
10229 esac
10231 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
10232 # Here we must recognize all the valid KERNEL-OS combinations.
10233 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
10234 case $maybe_os in
10235 - linux-gnu*)
10236 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
10237 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
10238 + storm-chaos* | os2-emx* | rtmk-nova*)
10239 os=-$maybe_os
10240 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
10241 ;;
10242 @@ -94,15 +148,37 @@ case $os in
10243 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
10244 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
10245 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
10246 - -apple)
10247 + -apple | -axis | -knuth | -cray)
10248 + os=
10249 + basic_machine=$1
10250 + ;;
10251 + -sim | -cisco | -oki | -wec | -winbond)
10252 os=
10253 basic_machine=$1
10254 ;;
10255 + -scout)
10256 + ;;
10257 + -wrs)
10258 + os=-vxworks
10259 + basic_machine=$1
10260 + ;;
10261 + -chorusos*)
10262 + os=-chorusos
10263 + basic_machine=$1
10264 + ;;
10265 + -chorusrdb)
10266 + os=-chorusrdb
10267 + basic_machine=$1
10268 + ;;
10269 -hiux*)
10270 os=-hiuxwe2
10271 ;;
10272 + -sco6)
10273 + os=-sco5v6
10274 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10275 + ;;
10276 -sco5)
10277 - os=sco3.2v5
10278 + os=-sco3.2v5
10279 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10280 ;;
10281 -sco4)
10282 @@ -117,10 +193,17 @@ case $os in
10283 # Don't forget version if it is 3.2v4 or newer.
10284 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10285 ;;
10286 + -sco5v6*)
10287 + # Don't forget version if it is 3.2v4 or newer.
10288 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10289 + ;;
10290 -sco*)
10291 os=-sco3.2v2
10292 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10293 ;;
10294 + -udk*)
10295 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10296 + ;;
10297 -isc)
10298 os=-isc2.2
10299 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
10300 @@ -143,27 +226,84 @@ case $os in
10301 -psos*)
10302 os=-psos
10303 ;;
10304 + -mint | -mint[0-9]*)
10305 + basic_machine=m68k-atari
10306 + os=-mint
10307 + ;;
10308 esac
10310 # Decode aliases for certain CPU-COMPANY combinations.
10311 case $basic_machine in
10312 # Recognize the basic CPU types without company name.
10313 # Some are omitted here because they have special meanings below.
10314 - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
10315 - | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
10316 - | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
10317 - | hppa2.0w \
10318 - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
10319 - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
10320 - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
10321 - | mipstx39 | mipstx39el \
10322 - | sparc | sparclet | sparclite | sparc64 | v850)
10323 + 1750a | 580 \
10324 + | a29k \
10325 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
10326 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
10327 + | am33_2.0 \
10328 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
10329 + | bfin \
10330 + | c4x | clipper \
10331 + | d10v | d30v | dlx | dsp16xx \
10332 + | fido | fr30 | frv \
10333 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
10334 + | i370 | i860 | i960 | ia64 \
10335 + | ip2k | iq2000 \
10336 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
10337 + | maxq | mb | microblaze | mcore | mep \
10338 + | mips | mipsbe | mipseb | mipsel | mipsle \
10339 + | mips16 \
10340 + | mips64 | mips64el \
10341 + | mips64vr | mips64vrel \
10342 + | mips64orion | mips64orionel \
10343 + | mips64vr4100 | mips64vr4100el \
10344 + | mips64vr4300 | mips64vr4300el \
10345 + | mips64vr5000 | mips64vr5000el \
10346 + | mips64vr5900 | mips64vr5900el \
10347 + | mipsisa32 | mipsisa32el \
10348 + | mipsisa32r2 | mipsisa32r2el \
10349 + | mipsisa64 | mipsisa64el \
10350 + | mipsisa64r2 | mipsisa64r2el \
10351 + | mipsisa64sb1 | mipsisa64sb1el \
10352 + | mipsisa64sr71k | mipsisa64sr71kel \
10353 + | mipstx39 | mipstx39el \
10354 + | mn10200 | mn10300 \
10355 + | mt \
10356 + | msp430 \
10357 + | nios | nios2 \
10358 + | ns16k | ns32k \
10359 + | or32 \
10360 + | pdp10 | pdp11 | pj | pjl \
10361 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
10362 + | pyramid \
10363 + | score \
10364 + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
10365 + | sh64 | sh64le \
10366 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
10367 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
10368 + | spu | strongarm \
10369 + | tahoe | thumb | tic4x | tic80 | tron \
10370 + | v850 | v850e \
10371 + | we32k \
10372 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
10373 + | z8k)
10374 basic_machine=$basic_machine-unknown
10375 ;;
10376 + m6811 | m68hc11 | m6812 | m68hc12)
10377 + # Motorola 68HC11/12.
10378 + basic_machine=$basic_machine-unknown
10379 + os=-none
10380 + ;;
10381 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
10382 + ;;
10383 + ms1)
10384 + basic_machine=mt-unknown
10385 + ;;
10387 # We use `pc' rather than `unknown'
10388 # because (1) that's what they normally are, and
10389 # (2) the word "unknown" tends to confuse beginning users.
10390 - i[34567]86)
10391 + i*86 | x86_64)
10392 basic_machine=$basic_machine-pc
10393 ;;
10394 # Object if more than one company name word.
10395 @@ -172,28 +312,90 @@ case $basic_machine in
10396 exit 1
10397 ;;
10398 # Recognize the basic CPU types with company name.
10399 - vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
10400 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
10401 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
10402 - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
10403 - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
10404 - | hppa2.0w-* \
10405 - | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
10406 - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
10407 - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
10408 - | sparc64-* | mips64-* | mipsel-* \
10409 - | mips64el-* | mips64orion-* | mips64orionel-* \
10410 - | mipstx39-* | mipstx39el-* \
10411 - | f301-*)
10412 + 580-* \
10413 + | a29k-* \
10414 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
10415 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
10416 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
10417 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
10418 + | avr-* | avr32-* \
10419 + | bfin-* | bs2000-* \
10420 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
10421 + | clipper-* | craynv-* | cydra-* \
10422 + | d10v-* | d30v-* | dlx-* \
10423 + | elxsi-* \
10424 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
10425 + | h8300-* | h8500-* \
10426 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
10427 + | i*86-* | i860-* | i960-* | ia64-* \
10428 + | ip2k-* | iq2000-* \
10429 + | m32c-* | m32r-* | m32rle-* \
10430 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
10431 + | m88110-* | m88k-* | maxq-* | mcore-* \
10432 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
10433 + | mips16-* \
10434 + | mips64-* | mips64el-* \
10435 + | mips64vr-* | mips64vrel-* \
10436 + | mips64orion-* | mips64orionel-* \
10437 + | mips64vr4100-* | mips64vr4100el-* \
10438 + | mips64vr4300-* | mips64vr4300el-* \
10439 + | mips64vr5000-* | mips64vr5000el-* \
10440 + | mips64vr5900-* | mips64vr5900el-* \
10441 + | mipsisa32-* | mipsisa32el-* \
10442 + | mipsisa32r2-* | mipsisa32r2el-* \
10443 + | mipsisa64-* | mipsisa64el-* \
10444 + | mipsisa64r2-* | mipsisa64r2el-* \
10445 + | mipsisa64sb1-* | mipsisa64sb1el-* \
10446 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
10447 + | mipstx39-* | mipstx39el-* \
10448 + | mmix-* \
10449 + | mt-* \
10450 + | msp430-* \
10451 + | nios-* | nios2-* \
10452 + | none-* | np1-* | ns16k-* | ns32k-* \
10453 + | orion-* \
10454 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
10455 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
10456 + | pyramid-* \
10457 + | romp-* | rs6000-* \
10458 + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
10459 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
10460 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
10461 + | sparclite-* \
10462 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
10463 + | tahoe-* | thumb-* \
10464 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
10465 + | tron-* \
10466 + | v850-* | v850e-* | vax-* \
10467 + | we32k-* \
10468 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
10469 + | xstormy16-* | xtensa-* \
10470 + | ymp-* \
10471 + | z8k-*)
10472 ;;
10473 # Recognize the various machine names and aliases which stand
10474 # for a CPU type and a company and sometimes even an OS.
10475 + 386bsd)
10476 + basic_machine=i386-unknown
10477 + os=-bsd
10478 + ;;
10479 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
10480 basic_machine=m68000-att
10481 ;;
10482 3b*)
10483 basic_machine=we32k-att
10484 ;;
10485 + a29khif)
10486 + basic_machine=a29k-amd
10487 + os=-udi
10488 + ;;
10489 + abacus)
10490 + basic_machine=abacus-unknown
10491 + ;;
10492 + adobe68k)
10493 + basic_machine=m68010-adobe
10494 + os=-scout
10495 + ;;
10496 alliant | fx80)
10497 basic_machine=fx80-alliant
10498 ;;
10499 @@ -204,25 +406,35 @@ case $basic_machine in
10500 basic_machine=a29k-none
10501 os=-bsd
10502 ;;
10503 + amd64)
10504 + basic_machine=x86_64-pc
10505 + ;;
10506 + amd64-*)
10507 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
10508 + ;;
10509 amdahl)
10510 basic_machine=580-amdahl
10511 os=-sysv
10512 ;;
10513 amiga | amiga-*)
10514 - basic_machine=m68k-cbm
10515 + basic_machine=m68k-unknown
10516 ;;
10517 amigaos | amigados)
10518 - basic_machine=m68k-cbm
10519 + basic_machine=m68k-unknown
10520 os=-amigaos
10521 ;;
10522 amigaunix | amix)
10523 - basic_machine=m68k-cbm
10524 + basic_machine=m68k-unknown
10525 os=-sysv4
10526 ;;
10527 apollo68)
10528 basic_machine=m68k-apollo
10529 os=-sysv
10530 ;;
10531 + apollo68bsd)
10532 + basic_machine=m68k-apollo
10533 + os=-bsd
10534 + ;;
10535 aux)
10536 basic_machine=m68k-apple
10537 os=-aux
10538 @@ -231,6 +443,10 @@ case $basic_machine in
10539 basic_machine=ns32k-sequent
10540 os=-dynix
10541 ;;
10542 + c90)
10543 + basic_machine=c90-cray
10544 + os=-unicos
10545 + ;;
10546 convex-c1)
10547 basic_machine=c1-convex
10548 os=-bsd
10549 @@ -251,27 +467,45 @@ case $basic_machine in
10550 basic_machine=c38-convex
10551 os=-bsd
10552 ;;
10553 - cray | ymp)
10554 - basic_machine=ymp-cray
10555 - os=-unicos
10556 - ;;
10557 - cray2)
10558 - basic_machine=cray2-cray
10559 + cray | j90)
10560 + basic_machine=j90-cray
10561 os=-unicos
10562 ;;
10563 - [ctj]90-cray)
10564 - basic_machine=c90-cray
10565 - os=-unicos
10566 + craynv)
10567 + basic_machine=craynv-cray
10568 + os=-unicosmp
10569 + ;;
10570 + cr16)
10571 + basic_machine=cr16-unknown
10572 + os=-elf
10573 ;;
10574 crds | unos)
10575 basic_machine=m68k-crds
10576 ;;
10577 + crisv32 | crisv32-* | etraxfs*)
10578 + basic_machine=crisv32-axis
10579 + ;;
10580 + cris | cris-* | etrax*)
10581 + basic_machine=cris-axis
10582 + ;;
10583 + crx)
10584 + basic_machine=crx-unknown
10585 + os=-elf
10586 + ;;
10587 da30 | da30-*)
10588 basic_machine=m68k-da30
10589 ;;
10590 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
10591 basic_machine=mips-dec
10592 ;;
10593 + decsystem10* | dec10*)
10594 + basic_machine=pdp10-dec
10595 + os=-tops10
10596 + ;;
10597 + decsystem20* | dec20*)
10598 + basic_machine=pdp10-dec
10599 + os=-tops20
10600 + ;;
10601 delta | 3300 | motorola-3300 | motorola-delta \
10602 | 3300-motorola | delta-motorola)
10603 basic_machine=m68k-motorola
10604 @@ -280,6 +514,10 @@ case $basic_machine in
10605 basic_machine=m88k-motorola
10606 os=-sysv3
10607 ;;
10608 + djgpp)
10609 + basic_machine=i586-pc
10610 + os=-msdosdjgpp
10611 + ;;
10612 dpx20 | dpx20-*)
10613 basic_machine=rs6000-bull
10614 os=-bosx
10615 @@ -299,6 +537,10 @@ case $basic_machine in
10616 encore | umax | mmax)
10617 basic_machine=ns32k-encore
10618 ;;
10619 + es1800 | OSE68k | ose68k | ose | OSE)
10620 + basic_machine=m68k-ericsson
10621 + os=-ose
10622 + ;;
10623 fx2800)
10624 basic_machine=i860-alliant
10625 ;;
10626 @@ -309,6 +551,10 @@ case $basic_machine in
10627 basic_machine=tron-gmicro
10628 os=-sysv
10629 ;;
10630 + go32)
10631 + basic_machine=i386-pc
10632 + os=-go32
10633 + ;;
10634 h3050r* | hiux*)
10635 basic_machine=hppa1.1-hitachi
10636 os=-hiuxwe2
10637 @@ -317,6 +563,14 @@ case $basic_machine in
10638 basic_machine=h8300-hitachi
10639 os=-hms
10640 ;;
10641 + h8300xray)
10642 + basic_machine=h8300-hitachi
10643 + os=-xray
10644 + ;;
10645 + h8500hms)
10646 + basic_machine=h8500-hitachi
10647 + os=-hms
10648 + ;;
10649 harris)
10650 basic_machine=m88k-harris
10651 os=-sysv3
10652 @@ -332,13 +586,30 @@ case $basic_machine in
10653 basic_machine=m68k-hp
10654 os=-hpux
10655 ;;
10656 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
10657 + basic_machine=hppa1.0-hp
10658 + ;;
10659 hp9k2[0-9][0-9] | hp9k31[0-9])
10660 basic_machine=m68000-hp
10661 ;;
10662 hp9k3[2-9][0-9])
10663 basic_machine=m68k-hp
10664 ;;
10665 - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
10666 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
10667 + basic_machine=hppa1.0-hp
10668 + ;;
10669 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
10670 + basic_machine=hppa1.1-hp
10671 + ;;
10672 + hp9k78[0-9] | hp78[0-9])
10673 + # FIXME: really hppa2.0-hp
10674 + basic_machine=hppa1.1-hp
10675 + ;;
10676 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
10677 + # FIXME: really hppa2.0-hp
10678 + basic_machine=hppa1.1-hp
10679 + ;;
10680 + hp9k8[0-9][13679] | hp8[0-9][13679])
10681 basic_machine=hppa1.1-hp
10682 ;;
10683 hp9k8[0-9][0-9] | hp8[0-9][0-9])
10684 @@ -347,27 +618,42 @@ case $basic_machine in
10685 hppa-next)
10686 os=-nextstep3
10687 ;;
10688 + hppaosf)
10689 + basic_machine=hppa1.1-hp
10690 + os=-osf
10691 + ;;
10692 + hppro)
10693 + basic_machine=hppa1.1-hp
10694 + os=-proelf
10695 + ;;
10696 i370-ibm* | ibm*)
10697 basic_machine=i370-ibm
10698 - os=-mvs
10699 ;;
10700 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
10701 - i[34567]86v32)
10702 + i*86v32)
10703 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
10704 os=-sysv32
10705 ;;
10706 - i[34567]86v4*)
10707 + i*86v4*)
10708 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
10709 os=-sysv4
10710 ;;
10711 - i[34567]86v)
10712 + i*86v)
10713 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
10714 os=-sysv
10715 ;;
10716 - i[34567]86sol2)
10717 + i*86sol2)
10718 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
10719 os=-solaris2
10720 ;;
10721 + i386mach)
10722 + basic_machine=i386-mach
10723 + os=-mach
10724 + ;;
10725 + i386-vsta | vsta)
10726 + basic_machine=i386-unknown
10727 + os=-vsta
10728 + ;;
10729 iris | iris4d)
10730 basic_machine=mips-sgi
10731 case $os in
10732 @@ -393,16 +679,20 @@ case $basic_machine in
10733 basic_machine=ns32k-utek
10734 os=-sysv
10735 ;;
10736 + mingw32)
10737 + basic_machine=i386-pc
10738 + os=-mingw32
10739 + ;;
10740 + mingw32ce)
10741 + basic_machine=arm-unknown
10742 + os=-mingw32ce
10743 + ;;
10744 miniframe)
10745 basic_machine=m68000-convergent
10746 ;;
10747 - mipsel*-linux*)
10748 - basic_machine=mipsel-unknown
10749 - os=-linux-gnu
10750 - ;;
10751 - mips*-linux*)
10752 - basic_machine=mips-unknown
10753 - os=-linux-gnu
10754 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
10755 + basic_machine=m68k-atari
10756 + os=-mint
10757 ;;
10758 mips3*-*)
10759 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
10760 @@ -410,10 +700,37 @@ case $basic_machine in
10761 mips3*)
10762 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
10763 ;;
10764 + monitor)
10765 + basic_machine=m68k-rom68k
10766 + os=-coff
10767 + ;;
10768 + morphos)
10769 + basic_machine=powerpc-unknown
10770 + os=-morphos
10771 + ;;
10772 + msdos)
10773 + basic_machine=i386-pc
10774 + os=-msdos
10775 + ;;
10776 + ms1-*)
10777 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
10778 + ;;
10779 + mvs)
10780 + basic_machine=i370-ibm
10781 + os=-mvs
10782 + ;;
10783 ncr3000)
10784 basic_machine=i486-ncr
10785 os=-sysv4
10786 ;;
10787 + netbsd386)
10788 + basic_machine=i386-unknown
10789 + os=-netbsd
10790 + ;;
10791 + netwinder)
10792 + basic_machine=armv4l-rebel
10793 + os=-linux
10794 + ;;
10795 news | news700 | news800 | news900)
10796 basic_machine=m68k-sony
10797 os=-newsos
10798 @@ -426,6 +743,10 @@ case $basic_machine in
10799 basic_machine=mips-sony
10800 os=-newsos
10801 ;;
10802 + necv70)
10803 + basic_machine=v70-nec
10804 + os=-sysv
10805 + ;;
10806 next | m*-next )
10807 basic_machine=m68k-next
10808 case $os in
10809 @@ -451,9 +772,39 @@ case $basic_machine in
10810 basic_machine=i960-intel
10811 os=-nindy
10812 ;;
10813 + mon960)
10814 + basic_machine=i960-intel
10815 + os=-mon960
10816 + ;;
10817 + nonstopux)
10818 + basic_machine=mips-compaq
10819 + os=-nonstopux
10820 + ;;
10821 np1)
10822 basic_machine=np1-gould
10823 ;;
10824 + nsr-tandem)
10825 + basic_machine=nsr-tandem
10826 + ;;
10827 + op50n-* | op60c-*)
10828 + basic_machine=hppa1.1-oki
10829 + os=-proelf
10830 + ;;
10831 + openrisc | openrisc-*)
10832 + basic_machine=or32-unknown
10833 + ;;
10834 + os400)
10835 + basic_machine=powerpc-ibm
10836 + os=-os400
10837 + ;;
10838 + OSE68000 | ose68000)
10839 + basic_machine=m68000-ericsson
10840 + os=-ose
10841 + ;;
10842 + os68k)
10843 + basic_machine=m68k-none
10844 + os=-os68k
10845 + ;;
10846 pa-hitachi)
10847 basic_machine=hppa1.1-hitachi
10848 os=-hiuxwe2
10849 @@ -468,51 +819,109 @@ case $basic_machine in
10850 pbb)
10851 basic_machine=m68k-tti
10852 ;;
10853 - pc532 | pc532-*)
10854 + pc532 | pc532-*)
10855 basic_machine=ns32k-pc532
10856 ;;
10857 - pentium | p5 | k5 | nexen)
10858 + pc98)
10859 + basic_machine=i386-pc
10860 + ;;
10861 + pc98-*)
10862 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
10863 + ;;
10864 + pentium | p5 | k5 | k6 | nexgen | viac3)
10865 basic_machine=i586-pc
10866 ;;
10867 - pentiumpro | p6 | k6 | 6x86)
10868 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
10869 basic_machine=i686-pc
10870 ;;
10871 - pentiumii | pentium2)
10872 + pentiumii | pentium2 | pentiumiii | pentium3)
10873 + basic_machine=i686-pc
10874 + ;;
10875 + pentium4)
10876 basic_machine=i786-pc
10877 ;;
10878 - pentium-* | p5-* | k5-* | nexen-*)
10879 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
10880 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
10881 ;;
10882 - pentiumpro-* | p6-* | k6-* | 6x86-*)
10883 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
10884 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
10885 + ;;
10886 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
10887 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
10888 ;;
10889 - pentiumii-* | pentium2-*)
10890 + pentium4-*)
10891 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
10892 ;;
10893 pn)
10894 basic_machine=pn-gould
10895 ;;
10896 - power) basic_machine=rs6000-ibm
10897 + power) basic_machine=power-ibm
10898 ;;
10899 ppc) basic_machine=powerpc-unknown
10900 - ;;
10901 + ;;
10902 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
10903 ;;
10904 ppcle | powerpclittle | ppc-le | powerpc-little)
10905 basic_machine=powerpcle-unknown
10906 - ;;
10907 + ;;
10908 ppcle-* | powerpclittle-*)
10909 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
10910 ;;
10911 + ppc64) basic_machine=powerpc64-unknown
10912 + ;;
10913 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
10914 + ;;
10915 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
10916 + basic_machine=powerpc64le-unknown
10917 + ;;
10918 + ppc64le-* | powerpc64little-*)
10919 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
10920 + ;;
10921 ps2)
10922 basic_machine=i386-ibm
10923 ;;
10924 + pw32)
10925 + basic_machine=i586-unknown
10926 + os=-pw32
10927 + ;;
10928 + rdos)
10929 + basic_machine=i386-pc
10930 + os=-rdos
10931 + ;;
10932 + rom68k)
10933 + basic_machine=m68k-rom68k
10934 + os=-coff
10935 + ;;
10936 rm[46]00)
10937 basic_machine=mips-siemens
10938 ;;
10939 rtpc | rtpc-*)
10940 basic_machine=romp-ibm
10941 ;;
10942 + s390 | s390-*)
10943 + basic_machine=s390-ibm
10944 + ;;
10945 + s390x | s390x-*)
10946 + basic_machine=s390x-ibm
10947 + ;;
10948 + sa29200)
10949 + basic_machine=a29k-amd
10950 + os=-udi
10951 + ;;
10952 + sb1)
10953 + basic_machine=mipsisa64sb1-unknown
10954 + ;;
10955 + sb1el)
10956 + basic_machine=mipsisa64sb1el-unknown
10957 + ;;
10958 + sde)
10959 + basic_machine=mipsisa32-sde
10960 + os=-elf
10961 + ;;
10962 + sei)
10963 + basic_machine=mips-sei
10964 + os=-seiux
10965 + ;;
10966 sequent)
10967 basic_machine=i386-sequent
10968 ;;
10969 @@ -520,6 +929,16 @@ case $basic_machine in
10970 basic_machine=sh-hitachi
10971 os=-hms
10972 ;;
10973 + sh5el)
10974 + basic_machine=sh5le-unknown
10975 + ;;
10976 + sh64)
10977 + basic_machine=sh64-unknown
10978 + ;;
10979 + sparclite-wrs | simso-wrs)
10980 + basic_machine=sparclite-wrs
10981 + os=-vxworks
10982 + ;;
10983 sps7)
10984 basic_machine=m68k-bull
10985 os=-sysv2
10986 @@ -527,6 +946,13 @@ case $basic_machine in
10987 spur)
10988 basic_machine=spur-unknown
10989 ;;
10990 + st2000)
10991 + basic_machine=m68k-tandem
10992 + ;;
10993 + stratus)
10994 + basic_machine=i860-stratus
10995 + os=-sysv4
10996 + ;;
10997 sun2)
10998 basic_machine=m68000-sun
10999 ;;
11000 @@ -567,19 +993,51 @@ case $basic_machine in
11001 sun386 | sun386i | roadrunner)
11002 basic_machine=i386-sun
11003 ;;
11004 + sv1)
11005 + basic_machine=sv1-cray
11006 + os=-unicos
11007 + ;;
11008 symmetry)
11009 basic_machine=i386-sequent
11010 os=-dynix
11011 ;;
11012 + t3e)
11013 + basic_machine=alphaev5-cray
11014 + os=-unicos
11015 + ;;
11016 + t90)
11017 + basic_machine=t90-cray
11018 + os=-unicos
11019 + ;;
11020 + tic54x | c54x*)
11021 + basic_machine=tic54x-unknown
11022 + os=-coff
11023 + ;;
11024 + tic55x | c55x*)
11025 + basic_machine=tic55x-unknown
11026 + os=-coff
11027 + ;;
11028 + tic6x | c6x*)
11029 + basic_machine=tic6x-unknown
11030 + os=-coff
11031 + ;;
11032 tx39)
11033 basic_machine=mipstx39-unknown
11034 ;;
11035 tx39el)
11036 basic_machine=mipstx39el-unknown
11037 ;;
11038 + toad1)
11039 + basic_machine=pdp10-xkl
11040 + os=-tops20
11041 + ;;
11042 tower | tower-32)
11043 basic_machine=m68k-ncr
11044 ;;
11045 + tpf)
11046 + basic_machine=s390x-ibm
11047 + os=-tpf
11048 + ;;
11049 udi29k)
11050 basic_machine=a29k-amd
11051 os=-udi
11052 @@ -588,6 +1046,10 @@ case $basic_machine in
11053 basic_machine=a29k-nyu
11054 os=-sym1
11055 ;;
11056 + v810 | necv810)
11057 + basic_machine=v810-nec
11058 + os=-none
11059 + ;;
11060 vaxv)
11061 basic_machine=vax-dec
11062 os=-sysv
11063 @@ -597,8 +1059,8 @@ case $basic_machine in
11064 os=-vms
11065 ;;
11066 vpp*|vx|vx-*)
11067 - basic_machine=f301-fujitsu
11068 - ;;
11069 + basic_machine=f301-fujitsu
11070 + ;;
11071 vxworks960)
11072 basic_machine=i960-wrs
11073 os=-vxworks
11074 @@ -611,13 +1073,29 @@ case $basic_machine in
11075 basic_machine=a29k-wrs
11076 os=-vxworks
11077 ;;
11078 - xmp)
11079 - basic_machine=xmp-cray
11080 - os=-unicos
11081 + w65*)
11082 + basic_machine=w65-wdc
11083 + os=-none
11084 ;;
11085 - xps | xps100)
11086 + w89k-*)
11087 + basic_machine=hppa1.1-winbond
11088 + os=-proelf
11089 + ;;
11090 + xbox)
11091 + basic_machine=i686-pc
11092 + os=-mingw32
11093 + ;;
11094 + xps | xps100)
11095 basic_machine=xps100-honeywell
11096 ;;
11097 + ymp)
11098 + basic_machine=ymp-cray
11099 + os=-unicos
11100 + ;;
11101 + z8k-*-coff)
11102 + basic_machine=z8k-unknown
11103 + os=-sim
11104 + ;;
11105 none)
11106 basic_machine=none-none
11107 os=-none
11108 @@ -625,32 +1103,44 @@ case $basic_machine in
11110 # Here we handle the default manufacturer of certain CPU types. It is in
11111 # some cases the only manufacturer, in others, it is the most popular.
11112 - mips)
11113 - if [ x$os = x-linux-gnu ]; then
11114 - basic_machine=mips-unknown
11115 - else
11116 - basic_machine=mips-mips
11117 - fi
11118 + w89k)
11119 + basic_machine=hppa1.1-winbond
11120 + ;;
11121 + op50n)
11122 + basic_machine=hppa1.1-oki
11123 + ;;
11124 + op60c)
11125 + basic_machine=hppa1.1-oki
11126 ;;
11127 romp)
11128 basic_machine=romp-ibm
11129 ;;
11130 + mmix)
11131 + basic_machine=mmix-knuth
11132 + ;;
11133 rs6000)
11134 basic_machine=rs6000-ibm
11135 ;;
11136 vax)
11137 basic_machine=vax-dec
11138 ;;
11139 + pdp10)
11140 + # there are many clones, so DEC is not a safe bet
11141 + basic_machine=pdp10-unknown
11142 + ;;
11143 pdp11)
11144 basic_machine=pdp11-dec
11145 ;;
11146 we32k)
11147 basic_machine=we32k-att
11148 ;;
11149 - sparc)
11150 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
11151 + basic_machine=sh-unknown
11152 + ;;
11153 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
11154 basic_machine=sparc-sun
11155 ;;
11156 - cydra)
11157 + cydra)
11158 basic_machine=cydra-cydrome
11159 ;;
11160 orion)
11161 @@ -659,6 +1149,15 @@ case $basic_machine in
11162 orion105)
11163 basic_machine=clipper-highlevel
11164 ;;
11165 + mac | mpw | mac-mpw)
11166 + basic_machine=m68k-apple
11167 + ;;
11168 + pmac | pmac-mpw)
11169 + basic_machine=powerpc-apple
11170 + ;;
11171 + *-unknown)
11172 + # Make sure to match an already-canonicalized machine name.
11173 + ;;
11174 *)
11175 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
11176 exit 1
11177 @@ -711,15 +1210,49 @@ case $os in
11178 | -aos* \
11179 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
11180 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
11181 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
11182 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
11183 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
11184 + | -openbsd* | -solidbsd* \
11185 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
11186 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
11187 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
11188 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
11189 + | -chorusos* | -chorusrdb* \
11190 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
11191 - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -rhapsody* \
11192 - | -openstep*)
11193 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
11194 + | -uxpv* | -beos* | -mpeix* | -udk* \
11195 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
11196 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
11197 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
11198 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
11199 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
11200 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
11201 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
11202 # Remember, each alternative MUST END IN *, to match a version number.
11203 ;;
11204 + -qnx*)
11205 + case $basic_machine in
11206 + x86-* | i*86-*)
11207 + ;;
11208 + *)
11209 + os=-nto$os
11210 + ;;
11211 + esac
11212 + ;;
11213 + -nto-qnx*)
11214 + ;;
11215 + -nto*)
11216 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
11217 + ;;
11218 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
11219 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
11220 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
11221 + ;;
11222 + -mac*)
11223 + os=`echo $os | sed -e 's|mac|macos|'`
11224 + ;;
11225 + -linux-dietlibc)
11226 + os=-linux-dietlibc
11227 + ;;
11228 -linux*)
11229 os=`echo $os | sed -e 's|linux|linux-gnu|'`
11230 ;;
11231 @@ -729,6 +1262,15 @@ case $os in
11232 -sunos6*)
11233 os=`echo $os | sed -e 's|sunos6|solaris3|'`
11234 ;;
11235 + -opened*)
11236 + os=-openedition
11237 + ;;
11238 + -os400*)
11239 + os=-os400
11240 + ;;
11241 + -wince*)
11242 + os=-wince
11243 + ;;
11244 -osfrose*)
11245 os=-osfrose
11246 ;;
11247 @@ -744,11 +1286,26 @@ case $os in
11248 -acis*)
11249 os=-aos
11250 ;;
11251 + -atheos*)
11252 + os=-atheos
11253 + ;;
11254 + -syllable*)
11255 + os=-syllable
11256 + ;;
11257 + -386bsd)
11258 + os=-bsd
11259 + ;;
11260 -ctix* | -uts*)
11261 os=-sysv
11262 ;;
11263 + -nova*)
11264 + os=-rtmk-nova
11265 + ;;
11266 -ns2 )
11267 - os=-nextstep2
11268 + os=-nextstep2
11269 + ;;
11270 + -nsk*)
11271 + os=-nsk
11272 ;;
11273 # Preserve the version number of sinix5.
11274 -sinix5.*)
11275 @@ -757,6 +1314,9 @@ case $os in
11276 -sinix*)
11277 os=-sysv4
11278 ;;
11279 + -tpf*)
11280 + os=-tpf
11281 + ;;
11282 -triton*)
11283 os=-sysv3
11284 ;;
11285 @@ -775,9 +1335,27 @@ case $os in
11286 # This must come after -sysvr4.
11287 -sysv*)
11288 ;;
11289 + -ose*)
11290 + os=-ose
11291 + ;;
11292 + -es1800*)
11293 + os=-ose
11294 + ;;
11295 -xenix)
11296 os=-xenix
11297 ;;
11298 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
11299 + os=-mint
11300 + ;;
11301 + -aros*)
11302 + os=-aros
11303 + ;;
11304 + -kaos*)
11305 + os=-kaos
11306 + ;;
11307 + -zvmoe)
11308 + os=-zvmoe
11309 + ;;
11310 -none)
11311 ;;
11312 *)
11313 @@ -800,13 +1378,29 @@ else
11314 # system, and we'll never get to this point.
11316 case $basic_machine in
11317 + score-*)
11318 + os=-elf
11319 + ;;
11320 + spu-*)
11321 + os=-elf
11322 + ;;
11323 *-acorn)
11324 os=-riscix1.2
11325 ;;
11326 + arm*-rebel)
11327 + os=-linux
11328 + ;;
11329 arm*-semi)
11330 os=-aout
11331 ;;
11332 - pdp11-*)
11333 + c4x-* | tic4x-*)
11334 + os=-coff
11335 + ;;
11336 + # This must come before the *-dec entry.
11337 + pdp10-*)
11338 + os=-tops20
11339 + ;;
11340 + pdp11-*)
11341 os=-none
11342 ;;
11343 *-dec | vax-*)
11344 @@ -824,6 +1418,21 @@ case $basic_machine in
11345 # default.
11346 # os=-sunos4
11347 ;;
11348 + m68*-cisco)
11349 + os=-aout
11350 + ;;
11351 + mep-*)
11352 + os=-elf
11353 + ;;
11354 + mips*-cisco)
11355 + os=-elf
11356 + ;;
11357 + mips*-*)
11358 + os=-elf
11359 + ;;
11360 + or32-*)
11361 + os=-coff
11362 + ;;
11363 *-tti) # must be before sparc entry or we get the wrong os.
11364 os=-sysv3
11365 ;;
11366 @@ -833,9 +1442,24 @@ case $basic_machine in
11367 *-be)
11368 os=-beos
11369 ;;
11370 + *-haiku)
11371 + os=-haiku
11372 + ;;
11373 *-ibm)
11374 os=-aix
11375 ;;
11376 + *-knuth)
11377 + os=-mmixware
11378 + ;;
11379 + *-wec)
11380 + os=-proelf
11381 + ;;
11382 + *-winbond)
11383 + os=-proelf
11384 + ;;
11385 + *-oki)
11386 + os=-proelf
11387 + ;;
11388 *-hp)
11389 os=-hpux
11390 ;;
11391 @@ -878,27 +1502,39 @@ case $basic_machine in
11392 *-next)
11393 os=-nextstep3
11394 ;;
11395 - *-gould)
11396 + *-gould)
11397 os=-sysv
11398 ;;
11399 - *-highlevel)
11400 + *-highlevel)
11401 os=-bsd
11402 ;;
11403 *-encore)
11404 os=-bsd
11405 ;;
11406 - *-sgi)
11407 + *-sgi)
11408 os=-irix
11409 ;;
11410 - *-siemens)
11411 + *-siemens)
11412 os=-sysv4
11413 ;;
11414 *-masscomp)
11415 os=-rtu
11416 ;;
11417 - f301-fujitsu)
11418 + f30[01]-fujitsu | f700-fujitsu)
11419 os=-uxpv
11420 ;;
11421 + *-rom68k)
11422 + os=-coff
11423 + ;;
11424 + *-*bug)
11425 + os=-coff
11426 + ;;
11427 + *-apple)
11428 + os=-macos
11429 + ;;
11430 + *-atari*)
11431 + os=-mint
11432 + ;;
11433 *)
11434 os=-none
11435 ;;
11436 @@ -920,9 +1556,15 @@ case $basic_machine in
11437 -aix*)
11438 vendor=ibm
11439 ;;
11440 + -beos*)
11441 + vendor=be
11442 + ;;
11443 -hpux*)
11444 vendor=hp
11445 ;;
11446 + -mpeix*)
11447 + vendor=hp
11448 + ;;
11449 -hiux*)
11450 vendor=hitachi
11451 ;;
11452 @@ -938,21 +1580,47 @@ case $basic_machine in
11453 -genix*)
11454 vendor=ns
11455 ;;
11456 - -mvs*)
11457 + -mvs* | -opened*)
11458 + vendor=ibm
11459 + ;;
11460 + -os400*)
11461 vendor=ibm
11462 ;;
11463 -ptx*)
11464 vendor=sequent
11465 ;;
11466 - -vxsim* | -vxworks*)
11467 + -tpf*)
11468 + vendor=ibm
11469 + ;;
11470 + -vxsim* | -vxworks* | -windiss*)
11471 vendor=wrs
11472 ;;
11473 -aux*)
11474 vendor=apple
11475 ;;
11476 + -hms*)
11477 + vendor=hitachi
11478 + ;;
11479 + -mpw* | -macos*)
11480 + vendor=apple
11481 + ;;
11482 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
11483 + vendor=atari
11484 + ;;
11485 + -vos*)
11486 + vendor=stratus
11487 + ;;
11488 esac
11489 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
11490 ;;
11491 esac
11493 echo $basic_machine$os
11494 +exit
11496 +# Local variables:
11497 +# eval: (add-hook 'write-file-hooks 'time-stamp)
11498 +# time-stamp-start: "timestamp='"
11499 +# time-stamp-format: "%:y-%02m-%02d"
11500 +# time-stamp-end: "'"
11501 +# End:
11502 --- libstroke-0.5.1.orig/configure
11503 +++ libstroke-0.5.1/configure
11504 @@ -1,49 +1,479 @@
11505 #! /bin/sh
11507 # Guess values for system-dependent variables and create Makefiles.
11508 -# Generated automatically using autoconf version 2.13
11509 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
11510 +# Generated by GNU Autoconf 2.58.
11512 +# Copyright (C) 2003 Free Software Foundation, Inc.
11513 # This configure script is free software; the Free Software Foundation
11514 # gives unlimited permission to copy, distribute and modify it.
11515 +## --------------------- ##
11516 +## M4sh Initialization. ##
11517 +## --------------------- ##
11519 +# Be Bourne compatible
11520 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11521 + emulate sh
11522 + NULLCMD=:
11523 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11524 + # is contrary to our usage. Disable this feature.
11525 + alias -g '${1+"$@"}'='"$@"'
11526 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11527 + set -o posix
11528 +fi
11529 +DUALCASE=1; export DUALCASE # for MKS sh
11531 +# Support unset when possible.
11532 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11533 + as_unset=unset
11534 +else
11535 + as_unset=false
11536 +fi
11539 +# Work around bugs in pre-3.0 UWIN ksh.
11540 +$as_unset ENV MAIL MAILPATH
11541 +PS1='$ '
11542 +PS2='> '
11543 +PS4='+ '
11545 +# NLS nuisances.
11546 +for as_var in \
11547 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11548 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11549 + LC_TELEPHONE LC_TIME
11550 +do
11551 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11552 + eval $as_var=C; export $as_var
11553 + else
11554 + $as_unset $as_var
11555 + fi
11556 +done
11558 +# Required to use basename.
11559 +if expr a : '\(a\)' >/dev/null 2>&1; then
11560 + as_expr=expr
11561 +else
11562 + as_expr=false
11563 +fi
11565 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11566 + as_basename=basename
11567 +else
11568 + as_basename=false
11569 +fi
11572 +# Name of the executable.
11573 +as_me=`$as_basename "$0" ||
11574 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11575 + X"$0" : 'X\(//\)$' \| \
11576 + X"$0" : 'X\(/\)$' \| \
11577 + . : '\(.\)' 2>/dev/null ||
11578 +echo X/"$0" |
11579 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11580 + /^X\/\(\/\/\)$/{ s//\1/; q; }
11581 + /^X\/\(\/\).*/{ s//\1/; q; }
11582 + s/.*/./; q'`
11585 +# PATH needs CR, and LINENO needs CR and PATH.
11586 +# Avoid depending upon Character Ranges.
11587 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11588 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11589 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11590 +as_cr_digits='0123456789'
11591 +as_cr_alnum=$as_cr_Letters$as_cr_digits
11593 +# The user is always right.
11594 +if test "${PATH_SEPARATOR+set}" != set; then
11595 + echo "#! /bin/sh" >conf$$.sh
11596 + echo "exit 0" >>conf$$.sh
11597 + chmod +x conf$$.sh
11598 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11599 + PATH_SEPARATOR=';'
11600 + else
11601 + PATH_SEPARATOR=:
11602 + fi
11603 + rm -f conf$$.sh
11604 +fi
11607 + as_lineno_1=$LINENO
11608 + as_lineno_2=$LINENO
11609 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11610 + test "x$as_lineno_1" != "x$as_lineno_2" &&
11611 + test "x$as_lineno_3" = "x$as_lineno_2" || {
11612 + # Find who we are. Look in the path if we contain no path at all
11613 + # relative or not.
11614 + case $0 in
11615 + *[\\/]* ) as_myself=$0 ;;
11616 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 +for as_dir in $PATH
11618 +do
11619 + IFS=$as_save_IFS
11620 + test -z "$as_dir" && as_dir=.
11621 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11622 +done
11624 + ;;
11625 + esac
11626 + # We did not find ourselves, most probably we were run as `sh COMMAND'
11627 + # in which case we are not to be found in the path.
11628 + if test "x$as_myself" = x; then
11629 + as_myself=$0
11630 + fi
11631 + if test ! -f "$as_myself"; then
11632 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
11633 + { (exit 1); exit 1; }; }
11634 + fi
11635 + case $CONFIG_SHELL in
11636 + '')
11637 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11639 +do
11640 + IFS=$as_save_IFS
11641 + test -z "$as_dir" && as_dir=.
11642 + for as_base in sh bash ksh sh5; do
11643 + case $as_dir in
11644 + /*)
11645 + if ("$as_dir/$as_base" -c '
11646 + as_lineno_1=$LINENO
11647 + as_lineno_2=$LINENO
11648 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11649 + test "x$as_lineno_1" != "x$as_lineno_2" &&
11650 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11651 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11652 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11653 + CONFIG_SHELL=$as_dir/$as_base
11654 + export CONFIG_SHELL
11655 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11656 + fi;;
11657 + esac
11658 + done
11659 +done
11660 +;;
11661 + esac
11663 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11664 + # uniformly replaced by the line number. The first 'sed' inserts a
11665 + # line-number line before each line; the second 'sed' does the real
11666 + # work. The second script uses 'N' to pair each line-number line
11667 + # with the numbered line, and appends trailing '-' during
11668 + # substitution so that $LINENO is not a special case at line end.
11669 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11670 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11671 + sed '=' <$as_myself |
11672 + sed '
11673 + N
11674 + s,$,-,
11675 + : loop
11676 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11677 + t loop
11678 + s,-$,,
11679 + s,^['$as_cr_digits']*\n,,
11680 + ' >$as_me.lineno &&
11681 + chmod +x $as_me.lineno ||
11682 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11683 + { (exit 1); exit 1; }; }
11685 + # Don't try to exec as it changes $[0], causing all sort of problems
11686 + # (the dirname of $[0] is not the place where we might find the
11687 + # original and so on. Autoconf is especially sensible to this).
11688 + . ./$as_me.lineno
11689 + # Exit status is that of the last command.
11690 + exit
11691 +}
11694 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11695 + *c*,-n*) ECHO_N= ECHO_C='
11696 +' ECHO_T=' ' ;;
11697 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11698 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11699 +esac
11701 +if expr a : '\(a\)' >/dev/null 2>&1; then
11702 + as_expr=expr
11703 +else
11704 + as_expr=false
11705 +fi
11707 +rm -f conf$$ conf$$.exe conf$$.file
11708 +echo >conf$$.file
11709 +if ln -s conf$$.file conf$$ 2>/dev/null; then
11710 + # We could just check for DJGPP; but this test a) works b) is more generic
11711 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11712 + if test -f conf$$.exe; then
11713 + # Don't use ln at all; we don't have any links
11714 + as_ln_s='cp -p'
11715 + else
11716 + as_ln_s='ln -s'
11717 + fi
11718 +elif ln conf$$.file conf$$ 2>/dev/null; then
11719 + as_ln_s=ln
11720 +else
11721 + as_ln_s='cp -p'
11722 +fi
11723 +rm -f conf$$ conf$$.exe conf$$.file
11725 +if mkdir -p . 2>/dev/null; then
11726 + as_mkdir_p=:
11727 +else
11728 + test -d ./-p && rmdir ./-p
11729 + as_mkdir_p=false
11730 +fi
11732 +as_executable_p="test -f"
11734 +# Sed expression to map a string onto a valid CPP name.
11735 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11737 +# Sed expression to map a string onto a valid variable name.
11738 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11741 +# IFS
11742 +# We need space, tab and new line, in precisely that order.
11743 +as_nl='
11744 +'
11745 +IFS=" $as_nl"
11747 +# CDPATH.
11748 +$as_unset CDPATH
11752 +# Check that we are running under the correct shell.
11753 +SHELL=${CONFIG_SHELL-/bin/sh}
11755 +case X$ECHO in
11756 +X*--fallback-echo)
11757 + # Remove one level of quotation (which was required for Make).
11758 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
11759 + ;;
11760 +esac
11762 +echo=${ECHO-echo}
11763 +if test "X$1" = X--no-reexec; then
11764 + # Discard the --no-reexec flag, and continue.
11765 + shift
11766 +elif test "X$1" = X--fallback-echo; then
11767 + # Avoid inline document here, it may be left over
11768 + :
11769 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
11770 + # Yippee, $echo works!
11771 + :
11772 +else
11773 + # Restart under the correct shell.
11774 + exec $SHELL "$0" --no-reexec ${1+"$@"}
11775 +fi
11777 +if test "X$1" = X--fallback-echo; then
11778 + # used as fallback echo
11779 + shift
11780 + cat <<EOF
11781 +$*
11782 +EOF
11783 + exit 0
11784 +fi
11786 +# The HP-UX ksh and POSIX shell print the target directory to stdout
11787 +# if CDPATH is set.
11788 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11790 +if test -z "$ECHO"; then
11791 +if test "X${echo_test_string+set}" != Xset; then
11792 +# find a string as large as possible, as long as the shell can cope with it
11793 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
11794 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
11795 + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
11796 + echo_test_string="`eval $cmd`" &&
11797 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
11798 + then
11799 + break
11800 + fi
11801 + done
11802 +fi
11804 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
11805 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
11806 + test "X$echo_testing_string" = "X$echo_test_string"; then
11807 + :
11808 +else
11809 + # The Solaris, AIX, and Digital Unix default echo programs unquote
11810 + # backslashes. This makes it impossible to quote backslashes using
11811 + # echo "$something" | sed 's/\\/\\\\/g'
11812 + #
11813 + # So, first we look for a working echo in the user's PATH.
11815 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11816 + for dir in $PATH /usr/ucb; do
11817 + IFS="$lt_save_ifs"
11818 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
11819 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
11820 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
11821 + test "X$echo_testing_string" = "X$echo_test_string"; then
11822 + echo="$dir/echo"
11823 + break
11824 + fi
11825 + done
11826 + IFS="$lt_save_ifs"
11828 + if test "X$echo" = Xecho; then
11829 + # We didn't find a better echo, so look for alternatives.
11830 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
11831 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
11832 + test "X$echo_testing_string" = "X$echo_test_string"; then
11833 + # This shell has a builtin print -r that does the trick.
11834 + echo='print -r'
11835 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
11836 + test "X$CONFIG_SHELL" != X/bin/ksh; then
11837 + # If we have ksh, try running configure again with it.
11838 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11839 + export ORIGINAL_CONFIG_SHELL
11840 + CONFIG_SHELL=/bin/ksh
11841 + export CONFIG_SHELL
11842 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
11843 + else
11844 + # Try using printf.
11845 + echo='printf %s\n'
11846 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
11847 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
11848 + test "X$echo_testing_string" = "X$echo_test_string"; then
11849 + # Cool, printf works
11850 + :
11851 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
11852 + test "X$echo_testing_string" = 'X\t' &&
11853 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
11854 + test "X$echo_testing_string" = "X$echo_test_string"; then
11855 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
11856 + export CONFIG_SHELL
11857 + SHELL="$CONFIG_SHELL"
11858 + export SHELL
11859 + echo="$CONFIG_SHELL $0 --fallback-echo"
11860 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
11861 + test "X$echo_testing_string" = 'X\t' &&
11862 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
11863 + test "X$echo_testing_string" = "X$echo_test_string"; then
11864 + echo="$CONFIG_SHELL $0 --fallback-echo"
11865 + else
11866 + # maybe with a smaller string...
11867 + prev=:
11869 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
11870 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
11871 + then
11872 + break
11873 + fi
11874 + prev="$cmd"
11875 + done
11877 + if test "$prev" != 'sed 50q "$0"'; then
11878 + echo_test_string=`eval $prev`
11879 + export echo_test_string
11880 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
11881 + else
11882 + # Oops. We lost completely, so just stick with echo.
11883 + echo=echo
11884 + fi
11885 + fi
11886 + fi
11887 + fi
11888 +fi
11889 +fi
11891 +# Copy echo and quote the copy suitably for passing to libtool from
11892 +# the Makefile, instead of quoting the original, which is used later.
11893 +ECHO=$echo
11894 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
11895 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
11896 +fi
11901 -# Defaults:
11902 -ac_help=
11903 +tagnames=${tagnames+${tagnames},}CXX
11905 +tagnames=${tagnames+${tagnames},}F77
11907 +# Name of the host.
11908 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
11909 +# so uname gets run too.
11910 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
11912 +exec 6>&1
11914 +#
11915 +# Initializations.
11916 +#
11917 ac_default_prefix=/usr/local
11918 -# Any additions from configure.in:
11919 -ac_help="$ac_help
11920 - --enable-shared[=PKGS] build shared libraries [default=yes]"
11921 -ac_help="$ac_help
11922 - --enable-static[=PKGS] build static libraries [default=yes]"
11923 -ac_help="$ac_help
11924 - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
11925 -ac_help="$ac_help
11926 - --disable-libtool-lock force libtool not to do file locking"
11927 -ac_help="$ac_help
11928 - --enable-maintainer-mode enable make rules and dependencies not useful
11929 - (and sometimes confusing) to the casual installer"
11930 -ac_help="$ac_help
11931 - --with-x use the X Window System"
11932 -ac_help="$ac_help
11933 - --enable-tcl Compile the tcl bindings"
11934 -ac_help="$ac_help
11935 - --with-mouse-footprints Draw mouse footprints in X"
11936 -ac_help="$ac_help
11937 - --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
11938 -ac_help="$ac_help
11939 - --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
11940 -ac_help="$ac_help
11941 - --disable-gtktest Do not try to compile and run a test GTK program"
11942 +ac_config_libobj_dir=.
11943 +cross_compiling=no
11944 +subdirs=
11945 +MFLAGS=
11946 +MAKEFLAGS=
11947 +SHELL=${CONFIG_SHELL-/bin/sh}
11949 +# Maximum number of lines to put in a shell here document.
11950 +# This variable seems obsolete. It should probably be removed, and
11951 +# only ac_max_sed_lines should be used.
11952 +: ${ac_max_here_lines=38}
11954 +# Identity of this package.
11955 +PACKAGE_NAME=
11956 +PACKAGE_TARNAME=
11957 +PACKAGE_VERSION=
11958 +PACKAGE_STRING=
11959 +PACKAGE_BUGREPORT=
11961 +ac_unique_file="libstroke/stroke.c"
11962 +# Factoring default headers for most tests.
11963 +ac_includes_default="\
11964 +#include <stdio.h>
11965 +#if HAVE_SYS_TYPES_H
11966 +# include <sys/types.h>
11967 +#endif
11968 +#if HAVE_SYS_STAT_H
11969 +# include <sys/stat.h>
11970 +#endif
11971 +#if STDC_HEADERS
11972 +# include <stdlib.h>
11973 +# include <stddef.h>
11974 +#else
11975 +# if HAVE_STDLIB_H
11976 +# include <stdlib.h>
11977 +# endif
11978 +#endif
11979 +#if HAVE_STRING_H
11980 +# if !STDC_HEADERS && HAVE_MEMORY_H
11981 +# include <memory.h>
11982 +# endif
11983 +# include <string.h>
11984 +#endif
11985 +#if HAVE_STRINGS_H
11986 +# include <strings.h>
11987 +#endif
11988 +#if HAVE_INTTYPES_H
11989 +# include <inttypes.h>
11990 +#else
11991 +# if HAVE_STDINT_H
11992 +# include <stdint.h>
11993 +# endif
11994 +#endif
11995 +#if HAVE_UNISTD_H
11996 +# include <unistd.h>
11997 +#endif"
11999 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ENABLE_TCL_TRUE ENABLE_TCL_FALSE GTK_CONFIG GTK_CFLAGS GTK_LIBS HAVE_LIBGTK_TRUE HAVE_LIBGTK_FALSE X_LDFLAGS LIBOBJS LTLIBOBJS'
12000 +ac_subst_files=''
12002 # Initialize some variables set by options.
12003 +ac_init_help=
12004 +ac_init_version=false
12005 # The variables have the same names as the options, with
12006 # dashes changed to underlines.
12007 -build=NONE
12008 -cache_file=./config.cache
12009 +cache_file=/dev/null
12010 exec_prefix=NONE
12011 -host=NONE
12012 no_create=
12013 -nonopt=NONE
12014 no_recursion=
12015 prefix=NONE
12016 program_prefix=NONE
12017 @@ -52,10 +482,15 @@ program_transform_name=s,x,x,
12018 silent=
12019 site=
12020 srcdir=
12021 -target=NONE
12022 verbose=
12023 x_includes=NONE
12024 x_libraries=NONE
12026 +# Installation directory options.
12027 +# These are left unexpanded so users can "make install exec_prefix=/foo"
12028 +# and all the variables that are supposed to be based on exec_prefix
12029 +# by default will actually change.
12030 +# Use braces instead of parens because sh, perl, etc. also accept them.
12031 bindir='${exec_prefix}/bin'
12032 sbindir='${exec_prefix}/sbin'
12033 libexecdir='${exec_prefix}/libexec'
12034 @@ -69,17 +504,9 @@ oldincludedir='/usr/include'
12035 infodir='${prefix}/info'
12036 mandir='${prefix}/man'
12038 -# Initialize some other variables.
12039 -subdirs=
12040 -MFLAGS= MAKEFLAGS=
12041 -SHELL=${CONFIG_SHELL-/bin/sh}
12042 -# Maximum number of lines to put in a shell here document.
12043 -ac_max_here_lines=12
12045 ac_prev=
12046 for ac_option
12047 do
12049 # If the previous option needs an argument, assign it.
12050 if test -n "$ac_prev"; then
12051 eval "$ac_prev=\$ac_option"
12052 @@ -87,59 +514,59 @@ do
12053 continue
12054 fi
12056 - case "$ac_option" in
12057 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
12058 - *) ac_optarg= ;;
12059 - esac
12060 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
12062 # Accept the important Cygnus configure options, so we can diagnose typos.
12064 - case "$ac_option" in
12065 + case $ac_option in
12067 -bindir | --bindir | --bindi | --bind | --bin | --bi)
12068 ac_prev=bindir ;;
12069 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
12070 - bindir="$ac_optarg" ;;
12071 + bindir=$ac_optarg ;;
12073 -build | --build | --buil | --bui | --bu)
12074 - ac_prev=build ;;
12075 + ac_prev=build_alias ;;
12076 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
12077 - build="$ac_optarg" ;;
12078 + build_alias=$ac_optarg ;;
12080 -cache-file | --cache-file | --cache-fil | --cache-fi \
12081 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12082 ac_prev=cache_file ;;
12083 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12084 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
12085 - cache_file="$ac_optarg" ;;
12086 + cache_file=$ac_optarg ;;
12088 + --config-cache | -C)
12089 + cache_file=config.cache ;;
12091 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
12092 ac_prev=datadir ;;
12093 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
12094 | --da=*)
12095 - datadir="$ac_optarg" ;;
12096 + datadir=$ac_optarg ;;
12098 -disable-* | --disable-*)
12099 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
12100 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
12101 # Reject names that are not valid shell variable names.
12102 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
12103 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
12104 - fi
12105 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
12106 - eval "enable_${ac_feature}=no" ;;
12107 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
12108 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
12109 + { (exit 1); exit 1; }; }
12110 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
12111 + eval "enable_$ac_feature=no" ;;
12113 -enable-* | --enable-*)
12114 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
12115 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
12116 # Reject names that are not valid shell variable names.
12117 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
12118 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
12119 - fi
12120 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
12121 - case "$ac_option" in
12122 - *=*) ;;
12123 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
12124 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
12125 + { (exit 1); exit 1; }; }
12126 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
12127 + case $ac_option in
12128 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
12129 *) ac_optarg=yes ;;
12130 esac
12131 - eval "enable_${ac_feature}='$ac_optarg'" ;;
12132 + eval "enable_$ac_feature='$ac_optarg'" ;;
12134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
12135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
12136 @@ -148,95 +575,47 @@ do
12137 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
12138 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
12139 | --exec=* | --exe=* | --ex=*)
12140 - exec_prefix="$ac_optarg" ;;
12141 + exec_prefix=$ac_optarg ;;
12143 -gas | --gas | --ga | --g)
12144 # Obsolete; use --with-gas.
12145 with_gas=yes ;;
12147 - -help | --help | --hel | --he)
12148 - # Omit some internal or obsolete options to make the list less imposing.
12149 - # This message is too long to be a string in the A/UX 3.1 sh.
12150 - cat << EOF
12151 -Usage: configure [options] [host]
12152 -Options: [defaults in brackets after descriptions]
12153 -Configuration:
12154 - --cache-file=FILE cache test results in FILE
12155 - --help print this message
12156 - --no-create do not create output files
12157 - --quiet, --silent do not print \`checking...' messages
12158 - --version print the version of autoconf that created configure
12159 -Directory and file names:
12160 - --prefix=PREFIX install architecture-independent files in PREFIX
12161 - [$ac_default_prefix]
12162 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
12163 - [same as prefix]
12164 - --bindir=DIR user executables in DIR [EPREFIX/bin]
12165 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
12166 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
12167 - --datadir=DIR read-only architecture-independent data in DIR
12168 - [PREFIX/share]
12169 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
12170 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
12171 - [PREFIX/com]
12172 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
12173 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
12174 - --includedir=DIR C header files in DIR [PREFIX/include]
12175 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
12176 - --infodir=DIR info documentation in DIR [PREFIX/info]
12177 - --mandir=DIR man documentation in DIR [PREFIX/man]
12178 - --srcdir=DIR find the sources in DIR [configure dir or ..]
12179 - --program-prefix=PREFIX prepend PREFIX to installed program names
12180 - --program-suffix=SUFFIX append SUFFIX to installed program names
12181 - --program-transform-name=PROGRAM
12182 - run sed PROGRAM on installed program names
12183 -EOF
12184 - cat << EOF
12185 -Host type:
12186 - --build=BUILD configure for building on BUILD [BUILD=HOST]
12187 - --host=HOST configure for HOST [guessed]
12188 - --target=TARGET configure for TARGET [TARGET=HOST]
12189 -Features and packages:
12190 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
12191 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
12192 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
12193 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
12194 - --x-includes=DIR X include files are in DIR
12195 - --x-libraries=DIR X library files are in DIR
12196 -EOF
12197 - if test -n "$ac_help"; then
12198 - echo "--enable and --with options recognized:$ac_help"
12199 - fi
12200 - exit 0 ;;
12201 + -help | --help | --hel | --he | -h)
12202 + ac_init_help=long ;;
12203 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
12204 + ac_init_help=recursive ;;
12205 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
12206 + ac_init_help=short ;;
12208 -host | --host | --hos | --ho)
12209 - ac_prev=host ;;
12210 + ac_prev=host_alias ;;
12211 -host=* | --host=* | --hos=* | --ho=*)
12212 - host="$ac_optarg" ;;
12213 + host_alias=$ac_optarg ;;
12215 -includedir | --includedir | --includedi | --included | --include \
12216 | --includ | --inclu | --incl | --inc)
12217 ac_prev=includedir ;;
12218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
12219 | --includ=* | --inclu=* | --incl=* | --inc=*)
12220 - includedir="$ac_optarg" ;;
12221 + includedir=$ac_optarg ;;
12223 -infodir | --infodir | --infodi | --infod | --info | --inf)
12224 ac_prev=infodir ;;
12225 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
12226 - infodir="$ac_optarg" ;;
12227 + infodir=$ac_optarg ;;
12229 -libdir | --libdir | --libdi | --libd)
12230 ac_prev=libdir ;;
12231 -libdir=* | --libdir=* | --libdi=* | --libd=*)
12232 - libdir="$ac_optarg" ;;
12233 + libdir=$ac_optarg ;;
12235 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
12236 | --libexe | --libex | --libe)
12237 ac_prev=libexecdir ;;
12238 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
12239 | --libexe=* | --libex=* | --libe=*)
12240 - libexecdir="$ac_optarg" ;;
12241 + libexecdir=$ac_optarg ;;
12243 -localstatedir | --localstatedir | --localstatedi | --localstated \
12244 | --localstate | --localstat | --localsta | --localst \
12245 @@ -245,19 +624,19 @@ EOF
12246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
12247 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
12248 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
12249 - localstatedir="$ac_optarg" ;;
12250 + localstatedir=$ac_optarg ;;
12252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
12253 ac_prev=mandir ;;
12254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
12255 - mandir="$ac_optarg" ;;
12256 + mandir=$ac_optarg ;;
12258 -nfp | --nfp | --nf)
12259 # Obsolete; use --without-fp.
12260 with_fp=no ;;
12262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
12263 - | --no-cr | --no-c)
12264 + | --no-cr | --no-c | -n)
12265 no_create=yes ;;
12267 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
12268 @@ -271,26 +650,26 @@ EOF
12269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
12270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
12271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
12272 - oldincludedir="$ac_optarg" ;;
12273 + oldincludedir=$ac_optarg ;;
12275 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12276 ac_prev=prefix ;;
12277 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12278 - prefix="$ac_optarg" ;;
12279 + prefix=$ac_optarg ;;
12281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
12282 | --program-pre | --program-pr | --program-p)
12283 ac_prev=program_prefix ;;
12284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
12285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
12286 - program_prefix="$ac_optarg" ;;
12287 + program_prefix=$ac_optarg ;;
12289 -program-suffix | --program-suffix | --program-suffi | --program-suff \
12290 | --program-suf | --program-su | --program-s)
12291 ac_prev=program_suffix ;;
12292 -program-suffix=* | --program-suffix=* | --program-suffi=* \
12293 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
12294 - program_suffix="$ac_optarg" ;;
12295 + program_suffix=$ac_optarg ;;
12297 -program-transform-name | --program-transform-name \
12298 | --program-transform-nam | --program-transform-na \
12299 @@ -307,7 +686,7 @@ EOF
12300 | --program-transfo=* | --program-transf=* \
12301 | --program-trans=* | --program-tran=* \
12302 | --progr-tra=* | --program-tr=* | --program-t=*)
12303 - program_transform_name="$ac_optarg" ;;
12304 + program_transform_name=$ac_optarg ;;
12306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12307 | -silent | --silent | --silen | --sile | --sil)
12308 @@ -317,7 +696,7 @@ EOF
12309 ac_prev=sbindir ;;
12310 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
12311 | --sbi=* | --sb=*)
12312 - sbindir="$ac_optarg" ;;
12313 + sbindir=$ac_optarg ;;
12315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
12316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
12317 @@ -328,58 +707,57 @@ EOF
12318 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
12319 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
12320 | --sha=* | --sh=*)
12321 - sharedstatedir="$ac_optarg" ;;
12322 + sharedstatedir=$ac_optarg ;;
12324 -site | --site | --sit)
12325 ac_prev=site ;;
12326 -site=* | --site=* | --sit=*)
12327 - site="$ac_optarg" ;;
12328 + site=$ac_optarg ;;
12330 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12331 ac_prev=srcdir ;;
12332 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12333 - srcdir="$ac_optarg" ;;
12334 + srcdir=$ac_optarg ;;
12336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
12337 | --syscon | --sysco | --sysc | --sys | --sy)
12338 ac_prev=sysconfdir ;;
12339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
12340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
12341 - sysconfdir="$ac_optarg" ;;
12342 + sysconfdir=$ac_optarg ;;
12344 -target | --target | --targe | --targ | --tar | --ta | --t)
12345 - ac_prev=target ;;
12346 + ac_prev=target_alias ;;
12347 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
12348 - target="$ac_optarg" ;;
12349 + target_alias=$ac_optarg ;;
12351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
12352 verbose=yes ;;
12354 - -version | --version | --versio | --versi | --vers)
12355 - echo "configure generated by autoconf version 2.13"
12356 - exit 0 ;;
12357 + -version | --version | --versio | --versi | --vers | -V)
12358 + ac_init_version=: ;;
12360 -with-* | --with-*)
12361 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
12362 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
12363 # Reject names that are not valid shell variable names.
12364 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
12365 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
12366 - fi
12367 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
12368 + { echo "$as_me: error: invalid package name: $ac_package" >&2
12369 + { (exit 1); exit 1; }; }
12370 ac_package=`echo $ac_package| sed 's/-/_/g'`
12371 - case "$ac_option" in
12372 - *=*) ;;
12373 + case $ac_option in
12374 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
12375 *) ac_optarg=yes ;;
12376 esac
12377 - eval "with_${ac_package}='$ac_optarg'" ;;
12378 + eval "with_$ac_package='$ac_optarg'" ;;
12380 -without-* | --without-*)
12381 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
12382 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
12383 # Reject names that are not valid shell variable names.
12384 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
12385 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
12386 - fi
12387 - ac_package=`echo $ac_package| sed 's/-/_/g'`
12388 - eval "with_${ac_package}=no" ;;
12389 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
12390 + { echo "$as_me: error: invalid package name: $ac_package" >&2
12391 + { (exit 1); exit 1; }; }
12392 + ac_package=`echo $ac_package | sed 's/-/_/g'`
12393 + eval "with_$ac_package=no" ;;
12395 --x)
12396 # Obsolete; use --with-x.
12397 @@ -390,99 +768,110 @@ EOF
12398 ac_prev=x_includes ;;
12399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
12400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
12401 - x_includes="$ac_optarg" ;;
12402 + x_includes=$ac_optarg ;;
12404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
12405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
12406 ac_prev=x_libraries ;;
12407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
12408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
12409 - x_libraries="$ac_optarg" ;;
12410 + x_libraries=$ac_optarg ;;
12412 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
12413 + -*) { echo "$as_me: error: unrecognized option: $ac_option
12414 +Try \`$0 --help' for more information." >&2
12415 + { (exit 1); exit 1; }; }
12416 ;;
12418 + *=*)
12419 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
12420 + # Reject names that are not valid shell variable names.
12421 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
12422 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
12423 + { (exit 1); exit 1; }; }
12424 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
12425 + eval "$ac_envvar='$ac_optarg'"
12426 + export $ac_envvar ;;
12428 *)
12429 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
12430 - echo "configure: warning: $ac_option: invalid host type" 1>&2
12431 - fi
12432 - if test "x$nonopt" != xNONE; then
12433 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
12434 - fi
12435 - nonopt="$ac_option"
12436 + # FIXME: should be removed in autoconf 3.0.
12437 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
12438 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
12439 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
12440 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
12441 ;;
12443 esac
12444 done
12446 if test -n "$ac_prev"; then
12447 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
12448 -fi
12450 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
12452 -# File descriptor usage:
12453 -# 0 standard input
12454 -# 1 file creation
12455 -# 2 errors and warnings
12456 -# 3 some systems may open it to /dev/tty
12457 -# 4 used on the Kubota Titan
12458 -# 6 checking for... messages and results
12459 -# 5 compiler messages saved in config.log
12460 -if test "$silent" = yes; then
12461 - exec 6>/dev/null
12462 -else
12463 - exec 6>&1
12464 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
12465 + { echo "$as_me: error: missing argument to $ac_option" >&2
12466 + { (exit 1); exit 1; }; }
12467 fi
12468 -exec 5>./config.log
12470 -echo "\
12471 -This file contains any messages produced by compilers while
12472 -running configure, to aid debugging if configure makes a mistake.
12473 -" 1>&5
12474 +# Be sure to have absolute paths.
12475 +for ac_var in exec_prefix prefix
12476 +do
12477 + eval ac_val=$`echo $ac_var`
12478 + case $ac_val in
12479 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
12480 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12481 + { (exit 1); exit 1; }; };;
12482 + esac
12483 +done
12485 -# Strip out --no-create and --no-recursion so they do not pile up.
12486 -# Also quote any args containing shell metacharacters.
12487 -ac_configure_args=
12488 -for ac_arg
12489 +# Be sure to have absolute paths.
12490 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
12491 + localstatedir libdir includedir oldincludedir infodir mandir
12492 do
12493 - case "$ac_arg" in
12494 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
12495 - | --no-cr | --no-c) ;;
12496 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
12497 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
12498 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
12499 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
12500 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
12501 + eval ac_val=$`echo $ac_var`
12502 + case $ac_val in
12503 + [\\/$]* | ?:[\\/]* ) ;;
12504 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
12505 + { (exit 1); exit 1; }; };;
12506 esac
12507 done
12509 -# NLS nuisances.
12510 -# Only set these to C if already set. These must not be set unconditionally
12511 -# because not all systems understand e.g. LANG=C (notably SCO).
12512 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
12513 -# Non-C LC_CTYPE values break the ctype check.
12514 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
12515 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
12516 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
12517 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
12518 +# There might be people who depend on the old broken behavior: `$host'
12519 +# used to hold the argument of --host etc.
12520 +# FIXME: To remove some day.
12521 +build=$build_alias
12522 +host=$host_alias
12523 +target=$target_alias
12525 +# FIXME: To remove some day.
12526 +if test "x$host_alias" != x; then
12527 + if test "x$build_alias" = x; then
12528 + cross_compiling=maybe
12529 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
12530 + If a cross compiler is detected then cross compile mode will be used." >&2
12531 + elif test "x$build_alias" != "x$host_alias"; then
12532 + cross_compiling=yes
12533 + fi
12534 +fi
12536 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
12537 -rm -rf conftest* confdefs.h
12538 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
12539 -echo > confdefs.h
12540 +ac_tool_prefix=
12541 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
12543 +test "$silent" = yes && exec 6>/dev/null
12545 -# A filename unique to this package, relative to the directory that
12546 -# configure is in, which we can look for to find out if srcdir is correct.
12547 -ac_unique_file=libstroke/stroke.c
12549 # Find the source files, if location was not specified.
12550 if test -z "$srcdir"; then
12551 ac_srcdir_defaulted=yes
12552 # Try the directory containing this script, then its parent.
12553 - ac_prog=$0
12554 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
12555 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
12556 + ac_confdir=`(dirname "$0") 2>/dev/null ||
12557 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12558 + X"$0" : 'X\(//\)[^/]' \| \
12559 + X"$0" : 'X\(//\)$' \| \
12560 + X"$0" : 'X\(/\)' \| \
12561 + . : '\(.\)' 2>/dev/null ||
12562 +echo X"$0" |
12563 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12564 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12565 + /^X\(\/\/\)$/{ s//\1/; q; }
12566 + /^X\(\/\).*/{ s//\1/; q; }
12567 + s/.*/./; q'`
12568 srcdir=$ac_confdir
12569 if test ! -r $srcdir/$ac_unique_file; then
12570 srcdir=..
12571 @@ -492,681 +881,1919 @@ else
12572 fi
12573 if test ! -r $srcdir/$ac_unique_file; then
12574 if test "$ac_srcdir_defaulted" = yes; then
12575 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
12576 - else
12577 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
12578 - fi
12579 -fi
12580 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
12582 -# Prefer explicitly selected file to automatically selected ones.
12583 -if test -z "$CONFIG_SITE"; then
12584 - if test "x$prefix" != xNONE; then
12585 - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
12586 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
12587 + { (exit 1); exit 1; }; }
12588 else
12589 - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
12590 - fi
12591 -fi
12592 -for ac_site_file in $CONFIG_SITE; do
12593 - if test -r "$ac_site_file"; then
12594 - echo "loading site script $ac_site_file"
12595 - . "$ac_site_file"
12596 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
12597 + { (exit 1); exit 1; }; }
12598 fi
12599 -done
12601 -if test -r "$cache_file"; then
12602 - echo "loading cache $cache_file"
12603 - . $cache_file
12604 -else
12605 - echo "creating cache $cache_file"
12606 - > $cache_file
12607 fi
12608 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
12609 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
12610 + { (exit 1); exit 1; }; }
12611 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
12612 +ac_env_build_alias_set=${build_alias+set}
12613 +ac_env_build_alias_value=$build_alias
12614 +ac_cv_env_build_alias_set=${build_alias+set}
12615 +ac_cv_env_build_alias_value=$build_alias
12616 +ac_env_host_alias_set=${host_alias+set}
12617 +ac_env_host_alias_value=$host_alias
12618 +ac_cv_env_host_alias_set=${host_alias+set}
12619 +ac_cv_env_host_alias_value=$host_alias
12620 +ac_env_target_alias_set=${target_alias+set}
12621 +ac_env_target_alias_value=$target_alias
12622 +ac_cv_env_target_alias_set=${target_alias+set}
12623 +ac_cv_env_target_alias_value=$target_alias
12624 +ac_env_CC_set=${CC+set}
12625 +ac_env_CC_value=$CC
12626 +ac_cv_env_CC_set=${CC+set}
12627 +ac_cv_env_CC_value=$CC
12628 +ac_env_CFLAGS_set=${CFLAGS+set}
12629 +ac_env_CFLAGS_value=$CFLAGS
12630 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
12631 +ac_cv_env_CFLAGS_value=$CFLAGS
12632 +ac_env_LDFLAGS_set=${LDFLAGS+set}
12633 +ac_env_LDFLAGS_value=$LDFLAGS
12634 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
12635 +ac_cv_env_LDFLAGS_value=$LDFLAGS
12636 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
12637 +ac_env_CPPFLAGS_value=$CPPFLAGS
12638 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
12639 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
12640 +ac_env_CPP_set=${CPP+set}
12641 +ac_env_CPP_value=$CPP
12642 +ac_cv_env_CPP_set=${CPP+set}
12643 +ac_cv_env_CPP_value=$CPP
12644 +ac_env_CXX_set=${CXX+set}
12645 +ac_env_CXX_value=$CXX
12646 +ac_cv_env_CXX_set=${CXX+set}
12647 +ac_cv_env_CXX_value=$CXX
12648 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
12649 +ac_env_CXXFLAGS_value=$CXXFLAGS
12650 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
12651 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
12652 +ac_env_CXXCPP_set=${CXXCPP+set}
12653 +ac_env_CXXCPP_value=$CXXCPP
12654 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
12655 +ac_cv_env_CXXCPP_value=$CXXCPP
12656 +ac_env_F77_set=${F77+set}
12657 +ac_env_F77_value=$F77
12658 +ac_cv_env_F77_set=${F77+set}
12659 +ac_cv_env_F77_value=$F77
12660 +ac_env_FFLAGS_set=${FFLAGS+set}
12661 +ac_env_FFLAGS_value=$FFLAGS
12662 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
12663 +ac_cv_env_FFLAGS_value=$FFLAGS
12665 -ac_ext=c
12666 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12667 -ac_cpp='$CPP $CPPFLAGS'
12668 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12669 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12670 -cross_compiling=$ac_cv_prog_cc_cross
12672 -ac_exeext=
12673 -ac_objext=o
12674 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
12675 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
12676 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
12677 - ac_n= ac_c='
12678 -' ac_t=' '
12679 - else
12680 - ac_n=-n ac_c= ac_t=
12681 - fi
12682 -else
12683 - ac_n= ac_c='\c' ac_t=
12684 -fi
12685 +#
12686 +# Report the --help message.
12687 +#
12688 +if test "$ac_init_help" = "long"; then
12689 + # Omit some internal or obsolete options to make the list less imposing.
12690 + # This message is too long to be a string in the A/UX 3.1 sh.
12691 + cat <<_ACEOF
12692 +\`configure' configures this package to adapt to many kinds of systems.
12694 +Usage: $0 [OPTION]... [VAR=VALUE]...
12696 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
12697 +VAR=VALUE. See below for descriptions of some of the useful variables.
12699 -PACKAGE=libstroke
12700 +Defaults for the options are specified in brackets.
12702 -LIBSTROKE_VERSION=0.5
12703 +Configuration:
12704 + -h, --help display this help and exit
12705 + --help=short display options specific to this package
12706 + --help=recursive display the short help of all the included packages
12707 + -V, --version display version information and exit
12708 + -q, --quiet, --silent do not print \`checking...' messages
12709 + --cache-file=FILE cache test results in FILE [disabled]
12710 + -C, --config-cache alias for \`--cache-file=config.cache'
12711 + -n, --no-create do not create output files
12712 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
12714 -ac_aux_dir=
12715 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
12716 - if test -f $ac_dir/install-sh; then
12717 - ac_aux_dir=$ac_dir
12718 - ac_install_sh="$ac_aux_dir/install-sh -c"
12719 - break
12720 - elif test -f $ac_dir/install.sh; then
12721 - ac_aux_dir=$ac_dir
12722 - ac_install_sh="$ac_aux_dir/install.sh -c"
12723 - break
12724 - fi
12725 -done
12726 -if test -z "$ac_aux_dir"; then
12727 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
12728 -fi
12729 -ac_config_guess=$ac_aux_dir/config.guess
12730 -ac_config_sub=$ac_aux_dir/config.sub
12731 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
12732 +_ACEOF
12734 -# Find a good install program. We prefer a C program (faster),
12735 -# so one script is as good as another. But avoid the broken or
12736 -# incompatible versions:
12737 -# SysV /etc/install, /usr/sbin/install
12738 -# SunOS /usr/etc/install
12739 -# IRIX /sbin/install
12740 -# AIX /bin/install
12741 -# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12742 -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12743 -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12744 -# ./install, which can be erroneously created by make from ./install.sh.
12745 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
12746 -echo "configure:584: checking for a BSD compatible install" >&5
12747 -if test -z "$INSTALL"; then
12748 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
12749 - echo $ac_n "(cached) $ac_c" 1>&6
12750 -else
12751 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
12752 - for ac_dir in $PATH; do
12753 - # Account for people who put trailing slashes in PATH elements.
12754 - case "$ac_dir/" in
12755 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
12756 - *)
12757 - # OSF1 and SCO ODT 3.0 have their own names for install.
12758 - # Don't use installbsd from OSF since it installs stuff as root
12759 - # by default.
12760 - for ac_prog in ginstall scoinst install; do
12761 - if test -f $ac_dir/$ac_prog; then
12762 - if test $ac_prog = install &&
12763 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
12764 - # AIX install. It has an incompatible calling convention.
12765 - :
12766 - else
12767 - ac_cv_path_install="$ac_dir/$ac_prog -c"
12768 - break 2
12769 - fi
12770 - fi
12771 - done
12772 - ;;
12773 - esac
12774 - done
12775 - IFS="$ac_save_IFS"
12776 + cat <<_ACEOF
12777 +Installation directories:
12778 + --prefix=PREFIX install architecture-independent files in PREFIX
12779 + [$ac_default_prefix]
12780 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
12781 + [PREFIX]
12783 +By default, \`make install' will install all the files in
12784 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
12785 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
12786 +for instance \`--prefix=\$HOME'.
12788 +For better control, use the options below.
12790 +Fine tuning of the installation directories:
12791 + --bindir=DIR user executables [EPREFIX/bin]
12792 + --sbindir=DIR system admin executables [EPREFIX/sbin]
12793 + --libexecdir=DIR program executables [EPREFIX/libexec]
12794 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
12795 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
12796 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
12797 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
12798 + --libdir=DIR object code libraries [EPREFIX/lib]
12799 + --includedir=DIR C header files [PREFIX/include]
12800 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
12801 + --infodir=DIR info documentation [PREFIX/info]
12802 + --mandir=DIR man documentation [PREFIX/man]
12803 +_ACEOF
12805 + cat <<\_ACEOF
12807 +Program names:
12808 + --program-prefix=PREFIX prepend PREFIX to installed program names
12809 + --program-suffix=SUFFIX append SUFFIX to installed program names
12810 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
12812 +X features:
12813 + --x-includes=DIR X include files are in DIR
12814 + --x-libraries=DIR X library files are in DIR
12816 +System types:
12817 + --build=BUILD configure for building on BUILD [guessed]
12818 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
12819 +_ACEOF
12820 fi
12821 - if test "${ac_cv_path_install+set}" = set; then
12822 - INSTALL="$ac_cv_path_install"
12823 - else
12824 - # As a last resort, use the slow shell script. We don't cache a
12825 - # path for INSTALL within a source directory, because that will
12826 - # break other packages using the cache if that directory is
12827 - # removed, or if the path is relative.
12828 - INSTALL="$ac_install_sh"
12829 - fi
12830 -fi
12831 -echo "$ac_t""$INSTALL" 1>&6
12833 -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12834 -# It thinks the first close brace ends the variable substitution.
12835 -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12836 +if test -n "$ac_init_help"; then
12838 -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
12839 + cat <<\_ACEOF
12841 -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12842 +Optional Features:
12843 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
12844 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
12845 + --enable-shared[=PKGS]
12846 + build shared libraries [default=yes]
12847 + --enable-static[=PKGS]
12848 + build static libraries [default=yes]
12849 + --enable-fast-install[=PKGS]
12850 + optimize for fast installation [default=yes]
12851 + --disable-dependency-tracking Speeds up one-time builds
12852 + --enable-dependency-tracking Do not reject slow dependency extractors
12853 + --disable-libtool-lock avoid locking (might break parallel builds)
12854 + --enable-maintainer-mode enable make rules and dependencies not useful
12855 + (and sometimes confusing) to the casual installer
12856 + --enable-tcl Compile the tcl bindings
12857 + --disable-gtktest Do not try to compile and run a test GTK program
12859 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
12860 -echo "configure:637: checking whether build environment is sane" >&5
12861 -# Just in case
12862 -sleep 1
12863 -echo timestamp > conftestfile
12864 -# Do `set' in a subshell so we don't clobber the current shell's
12865 -# arguments. Must try -L first in case configure is actually a
12866 -# symlink; some systems play weird games with the mod time of symlinks
12867 -# (eg FreeBSD returns the mod time of the symlink's containing
12868 -# directory).
12869 -if (
12870 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
12871 +Optional Packages:
12872 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
12873 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
12874 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
12875 + --with-pic try to use only PIC/non-PIC objects [default=use
12876 + both]
12877 + --with-tags[=TAGS]
12878 + include additional configurations [automatic]
12879 + --with-x use the X Window System
12880 + --with-mouse-footprints Draw mouse footprints in X
12881 + --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
12882 + --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
12884 +Some influential environment variables:
12885 + CC C compiler command
12886 + CFLAGS C compiler flags
12887 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
12888 + nonstandard directory <lib dir>
12889 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
12890 + headers in a nonstandard directory <include dir>
12891 + CPP C preprocessor
12892 + CXX C++ compiler command
12893 + CXXFLAGS C++ compiler flags
12894 + CXXCPP C++ preprocessor
12895 + F77 Fortran 77 compiler command
12896 + FFLAGS Fortran 77 compiler flags
12898 +Use these variables to override the choices made by `configure' or to help
12899 +it to find libraries and programs with nonstandard names/locations.
12901 +_ACEOF
12902 +fi
12904 +if test "$ac_init_help" = "recursive"; then
12905 + # If there are subdirs, report their specific --help.
12906 + ac_popdir=`pwd`
12907 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
12908 + test -d $ac_dir || continue
12909 + ac_builddir=.
12911 +if test "$ac_dir" != .; then
12912 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12913 + # A "../" for each directory in $ac_dir_suffix.
12914 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12915 +else
12916 + ac_dir_suffix= ac_top_builddir=
12917 +fi
12919 +case $srcdir in
12920 + .) # No --srcdir option. We are building in place.
12921 + ac_srcdir=.
12922 + if test -z "$ac_top_builddir"; then
12923 + ac_top_srcdir=.
12924 + else
12925 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12926 + fi ;;
12927 + [\\/]* | ?:[\\/]* ) # Absolute path.
12928 + ac_srcdir=$srcdir$ac_dir_suffix;
12929 + ac_top_srcdir=$srcdir ;;
12930 + *) # Relative path.
12931 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12932 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
12933 +esac
12934 +case "$ac_dir" in
12935 +.) ac_abs_builddir=$ac_builddir;;
12936 +*)
12937 + case $ac_builddir in
12938 + .) ac_abs_builddir="$ac_dir";;
12939 + [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
12940 + *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
12941 + esac;;
12942 +esac
12943 +case "$ac_dir" in
12944 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
12945 +*)
12946 + case ${ac_top_builddir}. in
12947 + .) ac_abs_top_builddir="$ac_dir";;
12948 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12949 + *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
12950 + esac;;
12951 +esac
12952 +case "$ac_dir" in
12953 +.) ac_abs_srcdir=$ac_srcdir;;
12954 +*)
12955 + case $ac_srcdir in
12956 + .) ac_abs_srcdir="$ac_dir";;
12957 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12958 + *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
12959 + esac;;
12960 +esac
12961 +case "$ac_dir" in
12962 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
12963 +*)
12964 + case $ac_top_srcdir in
12965 + .) ac_abs_top_srcdir="$ac_dir";;
12966 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12967 + *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
12968 + esac;;
12969 +esac
12971 + cd $ac_dir
12972 + # Check for guested configure; otherwise get Cygnus style configure.
12973 + if test -f $ac_srcdir/configure.gnu; then
12974 + echo
12975 + $SHELL $ac_srcdir/configure.gnu --help=recursive
12976 + elif test -f $ac_srcdir/configure; then
12977 + echo
12978 + $SHELL $ac_srcdir/configure --help=recursive
12979 + elif test -f $ac_srcdir/configure.ac ||
12980 + test -f $ac_srcdir/configure.in; then
12981 + echo
12982 + $ac_configure --help
12983 + else
12984 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
12985 + fi
12986 + cd "$ac_popdir"
12987 + done
12988 +fi
12990 +test -n "$ac_init_help" && exit 0
12991 +if $ac_init_version; then
12992 + cat <<\_ACEOF
12994 +Copyright (C) 2003 Free Software Foundation, Inc.
12995 +This configure script is free software; the Free Software Foundation
12996 +gives unlimited permission to copy, distribute and modify it.
12997 +_ACEOF
12998 + exit 0
12999 +fi
13000 +exec 5>config.log
13001 +cat >&5 <<_ACEOF
13002 +This file contains any messages produced by compilers while
13003 +running configure, to aid debugging if configure makes a mistake.
13005 +It was created by $as_me, which was
13006 +generated by GNU Autoconf 2.58. Invocation command line was
13008 + $ $0 $@
13010 +_ACEOF
13011 +{
13012 +cat <<_ASUNAME
13013 +## --------- ##
13014 +## Platform. ##
13015 +## --------- ##
13017 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
13018 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
13019 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
13020 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
13021 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
13023 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
13024 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
13026 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13027 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
13028 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
13029 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
13030 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
13031 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
13032 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
13034 +_ASUNAME
13036 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 +for as_dir in $PATH
13038 +do
13039 + IFS=$as_save_IFS
13040 + test -z "$as_dir" && as_dir=.
13041 + echo "PATH: $as_dir"
13042 +done
13044 +} >&5
13046 +cat >&5 <<_ACEOF
13049 +## ----------- ##
13050 +## Core tests. ##
13051 +## ----------- ##
13053 +_ACEOF
13056 +# Keep a trace of the command line.
13057 +# Strip out --no-create and --no-recursion so they do not pile up.
13058 +# Strip out --silent because we don't want to record it for future runs.
13059 +# Also quote any args containing shell meta-characters.
13060 +# Make two passes to allow for proper duplicate-argument suppression.
13061 +ac_configure_args=
13062 +ac_configure_args0=
13063 +ac_configure_args1=
13064 +ac_sep=
13065 +ac_must_keep_next=false
13066 +for ac_pass in 1 2
13067 +do
13068 + for ac_arg
13069 + do
13070 + case $ac_arg in
13071 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
13072 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13073 + | -silent | --silent | --silen | --sile | --sil)
13074 + continue ;;
13075 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
13076 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13077 + esac
13078 + case $ac_pass in
13079 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
13080 + 2)
13081 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
13082 + if test $ac_must_keep_next = true; then
13083 + ac_must_keep_next=false # Got value, back to normal.
13084 + else
13085 + case $ac_arg in
13086 + *=* | --config-cache | -C | -disable-* | --disable-* \
13087 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
13088 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
13089 + | -with-* | --with-* | -without-* | --without-* | --x)
13090 + case "$ac_configure_args0 " in
13091 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
13092 + esac
13093 + ;;
13094 + -* ) ac_must_keep_next=true ;;
13095 + esac
13096 + fi
13097 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
13098 + # Get rid of the leading space.
13099 + ac_sep=" "
13100 + ;;
13101 + esac
13102 + done
13103 +done
13104 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
13105 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
13107 +# When interrupted or exit'd, cleanup temporary files, and complete
13108 +# config.log. We remove comments because anyway the quotes in there
13109 +# would cause problems or look ugly.
13110 +# WARNING: Be sure not to use single quotes in there, as some shells,
13111 +# such as our DU 5.0 friend, will then `close' the trap.
13112 +trap 'exit_status=$?
13113 + # Save into config.log some information that might help in debugging.
13114 + {
13115 + echo
13117 + cat <<\_ASBOX
13118 +## ---------------- ##
13119 +## Cache variables. ##
13120 +## ---------------- ##
13121 +_ASBOX
13122 + echo
13123 + # The following way of writing the cache mishandles newlines in values,
13124 +{
13125 + (set) 2>&1 |
13126 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
13127 + *ac_space=\ *)
13128 + sed -n \
13129 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
13130 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
13131 + ;;
13132 + *)
13133 + sed -n \
13134 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13135 + ;;
13136 + esac;
13137 +}
13138 + echo
13140 + cat <<\_ASBOX
13141 +## ----------------- ##
13142 +## Output variables. ##
13143 +## ----------------- ##
13144 +_ASBOX
13145 + echo
13146 + for ac_var in $ac_subst_vars
13147 + do
13148 + eval ac_val=$`echo $ac_var`
13149 + echo "$ac_var='"'"'$ac_val'"'"'"
13150 + done | sort
13151 + echo
13153 + if test -n "$ac_subst_files"; then
13154 + cat <<\_ASBOX
13155 +## ------------- ##
13156 +## Output files. ##
13157 +## ------------- ##
13158 +_ASBOX
13159 + echo
13160 + for ac_var in $ac_subst_files
13161 + do
13162 + eval ac_val=$`echo $ac_var`
13163 + echo "$ac_var='"'"'$ac_val'"'"'"
13164 + done | sort
13165 + echo
13166 + fi
13168 + if test -s confdefs.h; then
13169 + cat <<\_ASBOX
13170 +## ----------- ##
13171 +## confdefs.h. ##
13172 +## ----------- ##
13173 +_ASBOX
13174 + echo
13175 + sed "/^$/d" confdefs.h | sort
13176 + echo
13177 + fi
13178 + test "$ac_signal" != 0 &&
13179 + echo "$as_me: caught signal $ac_signal"
13180 + echo "$as_me: exit $exit_status"
13181 + } >&5
13182 + rm -f core *.core &&
13183 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
13184 + exit $exit_status
13185 + ' 0
13186 +for ac_signal in 1 2 13 15; do
13187 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
13188 +done
13189 +ac_signal=0
13191 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
13192 +rm -rf conftest* confdefs.h
13193 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
13194 +echo >confdefs.h
13196 +# Predefined preprocessor variables.
13198 +cat >>confdefs.h <<_ACEOF
13199 +#define PACKAGE_NAME "$PACKAGE_NAME"
13200 +_ACEOF
13203 +cat >>confdefs.h <<_ACEOF
13204 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
13205 +_ACEOF
13208 +cat >>confdefs.h <<_ACEOF
13209 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
13210 +_ACEOF
13213 +cat >>confdefs.h <<_ACEOF
13214 +#define PACKAGE_STRING "$PACKAGE_STRING"
13215 +_ACEOF
13218 +cat >>confdefs.h <<_ACEOF
13219 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
13220 +_ACEOF
13223 +# Let the site file select an alternate cache file if it wants to.
13224 +# Prefer explicitly selected file to automatically selected ones.
13225 +if test -z "$CONFIG_SITE"; then
13226 + if test "x$prefix" != xNONE; then
13227 + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
13228 + else
13229 + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
13230 + fi
13231 +fi
13232 +for ac_site_file in $CONFIG_SITE; do
13233 + if test -r "$ac_site_file"; then
13234 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
13235 +echo "$as_me: loading site script $ac_site_file" >&6;}
13236 + sed 's/^/| /' "$ac_site_file" >&5
13237 + . "$ac_site_file"
13238 + fi
13239 +done
13241 +if test -r "$cache_file"; then
13242 + # Some versions of bash will fail to source /dev/null (special
13243 + # files actually), so we avoid doing that.
13244 + if test -f "$cache_file"; then
13245 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
13246 +echo "$as_me: loading cache $cache_file" >&6;}
13247 + case $cache_file in
13248 + [\\/]* | ?:[\\/]* ) . $cache_file;;
13249 + *) . ./$cache_file;;
13250 + esac
13251 + fi
13252 +else
13253 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
13254 +echo "$as_me: creating cache $cache_file" >&6;}
13255 + >$cache_file
13256 +fi
13258 +# Check that the precious variables saved in the cache have kept the same
13259 +# value.
13260 +ac_cache_corrupted=false
13261 +for ac_var in `(set) 2>&1 |
13262 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
13263 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
13264 + eval ac_new_set=\$ac_env_${ac_var}_set
13265 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
13266 + eval ac_new_val="\$ac_env_${ac_var}_value"
13267 + case $ac_old_set,$ac_new_set in
13268 + set,)
13269 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
13270 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13271 + ac_cache_corrupted=: ;;
13272 + ,set)
13273 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
13274 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13275 + ac_cache_corrupted=: ;;
13276 + ,);;
13277 + *)
13278 + if test "x$ac_old_val" != "x$ac_new_val"; then
13279 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
13280 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
13281 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
13282 +echo "$as_me: former value: $ac_old_val" >&2;}
13283 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
13284 +echo "$as_me: current value: $ac_new_val" >&2;}
13285 + ac_cache_corrupted=:
13286 + fi;;
13287 + esac
13288 + # Pass precious variables to config.status.
13289 + if test "$ac_new_set" = set; then
13290 + case $ac_new_val in
13291 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
13292 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13293 + *) ac_arg=$ac_var=$ac_new_val ;;
13294 + esac
13295 + case " $ac_configure_args " in
13296 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
13297 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
13298 + esac
13299 + fi
13300 +done
13301 +if $ac_cache_corrupted; then
13302 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
13303 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
13304 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
13305 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
13306 + { (exit 1); exit 1; }; }
13307 +fi
13309 +ac_ext=c
13310 +ac_cpp='$CPP $CPPFLAGS'
13311 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13312 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13313 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
13334 +PACKAGE=libstroke
13336 +LIBSTROKE_VERSION=0.5
13338 +am__api_version="1.7"
13339 +ac_aux_dir=
13340 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
13341 + if test -f $ac_dir/install-sh; then
13342 + ac_aux_dir=$ac_dir
13343 + ac_install_sh="$ac_aux_dir/install-sh -c"
13344 + break
13345 + elif test -f $ac_dir/install.sh; then
13346 + ac_aux_dir=$ac_dir
13347 + ac_install_sh="$ac_aux_dir/install.sh -c"
13348 + break
13349 + elif test -f $ac_dir/shtool; then
13350 + ac_aux_dir=$ac_dir
13351 + ac_install_sh="$ac_aux_dir/shtool install -c"
13352 + break
13353 + fi
13354 +done
13355 +if test -z "$ac_aux_dir"; then
13356 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
13357 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
13358 + { (exit 1); exit 1; }; }
13359 +fi
13360 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
13361 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
13362 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
13364 +# Find a good install program. We prefer a C program (faster),
13365 +# so one script is as good as another. But avoid the broken or
13366 +# incompatible versions:
13367 +# SysV /etc/install, /usr/sbin/install
13368 +# SunOS /usr/etc/install
13369 +# IRIX /sbin/install
13370 +# AIX /bin/install
13371 +# AmigaOS /C/install, which installs bootblocks on floppy discs
13372 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13373 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
13374 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13375 +# OS/2's system install, which has a completely different semantic
13376 +# ./install, which can be erroneously created by make from ./install.sh.
13377 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13378 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
13379 +if test -z "$INSTALL"; then
13380 +if test "${ac_cv_path_install+set}" = set; then
13381 + echo $ECHO_N "(cached) $ECHO_C" >&6
13382 +else
13383 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13384 +for as_dir in $PATH
13385 +do
13386 + IFS=$as_save_IFS
13387 + test -z "$as_dir" && as_dir=.
13388 + # Account for people who put trailing slashes in PATH elements.
13389 +case $as_dir/ in
13390 + ./ | .// | /cC/* | \
13391 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13392 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13393 + /usr/ucb/* ) ;;
13394 + *)
13395 + # OSF1 and SCO ODT 3.0 have their own names for install.
13396 + # Don't use installbsd from OSF since it installs stuff as root
13397 + # by default.
13398 + for ac_prog in ginstall scoinst install; do
13399 + for ac_exec_ext in '' $ac_executable_extensions; do
13400 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13401 + if test $ac_prog = install &&
13402 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13403 + # AIX install. It has an incompatible calling convention.
13404 + :
13405 + elif test $ac_prog = install &&
13406 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13407 + # program-specific install script used by HP pwplus--don't use.
13408 + :
13409 + else
13410 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13411 + break 3
13412 + fi
13413 + fi
13414 + done
13415 + done
13416 + ;;
13417 +esac
13418 +done
13421 +fi
13422 + if test "${ac_cv_path_install+set}" = set; then
13423 + INSTALL=$ac_cv_path_install
13424 + else
13425 + # As a last resort, use the slow shell script. We don't cache a
13426 + # path for INSTALL within a source directory, because that will
13427 + # break other packages using the cache if that directory is
13428 + # removed, or if the path is relative.
13429 + INSTALL=$ac_install_sh
13430 + fi
13431 +fi
13432 +echo "$as_me:$LINENO: result: $INSTALL" >&5
13433 +echo "${ECHO_T}$INSTALL" >&6
13435 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13436 +# It thinks the first close brace ends the variable substitution.
13437 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13439 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13441 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13443 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
13444 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
13445 +# Just in case
13446 +sleep 1
13447 +echo timestamp > conftest.file
13448 +# Do `set' in a subshell so we don't clobber the current shell's
13449 +# arguments. Must try -L first in case configure is actually a
13450 +# symlink; some systems play weird games with the mod time of symlinks
13451 +# (eg FreeBSD returns the mod time of the symlink's containing
13452 +# directory).
13453 +if (
13454 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
13455 if test "$*" = "X"; then
13456 # -L didn't work.
13457 - set X `ls -t $srcdir/configure conftestfile`
13458 + set X `ls -t $srcdir/configure conftest.file`
13459 fi
13460 - if test "$*" != "X $srcdir/configure conftestfile" \
13461 - && test "$*" != "X conftestfile $srcdir/configure"; then
13462 + rm -f conftest.file
13463 + if test "$*" != "X $srcdir/configure conftest.file" \
13464 + && test "$*" != "X conftest.file $srcdir/configure"; then
13466 # If neither matched, then we have a broken ls. This can happen
13467 # if, for instance, CONFIG_SHELL is bash and it inherits a
13468 # broken ls alias from the environment. This has actually
13469 # happened. Such a system could not be considered "sane".
13470 - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
13471 -alias in your environment" 1>&2; exit 1; }
13472 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
13473 +alias in your environment" >&5
13474 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
13475 +alias in your environment" >&2;}
13476 + { (exit 1); exit 1; }; }
13477 fi
13479 - test "$2" = conftestfile
13480 + test "$2" = conftest.file
13482 then
13483 # Ok.
13485 else
13486 - { echo "configure: error: newly created file is older than distributed files!
13487 -Check your system clock" 1>&2; exit 1; }
13488 -fi
13489 -rm -f conftest*
13490 -echo "$ac_t""yes" 1>&6
13491 -if test "$program_transform_name" = s,x,x,; then
13492 - program_transform_name=
13493 -else
13494 - # Double any \ or $. echo might interpret backslashes.
13495 - cat <<\EOF_SED > conftestsed
13496 -s,\\,\\\\,g; s,\$,$$,g
13497 -EOF_SED
13498 - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
13499 - rm -f conftestsed
13500 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
13501 +Check your system clock" >&5
13502 +echo "$as_me: error: newly created file is older than distributed files!
13503 +Check your system clock" >&2;}
13504 + { (exit 1); exit 1; }; }
13505 fi
13506 +echo "$as_me:$LINENO: result: yes" >&5
13507 +echo "${ECHO_T}yes" >&6
13508 test "$program_prefix" != NONE &&
13509 - program_transform_name="s,^,${program_prefix},; $program_transform_name"
13510 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
13511 # Use a double $ so make ignores it.
13512 test "$program_suffix" != NONE &&
13513 - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
13514 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
13515 +# Double any \ or $. echo might interpret backslashes.
13516 +# By default was `s,x,x', remove it if useless.
13517 +cat <<\_ACEOF >conftest.sed
13518 +s/[\\$]/&&/g;s/;s,x,x,$//
13519 +_ACEOF
13520 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13521 +rm conftest.sed
13524 +# expand $ac_aux_dir to an absolute path
13525 +am_aux_dir=`cd $ac_aux_dir && pwd`
13527 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
13528 +# Use eval to expand $SHELL
13529 +if eval "$MISSING --run true"; then
13530 + am_missing_run="$MISSING --run "
13531 +else
13532 + am_missing_run=
13533 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
13534 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13535 +fi
13537 +for ac_prog in gawk mawk nawk awk
13538 +do
13539 + # Extract the first word of "$ac_prog", so it can be a program name with args.
13540 +set dummy $ac_prog; ac_word=$2
13541 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13542 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13543 +if test "${ac_cv_prog_AWK+set}" = set; then
13544 + echo $ECHO_N "(cached) $ECHO_C" >&6
13545 +else
13546 + if test -n "$AWK"; then
13547 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
13548 +else
13549 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13550 +for as_dir in $PATH
13551 +do
13552 + IFS=$as_save_IFS
13553 + test -z "$as_dir" && as_dir=.
13554 + for ac_exec_ext in '' $ac_executable_extensions; do
13555 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13556 + ac_cv_prog_AWK="$ac_prog"
13557 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13558 + break 2
13559 + fi
13560 +done
13561 +done
13563 +fi
13564 +fi
13565 +AWK=$ac_cv_prog_AWK
13566 +if test -n "$AWK"; then
13567 + echo "$as_me:$LINENO: result: $AWK" >&5
13568 +echo "${ECHO_T}$AWK" >&6
13569 +else
13570 + echo "$as_me:$LINENO: result: no" >&5
13571 +echo "${ECHO_T}no" >&6
13572 +fi
13574 -# sed with no file args requires a program.
13575 -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
13576 + test -n "$AWK" && break
13577 +done
13579 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
13580 -echo "configure:694: checking whether ${MAKE-make} sets \${MAKE}" >&5
13581 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
13582 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
13583 - echo $ac_n "(cached) $ac_c" 1>&6
13584 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13585 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
13586 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
13587 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
13588 + echo $ECHO_N "(cached) $ECHO_C" >&6
13589 else
13590 - cat > conftestmake <<\EOF
13591 + cat >conftest.make <<\_ACEOF
13592 all:
13593 - @echo 'ac_maketemp="${MAKE}"'
13594 -EOF
13595 + @echo 'ac_maketemp="$(MAKE)"'
13596 +_ACEOF
13597 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13598 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
13599 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
13600 if test -n "$ac_maketemp"; then
13601 eval ac_cv_prog_make_${ac_make}_set=yes
13602 else
13603 eval ac_cv_prog_make_${ac_make}_set=no
13604 fi
13605 -rm -f conftestmake
13606 +rm -f conftest.make
13607 fi
13608 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
13609 - echo "$ac_t""yes" 1>&6
13610 + echo "$as_me:$LINENO: result: yes" >&5
13611 +echo "${ECHO_T}yes" >&6
13612 SET_MAKE=
13613 else
13614 - echo "$ac_t""no" 1>&6
13615 + echo "$as_me:$LINENO: result: no" >&5
13616 +echo "${ECHO_T}no" >&6
13617 SET_MAKE="MAKE=${MAKE-make}"
13618 fi
13620 +rm -rf .tst 2>/dev/null
13621 +mkdir .tst 2>/dev/null
13622 +if test -d .tst; then
13623 + am__leading_dot=.
13624 +else
13625 + am__leading_dot=_
13626 +fi
13627 +rmdir .tst 2>/dev/null
13629 + # test to see if srcdir already configured
13630 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
13631 + test -f $srcdir/config.status; then
13632 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
13633 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
13634 + { (exit 1); exit 1; }; }
13635 +fi
13637 +# test whether we have cygpath
13638 +if test -z "$CYGPATH_W"; then
13639 + if (cygpath --version) >/dev/null 2>/dev/null; then
13640 + CYGPATH_W='cygpath -w'
13641 + else
13642 + CYGPATH_W=echo
13643 + fi
13644 +fi
13646 -PACKAGE=$PACKAGE
13648 -VERSION=$LIBSTROKE_VERSION
13649 +# Define the identity of the package.
13650 + PACKAGE=$PACKAGE
13651 + VERSION=$LIBSTROKE_VERSION
13653 -if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
13654 - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
13655 -fi
13657 +# Some tools Automake needs.
13659 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13662 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13665 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13667 -missing_dir=`cd $ac_aux_dir && pwd`
13668 -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
13669 -echo "configure:733: checking for working aclocal" >&5
13670 -# Run test in a subshell; some versions of sh will print an error if
13671 -# an executable is not found, even if stderr is redirected.
13672 -# Redirect stdin to placate older versions of autoconf. Sigh.
13673 -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
13674 - ACLOCAL=aclocal
13675 - echo "$ac_t""found" 1>&6
13677 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13680 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13683 +AMTAR=${AMTAR-"${am_missing_run}tar"}
13685 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
13687 +# Installed binaries are usually stripped using `strip' when the user
13688 +# run `make install-strip'. However `strip' might not be the right
13689 +# tool to use in cross-compilation environments, therefore Automake
13690 +# will honor the `STRIP' environment variable to overrule this program.
13691 +if test "$cross_compiling" != no; then
13692 + if test -n "$ac_tool_prefix"; then
13693 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13694 +set dummy ${ac_tool_prefix}strip; ac_word=$2
13695 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13696 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13697 +if test "${ac_cv_prog_STRIP+set}" = set; then
13698 + echo $ECHO_N "(cached) $ECHO_C" >&6
13699 +else
13700 + if test -n "$STRIP"; then
13701 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13702 else
13703 - ACLOCAL="$missing_dir/missing aclocal"
13704 - echo "$ac_t""missing" 1>&6
13705 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 +for as_dir in $PATH
13707 +do
13708 + IFS=$as_save_IFS
13709 + test -z "$as_dir" && as_dir=.
13710 + for ac_exec_ext in '' $ac_executable_extensions; do
13711 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13713 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 + break 2
13715 + fi
13716 +done
13717 +done
13719 +fi
13720 +fi
13721 +STRIP=$ac_cv_prog_STRIP
13722 +if test -n "$STRIP"; then
13723 + echo "$as_me:$LINENO: result: $STRIP" >&5
13724 +echo "${ECHO_T}$STRIP" >&6
13725 +else
13726 + echo "$as_me:$LINENO: result: no" >&5
13727 +echo "${ECHO_T}no" >&6
13728 fi
13730 -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
13731 -echo "configure:746: checking for working autoconf" >&5
13732 -# Run test in a subshell; some versions of sh will print an error if
13733 -# an executable is not found, even if stderr is redirected.
13734 -# Redirect stdin to placate older versions of autoconf. Sigh.
13735 -if (autoconf --version) < /dev/null > /dev/null 2>&1; then
13736 - AUTOCONF=autoconf
13737 - echo "$ac_t""found" 1>&6
13738 -else
13739 - AUTOCONF="$missing_dir/missing autoconf"
13740 - echo "$ac_t""missing" 1>&6
13741 fi
13742 +if test -z "$ac_cv_prog_STRIP"; then
13743 + ac_ct_STRIP=$STRIP
13744 + # Extract the first word of "strip", so it can be a program name with args.
13745 +set dummy strip; ac_word=$2
13746 +echo "$as_me:$LINENO: checking for $ac_word" >&5
13747 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13748 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
13749 + echo $ECHO_N "(cached) $ECHO_C" >&6
13750 +else
13751 + if test -n "$ac_ct_STRIP"; then
13752 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13753 +else
13754 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 +for as_dir in $PATH
13756 +do
13757 + IFS=$as_save_IFS
13758 + test -z "$as_dir" && as_dir=.
13759 + for ac_exec_ext in '' $ac_executable_extensions; do
13760 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13761 + ac_cv_prog_ac_ct_STRIP="strip"
13762 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13763 + break 2
13764 + fi
13765 +done
13766 +done
13768 -echo $ac_n "checking for working automake""... $ac_c" 1>&6
13769 -echo "configure:759: checking for working automake" >&5
13770 -# Run test in a subshell; some versions of sh will print an error if
13771 -# an executable is not found, even if stderr is redirected.
13772 -# Redirect stdin to placate older versions of autoconf. Sigh.
13773 -if (automake --version) < /dev/null > /dev/null 2>&1; then
13774 - AUTOMAKE=automake
13775 - echo "$ac_t""found" 1>&6
13776 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
13777 +fi
13778 +fi
13779 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13780 +if test -n "$ac_ct_STRIP"; then
13781 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
13782 +echo "${ECHO_T}$ac_ct_STRIP" >&6
13783 else
13784 - AUTOMAKE="$missing_dir/missing automake"
13785 - echo "$ac_t""missing" 1>&6
13786 + echo "$as_me:$LINENO: result: no" >&5
13787 +echo "${ECHO_T}no" >&6
13788 fi
13790 -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
13791 -echo "configure:772: checking for working autoheader" >&5
13792 -# Run test in a subshell; some versions of sh will print an error if
13793 -# an executable is not found, even if stderr is redirected.
13794 -# Redirect stdin to placate older versions of autoconf. Sigh.
13795 -if (autoheader --version) < /dev/null > /dev/null 2>&1; then
13796 - AUTOHEADER=autoheader
13797 - echo "$ac_t""found" 1>&6
13798 + STRIP=$ac_ct_STRIP
13799 else
13800 - AUTOHEADER="$missing_dir/missing autoheader"
13801 - echo "$ac_t""missing" 1>&6
13802 + STRIP="$ac_cv_prog_STRIP"
13803 fi
13805 -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
13806 -echo "configure:785: checking for working makeinfo" >&5
13807 -# Run test in a subshell; some versions of sh will print an error if
13808 -# an executable is not found, even if stderr is redirected.
13809 -# Redirect stdin to placate older versions of autoconf. Sigh.
13810 -if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
13811 - MAKEINFO=makeinfo
13812 - echo "$ac_t""found" 1>&6
13813 -else
13814 - MAKEINFO="$missing_dir/missing makeinfo"
13815 - echo "$ac_t""missing" 1>&6
13816 fi
13817 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
13819 +# We need awk for the "check" target. The system "awk" is bad on
13820 +# some platforms.
13825 + ac_config_headers="$ac_config_headers config.h"
13828 -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
13829 -echo "configure:804: checking whether build environment is sane" >&5
13830 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
13831 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
13832 # Just in case
13833 sleep 1
13834 -echo timestamp > conftestfile
13835 +echo timestamp > conftest.file
13836 # Do `set' in a subshell so we don't clobber the current shell's
13837 # arguments. Must try -L first in case configure is actually a
13838 # symlink; some systems play weird games with the mod time of symlinks
13839 # (eg FreeBSD returns the mod time of the symlink's containing
13840 # directory).
13841 if (
13842 - set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
13843 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
13844 if test "$*" = "X"; then
13845 # -L didn't work.
13846 - set X `ls -t $srcdir/configure conftestfile`
13847 + set X `ls -t $srcdir/configure conftest.file`
13848 fi
13849 - if test "$*" != "X $srcdir/configure conftestfile" \
13850 - && test "$*" != "X conftestfile $srcdir/configure"; then
13851 + rm -f conftest.file
13852 + if test "$*" != "X $srcdir/configure conftest.file" \
13853 + && test "$*" != "X conftest.file $srcdir/configure"; then
13855 # If neither matched, then we have a broken ls. This can happen
13856 # if, for instance, CONFIG_SHELL is bash and it inherits a
13857 # broken ls alias from the environment. This has actually
13858 # happened. Such a system could not be considered "sane".
13859 - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
13860 -alias in your environment" 1>&2; exit 1; }
13861 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
13862 +alias in your environment" >&5
13863 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
13864 +alias in your environment" >&2;}
13865 + { (exit 1); exit 1; }; }
13866 fi
13868 - test "$2" = conftestfile
13869 + test "$2" = conftest.file
13871 then
13872 # Ok.
13874 else
13875 - { echo "configure: error: newly created file is older than distributed files!
13876 -Check your system clock" 1>&2; exit 1; }
13877 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
13878 +Check your system clock" >&5
13879 +echo "$as_me: error: newly created file is older than distributed files!
13880 +Check your system clock" >&2;}
13881 + { (exit 1); exit 1; }; }
13882 fi
13883 -rm -f conftest*
13884 -echo "$ac_t""yes" 1>&6
13885 +echo "$as_me:$LINENO: result: yes" >&5
13886 +echo "${ECHO_T}yes" >&6
13888 # Check whether --enable-shared or --disable-shared was given.
13889 if test "${enable_shared+set}" = set; then
13890 enableval="$enable_shared"
13891 p=${PACKAGE-default}
13892 -case "$enableval" in
13893 -yes) enable_shared=yes ;;
13894 -no) enable_shared=no ;;
13895 -*)
13896 - enable_shared=no
13897 - # Look at the argument we got. We use all the common list separators.
13898 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
13899 - for pkg in $enableval; do
13900 - if test "X$pkg" = "X$p"; then
13901 - enable_shared=yes
13902 - fi
13903 - done
13904 - IFS="$ac_save_ifs"
13905 - ;;
13906 -esac
13907 -else
13908 + case $enableval in
13909 + yes) enable_shared=yes ;;
13910 + no) enable_shared=no ;;
13911 + *)
13912 + enable_shared=no
13913 + # Look at the argument we got. We use all the common list separators.
13914 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13915 + for pkg in $enableval; do
13916 + IFS="$lt_save_ifs"
13917 + if test "X$pkg" = "X$p"; then
13918 + enable_shared=yes
13919 + fi
13920 + done
13921 + IFS="$lt_save_ifs"
13922 + ;;
13923 + esac
13924 +else
13925 enable_shared=yes
13926 -fi
13927 +fi;
13929 # Check whether --enable-static or --disable-static was given.
13930 if test "${enable_static+set}" = set; then
13931 enableval="$enable_static"
13932 p=${PACKAGE-default}
13933 -case "$enableval" in
13934 -yes) enable_static=yes ;;
13935 -no) enable_static=no ;;
13936 -*)
13937 - enable_static=no
13938 - # Look at the argument we got. We use all the common list separators.
13939 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
13940 - for pkg in $enableval; do
13941 - if test "X$pkg" = "X$p"; then
13942 - enable_static=yes
13943 - fi
13944 - done
13945 - IFS="$ac_save_ifs"
13946 - ;;
13947 -esac
13948 + case $enableval in
13949 + yes) enable_static=yes ;;
13950 + no) enable_static=no ;;
13951 + *)
13952 + enable_static=no
13953 + # Look at the argument we got. We use all the common list separators.
13954 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13955 + for pkg in $enableval; do
13956 + IFS="$lt_save_ifs"
13957 + if test "X$pkg" = "X$p"; then
13958 + enable_static=yes
13959 + fi
13960 + done
13961 + IFS="$lt_save_ifs"
13962 + ;;
13963 + esac
13964 else
13965 enable_static=yes
13966 -fi
13967 +fi;
13969 +# Check whether --enable-fast-install or --disable-fast-install was given.
13970 +if test "${enable_fast_install+set}" = set; then
13971 + enableval="$enable_fast_install"
13972 + p=${PACKAGE-default}
13973 + case $enableval in
13974 + yes) enable_fast_install=yes ;;
13975 + no) enable_fast_install=no ;;
13976 + *)
13977 + enable_fast_install=no
13978 + # Look at the argument we got. We use all the common list separators.
13979 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13980 + for pkg in $enableval; do
13981 + IFS="$lt_save_ifs"
13982 + if test "X$pkg" = "X$p"; then
13983 + enable_fast_install=yes
13984 + fi
13985 + done
13986 + IFS="$lt_save_ifs"
13987 + ;;
13988 + esac
13989 +else
13990 + enable_fast_install=yes
13991 +fi;
13993 # Make sure we can run config.sub.
13994 -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
13995 -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
13996 +$ac_config_sub sun4 >/dev/null 2>&1 ||
13997 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
13998 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
13999 + { (exit 1); exit 1; }; }
14001 +echo "$as_me:$LINENO: checking build system type" >&5
14002 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
14003 +if test "${ac_cv_build+set}" = set; then
14004 + echo $ECHO_N "(cached) $ECHO_C" >&6
14005 +else
14006 + ac_cv_build_alias=$build_alias
14007 +test -z "$ac_cv_build_alias" &&
14008 + ac_cv_build_alias=`$ac_config_guess`
14009 +test -z "$ac_cv_build_alias" &&
14010 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
14011 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
14012 + { (exit 1); exit 1; }; }
14013 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
14014 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
14015 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
14016 + { (exit 1); exit 1; }; }
14018 +fi
14019 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
14020 +echo "${ECHO_T}$ac_cv_build" >&6
14021 +build=$ac_cv_build
14022 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14023 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14024 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14027 +echo "$as_me:$LINENO: checking host system type" >&5
14028 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
14029 +if test "${ac_cv_host+set}" = set; then
14030 + echo $ECHO_N "(cached) $ECHO_C" >&6
14031 +else
14032 + ac_cv_host_alias=$host_alias
14033 +test -z "$ac_cv_host_alias" &&
14034 + ac_cv_host_alias=$ac_cv_build_alias
14035 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
14036 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
14037 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
14038 + { (exit 1); exit 1; }; }
14040 +fi
14041 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
14042 +echo "${ECHO_T}$ac_cv_host" >&6
14043 +host=$ac_cv_host
14044 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14045 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14046 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14049 +DEPDIR="${am__leading_dot}deps"
14051 + ac_config_commands="$ac_config_commands depfiles"
14054 +am_make=${MAKE-make}
14055 +cat > confinc << 'END'
14056 +am__doit:
14057 + @echo done
14058 +.PHONY: am__doit
14059 +END
14060 +# If we don't find an include directive, just comment out the code.
14061 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
14062 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
14063 +am__include="#"
14064 +am__quote=
14065 +_am_result=none
14066 +# First try GNU make style include.
14067 +echo "include confinc" > confmf
14068 +# We grep out `Entering directory' and `Leaving directory'
14069 +# messages which can occur if `w' ends up in MAKEFLAGS.
14070 +# In particular we don't look at `^make:' because GNU make might
14071 +# be invoked under some other name (usually "gmake"), in which
14072 +# case it prints its new name instead of `make'.
14073 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
14074 + am__include=include
14075 + am__quote=
14076 + _am_result=GNU
14077 +fi
14078 +# Now try BSD make style include.
14079 +if test "$am__include" = "#"; then
14080 + echo '.include "confinc"' > confmf
14081 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
14082 + am__include=.include
14083 + am__quote="\""
14084 + _am_result=BSD
14085 + fi
14086 fi
14088 -echo $ac_n "checking host system type""... $ac_c" 1>&6
14089 -echo "configure:895: checking host system type" >&5
14091 -host_alias=$host
14092 -case "$host_alias" in
14093 -NONE)
14094 - case $nonopt in
14095 - NONE)
14096 - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
14097 - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
14098 - fi ;;
14099 - *) host_alias=$nonopt ;;
14100 - esac ;;
14101 -esac
14102 +echo "$as_me:$LINENO: result: $_am_result" >&5
14103 +echo "${ECHO_T}$_am_result" >&6
14104 +rm -f confinc confmf
14106 -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
14107 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14108 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14109 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14110 -echo "$ac_t""$host" 1>&6
14112 -echo $ac_n "checking build system type""... $ac_c" 1>&6
14113 -echo "configure:916: checking build system type" >&5
14115 -build_alias=$build
14116 -case "$build_alias" in
14117 -NONE)
14118 - case $nonopt in
14119 - NONE) build_alias=$host_alias ;;
14120 - *) build_alias=$nonopt ;;
14121 - esac ;;
14122 -esac
14124 -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
14125 -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
14126 -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
14127 -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
14128 -echo "$ac_t""$build" 1>&6
14129 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
14130 +if test "${enable_dependency_tracking+set}" = set; then
14131 + enableval="$enable_dependency_tracking"
14133 -# Extract the first word of "ranlib", so it can be a program name with args.
14134 -set dummy ranlib; ac_word=$2
14135 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14136 -echo "configure:936: checking for $ac_word" >&5
14137 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
14138 - echo $ac_n "(cached) $ac_c" 1>&6
14139 +fi;
14140 +if test "x$enable_dependency_tracking" != xno; then
14141 + am_depcomp="$ac_aux_dir/depcomp"
14142 + AMDEPBACKSLASH='\'
14143 +fi
14146 +if test "x$enable_dependency_tracking" != xno; then
14147 + AMDEP_TRUE=
14148 + AMDEP_FALSE='#'
14149 else
14150 - if test -n "$RANLIB"; then
14151 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14152 + AMDEP_TRUE='#'
14153 + AMDEP_FALSE=
14154 +fi
14158 +ac_ext=c
14159 +ac_cpp='$CPP $CPPFLAGS'
14160 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14161 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14162 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
14163 +if test -n "$ac_tool_prefix"; then
14164 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14165 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
14166 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14167 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14168 +if test "${ac_cv_prog_CC+set}" = set; then
14169 + echo $ECHO_N "(cached) $ECHO_C" >&6
14170 else
14171 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14172 - ac_dummy="$PATH"
14173 - for ac_dir in $ac_dummy; do
14174 - test -z "$ac_dir" && ac_dir=.
14175 - if test -f $ac_dir/$ac_word; then
14176 - ac_cv_prog_RANLIB="ranlib"
14177 - break
14178 - fi
14179 - done
14180 - IFS="$ac_save_ifs"
14181 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
14182 + if test -n "$CC"; then
14183 + ac_cv_prog_CC="$CC" # Let the user override the test.
14184 +else
14185 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14186 +for as_dir in $PATH
14187 +do
14188 + IFS=$as_save_IFS
14189 + test -z "$as_dir" && as_dir=.
14190 + for ac_exec_ext in '' $ac_executable_extensions; do
14191 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14192 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
14193 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14194 + break 2
14195 + fi
14196 +done
14197 +done
14199 fi
14200 fi
14201 -RANLIB="$ac_cv_prog_RANLIB"
14202 -if test -n "$RANLIB"; then
14203 - echo "$ac_t""$RANLIB" 1>&6
14204 +CC=$ac_cv_prog_CC
14205 +if test -n "$CC"; then
14206 + echo "$as_me:$LINENO: result: $CC" >&5
14207 +echo "${ECHO_T}$CC" >&6
14208 else
14209 - echo "$ac_t""no" 1>&6
14210 + echo "$as_me:$LINENO: result: no" >&5
14211 +echo "${ECHO_T}no" >&6
14212 fi
14214 -# Extract the first word of "gcc", so it can be a program name with args.
14215 +fi
14216 +if test -z "$ac_cv_prog_CC"; then
14217 + ac_ct_CC=$CC
14218 + # Extract the first word of "gcc", so it can be a program name with args.
14219 set dummy gcc; ac_word=$2
14220 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14221 -echo "configure:966: checking for $ac_word" >&5
14222 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
14223 - echo $ac_n "(cached) $ac_c" 1>&6
14224 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14225 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14226 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14227 + echo $ECHO_N "(cached) $ECHO_C" >&6
14228 +else
14229 + if test -n "$ac_ct_CC"; then
14230 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14231 +else
14232 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14233 +for as_dir in $PATH
14234 +do
14235 + IFS=$as_save_IFS
14236 + test -z "$as_dir" && as_dir=.
14237 + for ac_exec_ext in '' $ac_executable_extensions; do
14238 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14239 + ac_cv_prog_ac_ct_CC="gcc"
14240 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14241 + break 2
14242 + fi
14243 +done
14244 +done
14246 +fi
14247 +fi
14248 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
14249 +if test -n "$ac_ct_CC"; then
14250 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14251 +echo "${ECHO_T}$ac_ct_CC" >&6
14252 +else
14253 + echo "$as_me:$LINENO: result: no" >&5
14254 +echo "${ECHO_T}no" >&6
14255 +fi
14257 + CC=$ac_ct_CC
14258 +else
14259 + CC="$ac_cv_prog_CC"
14260 +fi
14262 +if test -z "$CC"; then
14263 + if test -n "$ac_tool_prefix"; then
14264 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14265 +set dummy ${ac_tool_prefix}cc; ac_word=$2
14266 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14267 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14268 +if test "${ac_cv_prog_CC+set}" = set; then
14269 + echo $ECHO_N "(cached) $ECHO_C" >&6
14270 else
14271 if test -n "$CC"; then
14272 ac_cv_prog_CC="$CC" # Let the user override the test.
14273 else
14274 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14275 - ac_dummy="$PATH"
14276 - for ac_dir in $ac_dummy; do
14277 - test -z "$ac_dir" && ac_dir=.
14278 - if test -f $ac_dir/$ac_word; then
14279 - ac_cv_prog_CC="gcc"
14280 - break
14281 - fi
14282 - done
14283 - IFS="$ac_save_ifs"
14284 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14285 +for as_dir in $PATH
14286 +do
14287 + IFS=$as_save_IFS
14288 + test -z "$as_dir" && as_dir=.
14289 + for ac_exec_ext in '' $ac_executable_extensions; do
14290 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14291 + ac_cv_prog_CC="${ac_tool_prefix}cc"
14292 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 + break 2
14294 + fi
14295 +done
14296 +done
14298 fi
14299 fi
14300 -CC="$ac_cv_prog_CC"
14301 +CC=$ac_cv_prog_CC
14302 if test -n "$CC"; then
14303 - echo "$ac_t""$CC" 1>&6
14304 + echo "$as_me:$LINENO: result: $CC" >&5
14305 +echo "${ECHO_T}$CC" >&6
14306 +else
14307 + echo "$as_me:$LINENO: result: no" >&5
14308 +echo "${ECHO_T}no" >&6
14309 +fi
14311 +fi
14312 +if test -z "$ac_cv_prog_CC"; then
14313 + ac_ct_CC=$CC
14314 + # Extract the first word of "cc", so it can be a program name with args.
14315 +set dummy cc; ac_word=$2
14316 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14317 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14318 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14319 + echo $ECHO_N "(cached) $ECHO_C" >&6
14320 +else
14321 + if test -n "$ac_ct_CC"; then
14322 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14323 +else
14324 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 +for as_dir in $PATH
14326 +do
14327 + IFS=$as_save_IFS
14328 + test -z "$as_dir" && as_dir=.
14329 + for ac_exec_ext in '' $ac_executable_extensions; do
14330 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 + ac_cv_prog_ac_ct_CC="cc"
14332 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14333 + break 2
14334 + fi
14335 +done
14336 +done
14338 +fi
14339 +fi
14340 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
14341 +if test -n "$ac_ct_CC"; then
14342 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14343 +echo "${ECHO_T}$ac_ct_CC" >&6
14344 +else
14345 + echo "$as_me:$LINENO: result: no" >&5
14346 +echo "${ECHO_T}no" >&6
14347 +fi
14349 + CC=$ac_ct_CC
14350 else
14351 - echo "$ac_t""no" 1>&6
14352 + CC="$ac_cv_prog_CC"
14353 fi
14355 +fi
14356 if test -z "$CC"; then
14357 # Extract the first word of "cc", so it can be a program name with args.
14358 set dummy cc; ac_word=$2
14359 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14360 -echo "configure:996: checking for $ac_word" >&5
14361 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
14362 - echo $ac_n "(cached) $ac_c" 1>&6
14363 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14364 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14365 +if test "${ac_cv_prog_CC+set}" = set; then
14366 + echo $ECHO_N "(cached) $ECHO_C" >&6
14367 else
14368 if test -n "$CC"; then
14369 ac_cv_prog_CC="$CC" # Let the user override the test.
14370 else
14371 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14372 ac_prog_rejected=no
14373 - ac_dummy="$PATH"
14374 - for ac_dir in $ac_dummy; do
14375 - test -z "$ac_dir" && ac_dir=.
14376 - if test -f $ac_dir/$ac_word; then
14377 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
14378 - ac_prog_rejected=yes
14379 - continue
14380 - fi
14381 - ac_cv_prog_CC="cc"
14382 - break
14383 - fi
14384 - done
14385 - IFS="$ac_save_ifs"
14386 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14387 +for as_dir in $PATH
14388 +do
14389 + IFS=$as_save_IFS
14390 + test -z "$as_dir" && as_dir=.
14391 + for ac_exec_ext in '' $ac_executable_extensions; do
14392 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14393 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14394 + ac_prog_rejected=yes
14395 + continue
14396 + fi
14397 + ac_cv_prog_CC="cc"
14398 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14399 + break 2
14400 + fi
14401 +done
14402 +done
14404 if test $ac_prog_rejected = yes; then
14405 # We found a bogon in the path, so make sure we never use it.
14406 set dummy $ac_cv_prog_CC
14407 shift
14408 - if test $# -gt 0; then
14409 + if test $# != 0; then
14410 # We chose a different compiler from the bogus one.
14411 # However, it has the same basename, so the bogon will be chosen
14412 # first if we set CC to just the basename; use the full file name.
14413 shift
14414 - set dummy "$ac_dir/$ac_word" "$@"
14415 - shift
14416 - ac_cv_prog_CC="$@"
14417 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14418 fi
14419 fi
14420 fi
14421 fi
14422 -CC="$ac_cv_prog_CC"
14423 +CC=$ac_cv_prog_CC
14424 if test -n "$CC"; then
14425 - echo "$ac_t""$CC" 1>&6
14426 + echo "$as_me:$LINENO: result: $CC" >&5
14427 +echo "${ECHO_T}$CC" >&6
14428 else
14429 - echo "$ac_t""no" 1>&6
14430 + echo "$as_me:$LINENO: result: no" >&5
14431 +echo "${ECHO_T}no" >&6
14432 fi
14434 - if test -z "$CC"; then
14435 - case "`uname -s`" in
14436 - *win32* | *WIN32*)
14437 - # Extract the first word of "cl", so it can be a program name with args.
14438 -set dummy cl; ac_word=$2
14439 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14440 -echo "configure:1047: checking for $ac_word" >&5
14441 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
14442 - echo $ac_n "(cached) $ac_c" 1>&6
14443 +fi
14444 +if test -z "$CC"; then
14445 + if test -n "$ac_tool_prefix"; then
14446 + for ac_prog in cl
14447 + do
14448 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14449 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14450 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14451 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14452 +if test "${ac_cv_prog_CC+set}" = set; then
14453 + echo $ECHO_N "(cached) $ECHO_C" >&6
14454 else
14455 if test -n "$CC"; then
14456 ac_cv_prog_CC="$CC" # Let the user override the test.
14457 else
14458 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14459 - ac_dummy="$PATH"
14460 - for ac_dir in $ac_dummy; do
14461 - test -z "$ac_dir" && ac_dir=.
14462 - if test -f $ac_dir/$ac_word; then
14463 - ac_cv_prog_CC="cl"
14464 - break
14465 - fi
14466 - done
14467 - IFS="$ac_save_ifs"
14468 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14469 +for as_dir in $PATH
14470 +do
14471 + IFS=$as_save_IFS
14472 + test -z "$as_dir" && as_dir=.
14473 + for ac_exec_ext in '' $ac_executable_extensions; do
14474 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14475 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14476 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14477 + break 2
14478 + fi
14479 +done
14480 +done
14482 fi
14483 fi
14484 -CC="$ac_cv_prog_CC"
14485 +CC=$ac_cv_prog_CC
14486 if test -n "$CC"; then
14487 - echo "$ac_t""$CC" 1>&6
14488 + echo "$as_me:$LINENO: result: $CC" >&5
14489 +echo "${ECHO_T}$CC" >&6
14490 else
14491 - echo "$ac_t""no" 1>&6
14492 + echo "$as_me:$LINENO: result: no" >&5
14493 +echo "${ECHO_T}no" >&6
14494 fi
14495 - ;;
14496 - esac
14498 + test -n "$CC" && break
14499 + done
14500 +fi
14501 +if test -z "$CC"; then
14502 + ac_ct_CC=$CC
14503 + for ac_prog in cl
14504 +do
14505 + # Extract the first word of "$ac_prog", so it can be a program name with args.
14506 +set dummy $ac_prog; ac_word=$2
14507 +echo "$as_me:$LINENO: checking for $ac_word" >&5
14508 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14509 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
14510 + echo $ECHO_N "(cached) $ECHO_C" >&6
14511 +else
14512 + if test -n "$ac_ct_CC"; then
14513 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14514 +else
14515 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 +for as_dir in $PATH
14517 +do
14518 + IFS=$as_save_IFS
14519 + test -z "$as_dir" && as_dir=.
14520 + for ac_exec_ext in '' $ac_executable_extensions; do
14521 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522 + ac_cv_prog_ac_ct_CC="$ac_prog"
14523 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14524 + break 2
14525 fi
14526 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
14527 +done
14528 +done
14530 +fi
14531 +fi
14532 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
14533 +if test -n "$ac_ct_CC"; then
14534 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
14535 +echo "${ECHO_T}$ac_ct_CC" >&6
14536 +else
14537 + echo "$as_me:$LINENO: result: no" >&5
14538 +echo "${ECHO_T}no" >&6
14539 fi
14541 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
14542 -echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
14543 + test -n "$ac_ct_CC" && break
14544 +done
14546 -ac_ext=c
14547 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14548 -ac_cpp='$CPP $CPPFLAGS'
14549 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14550 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14551 -cross_compiling=$ac_cv_prog_cc_cross
14552 + CC=$ac_ct_CC
14553 +fi
14555 -cat > conftest.$ac_ext << EOF
14556 +fi
14558 -#line 1090 "configure"
14559 -#include "confdefs.h"
14561 -main(){return(0);}
14562 -EOF
14563 -if { (eval echo configure:1095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14564 - ac_cv_prog_cc_works=yes
14565 - # If we can't run a trivial program, we are probably using a cross compiler.
14566 - if (./conftest; exit) 2>/dev/null; then
14567 - ac_cv_prog_cc_cross=no
14568 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
14569 +See \`config.log' for more details." >&5
14570 +echo "$as_me: error: no acceptable C compiler found in \$PATH
14571 +See \`config.log' for more details." >&2;}
14572 + { (exit 1); exit 1; }; }
14574 +# Provide some information about the compiler.
14575 +echo "$as_me:$LINENO:" \
14576 + "checking for C compiler version" >&5
14577 +ac_compiler=`set X $ac_compile; echo $2`
14578 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
14579 + (eval $ac_compiler --version </dev/null >&5) 2>&5
14580 + ac_status=$?
14581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 + (exit $ac_status); }
14583 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
14584 + (eval $ac_compiler -v </dev/null >&5) 2>&5
14585 + ac_status=$?
14586 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 + (exit $ac_status); }
14588 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
14589 + (eval $ac_compiler -V </dev/null >&5) 2>&5
14590 + ac_status=$?
14591 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 + (exit $ac_status); }
14594 +cat >conftest.$ac_ext <<_ACEOF
14595 +/* confdefs.h. */
14596 +_ACEOF
14597 +cat confdefs.h >>conftest.$ac_ext
14598 +cat >>conftest.$ac_ext <<_ACEOF
14599 +/* end confdefs.h. */
14601 +int
14602 +main ()
14603 +{
14605 + ;
14606 + return 0;
14607 +}
14608 +_ACEOF
14609 +ac_clean_files_save=$ac_clean_files
14610 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
14611 +# Try to create an executable without -o first, disregard a.out.
14612 +# It will help us diagnose broken compilers, and finding out an intuition
14613 +# of exeext.
14614 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
14615 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
14616 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
14617 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
14618 + (eval $ac_link_default) 2>&5
14619 + ac_status=$?
14620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 + (exit $ac_status); }; then
14622 + # Find the output, starting from the most likely. This scheme is
14623 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
14624 +# resort.
14626 +# Be careful to initialize this variable, since it used to be cached.
14627 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
14628 +ac_cv_exeext=
14629 +# b.out is created by i960 compilers.
14630 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
14631 +do
14632 + test -f "$ac_file" || continue
14633 + case $ac_file in
14634 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
14635 + ;;
14636 + conftest.$ac_ext )
14637 + # This is the source file.
14638 + ;;
14639 + [ab].out )
14640 + # We found the default executable, but exeext='' is most
14641 + # certainly right.
14642 + break;;
14643 + *.* )
14644 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14645 + # FIXME: I believe we export ac_cv_exeext for Libtool,
14646 + # but it would be cool to find out if it's true. Does anybody
14647 + # maintain Libtool? --akim.
14648 + export ac_cv_exeext
14649 + break;;
14650 + * )
14651 + break;;
14652 + esac
14653 +done
14654 +else
14655 + echo "$as_me: failed program was:" >&5
14656 +sed 's/^/| /' conftest.$ac_ext >&5
14658 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
14659 +See \`config.log' for more details." >&5
14660 +echo "$as_me: error: C compiler cannot create executables
14661 +See \`config.log' for more details." >&2;}
14662 + { (exit 77); exit 77; }; }
14663 +fi
14665 +ac_exeext=$ac_cv_exeext
14666 +echo "$as_me:$LINENO: result: $ac_file" >&5
14667 +echo "${ECHO_T}$ac_file" >&6
14669 +# Check the compiler produces executables we can run. If not, either
14670 +# the compiler is broken, or we cross compile.
14671 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
14672 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
14673 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
14674 +# If not cross compiling, check that we can run a simple program.
14675 +if test "$cross_compiling" != yes; then
14676 + if { ac_try='./$ac_file'
14677 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 + (eval $ac_try) 2>&5
14679 + ac_status=$?
14680 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 + (exit $ac_status); }; }; then
14682 + cross_compiling=no
14683 else
14684 - ac_cv_prog_cc_cross=yes
14685 + if test "$cross_compiling" = maybe; then
14686 + cross_compiling=yes
14687 + else
14688 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
14689 +If you meant to cross compile, use \`--host'.
14690 +See \`config.log' for more details." >&5
14691 +echo "$as_me: error: cannot run C compiled programs.
14692 +If you meant to cross compile, use \`--host'.
14693 +See \`config.log' for more details." >&2;}
14694 + { (exit 1); exit 1; }; }
14695 + fi
14696 fi
14697 -else
14698 - echo "configure: failed program was:" >&5
14699 - cat conftest.$ac_ext >&5
14700 - ac_cv_prog_cc_works=no
14701 fi
14702 -rm -fr conftest*
14703 -ac_ext=c
14704 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14705 -ac_cpp='$CPP $CPPFLAGS'
14706 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14707 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14708 -cross_compiling=$ac_cv_prog_cc_cross
14709 +echo "$as_me:$LINENO: result: yes" >&5
14710 +echo "${ECHO_T}yes" >&6
14712 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
14713 -if test $ac_cv_prog_cc_works = no; then
14714 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
14715 -fi
14716 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
14717 -echo "configure:1121: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
14718 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
14719 -cross_compiling=$ac_cv_prog_cc_cross
14720 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
14721 +ac_clean_files=$ac_clean_files_save
14722 +# Check the compiler produces executables we can run. If not, either
14723 +# the compiler is broken, or we cross compile.
14724 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
14725 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
14726 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
14727 +echo "${ECHO_T}$cross_compiling" >&6
14729 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
14730 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
14731 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 + (eval $ac_link) 2>&5
14733 + ac_status=$?
14734 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 + (exit $ac_status); }; then
14736 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
14737 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
14738 +# work properly (i.e., refer to `conftest.exe'), while it won't with
14739 +# `rm'.
14740 +for ac_file in conftest.exe conftest conftest.*; do
14741 + test -f "$ac_file" || continue
14742 + case $ac_file in
14743 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
14744 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
14745 + export ac_cv_exeext
14746 + break;;
14747 + * ) break;;
14748 + esac
14749 +done
14750 +else
14751 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
14752 +See \`config.log' for more details." >&5
14753 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
14754 +See \`config.log' for more details." >&2;}
14755 + { (exit 1); exit 1; }; }
14756 +fi
14758 +rm -f conftest$ac_cv_exeext
14759 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
14760 +echo "${ECHO_T}$ac_cv_exeext" >&6
14762 +rm -f conftest.$ac_ext
14763 +EXEEXT=$ac_cv_exeext
14764 +ac_exeext=$EXEEXT
14765 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
14766 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
14767 +if test "${ac_cv_objext+set}" = set; then
14768 + echo $ECHO_N "(cached) $ECHO_C" >&6
14769 +else
14770 + cat >conftest.$ac_ext <<_ACEOF
14771 +/* confdefs.h. */
14772 +_ACEOF
14773 +cat confdefs.h >>conftest.$ac_ext
14774 +cat >>conftest.$ac_ext <<_ACEOF
14775 +/* end confdefs.h. */
14777 +int
14778 +main ()
14779 +{
14781 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
14782 -echo "configure:1126: checking whether we are using GNU C" >&5
14783 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
14784 - echo $ac_n "(cached) $ac_c" 1>&6
14785 + ;
14786 + return 0;
14787 +}
14788 +_ACEOF
14789 +rm -f conftest.o conftest.obj
14790 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 + (eval $ac_compile) 2>&5
14792 + ac_status=$?
14793 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 + (exit $ac_status); }; then
14795 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
14796 + case $ac_file in
14797 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
14798 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
14799 + break;;
14800 + esac
14801 +done
14802 else
14803 - cat > conftest.c <<EOF
14804 -#ifdef __GNUC__
14805 - yes;
14806 + echo "$as_me: failed program was:" >&5
14807 +sed 's/^/| /' conftest.$ac_ext >&5
14809 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
14810 +See \`config.log' for more details." >&5
14811 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
14812 +See \`config.log' for more details." >&2;}
14813 + { (exit 1); exit 1; }; }
14814 +fi
14816 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
14817 +fi
14818 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
14819 +echo "${ECHO_T}$ac_cv_objext" >&6
14820 +OBJEXT=$ac_cv_objext
14821 +ac_objext=$OBJEXT
14822 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
14823 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
14824 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
14825 + echo $ECHO_N "(cached) $ECHO_C" >&6
14826 +else
14827 + cat >conftest.$ac_ext <<_ACEOF
14828 +/* confdefs.h. */
14829 +_ACEOF
14830 +cat confdefs.h >>conftest.$ac_ext
14831 +cat >>conftest.$ac_ext <<_ACEOF
14832 +/* end confdefs.h. */
14834 +int
14835 +main ()
14836 +{
14837 +#ifndef __GNUC__
14838 + choke me
14839 #endif
14840 -EOF
14841 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
14842 - ac_cv_prog_gcc=yes
14843 -else
14844 - ac_cv_prog_gcc=no
14845 -fi
14846 -fi
14848 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
14849 + ;
14850 + return 0;
14851 +}
14852 +_ACEOF
14853 +rm -f conftest.$ac_objext
14854 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14855 + (eval $ac_compile) 2>conftest.er1
14856 + ac_status=$?
14857 + grep -v '^ *+' conftest.er1 >conftest.err
14858 + rm -f conftest.er1
14859 + cat conftest.err >&5
14860 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 + (exit $ac_status); } &&
14862 + { ac_try='test -z "$ac_c_werror_flag"
14863 + || test ! -s conftest.err'
14864 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14865 + (eval $ac_try) 2>&5
14866 + ac_status=$?
14867 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868 + (exit $ac_status); }; } &&
14869 + { ac_try='test -s conftest.$ac_objext'
14870 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14871 + (eval $ac_try) 2>&5
14872 + ac_status=$?
14873 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 + (exit $ac_status); }; }; then
14875 + ac_compiler_gnu=yes
14876 +else
14877 + echo "$as_me: failed program was:" >&5
14878 +sed 's/^/| /' conftest.$ac_ext >&5
14880 +ac_compiler_gnu=no
14881 +fi
14882 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14883 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
14885 +fi
14886 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
14887 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
14888 +GCC=`test $ac_compiler_gnu = yes && echo yes`
14889 +ac_test_CFLAGS=${CFLAGS+set}
14890 +ac_save_CFLAGS=$CFLAGS
14891 +CFLAGS="-g"
14892 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
14893 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
14894 +if test "${ac_cv_prog_cc_g+set}" = set; then
14895 + echo $ECHO_N "(cached) $ECHO_C" >&6
14896 +else
14897 + cat >conftest.$ac_ext <<_ACEOF
14898 +/* confdefs.h. */
14899 +_ACEOF
14900 +cat confdefs.h >>conftest.$ac_ext
14901 +cat >>conftest.$ac_ext <<_ACEOF
14902 +/* end confdefs.h. */
14904 -if test $ac_cv_prog_gcc = yes; then
14905 - GCC=yes
14906 -else
14907 - GCC=
14908 -fi
14909 +int
14910 +main ()
14911 +{
14913 -ac_test_CFLAGS="${CFLAGS+set}"
14914 -ac_save_CFLAGS="$CFLAGS"
14915 -CFLAGS=
14916 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
14917 -echo "configure:1154: checking whether ${CC-cc} accepts -g" >&5
14918 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
14919 - echo $ac_n "(cached) $ac_c" 1>&6
14920 -else
14921 - echo 'void f(){}' > conftest.c
14922 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
14923 + ;
14924 + return 0;
14925 +}
14926 +_ACEOF
14927 +rm -f conftest.$ac_objext
14928 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14929 + (eval $ac_compile) 2>conftest.er1
14930 + ac_status=$?
14931 + grep -v '^ *+' conftest.er1 >conftest.err
14932 + rm -f conftest.er1
14933 + cat conftest.err >&5
14934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935 + (exit $ac_status); } &&
14936 + { ac_try='test -z "$ac_c_werror_flag"
14937 + || test ! -s conftest.err'
14938 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 + (eval $ac_try) 2>&5
14940 + ac_status=$?
14941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 + (exit $ac_status); }; } &&
14943 + { ac_try='test -s conftest.$ac_objext'
14944 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 + (eval $ac_try) 2>&5
14946 + ac_status=$?
14947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 + (exit $ac_status); }; }; then
14949 ac_cv_prog_cc_g=yes
14950 else
14951 - ac_cv_prog_cc_g=no
14952 -fi
14953 -rm -f conftest*
14954 + echo "$as_me: failed program was:" >&5
14955 +sed 's/^/| /' conftest.$ac_ext >&5
14957 +ac_cv_prog_cc_g=no
14958 fi
14960 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
14961 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14962 +fi
14963 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
14964 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
14965 if test "$ac_test_CFLAGS" = set; then
14966 - CFLAGS="$ac_save_CFLAGS"
14967 + CFLAGS=$ac_save_CFLAGS
14968 elif test $ac_cv_prog_cc_g = yes; then
14969 if test "$GCC" = yes; then
14970 CFLAGS="-g -O2"
14971 @@ -1180,421 +2807,858 @@ else
14972 CFLAGS=
14973 fi
14974 fi
14975 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
14976 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
14977 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
14978 + echo $ECHO_N "(cached) $ECHO_C" >&6
14979 +else
14980 + ac_cv_prog_cc_stdc=no
14981 +ac_save_CC=$CC
14982 +cat >conftest.$ac_ext <<_ACEOF
14983 +/* confdefs.h. */
14984 +_ACEOF
14985 +cat confdefs.h >>conftest.$ac_ext
14986 +cat >>conftest.$ac_ext <<_ACEOF
14987 +/* end confdefs.h. */
14988 +#include <stdarg.h>
14989 +#include <stdio.h>
14990 +#include <sys/types.h>
14991 +#include <sys/stat.h>
14992 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14993 +struct buf { int x; };
14994 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
14995 +static char *e (p, i)
14996 + char **p;
14997 + int i;
14998 +{
14999 + return p[i];
15000 +}
15001 +static char *f (char * (*g) (char **, int), char **p, ...)
15002 +{
15003 + char *s;
15004 + va_list v;
15005 + va_start (v,p);
15006 + s = g (p, va_arg (v,int));
15007 + va_end (v);
15008 + return s;
15009 +}
15011 -# Check whether --with-gnu-ld or --without-gnu-ld was given.
15012 -if test "${with_gnu_ld+set}" = set; then
15013 - withval="$with_gnu_ld"
15014 - test "$withval" = no || with_gnu_ld=yes
15015 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
15016 + function prototypes and stuff, but not '\xHH' hex character constants.
15017 + These don't provoke an error unfortunately, instead are silently treated
15018 + as 'x'. The following induces an error, until -std1 is added to get
15019 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
15020 + array size at least. It's necessary to write '\x00'==0 to get something
15021 + that's true only with -std1. */
15022 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
15024 +int test (int i, double x);
15025 +struct s1 {int (*f) (int a);};
15026 +struct s2 {int (*f) (double a);};
15027 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
15028 +int argc;
15029 +char **argv;
15030 +int
15031 +main ()
15032 +{
15033 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
15034 + ;
15035 + return 0;
15036 +}
15037 +_ACEOF
15038 +# Don't try gcc -ansi; that turns off useful extensions and
15039 +# breaks some systems' header files.
15040 +# AIX -qlanglvl=ansi
15041 +# Ultrix and OSF/1 -std1
15042 +# HP-UX 10.20 and later -Ae
15043 +# HP-UX older versions -Aa -D_HPUX_SOURCE
15044 +# SVR4 -Xc -D__EXTENSIONS__
15045 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
15046 +do
15047 + CC="$ac_save_CC $ac_arg"
15048 + rm -f conftest.$ac_objext
15049 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 + (eval $ac_compile) 2>conftest.er1
15051 + ac_status=$?
15052 + grep -v '^ *+' conftest.er1 >conftest.err
15053 + rm -f conftest.er1
15054 + cat conftest.err >&5
15055 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 + (exit $ac_status); } &&
15057 + { ac_try='test -z "$ac_c_werror_flag"
15058 + || test ! -s conftest.err'
15059 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 + (eval $ac_try) 2>&5
15061 + ac_status=$?
15062 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 + (exit $ac_status); }; } &&
15064 + { ac_try='test -s conftest.$ac_objext'
15065 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 + (eval $ac_try) 2>&5
15067 + ac_status=$?
15068 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 + (exit $ac_status); }; }; then
15070 + ac_cv_prog_cc_stdc=$ac_arg
15071 +break
15072 else
15073 - with_gnu_ld=no
15074 + echo "$as_me: failed program was:" >&5
15075 +sed 's/^/| /' conftest.$ac_ext >&5
15077 fi
15078 +rm -f conftest.err conftest.$ac_objext
15079 +done
15080 +rm -f conftest.$ac_ext conftest.$ac_objext
15081 +CC=$ac_save_CC
15083 -ac_prog=ld
15084 -if test "$ac_cv_prog_gcc" = yes; then
15085 - # Check if gcc -print-prog-name=ld gives a path.
15086 - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
15087 -echo "configure:1197: checking for ld used by GCC" >&5
15088 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
15089 - case "$ac_prog" in
15090 - # Accept absolute paths.
15091 - /* | [A-Za-z]:/*)
15092 - # Canonicalize the path of ld
15093 - re_direlt='/[^/][^/]*/\.\./'
15094 - sub_uncdrive='s%^\([A-Za-z]\):/%//\1/%'
15095 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15096 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15097 - done
15098 - case "$host_os" in
15099 - cygwin*)
15100 - # Convert to a UNC path for cygwin
15101 - test -z "$LD" && LD=`echo X$ac_prog | $Xsed -e "$sub_uncdrive"`
15102 - ;;
15103 - *)
15104 - test -z "$LD" && LD="$ac_prog"
15105 - ;;
15106 - esac
15107 - ;;
15108 - ##
15109 - ## FIXME: The code fails later on if we try to use an $LD with
15110 - ## '\\' path separators.
15111 - ##
15112 - [A-Za-z]:[\\]*)
15113 - # Canonicalize the path of ld
15114 - re_direlt='\\[^\\][^\\]*\\\.\.\(\\\)'
15115 - sub_uncdrive='s%^\([A-Za-z]\):\\%//\1/%'
15116 - sub_uncdir='s%\\%/%g'
15117 - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15118 - ac_prog=`echo $ac_prog| sed "s%$re_direlt%\1%"`
15119 - done
15120 - case "$host_os" in
15121 - cygwin*)
15122 - # Convert to a UNC path for cygwin
15123 - test -z "$LD" && LD=`echo X$ac_prog | sed -e 's%^X%%' -e "$sub_uncdrive" -e "$sub_uncdir"`
15124 - ;;
15125 - *)
15126 - test -z "$LD" && LD="$ac_prog"
15127 - ;;
15128 - esac
15129 - ;;
15130 - "")
15131 - # If it fails, then pretend we aren't using GCC.
15132 - ac_prog=ld
15133 - ;;
15134 +fi
15136 +case "x$ac_cv_prog_cc_stdc" in
15137 + x|xno)
15138 + echo "$as_me:$LINENO: result: none needed" >&5
15139 +echo "${ECHO_T}none needed" >&6 ;;
15140 *)
15141 - # If it is relative, then search for the first ld in PATH.
15142 - with_gnu_ld=unknown
15143 - ;;
15144 - esac
15145 -elif test "$with_gnu_ld" = yes; then
15146 - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
15147 -echo "configure:1251: checking for GNU ld" >&5
15148 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
15149 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
15150 + CC="$CC $ac_cv_prog_cc_stdc" ;;
15151 +esac
15153 +# Some people use a C++ compiler to compile C. Since we use `exit',
15154 +# in C++ we need to declare it. In case someone uses the same compiler
15155 +# for both compiling C and C++ we need to have the C++ compiler decide
15156 +# the declaration of exit, since it's the most demanding environment.
15157 +cat >conftest.$ac_ext <<_ACEOF
15158 +#ifndef __cplusplus
15159 + choke me
15160 +#endif
15161 +_ACEOF
15162 +rm -f conftest.$ac_objext
15163 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15164 + (eval $ac_compile) 2>conftest.er1
15165 + ac_status=$?
15166 + grep -v '^ *+' conftest.er1 >conftest.err
15167 + rm -f conftest.er1
15168 + cat conftest.err >&5
15169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 + (exit $ac_status); } &&
15171 + { ac_try='test -z "$ac_c_werror_flag"
15172 + || test ! -s conftest.err'
15173 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 + (eval $ac_try) 2>&5
15175 + ac_status=$?
15176 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 + (exit $ac_status); }; } &&
15178 + { ac_try='test -s conftest.$ac_objext'
15179 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 + (eval $ac_try) 2>&5
15181 + ac_status=$?
15182 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 + (exit $ac_status); }; }; then
15184 + for ac_declaration in \
15185 + '' \
15186 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
15187 + 'extern "C" void std::exit (int); using std::exit;' \
15188 + 'extern "C" void exit (int) throw ();' \
15189 + 'extern "C" void exit (int);' \
15190 + 'void exit (int);'
15191 +do
15192 + cat >conftest.$ac_ext <<_ACEOF
15193 +/* confdefs.h. */
15194 +_ACEOF
15195 +cat confdefs.h >>conftest.$ac_ext
15196 +cat >>conftest.$ac_ext <<_ACEOF
15197 +/* end confdefs.h. */
15198 +$ac_declaration
15199 +#include <stdlib.h>
15200 +int
15201 +main ()
15202 +{
15203 +exit (42);
15204 + ;
15205 + return 0;
15206 +}
15207 +_ACEOF
15208 +rm -f conftest.$ac_objext
15209 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15210 + (eval $ac_compile) 2>conftest.er1
15211 + ac_status=$?
15212 + grep -v '^ *+' conftest.er1 >conftest.err
15213 + rm -f conftest.er1
15214 + cat conftest.err >&5
15215 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 + (exit $ac_status); } &&
15217 + { ac_try='test -z "$ac_c_werror_flag"
15218 + || test ! -s conftest.err'
15219 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 + (eval $ac_try) 2>&5
15221 + ac_status=$?
15222 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 + (exit $ac_status); }; } &&
15224 + { ac_try='test -s conftest.$ac_objext'
15225 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 + (eval $ac_try) 2>&5
15227 + ac_status=$?
15228 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 + (exit $ac_status); }; }; then
15230 + :
15231 else
15232 - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
15233 -echo "configure:1254: checking for non-GNU ld" >&5
15234 + echo "$as_me: failed program was:" >&5
15235 +sed 's/^/| /' conftest.$ac_ext >&5
15237 +continue
15238 +fi
15239 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15240 + cat >conftest.$ac_ext <<_ACEOF
15241 +/* confdefs.h. */
15242 +_ACEOF
15243 +cat confdefs.h >>conftest.$ac_ext
15244 +cat >>conftest.$ac_ext <<_ACEOF
15245 +/* end confdefs.h. */
15246 +$ac_declaration
15247 +int
15248 +main ()
15249 +{
15250 +exit (42);
15251 + ;
15252 + return 0;
15253 +}
15254 +_ACEOF
15255 +rm -f conftest.$ac_objext
15256 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15257 + (eval $ac_compile) 2>conftest.er1
15258 + ac_status=$?
15259 + grep -v '^ *+' conftest.er1 >conftest.err
15260 + rm -f conftest.er1
15261 + cat conftest.err >&5
15262 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 + (exit $ac_status); } &&
15264 + { ac_try='test -z "$ac_c_werror_flag"
15265 + || test ! -s conftest.err'
15266 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15267 + (eval $ac_try) 2>&5
15268 + ac_status=$?
15269 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 + (exit $ac_status); }; } &&
15271 + { ac_try='test -s conftest.$ac_objext'
15272 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273 + (eval $ac_try) 2>&5
15274 + ac_status=$?
15275 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276 + (exit $ac_status); }; }; then
15277 + break
15278 +else
15279 + echo "$as_me: failed program was:" >&5
15280 +sed 's/^/| /' conftest.$ac_ext >&5
15282 +fi
15283 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15284 +done
15285 +rm -f conftest*
15286 +if test -n "$ac_declaration"; then
15287 + echo '#ifdef __cplusplus' >>confdefs.h
15288 + echo $ac_declaration >>confdefs.h
15289 + echo '#endif' >>confdefs.h
15290 +fi
15292 +else
15293 + echo "$as_me: failed program was:" >&5
15294 +sed 's/^/| /' conftest.$ac_ext >&5
15296 +fi
15297 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15298 +ac_ext=c
15299 +ac_cpp='$CPP $CPPFLAGS'
15300 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15301 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15302 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
15304 +depcc="$CC" am_compiler_list=
15306 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
15307 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
15308 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
15309 + echo $ECHO_N "(cached) $ECHO_C" >&6
15310 +else
15311 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15312 + # We make a subdir and do the tests there. Otherwise we can end up
15313 + # making bogus files that we don't know about and never remove. For
15314 + # instance it was reported that on HP-UX the gcc test will end up
15315 + # making a dummy file named `D' -- because `-MD' means `put the output
15316 + # in D'.
15317 + mkdir conftest.dir
15318 + # Copy depcomp to subdir because otherwise we won't find it if we're
15319 + # using a relative directory.
15320 + cp "$am_depcomp" conftest.dir
15321 + cd conftest.dir
15322 + # We will build objects and dependencies in a subdirectory because
15323 + # it helps to detect inapplicable dependency modes. For instance
15324 + # both Tru64's cc and ICC support -MD to output dependencies as a
15325 + # side effect of compilation, but ICC will put the dependencies in
15326 + # the current directory while Tru64 will put them in the object
15327 + # directory.
15328 + mkdir sub
15330 + am_cv_CC_dependencies_compiler_type=none
15331 + if test "$am_compiler_list" = ""; then
15332 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15333 + fi
15334 + for depmode in $am_compiler_list; do
15335 + # Setup a source with many dependencies, because some compilers
15336 + # like to wrap large dependency lists on column 80 (with \), and
15337 + # we should not choose a depcomp mode which is confused by this.
15338 + #
15339 + # We need to recreate these files for each test, as the compiler may
15340 + # overwrite some of them when testing with obscure command lines.
15341 + # This happens at least with the AIX C compiler.
15342 + : > sub/conftest.c
15343 + for i in 1 2 3 4 5 6; do
15344 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
15345 + : > sub/conftst$i.h
15346 + done
15347 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15349 + case $depmode in
15350 + nosideeffect)
15351 + # after this tag, mechanisms are not by side-effect, so they'll
15352 + # only be used when explicitly requested
15353 + if test "x$enable_dependency_tracking" = xyes; then
15354 + continue
15355 + else
15356 + break
15357 + fi
15358 + ;;
15359 + none) break ;;
15360 + esac
15361 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
15362 + # mode. It turns out that the SunPro C++ compiler does not properly
15363 + # handle `-M -o', and we need to detect this.
15364 + if depmode=$depmode \
15365 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
15366 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15367 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
15368 + >/dev/null 2>conftest.err &&
15369 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15370 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
15371 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15372 + # icc doesn't choke on unknown options, it will just issue warnings
15373 + # (even with -Werror). So we grep stderr for any message
15374 + # that says an option was ignored.
15375 + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
15376 + am_cv_CC_dependencies_compiler_type=$depmode
15377 + break
15378 + fi
15379 + fi
15380 + done
15382 + cd ..
15383 + rm -rf conftest.dir
15384 +else
15385 + am_cv_CC_dependencies_compiler_type=none
15386 +fi
15388 +fi
15389 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
15390 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
15391 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15395 +if
15396 + test "x$enable_dependency_tracking" != xno \
15397 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15398 + am__fastdepCC_TRUE=
15399 + am__fastdepCC_FALSE='#'
15400 +else
15401 + am__fastdepCC_TRUE='#'
15402 + am__fastdepCC_FALSE=
15403 +fi
15406 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
15407 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
15408 +if test "${lt_cv_path_SED+set}" = set; then
15409 + echo $ECHO_N "(cached) $ECHO_C" >&6
15410 +else
15411 + # Loop through the user's path and test for sed and gsed.
15412 +# Then use that list of sed's as ones to test for truncation.
15413 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15414 +for as_dir in $PATH
15415 +do
15416 + IFS=$as_save_IFS
15417 + test -z "$as_dir" && as_dir=.
15418 + for lt_ac_prog in sed gsed; do
15419 + for ac_exec_ext in '' $ac_executable_extensions; do
15420 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
15421 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
15422 + fi
15423 + done
15424 + done
15425 +done
15426 +lt_ac_max=0
15427 +lt_ac_count=0
15428 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
15429 +# along with /bin/sed that truncates output.
15430 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
15431 + test ! -f $lt_ac_sed && break
15432 + cat /dev/null > conftest.in
15433 + lt_ac_count=0
15434 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
15435 + # Check for GNU sed and select it if it is found.
15436 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
15437 + lt_cv_path_SED=$lt_ac_sed
15438 + break
15439 + fi
15440 + while true; do
15441 + cat conftest.in conftest.in >conftest.tmp
15442 + mv conftest.tmp conftest.in
15443 + cp conftest.in conftest.nl
15444 + echo >>conftest.nl
15445 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
15446 + cmp -s conftest.out conftest.nl || break
15447 + # 10000 chars as input seems more than enough
15448 + test $lt_ac_count -gt 10 && break
15449 + lt_ac_count=`expr $lt_ac_count + 1`
15450 + if test $lt_ac_count -gt $lt_ac_max; then
15451 + lt_ac_max=$lt_ac_count
15452 + lt_cv_path_SED=$lt_ac_sed
15453 + fi
15454 + done
15455 +done
15456 +SED=$lt_cv_path_SED
15458 +fi
15460 +echo "$as_me:$LINENO: result: $SED" >&5
15461 +echo "${ECHO_T}$SED" >&6
15463 +echo "$as_me:$LINENO: checking for egrep" >&5
15464 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
15465 +if test "${ac_cv_prog_egrep+set}" = set; then
15466 + echo $ECHO_N "(cached) $ECHO_C" >&6
15467 +else
15468 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
15469 + then ac_cv_prog_egrep='grep -E'
15470 + else ac_cv_prog_egrep='egrep'
15471 + fi
15472 +fi
15473 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
15474 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
15475 + EGREP=$ac_cv_prog_egrep
15479 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
15480 +if test "${with_gnu_ld+set}" = set; then
15481 + withval="$with_gnu_ld"
15482 + test "$withval" = no || with_gnu_ld=yes
15483 +else
15484 + with_gnu_ld=no
15485 +fi;
15486 +ac_prog=ld
15487 +if test "$GCC" = yes; then
15488 + # Check if gcc -print-prog-name=ld gives a path.
15489 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15490 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15491 + case $host in
15492 + *-*-mingw*)
15493 + # gcc leaves a trailing carriage return which upsets mingw
15494 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15495 + *)
15496 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15497 + esac
15498 + case $ac_prog in
15499 + # Accept absolute paths.
15500 + [\\/]* | ?:[\\/]*)
15501 + re_direlt='/[^/][^/]*/\.\./'
15502 + # Canonicalize the pathname of ld
15503 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15504 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15505 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15506 + done
15507 + test -z "$LD" && LD="$ac_prog"
15508 + ;;
15509 + "")
15510 + # If it fails, then pretend we aren't using GCC.
15511 + ac_prog=ld
15512 + ;;
15513 + *)
15514 + # If it is relative, then search for the first ld in PATH.
15515 + with_gnu_ld=unknown
15516 + ;;
15517 + esac
15518 +elif test "$with_gnu_ld" = yes; then
15519 + echo "$as_me:$LINENO: checking for GNU ld" >&5
15520 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15521 +else
15522 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15523 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15524 fi
15525 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
15526 - echo $ac_n "(cached) $ac_c" 1>&6
15527 +if test "${lt_cv_path_LD+set}" = set; then
15528 + echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530 if test -z "$LD"; then
15531 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15532 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15533 for ac_dir in $PATH; do
15534 + IFS="$lt_save_ifs"
15535 test -z "$ac_dir" && ac_dir=.
15536 - if test -f "$ac_dir/$ac_prog"; then
15537 - ac_cv_path_LD="$ac_dir/$ac_prog"
15538 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15539 + lt_cv_path_LD="$ac_dir/$ac_prog"
15540 # Check to see if the program is GNU ld. I'd rather use --version,
15541 # but apparently some GNU ld's only accept -v.
15542 # Break only if it was the GNU/non-GNU ld that we prefer.
15543 - if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
15544 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15545 + *GNU* | *'with BFD'*)
15546 test "$with_gnu_ld" != no && break
15547 - else
15548 - test "$with_gnu_ld" != yes && break
15549 - fi
15550 + ;;
15551 + *)
15552 + test "$with_gnu_ld" != yes && break
15553 + ;;
15554 + esac
15555 fi
15556 done
15557 - IFS="$ac_save_ifs"
15558 + IFS="$lt_save_ifs"
15559 else
15560 - ac_cv_path_LD="$LD" # Let the user override the test with a path.
15561 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
15562 fi
15563 fi
15565 -LD="$ac_cv_path_LD"
15566 +LD="$lt_cv_path_LD"
15567 if test -n "$LD"; then
15568 - echo "$ac_t""$LD" 1>&6
15569 + echo "$as_me:$LINENO: result: $LD" >&5
15570 +echo "${ECHO_T}$LD" >&6
15571 else
15572 - echo "$ac_t""no" 1>&6
15573 + echo "$as_me:$LINENO: result: no" >&5
15574 +echo "${ECHO_T}no" >&6
15575 fi
15576 -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
15578 -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
15579 -echo "configure:1290: checking if the linker ($LD) is GNU ld" >&5
15580 -if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
15581 - echo $ac_n "(cached) $ac_c" 1>&6
15582 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15583 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15584 + { (exit 1); exit 1; }; }
15585 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15586 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15587 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
15588 + echo $ECHO_N "(cached) $ECHO_C" >&6
15589 else
15590 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15591 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
15592 - ac_cv_prog_gnu_ld=yes
15593 -else
15594 - ac_cv_prog_gnu_ld=no
15595 -fi
15596 +case `$LD -v 2>&1 </dev/null` in
15597 +*GNU* | *'with BFD'*)
15598 + lt_cv_prog_gnu_ld=yes
15599 + ;;
15600 +*)
15601 + lt_cv_prog_gnu_ld=no
15602 + ;;
15603 +esac
15604 fi
15605 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15606 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15607 +with_gnu_ld=$lt_cv_prog_gnu_ld
15610 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
15611 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
15612 +if test "${lt_cv_ld_reload_flag+set}" = set; then
15613 + echo $ECHO_N "(cached) $ECHO_C" >&6
15614 +else
15615 + lt_cv_ld_reload_flag='-r'
15616 +fi
15617 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
15618 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
15619 +reload_flag=$lt_cv_ld_reload_flag
15620 +case $reload_flag in
15621 +"" | " "*) ;;
15622 +*) reload_flag=" $reload_flag" ;;
15623 +esac
15624 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
15626 -echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
15629 -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
15630 -echo "configure:1306: checking for BSD-compatible nm" >&5
15631 -if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
15632 - echo $ac_n "(cached) $ac_c" 1>&6
15633 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
15634 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
15635 +if test "${lt_cv_path_NM+set}" = set; then
15636 + echo $ECHO_N "(cached) $ECHO_C" >&6
15637 else
15638 if test -n "$NM"; then
15639 # Let the user override the test.
15640 - ac_cv_path_NM="$NM"
15641 + lt_cv_path_NM="$NM"
15642 else
15643 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15644 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15645 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
15646 + IFS="$lt_save_ifs"
15647 test -z "$ac_dir" && ac_dir=.
15648 - if test -f $ac_dir/nm; then
15649 + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
15650 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
15651 # Check to see if the nm accepts a BSD-compat flag.
15652 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
15653 # nm: unknown option "B" ignored
15654 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
15655 - ac_cv_path_NM="$ac_dir/nm -B"
15656 - break
15657 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
15658 - ac_cv_path_NM="$ac_dir/nm -p"
15659 + # Tru64's nm complains that /dev/null is an invalid object file
15660 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
15661 + */dev/null* | *'Invalid file or object type'*)
15662 + lt_cv_path_NM="$tmp_nm -B"
15663 break
15664 - else
15665 - ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
15666 - continue # so that we can try to find one that supports BSD flags
15667 - fi
15668 + ;;
15669 + *)
15670 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
15671 + */dev/null*)
15672 + lt_cv_path_NM="$tmp_nm -p"
15673 + break
15674 + ;;
15675 + *)
15676 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
15677 + continue # so that we can try to find one that supports BSD flags
15678 + ;;
15679 + esac
15680 + esac
15681 fi
15682 done
15683 - IFS="$ac_save_ifs"
15684 - test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
15685 + IFS="$lt_save_ifs"
15686 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
15687 fi
15688 fi
15689 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
15690 +echo "${ECHO_T}$lt_cv_path_NM" >&6
15691 +NM="$lt_cv_path_NM"
15693 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
15694 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
15695 +LN_S=$as_ln_s
15696 +if test "$LN_S" = "ln -s"; then
15697 + echo "$as_me:$LINENO: result: yes" >&5
15698 +echo "${ECHO_T}yes" >&6
15699 +else
15700 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
15701 +echo "${ECHO_T}no, using $LN_S" >&6
15702 +fi
15704 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
15705 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
15706 +if test "${lt_cv_deplibs_check_method+set}" = set; then
15707 + echo $ECHO_N "(cached) $ECHO_C" >&6
15708 +else
15709 + lt_cv_file_magic_cmd='$MAGIC_CMD'
15710 +lt_cv_file_magic_test_file=
15711 +lt_cv_deplibs_check_method='unknown'
15712 +# Need to set the preceding variable on all platforms that support
15713 +# interlibrary dependencies.
15714 +# 'none' -- dependencies not supported.
15715 +# `unknown' -- same as none, but documents that we really don't know.
15716 +# 'pass_all' -- all dependencies passed with no checks.
15717 +# 'test_compile' -- check by making test program.
15718 +# 'file_magic [[regex]]' -- check by looking for files in library path
15719 +# which responds to the $file_magic_cmd with a given extended regex.
15720 +# If you have `file' or equivalent on your system and you're not sure
15721 +# whether `pass_all' will *always* work, you probably want this one.
15723 +case $host_os in
15724 +aix4* | aix5*)
15725 + lt_cv_deplibs_check_method=pass_all
15726 + ;;
15728 -NM="$ac_cv_path_NM"
15729 -echo "$ac_t""$NM" 1>&6
15732 -# Check for command to grab the raw symbol name followed by C symbol from nm.
15733 -echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
15734 -echo "configure:1344: checking command to parse $NM output" >&5
15735 -if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
15736 - echo $ac_n "(cached) $ac_c" 1>&6
15737 -else
15738 - # These are sane defaults that work on at least a few old systems.
15739 -# {They come from Ultrix. What could be older than Ultrix?!! ;)}
15741 -# Character class describing NM global symbol codes.
15742 -ac_symcode='[BCDEGRSTU]'
15744 -# Regexp to match symbols that can be accessed directly from C.
15745 -ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
15746 +beos*)
15747 + lt_cv_deplibs_check_method=pass_all
15748 + ;;
15750 -# Transform the above into a raw symbol and a C symbol.
15751 -ac_symxfrm='\1 \1'
15752 +bsdi4*)
15753 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
15754 + lt_cv_file_magic_cmd='/usr/bin/file -L'
15755 + lt_cv_file_magic_test_file=/shlib/libc.so
15756 + ;;
15758 -# Define system-specific variables.
15759 -case "$host_os" in
15760 -aix*)
15761 - ac_symcode='[BCDTU]'
15762 +cygwin* | mingw* | pw32*)
15763 + # win32_libid is a shell function defined in ltmain.sh
15764 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
15765 + lt_cv_file_magic_cmd='win32_libid'
15766 ;;
15767 -irix*)
15768 - # Cannot use undefined symbols on IRIX because inlined functions mess us up.
15769 - ac_symcode='[BCDEGRST]'
15771 +darwin* | rhapsody*)
15772 + lt_cv_deplibs_check_method=pass_all
15773 ;;
15774 -solaris*)
15775 - ac_symcode='[BDTU]'
15777 +freebsd* | kfreebsd*-gnu)
15778 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15779 + case $host_cpu in
15780 + i*86 )
15781 + # Not sure whether the presence of OpenBSD here was a mistake.
15782 + # Let's accept both of them until this is cleared up.
15783 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
15784 + lt_cv_file_magic_cmd=/usr/bin/file
15785 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15786 + ;;
15787 + esac
15788 + else
15789 + lt_cv_deplibs_check_method=pass_all
15790 + fi
15791 ;;
15792 -esac
15794 -# If we're using GNU nm, then use its standard symbol codes.
15795 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
15796 - ac_symcode='[ABCDGISTUW]'
15797 -fi
15798 +gnu*)
15799 + lt_cv_deplibs_check_method=pass_all
15800 + ;;
15802 -case "$host_os" in
15803 -cygwin32* | mingw32*)
15804 - # We do not want undefined symbols on cygwin32. The user must
15805 - # arrange to define them via -l arguments.
15806 - ac_symcode='[ABCDGISTW]'
15807 +hpux10.20* | hpux11*)
15808 + lt_cv_file_magic_cmd=/usr/bin/file
15809 + case "$host_cpu" in
15810 + ia64*)
15811 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
15812 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
15813 + ;;
15814 + hppa*64*)
15815 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
15816 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
15817 + ;;
15818 + *)
15819 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
15820 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
15821 + ;;
15822 + esac
15823 ;;
15824 -esac
15826 -# Try without a prefix undercore, then with it.
15827 -for ac_symprfx in "" "_"; do
15828 +irix5* | irix6* | nonstopux*)
15829 + case $LD in
15830 + *-32|*"-32 ") libmagic=32-bit;;
15831 + *-n32|*"-n32 ") libmagic=N32;;
15832 + *-64|*"-64 ") libmagic=64-bit;;
15833 + *) libmagic=never-match;;
15834 + esac
15835 + lt_cv_deplibs_check_method=pass_all
15836 + ;;
15838 - # Write the raw and C identifiers.
15839 - # Unlike in ltconfig.in, we need $ac_symprfx before $ac_symxfrm here,
15840 - # otherwise AM_SYS_SYMBOL_UNDERSCORE will always be false
15841 - ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* $ac_symcode $ac_symprfx$ac_sympat$/$ac_symprfx$ac_symxfrm/p'"
15842 +# This must be Linux ELF.
15843 +linux*)
15844 + lt_cv_deplibs_check_method=pass_all
15845 + ;;
15847 - # Check to see that the pipe works correctly.
15848 - ac_pipe_works=no
15849 - cat > conftest.$ac_ext <<EOF
15850 -#ifdef __cplusplus
15851 -extern "C" {
15852 -#endif
15853 -char nm_test_var;
15854 -void nm_test_func(){}
15855 -#ifdef __cplusplus
15856 -}
15857 -#endif
15858 -int main(){nm_test_var='a';nm_test_func;return 0;}
15859 -EOF
15860 - if { (eval echo configure:1408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15861 - # Now try to grab the symbols.
15862 - ac_nlist=conftest.nm
15864 - if { (eval echo configure:1412: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
15865 +netbsd*)
15866 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
15867 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
15868 + else
15869 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
15870 + fi
15871 + ;;
15873 - # Try sorting and uniquifying the output.
15874 - if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
15875 - mv -f "$ac_nlist"T "$ac_nlist"
15876 - ac_wcout=`wc "$ac_nlist" 2>/dev/null`
15877 - ac_count=`echo "X$ac_wcout" | sed -e 's,^X,,' -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
15878 - (test "$ac_count" -ge 0) 2>/dev/null || ac_count=-1
15879 - else
15880 - rm -f "$ac_nlist"T
15881 - ac_count=-1
15882 - fi
15883 +newos6*)
15884 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
15885 + lt_cv_file_magic_cmd=/usr/bin/file
15886 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
15887 + ;;
15889 - # Make sure that we snagged all the symbols we need.
15890 - if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
15891 - if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
15892 - cat <<EOF > conftest.c
15893 -#ifdef __cplusplus
15894 -extern "C" {
15895 -#endif
15896 +nto-qnx*)
15897 + lt_cv_deplibs_check_method=unknown
15898 + ;;
15900 -EOF
15901 - # Now generate the symbol file.
15902 - sed 's/^.* \(.*\)$/extern char \1;/' < "$ac_nlist" >> conftest.c
15903 +openbsd*)
15904 + lt_cv_file_magic_cmd=/usr/bin/file
15905 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
15906 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15907 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
15908 + else
15909 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
15910 + fi
15911 + ;;
15913 - cat <<EOF >> conftest.c
15914 -#if defined (__STDC__) && __STDC__
15915 -# define lt_ptr_t void *
15916 -#else
15917 -# define lt_ptr_t char *
15918 -#endif
15919 +osf3* | osf4* | osf5*)
15920 + lt_cv_deplibs_check_method=pass_all
15921 + ;;
15923 -/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
15924 -int dld_preloaded_symbol_count = $ac_count;
15925 +sco3.2v5*)
15926 + lt_cv_deplibs_check_method=pass_all
15927 + ;;
15929 -/* The mapping between symbol names and symbols. */
15930 -struct {
15931 - char *name;
15932 - lt_ptr_t address;
15933 -}
15934 -dld_preloaded_symbols[] =
15935 -{
15936 -EOF
15937 - sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
15938 - cat <<\EOF >> conftest.c
15939 - {0, (lt_ptr_t) 0}
15940 -};
15941 +solaris*)
15942 + lt_cv_deplibs_check_method=pass_all
15943 + ;;
15945 -#ifdef __cplusplus
15946 -}
15947 -#endif
15948 -EOF
15949 - # Now try linking the two files.
15950 - mv conftest.$ac_objext conftestm.$ac_objext
15951 - ac_save_LIBS="$LIBS"
15952 - ac_save_CFLAGS="$CFLAGS"
15953 - LIBS="conftestm.$ac_objext"
15954 - CFLAGS="$CFLAGS$no_builtin_flag"
15955 - if { (eval echo configure:1470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
15956 - ac_pipe_works=yes
15957 - else
15958 - echo "configure: failed program was:" >&5
15959 - cat conftest.c >&5
15960 - fi
15961 - LIBS="$ac_save_LIBS"
15962 - CFLAGS="$ac_save_CFLAGS"
15963 - else
15964 - echo "cannot find nm_test_func in $ac_nlist" >&5
15965 - fi
15966 - else
15967 - echo "cannot find nm_test_var in $ac_nlist" >&5
15968 - fi
15969 - else
15970 - echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
15971 - fi
15972 - else
15973 - echo "$progname: failed program was:" >&5
15974 - cat conftest.c >&5
15975 - fi
15976 - rm -rf conftest*
15977 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15978 + case $host_vendor in
15979 + motorola)
15980 + 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]'
15981 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
15982 + ;;
15983 + ncr)
15984 + lt_cv_deplibs_check_method=pass_all
15985 + ;;
15986 + sequent)
15987 + lt_cv_file_magic_cmd='/bin/file'
15988 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
15989 + ;;
15990 + sni)
15991 + lt_cv_file_magic_cmd='/bin/file'
15992 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
15993 + lt_cv_file_magic_test_file=/lib/libc.so
15994 + ;;
15995 + siemens)
15996 + lt_cv_deplibs_check_method=pass_all
15997 + ;;
15998 + esac
15999 + ;;
16001 - # Do not use the global_symbol_pipe unless it works.
16002 - if test "$ac_pipe_works" = yes; then
16003 - if test x"$ac_symprfx" = x"_"; then
16004 - ac_cv_sys_symbol_underscore=yes
16005 - else
16006 - ac_cv_sys_symbol_underscore=no
16007 - fi
16008 - break
16009 - else
16010 - ac_cv_sys_global_symbol_pipe=
16011 - fi
16012 -done
16013 +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
16014 + lt_cv_deplibs_check_method=pass_all
16015 + ;;
16016 +esac
16018 fi
16019 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
16020 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
16021 +file_magic_cmd=$lt_cv_file_magic_cmd
16022 +deplibs_check_method=$lt_cv_deplibs_check_method
16023 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
16026 -ac_result=yes
16027 -if test -z "$ac_cv_sys_global_symbol_pipe"; then
16028 - ac_result=no
16029 -fi
16030 -echo "$ac_t""$ac_result" 1>&6
16032 -echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
16033 -echo "configure:1516: checking for _ prefix in compiled symbols" >&5
16034 -if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
16035 - echo $ac_n "(cached) $ac_c" 1>&6
16036 -else
16037 - ac_cv_sys_symbol_underscore=no
16038 -cat > conftest.$ac_ext <<EOF
16039 -void nm_test_func(){}
16040 -int main(){nm_test_func;return 0;}
16041 -EOF
16042 -if { (eval echo configure:1525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16043 - # Now try to grab the symbols.
16044 - ac_nlist=conftest.nm
16045 - if { (eval echo configure:1528: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
16046 - # See whether the symbols have a leading underscore.
16047 - if egrep '^_nm_test_func' "$ac_nlist" >/dev/null; then
16048 - ac_cv_sys_symbol_underscore=yes
16049 - else
16050 - if egrep '^nm_test_func ' "$ac_nlist" >/dev/null; then
16051 - :
16052 - else
16053 - echo "configure: cannot find nm_test_func in $ac_nlist" >&5
16054 - fi
16055 - fi
16056 - else
16057 - echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
16058 - fi
16059 -else
16060 - echo "configure: failed program was:" >&5
16061 - cat conftest.c >&5
16062 -fi
16063 -rm -rf conftest*
16065 -fi
16067 -echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
16068 -USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no}
16069 +# If no C compiler was specified, use CC.
16070 +LTCC=${LTCC-"$CC"}
16072 -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
16073 -echo "configure:1554: checking whether ln -s works" >&5
16074 -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
16075 - echo $ac_n "(cached) $ac_c" 1>&6
16076 -else
16077 - rm -f conftestdata
16078 -if ln -s X conftestdata 2>/dev/null
16079 -then
16080 - rm -f conftestdata
16081 - ac_cv_prog_LN_S="ln -s"
16082 -else
16083 - ac_cv_prog_LN_S=ln
16084 -fi
16085 -fi
16086 -LN_S="$ac_cv_prog_LN_S"
16087 -if test "$ac_cv_prog_LN_S" = "ln -s"; then
16088 - echo "$ac_t""yes" 1>&6
16089 -else
16090 - echo "$ac_t""no" 1>&6
16091 -fi
16092 +# Allow CC to be a program name with arguments.
16093 +compiler=$CC
16095 -if test $host != $build; then
16096 - ac_tool_prefix=${host_alias}-
16097 -else
16098 - ac_tool_prefix=
16099 -fi
16101 -# Always use our own libtool.
16102 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16103 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
16104 +if test "${enable_libtool_lock+set}" = set; then
16105 + enableval="$enable_libtool_lock"
16107 -# Check for any special flags to pass to ltconfig.
16108 -libtool_flags=
16109 -test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
16110 -test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
16111 -test "$silent" = yes && libtool_flags="$libtool_flags --silent"
16112 -test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
16113 -test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
16114 +fi;
16115 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
16117 # Some flags need to be propagated to the compiler or linker for good
16118 # libtool support.
16119 -case "$host" in
16120 -*-*-irix6*)
16121 +case $host in
16122 +ia64-*-hpux*)
16123 # Find out which ABI we are using.
16124 - echo '#line 1596 "configure"' > conftest.$ac_ext
16125 - if { (eval echo configure:1597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16126 - case "`/usr/bin/file conftest.o`" in
16127 + echo 'int i;' > conftest.$ac_ext
16128 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16129 + (eval $ac_compile) 2>&5
16130 + ac_status=$?
16131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 + (exit $ac_status); }; then
16133 + case `/usr/bin/file conftest.$ac_objext` in
16134 + *ELF-32*)
16135 + HPUX_IA64_MODE="32"
16136 + ;;
16137 + *ELF-64*)
16138 + HPUX_IA64_MODE="64"
16139 + ;;
16140 + esac
16141 + fi
16142 + rm -rf conftest*
16143 + ;;
16144 +*-*-irix6*)
16145 + # Find out which ABI we are using.
16146 + echo '#line 3642 "configure"' > conftest.$ac_ext
16147 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16148 + (eval $ac_compile) 2>&5
16149 + ac_status=$?
16150 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 + (exit $ac_status); }; then
16152 + if test "$lt_cv_prog_gnu_ld" = yes; then
16153 + case `/usr/bin/file conftest.$ac_objext` in
16154 + *32-bit*)
16155 + LD="${LD-ld} -melf32bsmip"
16156 + ;;
16157 + *N32*)
16158 + LD="${LD-ld} -melf32bmipn32"
16159 + ;;
16160 + *64-bit*)
16161 + LD="${LD-ld} -melf64bmip"
16162 + ;;
16163 + esac
16164 + else
16165 + case `/usr/bin/file conftest.$ac_objext` in
16166 *32-bit*)
16167 LD="${LD-ld} -32"
16168 ;;
16169 @@ -1605,6 +3669,59 @@ case "$host" in
16170 LD="${LD-ld} -64"
16171 ;;
16172 esac
16173 + fi
16174 + fi
16175 + rm -rf conftest*
16176 + ;;
16178 +x86_64-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
16179 + # Find out which ABI we are using.
16180 + echo 'int i;' > conftest.$ac_ext
16181 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16182 + (eval $ac_compile) 2>&5
16183 + ac_status=$?
16184 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 + (exit $ac_status); }; then
16186 + case "`/usr/bin/file conftest.o`" in
16187 + *32-bit*)
16188 + case $host in
16189 + x86_64-*linux*)
16190 + LD="${LD-ld} -m elf_i386"
16191 + ;;
16192 + powerpc64le-*)
16193 + LD="${LD-ld} -m elf32lppclinux"
16194 + ;;
16195 + powerpc64-*)
16196 + LD="${LD-ld} -m elf32ppclinux"
16197 + ;;
16198 + s390x-*linux*)
16199 + LD="${LD-ld} -m elf_s390"
16200 + ;;
16201 + sparc64-*linux*)
16202 + LD="${LD-ld} -m elf32_sparc"
16203 + ;;
16204 + esac
16205 + ;;
16206 + *64-bit*)
16207 + case $host in
16208 + x86_64-*linux*)
16209 + LD="${LD-ld} -m elf_x86_64"
16210 + ;;
16211 + powerpcle-*)
16212 + LD="${LD-ld} -m elf64lppc"
16213 + ;;
16214 + powerpc-*)
16215 + LD="${LD-ld} -m elf64ppc"
16216 + ;;
16217 + s390*-*linux*)
16218 + LD="${LD-ld} -m elf64_s390"
16219 + ;;
16220 + sparc*-*linux*)
16221 + LD="${LD-ld} -m elf64_sparc"
16222 + ;;
16223 + esac
16224 + ;;
16225 + esac
16226 fi
16227 rm -rf conftest*
16228 ;;
16229 @@ -1613,219 +3730,15332 @@ case "$host" in
16230 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
16231 SAVE_CFLAGS="$CFLAGS"
16232 CFLAGS="$CFLAGS -belf"
16233 - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
16234 -echo "configure:1618: checking whether the C compiler needs -belf" >&5
16235 -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
16236 - echo $ac_n "(cached) $ac_c" 1>&6
16237 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
16238 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
16239 +if test "${lt_cv_cc_needs_belf+set}" = set; then
16240 + echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 - cat > conftest.$ac_ext <<EOF
16243 -#line 1623 "configure"
16244 -#include "confdefs.h"
16245 + ac_ext=c
16246 +ac_cpp='$CPP $CPPFLAGS'
16247 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16248 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16249 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16251 + cat >conftest.$ac_ext <<_ACEOF
16252 +/* confdefs.h. */
16253 +_ACEOF
16254 +cat confdefs.h >>conftest.$ac_ext
16255 +cat >>conftest.$ac_ext <<_ACEOF
16256 +/* end confdefs.h. */
16258 -int main() {
16259 +int
16260 +main ()
16261 +{
16263 -; return 0; }
16264 -EOF
16265 -if { (eval echo configure:1630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266 - rm -rf conftest*
16267 + ;
16268 + return 0;
16269 +}
16270 +_ACEOF
16271 +rm -f conftest.$ac_objext conftest$ac_exeext
16272 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16273 + (eval $ac_link) 2>conftest.er1
16274 + ac_status=$?
16275 + grep -v '^ *+' conftest.er1 >conftest.err
16276 + rm -f conftest.er1
16277 + cat conftest.err >&5
16278 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 + (exit $ac_status); } &&
16280 + { ac_try='test -z "$ac_c_werror_flag"
16281 + || test ! -s conftest.err'
16282 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283 + (eval $ac_try) 2>&5
16284 + ac_status=$?
16285 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 + (exit $ac_status); }; } &&
16287 + { ac_try='test -s conftest$ac_exeext'
16288 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 + (eval $ac_try) 2>&5
16290 + ac_status=$?
16291 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 + (exit $ac_status); }; }; then
16293 lt_cv_cc_needs_belf=yes
16294 else
16295 - echo "configure: failed program was:" >&5
16296 - cat conftest.$ac_ext >&5
16297 - rm -rf conftest*
16298 - lt_cv_cc_needs_belf=no
16299 -fi
16300 -rm -f conftest*
16301 + echo "$as_me: failed program was:" >&5
16302 +sed 's/^/| /' conftest.$ac_ext >&5
16304 +lt_cv_cc_needs_belf=no
16305 fi
16306 +rm -f conftest.err conftest.$ac_objext \
16307 + conftest$ac_exeext conftest.$ac_ext
16308 + ac_ext=c
16309 +ac_cpp='$CPP $CPPFLAGS'
16310 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16311 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16312 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16314 -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
16315 +fi
16316 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
16317 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
16318 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
16319 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
16320 CFLAGS="$SAVE_CFLAGS"
16321 fi
16322 ;;
16324 -*-*-cygwin32*)
16325 - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16326 -set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16327 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16328 -echo "configure:1653: checking for $ac_word" >&5
16329 -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
16330 - echo $ac_n "(cached) $ac_c" 1>&6
16331 +esac
16333 +need_locks="$enable_libtool_lock"
16336 +ac_ext=c
16337 +ac_cpp='$CPP $CPPFLAGS'
16338 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16339 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16340 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16341 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
16342 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
16343 +# On Suns, sometimes $CPP names a directory.
16344 +if test -n "$CPP" && test -d "$CPP"; then
16345 + CPP=
16346 +fi
16347 +if test -z "$CPP"; then
16348 + if test "${ac_cv_prog_CPP+set}" = set; then
16349 + echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 - if test -n "$DLLTOOL"; then
16352 - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16353 + # Double quotes because CPP needs to be expanded
16354 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
16355 + do
16356 + ac_preproc_ok=false
16357 +for ac_c_preproc_warn_flag in '' yes
16358 +do
16359 + # Use a header file that comes with gcc, so configuring glibc
16360 + # with a fresh cross-compiler works.
16361 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16362 + # <limits.h> exists even on freestanding compilers.
16363 + # On the NeXT, cc -E runs the code through the compiler's parser,
16364 + # not just through cpp. "Syntax error" is here to catch this case.
16365 + cat >conftest.$ac_ext <<_ACEOF
16366 +/* confdefs.h. */
16367 +_ACEOF
16368 +cat confdefs.h >>conftest.$ac_ext
16369 +cat >>conftest.$ac_ext <<_ACEOF
16370 +/* end confdefs.h. */
16371 +#ifdef __STDC__
16372 +# include <limits.h>
16373 +#else
16374 +# include <assert.h>
16375 +#endif
16376 + Syntax error
16377 +_ACEOF
16378 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16379 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16380 + ac_status=$?
16381 + grep -v '^ *+' conftest.er1 >conftest.err
16382 + rm -f conftest.er1
16383 + cat conftest.err >&5
16384 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 + (exit $ac_status); } >/dev/null; then
16386 + if test -s conftest.err; then
16387 + ac_cpp_err=$ac_c_preproc_warn_flag
16388 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16389 + else
16390 + ac_cpp_err=
16391 + fi
16392 else
16393 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16394 - ac_dummy="$PATH"
16395 - for ac_dir in $ac_dummy; do
16396 - test -z "$ac_dir" && ac_dir=.
16397 - if test -f $ac_dir/$ac_word; then
16398 - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16399 - break
16400 - fi
16401 - done
16402 - IFS="$ac_save_ifs"
16403 + ac_cpp_err=yes
16404 +fi
16405 +if test -z "$ac_cpp_err"; then
16406 + :
16407 +else
16408 + echo "$as_me: failed program was:" >&5
16409 +sed 's/^/| /' conftest.$ac_ext >&5
16411 + # Broken: fails on valid input.
16412 +continue
16413 fi
16414 +rm -f conftest.err conftest.$ac_ext
16416 + # OK, works on sane cases. Now check whether non-existent headers
16417 + # can be detected and how.
16418 + cat >conftest.$ac_ext <<_ACEOF
16419 +/* confdefs.h. */
16420 +_ACEOF
16421 +cat confdefs.h >>conftest.$ac_ext
16422 +cat >>conftest.$ac_ext <<_ACEOF
16423 +/* end confdefs.h. */
16424 +#include <ac_nonexistent.h>
16425 +_ACEOF
16426 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16427 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16428 + ac_status=$?
16429 + grep -v '^ *+' conftest.er1 >conftest.err
16430 + rm -f conftest.er1
16431 + cat conftest.err >&5
16432 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16433 + (exit $ac_status); } >/dev/null; then
16434 + if test -s conftest.err; then
16435 + ac_cpp_err=$ac_c_preproc_warn_flag
16436 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16437 + else
16438 + ac_cpp_err=
16439 + fi
16440 +else
16441 + ac_cpp_err=yes
16442 fi
16443 -DLLTOOL="$ac_cv_prog_DLLTOOL"
16444 -if test -n "$DLLTOOL"; then
16445 - echo "$ac_t""$DLLTOOL" 1>&6
16446 +if test -z "$ac_cpp_err"; then
16447 + # Broken: success on invalid input.
16448 +continue
16449 else
16450 - echo "$ac_t""no" 1>&6
16451 + echo "$as_me: failed program was:" >&5
16452 +sed 's/^/| /' conftest.$ac_ext >&5
16454 + # Passes both tests.
16455 +ac_preproc_ok=:
16456 +break
16457 +fi
16458 +rm -f conftest.err conftest.$ac_ext
16460 +done
16461 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16462 +rm -f conftest.err conftest.$ac_ext
16463 +if $ac_preproc_ok; then
16464 + break
16465 fi
16467 + done
16468 + ac_cv_prog_CPP=$CPP
16470 -if test -z "$ac_cv_prog_DLLTOOL"; then
16471 -if test -n "$ac_tool_prefix"; then
16472 - # Extract the first word of "dlltool", so it can be a program name with args.
16473 -set dummy dlltool; ac_word=$2
16474 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16475 -echo "configure:1685: checking for $ac_word" >&5
16476 -if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
16477 - echo $ac_n "(cached) $ac_c" 1>&6
16478 +fi
16479 + CPP=$ac_cv_prog_CPP
16480 else
16481 - if test -n "$DLLTOOL"; then
16482 - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16483 + ac_cv_prog_CPP=$CPP
16484 +fi
16485 +echo "$as_me:$LINENO: result: $CPP" >&5
16486 +echo "${ECHO_T}$CPP" >&6
16487 +ac_preproc_ok=false
16488 +for ac_c_preproc_warn_flag in '' yes
16489 +do
16490 + # Use a header file that comes with gcc, so configuring glibc
16491 + # with a fresh cross-compiler works.
16492 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16493 + # <limits.h> exists even on freestanding compilers.
16494 + # On the NeXT, cc -E runs the code through the compiler's parser,
16495 + # not just through cpp. "Syntax error" is here to catch this case.
16496 + cat >conftest.$ac_ext <<_ACEOF
16497 +/* confdefs.h. */
16498 +_ACEOF
16499 +cat confdefs.h >>conftest.$ac_ext
16500 +cat >>conftest.$ac_ext <<_ACEOF
16501 +/* end confdefs.h. */
16502 +#ifdef __STDC__
16503 +# include <limits.h>
16504 +#else
16505 +# include <assert.h>
16506 +#endif
16507 + Syntax error
16508 +_ACEOF
16509 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16510 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16511 + ac_status=$?
16512 + grep -v '^ *+' conftest.er1 >conftest.err
16513 + rm -f conftest.er1
16514 + cat conftest.err >&5
16515 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 + (exit $ac_status); } >/dev/null; then
16517 + if test -s conftest.err; then
16518 + ac_cpp_err=$ac_c_preproc_warn_flag
16519 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16520 + else
16521 + ac_cpp_err=
16522 + fi
16523 else
16524 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16525 - ac_dummy="$PATH"
16526 - for ac_dir in $ac_dummy; do
16527 - test -z "$ac_dir" && ac_dir=.
16528 - if test -f $ac_dir/$ac_word; then
16529 - ac_cv_prog_DLLTOOL="dlltool"
16530 - break
16531 - fi
16532 - done
16533 - IFS="$ac_save_ifs"
16534 - test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
16535 + ac_cpp_err=yes
16536 +fi
16537 +if test -z "$ac_cpp_err"; then
16538 + :
16539 +else
16540 + echo "$as_me: failed program was:" >&5
16541 +sed 's/^/| /' conftest.$ac_ext >&5
16543 + # Broken: fails on valid input.
16544 +continue
16545 +fi
16546 +rm -f conftest.err conftest.$ac_ext
16548 + # OK, works on sane cases. Now check whether non-existent headers
16549 + # can be detected and how.
16550 + cat >conftest.$ac_ext <<_ACEOF
16551 +/* confdefs.h. */
16552 +_ACEOF
16553 +cat confdefs.h >>conftest.$ac_ext
16554 +cat >>conftest.$ac_ext <<_ACEOF
16555 +/* end confdefs.h. */
16556 +#include <ac_nonexistent.h>
16557 +_ACEOF
16558 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16559 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16560 + ac_status=$?
16561 + grep -v '^ *+' conftest.er1 >conftest.err
16562 + rm -f conftest.er1
16563 + cat conftest.err >&5
16564 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 + (exit $ac_status); } >/dev/null; then
16566 + if test -s conftest.err; then
16567 + ac_cpp_err=$ac_c_preproc_warn_flag
16568 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16569 + else
16570 + ac_cpp_err=
16571 + fi
16572 +else
16573 + ac_cpp_err=yes
16574 +fi
16575 +if test -z "$ac_cpp_err"; then
16576 + # Broken: success on invalid input.
16577 +continue
16578 +else
16579 + echo "$as_me: failed program was:" >&5
16580 +sed 's/^/| /' conftest.$ac_ext >&5
16582 + # Passes both tests.
16583 +ac_preproc_ok=:
16584 +break
16585 +fi
16586 +rm -f conftest.err conftest.$ac_ext
16588 +done
16589 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16590 +rm -f conftest.err conftest.$ac_ext
16591 +if $ac_preproc_ok; then
16592 + :
16593 +else
16594 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
16595 +See \`config.log' for more details." >&5
16596 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
16597 +See \`config.log' for more details." >&2;}
16598 + { (exit 1); exit 1; }; }
16599 +fi
16601 +ac_ext=c
16602 +ac_cpp='$CPP $CPPFLAGS'
16603 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
16608 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
16609 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
16610 +if test "${ac_cv_header_stdc+set}" = set; then
16611 + echo $ECHO_N "(cached) $ECHO_C" >&6
16612 +else
16613 + cat >conftest.$ac_ext <<_ACEOF
16614 +/* confdefs.h. */
16615 +_ACEOF
16616 +cat confdefs.h >>conftest.$ac_ext
16617 +cat >>conftest.$ac_ext <<_ACEOF
16618 +/* end confdefs.h. */
16619 +#include <stdlib.h>
16620 +#include <stdarg.h>
16621 +#include <string.h>
16622 +#include <float.h>
16624 +int
16625 +main ()
16626 +{
16628 + ;
16629 + return 0;
16630 +}
16631 +_ACEOF
16632 +rm -f conftest.$ac_objext
16633 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16634 + (eval $ac_compile) 2>conftest.er1
16635 + ac_status=$?
16636 + grep -v '^ *+' conftest.er1 >conftest.err
16637 + rm -f conftest.er1
16638 + cat conftest.err >&5
16639 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 + (exit $ac_status); } &&
16641 + { ac_try='test -z "$ac_c_werror_flag"
16642 + || test ! -s conftest.err'
16643 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 + (eval $ac_try) 2>&5
16645 + ac_status=$?
16646 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 + (exit $ac_status); }; } &&
16648 + { ac_try='test -s conftest.$ac_objext'
16649 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16650 + (eval $ac_try) 2>&5
16651 + ac_status=$?
16652 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 + (exit $ac_status); }; }; then
16654 + ac_cv_header_stdc=yes
16655 +else
16656 + echo "$as_me: failed program was:" >&5
16657 +sed 's/^/| /' conftest.$ac_ext >&5
16659 +ac_cv_header_stdc=no
16660 +fi
16661 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 +if test $ac_cv_header_stdc = yes; then
16664 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16665 + cat >conftest.$ac_ext <<_ACEOF
16666 +/* confdefs.h. */
16667 +_ACEOF
16668 +cat confdefs.h >>conftest.$ac_ext
16669 +cat >>conftest.$ac_ext <<_ACEOF
16670 +/* end confdefs.h. */
16671 +#include <string.h>
16673 +_ACEOF
16674 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16675 + $EGREP "memchr" >/dev/null 2>&1; then
16676 + :
16677 +else
16678 + ac_cv_header_stdc=no
16679 fi
16680 +rm -f conftest*
16682 fi
16683 -DLLTOOL="$ac_cv_prog_DLLTOOL"
16684 -if test -n "$DLLTOOL"; then
16685 - echo "$ac_t""$DLLTOOL" 1>&6
16687 +if test $ac_cv_header_stdc = yes; then
16688 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16689 + cat >conftest.$ac_ext <<_ACEOF
16690 +/* confdefs.h. */
16691 +_ACEOF
16692 +cat confdefs.h >>conftest.$ac_ext
16693 +cat >>conftest.$ac_ext <<_ACEOF
16694 +/* end confdefs.h. */
16695 +#include <stdlib.h>
16697 +_ACEOF
16698 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16699 + $EGREP "free" >/dev/null 2>&1; then
16700 + :
16701 else
16702 - echo "$ac_t""no" 1>&6
16703 + ac_cv_header_stdc=no
16704 +fi
16705 +rm -f conftest*
16707 fi
16709 +if test $ac_cv_header_stdc = yes; then
16710 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16711 + if test "$cross_compiling" = yes; then
16712 + :
16713 +else
16714 + cat >conftest.$ac_ext <<_ACEOF
16715 +/* confdefs.h. */
16716 +_ACEOF
16717 +cat confdefs.h >>conftest.$ac_ext
16718 +cat >>conftest.$ac_ext <<_ACEOF
16719 +/* end confdefs.h. */
16720 +#include <ctype.h>
16721 +#if ((' ' & 0x0FF) == 0x020)
16722 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16723 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16724 +#else
16725 +# define ISLOWER(c) \
16726 + (('a' <= (c) && (c) <= 'i') \
16727 + || ('j' <= (c) && (c) <= 'r') \
16728 + || ('s' <= (c) && (c) <= 'z'))
16729 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16730 +#endif
16732 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16733 +int
16734 +main ()
16735 +{
16736 + int i;
16737 + for (i = 0; i < 256; i++)
16738 + if (XOR (islower (i), ISLOWER (i))
16739 + || toupper (i) != TOUPPER (i))
16740 + exit(2);
16741 + exit (0);
16742 +}
16743 +_ACEOF
16744 +rm -f conftest$ac_exeext
16745 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746 + (eval $ac_link) 2>&5
16747 + ac_status=$?
16748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16750 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16751 + (eval $ac_try) 2>&5
16752 + ac_status=$?
16753 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 + (exit $ac_status); }; }; then
16755 + :
16756 else
16757 - DLLTOOL="false"
16758 + echo "$as_me: program exited with status $ac_status" >&5
16759 +echo "$as_me: failed program was:" >&5
16760 +sed 's/^/| /' conftest.$ac_ext >&5
16762 +( exit $ac_status )
16763 +ac_cv_header_stdc=no
16764 +fi
16765 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 +fi
16767 +fi
16768 +fi
16769 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
16770 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
16771 +if test $ac_cv_header_stdc = yes; then
16773 +cat >>confdefs.h <<\_ACEOF
16774 +#define STDC_HEADERS 1
16775 +_ACEOF
16777 fi
16779 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
16789 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
16790 + inttypes.h stdint.h unistd.h
16791 +do
16792 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16793 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16794 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16795 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16796 + echo $ECHO_N "(cached) $ECHO_C" >&6
16797 +else
16798 + cat >conftest.$ac_ext <<_ACEOF
16799 +/* confdefs.h. */
16800 +_ACEOF
16801 +cat confdefs.h >>conftest.$ac_ext
16802 +cat >>conftest.$ac_ext <<_ACEOF
16803 +/* end confdefs.h. */
16804 +$ac_includes_default
16806 +#include <$ac_header>
16807 +_ACEOF
16808 +rm -f conftest.$ac_objext
16809 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16810 + (eval $ac_compile) 2>conftest.er1
16811 + ac_status=$?
16812 + grep -v '^ *+' conftest.er1 >conftest.err
16813 + rm -f conftest.er1
16814 + cat conftest.err >&5
16815 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 + (exit $ac_status); } &&
16817 + { ac_try='test -z "$ac_c_werror_flag"
16818 + || test ! -s conftest.err'
16819 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 + (eval $ac_try) 2>&5
16821 + ac_status=$?
16822 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 + (exit $ac_status); }; } &&
16824 + { ac_try='test -s conftest.$ac_objext'
16825 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16826 + (eval $ac_try) 2>&5
16827 + ac_status=$?
16828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 + (exit $ac_status); }; }; then
16830 + eval "$as_ac_Header=yes"
16831 +else
16832 + echo "$as_me: failed program was:" >&5
16833 +sed 's/^/| /' conftest.$ac_ext >&5
16835 +eval "$as_ac_Header=no"
16836 +fi
16837 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16838 +fi
16839 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16840 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16841 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842 + cat >>confdefs.h <<_ACEOF
16843 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 +_ACEOF
16846 fi
16848 -# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16849 -set dummy ${ac_tool_prefix}as; ac_word=$2
16850 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
16851 -echo "configure:1720: checking for $ac_word" >&5
16852 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
16853 - echo $ac_n "(cached) $ac_c" 1>&6
16854 +done
16858 +for ac_header in dlfcn.h
16859 +do
16860 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16861 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16862 + echo "$as_me:$LINENO: checking for $ac_header" >&5
16863 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16864 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
16865 + echo $ECHO_N "(cached) $ECHO_C" >&6
16866 +fi
16867 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16868 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16869 +else
16870 + # Is the header compilable?
16871 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
16872 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16873 +cat >conftest.$ac_ext <<_ACEOF
16874 +/* confdefs.h. */
16875 +_ACEOF
16876 +cat confdefs.h >>conftest.$ac_ext
16877 +cat >>conftest.$ac_ext <<_ACEOF
16878 +/* end confdefs.h. */
16879 +$ac_includes_default
16880 +#include <$ac_header>
16881 +_ACEOF
16882 +rm -f conftest.$ac_objext
16883 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16884 + (eval $ac_compile) 2>conftest.er1
16885 + ac_status=$?
16886 + grep -v '^ *+' conftest.er1 >conftest.err
16887 + rm -f conftest.er1
16888 + cat conftest.err >&5
16889 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890 + (exit $ac_status); } &&
16891 + { ac_try='test -z "$ac_c_werror_flag"
16892 + || test ! -s conftest.err'
16893 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16894 + (eval $ac_try) 2>&5
16895 + ac_status=$?
16896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16897 + (exit $ac_status); }; } &&
16898 + { ac_try='test -s conftest.$ac_objext'
16899 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16900 + (eval $ac_try) 2>&5
16901 + ac_status=$?
16902 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903 + (exit $ac_status); }; }; then
16904 + ac_header_compiler=yes
16905 +else
16906 + echo "$as_me: failed program was:" >&5
16907 +sed 's/^/| /' conftest.$ac_ext >&5
16909 +ac_header_compiler=no
16910 +fi
16911 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16912 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16913 +echo "${ECHO_T}$ac_header_compiler" >&6
16915 +# Is the header present?
16916 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
16917 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16918 +cat >conftest.$ac_ext <<_ACEOF
16919 +/* confdefs.h. */
16920 +_ACEOF
16921 +cat confdefs.h >>conftest.$ac_ext
16922 +cat >>conftest.$ac_ext <<_ACEOF
16923 +/* end confdefs.h. */
16924 +#include <$ac_header>
16925 +_ACEOF
16926 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16927 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16928 + ac_status=$?
16929 + grep -v '^ *+' conftest.er1 >conftest.err
16930 + rm -f conftest.er1
16931 + cat conftest.err >&5
16932 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 + (exit $ac_status); } >/dev/null; then
16934 + if test -s conftest.err; then
16935 + ac_cpp_err=$ac_c_preproc_warn_flag
16936 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16937 + else
16938 + ac_cpp_err=
16939 + fi
16940 else
16941 - if test -n "$AS"; then
16942 - ac_cv_prog_AS="$AS" # Let the user override the test.
16943 + ac_cpp_err=yes
16944 +fi
16945 +if test -z "$ac_cpp_err"; then
16946 + ac_header_preproc=yes
16947 else
16948 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
16949 - ac_dummy="$PATH"
16950 - for ac_dir in $ac_dummy; do
16951 - test -z "$ac_dir" && ac_dir=.
16952 - if test -f $ac_dir/$ac_word; then
16953 - ac_cv_prog_AS="${ac_tool_prefix}as"
16954 - break
16955 - fi
16956 + echo "$as_me: failed program was:" >&5
16957 +sed 's/^/| /' conftest.$ac_ext >&5
16959 + ac_header_preproc=no
16960 +fi
16961 +rm -f conftest.err conftest.$ac_ext
16962 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16963 +echo "${ECHO_T}$ac_header_preproc" >&6
16965 +# So? What about this header?
16966 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16967 + yes:no: )
16968 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16969 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16970 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16971 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16972 + ac_header_preproc=yes
16973 + ;;
16974 + no:yes:* )
16975 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16976 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16977 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16978 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16979 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16980 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16981 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16982 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16983 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16984 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16985 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16986 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16987 + (
16988 + cat <<\_ASBOX
16989 +## ------------------------------------------ ##
16990 +## Report this to the AC_PACKAGE_NAME lists. ##
16991 +## ------------------------------------------ ##
16992 +_ASBOX
16993 + ) |
16994 + sed "s/^/$as_me: WARNING: /" >&2
16995 + ;;
16996 +esac
16997 +echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16999 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
17000 + echo $ECHO_N "(cached) $ECHO_C" >&6
17001 +else
17002 + eval "$as_ac_Header=\$ac_header_preproc"
17003 +fi
17004 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17005 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17007 +fi
17008 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
17009 + cat >>confdefs.h <<_ACEOF
17010 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17011 +_ACEOF
17013 +fi
17015 +done
17017 +ac_ext=cc
17018 +ac_cpp='$CXXCPP $CPPFLAGS'
17019 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17020 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17021 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17022 +if test -n "$ac_tool_prefix"; then
17023 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
17024 + do
17025 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17026 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17027 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17028 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17029 +if test "${ac_cv_prog_CXX+set}" = set; then
17030 + echo $ECHO_N "(cached) $ECHO_C" >&6
17031 +else
17032 + if test -n "$CXX"; then
17033 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
17034 +else
17035 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036 +for as_dir in $PATH
17037 +do
17038 + IFS=$as_save_IFS
17039 + test -z "$as_dir" && as_dir=.
17040 + for ac_exec_ext in '' $ac_executable_extensions; do
17041 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17042 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
17043 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17044 + break 2
17045 + fi
17046 +done
17047 +done
17049 +fi
17050 +fi
17051 +CXX=$ac_cv_prog_CXX
17052 +if test -n "$CXX"; then
17053 + echo "$as_me:$LINENO: result: $CXX" >&5
17054 +echo "${ECHO_T}$CXX" >&6
17055 +else
17056 + echo "$as_me:$LINENO: result: no" >&5
17057 +echo "${ECHO_T}no" >&6
17058 +fi
17060 + test -n "$CXX" && break
17061 done
17062 - IFS="$ac_save_ifs"
17063 fi
17064 +if test -z "$CXX"; then
17065 + ac_ct_CXX=$CXX
17066 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
17067 +do
17068 + # Extract the first word of "$ac_prog", so it can be a program name with args.
17069 +set dummy $ac_prog; ac_word=$2
17070 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17071 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17072 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
17073 + echo $ECHO_N "(cached) $ECHO_C" >&6
17074 +else
17075 + if test -n "$ac_ct_CXX"; then
17076 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
17077 +else
17078 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17079 +for as_dir in $PATH
17080 +do
17081 + IFS=$as_save_IFS
17082 + test -z "$as_dir" && as_dir=.
17083 + for ac_exec_ext in '' $ac_executable_extensions; do
17084 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17085 + ac_cv_prog_ac_ct_CXX="$ac_prog"
17086 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17087 + break 2
17088 + fi
17089 +done
17090 +done
17092 +fi
17093 +fi
17094 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
17095 +if test -n "$ac_ct_CXX"; then
17096 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
17097 +echo "${ECHO_T}$ac_ct_CXX" >&6
17098 +else
17099 + echo "$as_me:$LINENO: result: no" >&5
17100 +echo "${ECHO_T}no" >&6
17101 +fi
17103 + test -n "$ac_ct_CXX" && break
17104 +done
17105 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
17107 + CXX=$ac_ct_CXX
17108 fi
17109 -AS="$ac_cv_prog_AS"
17110 -if test -n "$AS"; then
17111 - echo "$ac_t""$AS" 1>&6
17114 +# Provide some information about the compiler.
17115 +echo "$as_me:$LINENO:" \
17116 + "checking for C++ compiler version" >&5
17117 +ac_compiler=`set X $ac_compile; echo $2`
17118 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
17119 + (eval $ac_compiler --version </dev/null >&5) 2>&5
17120 + ac_status=$?
17121 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 + (exit $ac_status); }
17123 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
17124 + (eval $ac_compiler -v </dev/null >&5) 2>&5
17125 + ac_status=$?
17126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 + (exit $ac_status); }
17128 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
17129 + (eval $ac_compiler -V </dev/null >&5) 2>&5
17130 + ac_status=$?
17131 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 + (exit $ac_status); }
17134 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
17135 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
17136 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
17137 + echo $ECHO_N "(cached) $ECHO_C" >&6
17138 +else
17139 + cat >conftest.$ac_ext <<_ACEOF
17140 +/* confdefs.h. */
17141 +_ACEOF
17142 +cat confdefs.h >>conftest.$ac_ext
17143 +cat >>conftest.$ac_ext <<_ACEOF
17144 +/* end confdefs.h. */
17146 +int
17147 +main ()
17148 +{
17149 +#ifndef __GNUC__
17150 + choke me
17151 +#endif
17153 + ;
17154 + return 0;
17155 +}
17156 +_ACEOF
17157 +rm -f conftest.$ac_objext
17158 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17159 + (eval $ac_compile) 2>conftest.er1
17160 + ac_status=$?
17161 + grep -v '^ *+' conftest.er1 >conftest.err
17162 + rm -f conftest.er1
17163 + cat conftest.err >&5
17164 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17165 + (exit $ac_status); } &&
17166 + { ac_try='test -z "$ac_cxx_werror_flag"
17167 + || test ! -s conftest.err'
17168 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17169 + (eval $ac_try) 2>&5
17170 + ac_status=$?
17171 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172 + (exit $ac_status); }; } &&
17173 + { ac_try='test -s conftest.$ac_objext'
17174 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17175 + (eval $ac_try) 2>&5
17176 + ac_status=$?
17177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 + (exit $ac_status); }; }; then
17179 + ac_compiler_gnu=yes
17180 +else
17181 + echo "$as_me: failed program was:" >&5
17182 +sed 's/^/| /' conftest.$ac_ext >&5
17184 +ac_compiler_gnu=no
17185 +fi
17186 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17187 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
17189 +fi
17190 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
17191 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
17192 +GXX=`test $ac_compiler_gnu = yes && echo yes`
17193 +ac_test_CXXFLAGS=${CXXFLAGS+set}
17194 +ac_save_CXXFLAGS=$CXXFLAGS
17195 +CXXFLAGS="-g"
17196 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
17197 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
17198 +if test "${ac_cv_prog_cxx_g+set}" = set; then
17199 + echo $ECHO_N "(cached) $ECHO_C" >&6
17200 +else
17201 + cat >conftest.$ac_ext <<_ACEOF
17202 +/* confdefs.h. */
17203 +_ACEOF
17204 +cat confdefs.h >>conftest.$ac_ext
17205 +cat >>conftest.$ac_ext <<_ACEOF
17206 +/* end confdefs.h. */
17208 +int
17209 +main ()
17210 +{
17212 + ;
17213 + return 0;
17214 +}
17215 +_ACEOF
17216 +rm -f conftest.$ac_objext
17217 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17218 + (eval $ac_compile) 2>conftest.er1
17219 + ac_status=$?
17220 + grep -v '^ *+' conftest.er1 >conftest.err
17221 + rm -f conftest.er1
17222 + cat conftest.err >&5
17223 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 + (exit $ac_status); } &&
17225 + { ac_try='test -z "$ac_cxx_werror_flag"
17226 + || test ! -s conftest.err'
17227 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17228 + (eval $ac_try) 2>&5
17229 + ac_status=$?
17230 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 + (exit $ac_status); }; } &&
17232 + { ac_try='test -s conftest.$ac_objext'
17233 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 + (eval $ac_try) 2>&5
17235 + ac_status=$?
17236 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 + (exit $ac_status); }; }; then
17238 + ac_cv_prog_cxx_g=yes
17239 +else
17240 + echo "$as_me: failed program was:" >&5
17241 +sed 's/^/| /' conftest.$ac_ext >&5
17243 +ac_cv_prog_cxx_g=no
17244 +fi
17245 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17246 +fi
17247 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
17248 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
17249 +if test "$ac_test_CXXFLAGS" = set; then
17250 + CXXFLAGS=$ac_save_CXXFLAGS
17251 +elif test $ac_cv_prog_cxx_g = yes; then
17252 + if test "$GXX" = yes; then
17253 + CXXFLAGS="-g -O2"
17254 + else
17255 + CXXFLAGS="-g"
17256 + fi
17257 else
17258 - echo "$ac_t""no" 1>&6
17259 + if test "$GXX" = yes; then
17260 + CXXFLAGS="-O2"
17261 + else
17262 + CXXFLAGS=
17263 + fi
17264 fi
17265 +for ac_declaration in \
17266 + '' \
17267 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
17268 + 'extern "C" void std::exit (int); using std::exit;' \
17269 + 'extern "C" void exit (int) throw ();' \
17270 + 'extern "C" void exit (int);' \
17271 + 'void exit (int);'
17272 +do
17273 + cat >conftest.$ac_ext <<_ACEOF
17274 +/* confdefs.h. */
17275 +_ACEOF
17276 +cat confdefs.h >>conftest.$ac_ext
17277 +cat >>conftest.$ac_ext <<_ACEOF
17278 +/* end confdefs.h. */
17279 +$ac_declaration
17280 +#include <stdlib.h>
17281 +int
17282 +main ()
17283 +{
17284 +exit (42);
17285 + ;
17286 + return 0;
17287 +}
17288 +_ACEOF
17289 +rm -f conftest.$ac_objext
17290 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291 + (eval $ac_compile) 2>conftest.er1
17292 + ac_status=$?
17293 + grep -v '^ *+' conftest.er1 >conftest.err
17294 + rm -f conftest.er1
17295 + cat conftest.err >&5
17296 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 + (exit $ac_status); } &&
17298 + { ac_try='test -z "$ac_cxx_werror_flag"
17299 + || test ! -s conftest.err'
17300 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 + (eval $ac_try) 2>&5
17302 + ac_status=$?
17303 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 + (exit $ac_status); }; } &&
17305 + { ac_try='test -s conftest.$ac_objext'
17306 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 + (eval $ac_try) 2>&5
17308 + ac_status=$?
17309 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 + (exit $ac_status); }; }; then
17311 + :
17312 +else
17313 + echo "$as_me: failed program was:" >&5
17314 +sed 's/^/| /' conftest.$ac_ext >&5
17316 +continue
17317 +fi
17318 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17319 + cat >conftest.$ac_ext <<_ACEOF
17320 +/* confdefs.h. */
17321 +_ACEOF
17322 +cat confdefs.h >>conftest.$ac_ext
17323 +cat >>conftest.$ac_ext <<_ACEOF
17324 +/* end confdefs.h. */
17325 +$ac_declaration
17326 +int
17327 +main ()
17328 +{
17329 +exit (42);
17330 + ;
17331 + return 0;
17332 +}
17333 +_ACEOF
17334 +rm -f conftest.$ac_objext
17335 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17336 + (eval $ac_compile) 2>conftest.er1
17337 + ac_status=$?
17338 + grep -v '^ *+' conftest.er1 >conftest.err
17339 + rm -f conftest.er1
17340 + cat conftest.err >&5
17341 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 + (exit $ac_status); } &&
17343 + { ac_try='test -z "$ac_cxx_werror_flag"
17344 + || test ! -s conftest.err'
17345 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17346 + (eval $ac_try) 2>&5
17347 + ac_status=$?
17348 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17349 + (exit $ac_status); }; } &&
17350 + { ac_try='test -s conftest.$ac_objext'
17351 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 + (eval $ac_try) 2>&5
17353 + ac_status=$?
17354 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 + (exit $ac_status); }; }; then
17356 + break
17357 +else
17358 + echo "$as_me: failed program was:" >&5
17359 +sed 's/^/| /' conftest.$ac_ext >&5
17361 +fi
17362 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17363 +done
17364 +rm -f conftest*
17365 +if test -n "$ac_declaration"; then
17366 + echo '#ifdef __cplusplus' >>confdefs.h
17367 + echo $ac_declaration >>confdefs.h
17368 + echo '#endif' >>confdefs.h
17369 +fi
17371 +ac_ext=cc
17372 +ac_cpp='$CXXCPP $CPPFLAGS'
17373 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17374 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17375 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17377 +depcc="$CXX" am_compiler_list=
17379 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
17380 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
17381 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
17382 + echo $ECHO_N "(cached) $ECHO_C" >&6
17383 +else
17384 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17385 + # We make a subdir and do the tests there. Otherwise we can end up
17386 + # making bogus files that we don't know about and never remove. For
17387 + # instance it was reported that on HP-UX the gcc test will end up
17388 + # making a dummy file named `D' -- because `-MD' means `put the output
17389 + # in D'.
17390 + mkdir conftest.dir
17391 + # Copy depcomp to subdir because otherwise we won't find it if we're
17392 + # using a relative directory.
17393 + cp "$am_depcomp" conftest.dir
17394 + cd conftest.dir
17395 + # We will build objects and dependencies in a subdirectory because
17396 + # it helps to detect inapplicable dependency modes. For instance
17397 + # both Tru64's cc and ICC support -MD to output dependencies as a
17398 + # side effect of compilation, but ICC will put the dependencies in
17399 + # the current directory while Tru64 will put them in the object
17400 + # directory.
17401 + mkdir sub
17403 + am_cv_CXX_dependencies_compiler_type=none
17404 + if test "$am_compiler_list" = ""; then
17405 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17406 + fi
17407 + for depmode in $am_compiler_list; do
17408 + # Setup a source with many dependencies, because some compilers
17409 + # like to wrap large dependency lists on column 80 (with \), and
17410 + # we should not choose a depcomp mode which is confused by this.
17411 + #
17412 + # We need to recreate these files for each test, as the compiler may
17413 + # overwrite some of them when testing with obscure command lines.
17414 + # This happens at least with the AIX C compiler.
17415 + : > sub/conftest.c
17416 + for i in 1 2 3 4 5 6; do
17417 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
17418 + : > sub/conftst$i.h
17419 + done
17420 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17422 + case $depmode in
17423 + nosideeffect)
17424 + # after this tag, mechanisms are not by side-effect, so they'll
17425 + # only be used when explicitly requested
17426 + if test "x$enable_dependency_tracking" = xyes; then
17427 + continue
17428 + else
17429 + break
17430 + fi
17431 + ;;
17432 + none) break ;;
17433 + esac
17434 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
17435 + # mode. It turns out that the SunPro C++ compiler does not properly
17436 + # handle `-M -o', and we need to detect this.
17437 + if depmode=$depmode \
17438 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
17439 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17440 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
17441 + >/dev/null 2>conftest.err &&
17442 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17443 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
17444 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17445 + # icc doesn't choke on unknown options, it will just issue warnings
17446 + # (even with -Werror). So we grep stderr for any message
17447 + # that says an option was ignored.
17448 + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
17449 + am_cv_CXX_dependencies_compiler_type=$depmode
17450 + break
17451 + fi
17452 + fi
17453 + done
17455 + cd ..
17456 + rm -rf conftest.dir
17457 +else
17458 + am_cv_CXX_dependencies_compiler_type=none
17459 +fi
17461 +fi
17462 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
17463 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
17464 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17468 +if
17469 + test "x$enable_dependency_tracking" != xno \
17470 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17471 + am__fastdepCXX_TRUE=
17472 + am__fastdepCXX_FALSE='#'
17473 +else
17474 + am__fastdepCXX_TRUE='#'
17475 + am__fastdepCXX_FALSE=
17476 +fi
17479 +ac_ext=cc
17480 +ac_cpp='$CXXCPP $CPPFLAGS'
17481 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17484 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17485 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
17486 +if test -z "$CXXCPP"; then
17487 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
17488 + echo $ECHO_N "(cached) $ECHO_C" >&6
17489 +else
17490 + # Double quotes because CXXCPP needs to be expanded
17491 + for CXXCPP in "$CXX -E" "/lib/cpp"
17492 + do
17493 + ac_preproc_ok=false
17494 +for ac_cxx_preproc_warn_flag in '' yes
17495 +do
17496 + # Use a header file that comes with gcc, so configuring glibc
17497 + # with a fresh cross-compiler works.
17498 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 + # <limits.h> exists even on freestanding compilers.
17500 + # On the NeXT, cc -E runs the code through the compiler's parser,
17501 + # not just through cpp. "Syntax error" is here to catch this case.
17502 + cat >conftest.$ac_ext <<_ACEOF
17503 +/* confdefs.h. */
17504 +_ACEOF
17505 +cat confdefs.h >>conftest.$ac_ext
17506 +cat >>conftest.$ac_ext <<_ACEOF
17507 +/* end confdefs.h. */
17508 +#ifdef __STDC__
17509 +# include <limits.h>
17510 +#else
17511 +# include <assert.h>
17512 +#endif
17513 + Syntax error
17514 +_ACEOF
17515 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17516 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17517 + ac_status=$?
17518 + grep -v '^ *+' conftest.er1 >conftest.err
17519 + rm -f conftest.er1
17520 + cat conftest.err >&5
17521 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 + (exit $ac_status); } >/dev/null; then
17523 + if test -s conftest.err; then
17524 + ac_cpp_err=$ac_cxx_preproc_warn_flag
17525 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17526 + else
17527 + ac_cpp_err=
17528 + fi
17529 +else
17530 + ac_cpp_err=yes
17531 +fi
17532 +if test -z "$ac_cpp_err"; then
17533 + :
17534 +else
17535 + echo "$as_me: failed program was:" >&5
17536 +sed 's/^/| /' conftest.$ac_ext >&5
17538 + # Broken: fails on valid input.
17539 +continue
17540 +fi
17541 +rm -f conftest.err conftest.$ac_ext
17543 + # OK, works on sane cases. Now check whether non-existent headers
17544 + # can be detected and how.
17545 + cat >conftest.$ac_ext <<_ACEOF
17546 +/* confdefs.h. */
17547 +_ACEOF
17548 +cat confdefs.h >>conftest.$ac_ext
17549 +cat >>conftest.$ac_ext <<_ACEOF
17550 +/* end confdefs.h. */
17551 +#include <ac_nonexistent.h>
17552 +_ACEOF
17553 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17554 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17555 + ac_status=$?
17556 + grep -v '^ *+' conftest.er1 >conftest.err
17557 + rm -f conftest.er1
17558 + cat conftest.err >&5
17559 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 + (exit $ac_status); } >/dev/null; then
17561 + if test -s conftest.err; then
17562 + ac_cpp_err=$ac_cxx_preproc_warn_flag
17563 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17564 + else
17565 + ac_cpp_err=
17566 + fi
17567 +else
17568 + ac_cpp_err=yes
17569 +fi
17570 +if test -z "$ac_cpp_err"; then
17571 + # Broken: success on invalid input.
17572 +continue
17573 +else
17574 + echo "$as_me: failed program was:" >&5
17575 +sed 's/^/| /' conftest.$ac_ext >&5
17577 + # Passes both tests.
17578 +ac_preproc_ok=:
17579 +break
17580 +fi
17581 +rm -f conftest.err conftest.$ac_ext
17583 +done
17584 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17585 +rm -f conftest.err conftest.$ac_ext
17586 +if $ac_preproc_ok; then
17587 + break
17588 +fi
17590 + done
17591 + ac_cv_prog_CXXCPP=$CXXCPP
17593 +fi
17594 + CXXCPP=$ac_cv_prog_CXXCPP
17595 +else
17596 + ac_cv_prog_CXXCPP=$CXXCPP
17597 +fi
17598 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
17599 +echo "${ECHO_T}$CXXCPP" >&6
17600 +ac_preproc_ok=false
17601 +for ac_cxx_preproc_warn_flag in '' yes
17602 +do
17603 + # Use a header file that comes with gcc, so configuring glibc
17604 + # with a fresh cross-compiler works.
17605 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17606 + # <limits.h> exists even on freestanding compilers.
17607 + # On the NeXT, cc -E runs the code through the compiler's parser,
17608 + # not just through cpp. "Syntax error" is here to catch this case.
17609 + cat >conftest.$ac_ext <<_ACEOF
17610 +/* confdefs.h. */
17611 +_ACEOF
17612 +cat confdefs.h >>conftest.$ac_ext
17613 +cat >>conftest.$ac_ext <<_ACEOF
17614 +/* end confdefs.h. */
17615 +#ifdef __STDC__
17616 +# include <limits.h>
17617 +#else
17618 +# include <assert.h>
17619 +#endif
17620 + Syntax error
17621 +_ACEOF
17622 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17623 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17624 + ac_status=$?
17625 + grep -v '^ *+' conftest.er1 >conftest.err
17626 + rm -f conftest.er1
17627 + cat conftest.err >&5
17628 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 + (exit $ac_status); } >/dev/null; then
17630 + if test -s conftest.err; then
17631 + ac_cpp_err=$ac_cxx_preproc_warn_flag
17632 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17633 + else
17634 + ac_cpp_err=
17635 + fi
17636 +else
17637 + ac_cpp_err=yes
17638 +fi
17639 +if test -z "$ac_cpp_err"; then
17640 + :
17641 +else
17642 + echo "$as_me: failed program was:" >&5
17643 +sed 's/^/| /' conftest.$ac_ext >&5
17645 + # Broken: fails on valid input.
17646 +continue
17647 +fi
17648 +rm -f conftest.err conftest.$ac_ext
17650 + # OK, works on sane cases. Now check whether non-existent headers
17651 + # can be detected and how.
17652 + cat >conftest.$ac_ext <<_ACEOF
17653 +/* confdefs.h. */
17654 +_ACEOF
17655 +cat confdefs.h >>conftest.$ac_ext
17656 +cat >>conftest.$ac_ext <<_ACEOF
17657 +/* end confdefs.h. */
17658 +#include <ac_nonexistent.h>
17659 +_ACEOF
17660 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17661 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17662 + ac_status=$?
17663 + grep -v '^ *+' conftest.er1 >conftest.err
17664 + rm -f conftest.er1
17665 + cat conftest.err >&5
17666 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 + (exit $ac_status); } >/dev/null; then
17668 + if test -s conftest.err; then
17669 + ac_cpp_err=$ac_cxx_preproc_warn_flag
17670 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
17671 + else
17672 + ac_cpp_err=
17673 + fi
17674 +else
17675 + ac_cpp_err=yes
17676 +fi
17677 +if test -z "$ac_cpp_err"; then
17678 + # Broken: success on invalid input.
17679 +continue
17680 +else
17681 + echo "$as_me: failed program was:" >&5
17682 +sed 's/^/| /' conftest.$ac_ext >&5
17684 + # Passes both tests.
17685 +ac_preproc_ok=:
17686 +break
17687 +fi
17688 +rm -f conftest.err conftest.$ac_ext
17690 +done
17691 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17692 +rm -f conftest.err conftest.$ac_ext
17693 +if $ac_preproc_ok; then
17694 + :
17695 +else
17696 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17697 +See \`config.log' for more details." >&5
17698 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17699 +See \`config.log' for more details." >&2;}
17700 + { (exit 1); exit 1; }; }
17701 +fi
17703 +ac_ext=cc
17704 +ac_cpp='$CXXCPP $CPPFLAGS'
17705 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17706 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17707 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17710 +ac_ext=f
17711 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17712 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17714 +if test -n "$ac_tool_prefix"; then
17715 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
17716 + do
17717 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17718 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17719 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17720 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17721 +if test "${ac_cv_prog_F77+set}" = set; then
17722 + echo $ECHO_N "(cached) $ECHO_C" >&6
17723 +else
17724 + if test -n "$F77"; then
17725 + ac_cv_prog_F77="$F77" # Let the user override the test.
17726 +else
17727 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17728 +for as_dir in $PATH
17729 +do
17730 + IFS=$as_save_IFS
17731 + test -z "$as_dir" && as_dir=.
17732 + for ac_exec_ext in '' $ac_executable_extensions; do
17733 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17734 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
17735 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17736 + break 2
17737 + fi
17738 +done
17739 +done
17741 +fi
17742 +fi
17743 +F77=$ac_cv_prog_F77
17744 +if test -n "$F77"; then
17745 + echo "$as_me:$LINENO: result: $F77" >&5
17746 +echo "${ECHO_T}$F77" >&6
17747 +else
17748 + echo "$as_me:$LINENO: result: no" >&5
17749 +echo "${ECHO_T}no" >&6
17750 +fi
17752 + test -n "$F77" && break
17753 + done
17754 +fi
17755 +if test -z "$F77"; then
17756 + ac_ct_F77=$F77
17757 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
17758 +do
17759 + # Extract the first word of "$ac_prog", so it can be a program name with args.
17760 +set dummy $ac_prog; ac_word=$2
17761 +echo "$as_me:$LINENO: checking for $ac_word" >&5
17762 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17763 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
17764 + echo $ECHO_N "(cached) $ECHO_C" >&6
17765 +else
17766 + if test -n "$ac_ct_F77"; then
17767 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
17768 +else
17769 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17770 +for as_dir in $PATH
17771 +do
17772 + IFS=$as_save_IFS
17773 + test -z "$as_dir" && as_dir=.
17774 + for ac_exec_ext in '' $ac_executable_extensions; do
17775 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17776 + ac_cv_prog_ac_ct_F77="$ac_prog"
17777 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17778 + break 2
17779 + fi
17780 +done
17781 +done
17783 +fi
17784 +fi
17785 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
17786 +if test -n "$ac_ct_F77"; then
17787 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
17788 +echo "${ECHO_T}$ac_ct_F77" >&6
17789 +else
17790 + echo "$as_me:$LINENO: result: no" >&5
17791 +echo "${ECHO_T}no" >&6
17792 +fi
17794 + test -n "$ac_ct_F77" && break
17795 +done
17797 + F77=$ac_ct_F77
17798 +fi
17801 +# Provide some information about the compiler.
17802 +echo "$as_me:5207:" \
17803 + "checking for Fortran 77 compiler version" >&5
17804 +ac_compiler=`set X $ac_compile; echo $2`
17805 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
17806 + (eval $ac_compiler --version </dev/null >&5) 2>&5
17807 + ac_status=$?
17808 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 + (exit $ac_status); }
17810 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
17811 + (eval $ac_compiler -v </dev/null >&5) 2>&5
17812 + ac_status=$?
17813 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 + (exit $ac_status); }
17815 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
17816 + (eval $ac_compiler -V </dev/null >&5) 2>&5
17817 + ac_status=$?
17818 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 + (exit $ac_status); }
17820 +rm -f a.out
17822 +# If we don't use `.F' as extension, the preprocessor is not run on the
17823 +# input file. (Note that this only needs to work for GNU compilers.)
17824 +ac_save_ext=$ac_ext
17825 +ac_ext=F
17826 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
17827 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
17828 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
17829 + echo $ECHO_N "(cached) $ECHO_C" >&6
17830 +else
17831 + cat >conftest.$ac_ext <<_ACEOF
17832 + program main
17833 +#ifndef __GNUC__
17834 + choke me
17835 +#endif
17837 + end
17838 +_ACEOF
17839 +rm -f conftest.$ac_objext
17840 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17841 + (eval $ac_compile) 2>conftest.er1
17842 + ac_status=$?
17843 + grep -v '^ *+' conftest.er1 >conftest.err
17844 + rm -f conftest.er1
17845 + cat conftest.err >&5
17846 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17847 + (exit $ac_status); } &&
17848 + { ac_try='test -z "$ac_f77_werror_flag"
17849 + || test ! -s conftest.err'
17850 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 + (eval $ac_try) 2>&5
17852 + ac_status=$?
17853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 + (exit $ac_status); }; } &&
17855 + { ac_try='test -s conftest.$ac_objext'
17856 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 + (eval $ac_try) 2>&5
17858 + ac_status=$?
17859 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 + (exit $ac_status); }; }; then
17861 + ac_compiler_gnu=yes
17862 +else
17863 + echo "$as_me: failed program was:" >&5
17864 +sed 's/^/| /' conftest.$ac_ext >&5
17866 +ac_compiler_gnu=no
17867 +fi
17868 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17869 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
17871 +fi
17872 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
17873 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
17874 +ac_ext=$ac_save_ext
17875 +ac_test_FFLAGS=${FFLAGS+set}
17876 +ac_save_FFLAGS=$FFLAGS
17877 +FFLAGS=
17878 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
17879 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
17880 +if test "${ac_cv_prog_f77_g+set}" = set; then
17881 + echo $ECHO_N "(cached) $ECHO_C" >&6
17882 +else
17883 + FFLAGS=-g
17884 +cat >conftest.$ac_ext <<_ACEOF
17885 + program main
17887 + end
17888 +_ACEOF
17889 +rm -f conftest.$ac_objext
17890 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17891 + (eval $ac_compile) 2>conftest.er1
17892 + ac_status=$?
17893 + grep -v '^ *+' conftest.er1 >conftest.err
17894 + rm -f conftest.er1
17895 + cat conftest.err >&5
17896 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 + (exit $ac_status); } &&
17898 + { ac_try='test -z "$ac_f77_werror_flag"
17899 + || test ! -s conftest.err'
17900 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17901 + (eval $ac_try) 2>&5
17902 + ac_status=$?
17903 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 + (exit $ac_status); }; } &&
17905 + { ac_try='test -s conftest.$ac_objext'
17906 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17907 + (eval $ac_try) 2>&5
17908 + ac_status=$?
17909 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 + (exit $ac_status); }; }; then
17911 + ac_cv_prog_f77_g=yes
17912 +else
17913 + echo "$as_me: failed program was:" >&5
17914 +sed 's/^/| /' conftest.$ac_ext >&5
17916 +ac_cv_prog_f77_g=no
17917 +fi
17918 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17920 +fi
17921 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
17922 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
17923 +if test "$ac_test_FFLAGS" = set; then
17924 + FFLAGS=$ac_save_FFLAGS
17925 +elif test $ac_cv_prog_f77_g = yes; then
17926 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17927 + FFLAGS="-g -O2"
17928 + else
17929 + FFLAGS="-g"
17930 + fi
17931 +else
17932 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17933 + FFLAGS="-O2"
17934 + else
17935 + FFLAGS=
17936 + fi
17937 +fi
17939 +G77=`test $ac_compiler_gnu = yes && echo yes`
17940 +ac_ext=c
17941 +ac_cpp='$CPP $CPPFLAGS'
17942 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17943 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17944 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
17948 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
17950 +# find the maximum length of command line arguments
17951 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
17952 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
17953 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
17954 + echo $ECHO_N "(cached) $ECHO_C" >&6
17955 +else
17956 + i=0
17957 + testring="ABCD"
17959 + case $build_os in
17960 + msdosdjgpp*)
17961 + # On DJGPP, this test can blow up pretty badly due to problems in libc
17962 + # (any single argument exceeding 2000 bytes causes a buffer overrun
17963 + # during glob expansion). Even if it were fixed, the result of this
17964 + # check would be larger than it should be.
17965 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
17966 + ;;
17968 + gnu*)
17969 + # Under GNU Hurd, this test is not required because there is
17970 + # no limit to the length of command line arguments.
17971 + # Libtool will interpret -1 as no limit whatsoever
17972 + lt_cv_sys_max_cmd_len=-1;
17973 + ;;
17975 + cygwin* | mingw*)
17976 + # On Win9x/ME, this test blows up -- it succeeds, but takes
17977 + # about 5 minutes as the teststring grows exponentially.
17978 + # Worse, since 9x/ME are not pre-emptively multitasking,
17979 + # you end up with a "frozen" computer, even though with patience
17980 + # the test eventually succeeds (with a max line length of 256k).
17981 + # Instead, let's just punt: use the minimum linelength reported by
17982 + # all of the supported platforms: 8192 (on NT/2K/XP).
17983 + lt_cv_sys_max_cmd_len=8192;
17984 + ;;
17986 + amigaos*)
17987 + # On AmigaOS with pdksh, this test takes hours, literally.
17988 + # So we just punt and use a minimum line length of 8192.
17989 + lt_cv_sys_max_cmd_len=8192;
17990 + ;;
17992 + *)
17993 + # If test is not a shell built-in, we'll probably end up computing a
17994 + # maximum length that is only half of the actual maximum length, but
17995 + # we can't tell.
17996 + while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
17997 + = "XX$testring") >/dev/null 2>&1 &&
17998 + new_result=`expr "X$testring" : ".*" 2>&1` &&
17999 + lt_cv_sys_max_cmd_len=$new_result &&
18000 + test $i != 17 # 1/2 MB should be enough
18001 + do
18002 + i=`expr $i + 1`
18003 + testring=$testring$testring
18004 + done
18005 + testring=
18006 + # Add a significant safety factor because C++ compilers can tack on massive
18007 + # amounts of additional arguments before passing them to the linker.
18008 + # It appears as though 1/2 is a usable value.
18009 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
18010 + ;;
18011 + esac
18013 +fi
18015 +if test -n $lt_cv_sys_max_cmd_len ; then
18016 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
18017 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
18018 +else
18019 + echo "$as_me:$LINENO: result: none" >&5
18020 +echo "${ECHO_T}none" >&6
18021 +fi
18026 +# Check for command to grab the raw symbol name followed by C symbol from nm.
18027 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
18028 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
18029 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
18030 + echo $ECHO_N "(cached) $ECHO_C" >&6
18031 +else
18033 +# These are sane defaults that work on at least a few old systems.
18034 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
18036 +# Character class describing NM global symbol codes.
18037 +symcode='[BCDEGRST]'
18039 +# Regexp to match symbols that can be accessed directly from C.
18040 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
18042 +# Transform the above into a raw symbol and a C symbol.
18043 +symxfrm='\1 \2\3 \3'
18045 +# Transform an extracted symbol line into a proper C declaration
18046 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
18048 +# Transform an extracted symbol line into symbol name and symbol address
18049 +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
18051 +# Define system-specific variables.
18052 +case $host_os in
18053 +aix*)
18054 + symcode='[BCDT]'
18055 + ;;
18056 +cygwin* | mingw* | pw32*)
18057 + symcode='[ABCDGISTW]'
18058 + ;;
18059 +hpux*) # Its linker distinguishes data from code symbols
18060 + if test "$host_cpu" = ia64; then
18061 + symcode='[ABCDEGRST]'
18062 + fi
18063 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
18064 + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
18065 + ;;
18066 +irix* | nonstopux*)
18067 + symcode='[BCDEGRST]'
18068 + ;;
18069 +osf*)
18070 + symcode='[BCDEGQRST]'
18071 + ;;
18072 +solaris* | sysv5*)
18073 + symcode='[BDRT]'
18074 + ;;
18075 +sysv4)
18076 + symcode='[DFNSTU]'
18077 + ;;
18078 +esac
18080 +# Handle CRLF in mingw tool chain
18081 +opt_cr=
18082 +case $build_os in
18083 +mingw*)
18084 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
18085 + ;;
18086 +esac
18088 +# If we're using GNU nm, then use its standard symbol codes.
18089 +case `$NM -V 2>&1` in
18090 +*GNU* | *'with BFD'*)
18091 + symcode='[ABCDGIRSTW]' ;;
18092 +esac
18094 +# Try without a prefix undercore, then with it.
18095 +for ac_symprfx in "" "_"; do
18097 + # Write the raw and C identifiers.
18098 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
18100 + # Check to see that the pipe works correctly.
18101 + pipe_works=no
18103 + rm -f conftest*
18104 + cat > conftest.$ac_ext <<EOF
18105 +#ifdef __cplusplus
18106 +extern "C" {
18107 +#endif
18108 +char nm_test_var;
18109 +void nm_test_func(){}
18110 +#ifdef __cplusplus
18111 +}
18112 +#endif
18113 +int main(){nm_test_var='a';nm_test_func();return(0);}
18114 +EOF
18116 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18117 + (eval $ac_compile) 2>&5
18118 + ac_status=$?
18119 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120 + (exit $ac_status); }; then
18121 + # Now try to grab the symbols.
18122 + nlist=conftest.nm
18123 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
18124 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
18125 + ac_status=$?
18126 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 + (exit $ac_status); } && test -s "$nlist"; then
18128 + # Try sorting and uniquifying the output.
18129 + if sort "$nlist" | uniq > "$nlist"T; then
18130 + mv -f "$nlist"T "$nlist"
18131 + else
18132 + rm -f "$nlist"T
18133 + fi
18135 + # Make sure that we snagged all the symbols we need.
18136 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
18137 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
18138 + cat <<EOF > conftest.$ac_ext
18139 +#ifdef __cplusplus
18140 +extern "C" {
18141 +#endif
18143 +EOF
18144 + # Now generate the symbol file.
18145 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
18147 + cat <<EOF >> conftest.$ac_ext
18148 +#if defined (__STDC__) && __STDC__
18149 +# define lt_ptr_t void *
18150 +#else
18151 +# define lt_ptr_t char *
18152 +# define const
18153 +#endif
18155 +/* The mapping between symbol names and symbols. */
18156 +const struct {
18157 + const char *name;
18158 + lt_ptr_t address;
18159 +}
18160 +lt_preloaded_symbols[] =
18161 +{
18162 +EOF
18163 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
18164 + cat <<\EOF >> conftest.$ac_ext
18165 + {0, (lt_ptr_t) 0}
18166 +};
18168 +#ifdef __cplusplus
18169 +}
18170 +#endif
18171 +EOF
18172 + # Now try linking the two files.
18173 + mv conftest.$ac_objext conftstm.$ac_objext
18174 + lt_save_LIBS="$LIBS"
18175 + lt_save_CFLAGS="$CFLAGS"
18176 + LIBS="conftstm.$ac_objext"
18177 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
18178 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18179 + (eval $ac_link) 2>&5
18180 + ac_status=$?
18181 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
18182 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
18183 + pipe_works=yes
18184 + fi
18185 + LIBS="$lt_save_LIBS"
18186 + CFLAGS="$lt_save_CFLAGS"
18187 + else
18188 + echo "cannot find nm_test_func in $nlist" >&5
18189 + fi
18190 + else
18191 + echo "cannot find nm_test_var in $nlist" >&5
18192 + fi
18193 + else
18194 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
18195 + fi
18196 + else
18197 + echo "$progname: failed program was:" >&5
18198 + cat conftest.$ac_ext >&5
18199 + fi
18200 + rm -f conftest* conftst*
18202 + # Do not use the global_symbol_pipe unless it works.
18203 + if test "$pipe_works" = yes; then
18204 + break
18205 + else
18206 + lt_cv_sys_global_symbol_pipe=
18207 + fi
18208 +done
18210 +fi
18212 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
18213 + lt_cv_sys_global_symbol_to_cdecl=
18214 +fi
18215 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
18216 + echo "$as_me:$LINENO: result: failed" >&5
18217 +echo "${ECHO_T}failed" >&6
18218 +else
18219 + echo "$as_me:$LINENO: result: ok" >&5
18220 +echo "${ECHO_T}ok" >&6
18221 +fi
18223 +echo "$as_me:$LINENO: checking for objdir" >&5
18224 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
18225 +if test "${lt_cv_objdir+set}" = set; then
18226 + echo $ECHO_N "(cached) $ECHO_C" >&6
18227 +else
18228 + rm -f .libs 2>/dev/null
18229 +mkdir .libs 2>/dev/null
18230 +if test -d .libs; then
18231 + lt_cv_objdir=.libs
18232 +else
18233 + # MS-DOS does not allow filenames that begin with a dot.
18234 + lt_cv_objdir=_libs
18235 +fi
18236 +rmdir .libs 2>/dev/null
18237 +fi
18238 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
18239 +echo "${ECHO_T}$lt_cv_objdir" >&6
18240 +objdir=$lt_cv_objdir
18246 +case $host_os in
18247 +aix3*)
18248 + # AIX sometimes has problems with the GCC collect2 program. For some
18249 + # reason, if we set the COLLECT_NAMES environment variable, the problems
18250 + # vanish in a puff of smoke.
18251 + if test "X${COLLECT_NAMES+set}" != Xset; then
18252 + COLLECT_NAMES=
18253 + export COLLECT_NAMES
18254 + fi
18255 + ;;
18256 +esac
18258 +# Sed substitution that helps us do robust quoting. It backslashifies
18259 +# metacharacters that are still active within double-quoted strings.
18260 +Xsed='sed -e s/^X//'
18261 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
18263 +# Same as above, but do not quote variable references.
18264 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
18266 +# Sed substitution to delay expansion of an escaped shell variable in a
18267 +# double_quote_subst'ed string.
18268 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
18270 +# Sed substitution to avoid accidental globbing in evaled expressions
18271 +no_glob_subst='s/\*/\\\*/g'
18273 +# Constants:
18274 +rm="rm -f"
18276 +# Global variables:
18277 +default_ofile=libtool
18278 +can_build_shared=yes
18280 +# All known linkers require a `.a' archive for static linking (except M$VC,
18281 +# which needs '.lib').
18282 +libext=a
18283 +ltmain="$ac_aux_dir/ltmain.sh"
18284 +ofile="$default_ofile"
18285 +with_gnu_ld="$lt_cv_prog_gnu_ld"
18287 +if test -n "$ac_tool_prefix"; then
18288 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18289 +set dummy ${ac_tool_prefix}ar; ac_word=$2
18290 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18291 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18292 +if test "${ac_cv_prog_AR+set}" = set; then
18293 + echo $ECHO_N "(cached) $ECHO_C" >&6
18294 +else
18295 + if test -n "$AR"; then
18296 + ac_cv_prog_AR="$AR" # Let the user override the test.
18297 +else
18298 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18299 +for as_dir in $PATH
18300 +do
18301 + IFS=$as_save_IFS
18302 + test -z "$as_dir" && as_dir=.
18303 + for ac_exec_ext in '' $ac_executable_extensions; do
18304 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18305 + ac_cv_prog_AR="${ac_tool_prefix}ar"
18306 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18307 + break 2
18308 + fi
18309 +done
18310 +done
18312 +fi
18313 +fi
18314 +AR=$ac_cv_prog_AR
18315 +if test -n "$AR"; then
18316 + echo "$as_me:$LINENO: result: $AR" >&5
18317 +echo "${ECHO_T}$AR" >&6
18318 +else
18319 + echo "$as_me:$LINENO: result: no" >&5
18320 +echo "${ECHO_T}no" >&6
18321 +fi
18323 +fi
18324 +if test -z "$ac_cv_prog_AR"; then
18325 + ac_ct_AR=$AR
18326 + # Extract the first word of "ar", so it can be a program name with args.
18327 +set dummy ar; ac_word=$2
18328 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18329 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18330 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
18331 + echo $ECHO_N "(cached) $ECHO_C" >&6
18332 +else
18333 + if test -n "$ac_ct_AR"; then
18334 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18335 +else
18336 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18337 +for as_dir in $PATH
18338 +do
18339 + IFS=$as_save_IFS
18340 + test -z "$as_dir" && as_dir=.
18341 + for ac_exec_ext in '' $ac_executable_extensions; do
18342 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18343 + ac_cv_prog_ac_ct_AR="ar"
18344 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18345 + break 2
18346 + fi
18347 +done
18348 +done
18350 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
18351 +fi
18352 +fi
18353 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
18354 +if test -n "$ac_ct_AR"; then
18355 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
18356 +echo "${ECHO_T}$ac_ct_AR" >&6
18357 +else
18358 + echo "$as_me:$LINENO: result: no" >&5
18359 +echo "${ECHO_T}no" >&6
18360 +fi
18362 + AR=$ac_ct_AR
18363 +else
18364 + AR="$ac_cv_prog_AR"
18365 +fi
18367 +if test -n "$ac_tool_prefix"; then
18368 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18369 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18370 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18371 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18372 +if test "${ac_cv_prog_RANLIB+set}" = set; then
18373 + echo $ECHO_N "(cached) $ECHO_C" >&6
18374 +else
18375 + if test -n "$RANLIB"; then
18376 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18377 +else
18378 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18379 +for as_dir in $PATH
18380 +do
18381 + IFS=$as_save_IFS
18382 + test -z "$as_dir" && as_dir=.
18383 + for ac_exec_ext in '' $ac_executable_extensions; do
18384 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18385 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18386 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18387 + break 2
18388 + fi
18389 +done
18390 +done
18392 +fi
18393 +fi
18394 +RANLIB=$ac_cv_prog_RANLIB
18395 +if test -n "$RANLIB"; then
18396 + echo "$as_me:$LINENO: result: $RANLIB" >&5
18397 +echo "${ECHO_T}$RANLIB" >&6
18398 +else
18399 + echo "$as_me:$LINENO: result: no" >&5
18400 +echo "${ECHO_T}no" >&6
18401 +fi
18403 +fi
18404 +if test -z "$ac_cv_prog_RANLIB"; then
18405 + ac_ct_RANLIB=$RANLIB
18406 + # Extract the first word of "ranlib", so it can be a program name with args.
18407 +set dummy ranlib; ac_word=$2
18408 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18409 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18410 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18411 + echo $ECHO_N "(cached) $ECHO_C" >&6
18412 +else
18413 + if test -n "$ac_ct_RANLIB"; then
18414 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18415 +else
18416 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18417 +for as_dir in $PATH
18418 +do
18419 + IFS=$as_save_IFS
18420 + test -z "$as_dir" && as_dir=.
18421 + for ac_exec_ext in '' $ac_executable_extensions; do
18422 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18423 + ac_cv_prog_ac_ct_RANLIB="ranlib"
18424 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18425 + break 2
18426 + fi
18427 +done
18428 +done
18430 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
18431 +fi
18432 +fi
18433 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18434 +if test -n "$ac_ct_RANLIB"; then
18435 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18436 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
18437 +else
18438 + echo "$as_me:$LINENO: result: no" >&5
18439 +echo "${ECHO_T}no" >&6
18440 +fi
18442 + RANLIB=$ac_ct_RANLIB
18443 +else
18444 + RANLIB="$ac_cv_prog_RANLIB"
18445 +fi
18447 +if test -n "$ac_tool_prefix"; then
18448 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18449 +set dummy ${ac_tool_prefix}strip; ac_word=$2
18450 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18451 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18452 +if test "${ac_cv_prog_STRIP+set}" = set; then
18453 + echo $ECHO_N "(cached) $ECHO_C" >&6
18454 +else
18455 + if test -n "$STRIP"; then
18456 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18457 +else
18458 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18459 +for as_dir in $PATH
18460 +do
18461 + IFS=$as_save_IFS
18462 + test -z "$as_dir" && as_dir=.
18463 + for ac_exec_ext in '' $ac_executable_extensions; do
18464 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18465 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18466 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18467 + break 2
18468 + fi
18469 +done
18470 +done
18472 +fi
18473 +fi
18474 +STRIP=$ac_cv_prog_STRIP
18475 +if test -n "$STRIP"; then
18476 + echo "$as_me:$LINENO: result: $STRIP" >&5
18477 +echo "${ECHO_T}$STRIP" >&6
18478 +else
18479 + echo "$as_me:$LINENO: result: no" >&5
18480 +echo "${ECHO_T}no" >&6
18481 +fi
18483 +fi
18484 +if test -z "$ac_cv_prog_STRIP"; then
18485 + ac_ct_STRIP=$STRIP
18486 + # Extract the first word of "strip", so it can be a program name with args.
18487 +set dummy strip; ac_word=$2
18488 +echo "$as_me:$LINENO: checking for $ac_word" >&5
18489 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18490 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
18491 + echo $ECHO_N "(cached) $ECHO_C" >&6
18492 +else
18493 + if test -n "$ac_ct_STRIP"; then
18494 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18495 +else
18496 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18497 +for as_dir in $PATH
18498 +do
18499 + IFS=$as_save_IFS
18500 + test -z "$as_dir" && as_dir=.
18501 + for ac_exec_ext in '' $ac_executable_extensions; do
18502 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18503 + ac_cv_prog_ac_ct_STRIP="strip"
18504 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505 + break 2
18506 + fi
18507 +done
18508 +done
18510 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
18511 +fi
18512 +fi
18513 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18514 +if test -n "$ac_ct_STRIP"; then
18515 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
18516 +echo "${ECHO_T}$ac_ct_STRIP" >&6
18517 +else
18518 + echo "$as_me:$LINENO: result: no" >&5
18519 +echo "${ECHO_T}no" >&6
18520 +fi
18522 + STRIP=$ac_ct_STRIP
18523 +else
18524 + STRIP="$ac_cv_prog_STRIP"
18525 +fi
18528 +old_CC="$CC"
18529 +old_CFLAGS="$CFLAGS"
18531 +# Set sane defaults for various variables
18532 +test -z "$AR" && AR=ar
18533 +test -z "$AR_FLAGS" && AR_FLAGS=cru
18534 +test -z "$AS" && AS=as
18535 +test -z "$CC" && CC=cc
18536 +test -z "$LTCC" && LTCC=$CC
18537 +test -z "$DLLTOOL" && DLLTOOL=dlltool
18538 +test -z "$LD" && LD=ld
18539 +test -z "$LN_S" && LN_S="ln -s"
18540 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
18541 +test -z "$NM" && NM=nm
18542 +test -z "$SED" && SED=sed
18543 +test -z "$OBJDUMP" && OBJDUMP=objdump
18544 +test -z "$RANLIB" && RANLIB=:
18545 +test -z "$STRIP" && STRIP=:
18546 +test -z "$ac_objext" && ac_objext=o
18548 +# Determine commands to create old-style static archives.
18549 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
18550 +old_postinstall_cmds='chmod 644 $oldlib'
18551 +old_postuninstall_cmds=
18553 +if test -n "$RANLIB"; then
18554 + case $host_os in
18555 + openbsd*)
18556 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
18557 + ;;
18558 + *)
18559 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
18560 + ;;
18561 + esac
18562 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
18563 +fi
18565 +# Only perform the check for file, if the check method requires it
18566 +case $deplibs_check_method in
18567 +file_magic*)
18568 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
18569 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
18570 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
18571 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
18572 + echo $ECHO_N "(cached) $ECHO_C" >&6
18573 +else
18574 + case $MAGIC_CMD in
18575 +[\\/*] | ?:[\\/]*)
18576 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18577 + ;;
18578 +*)
18579 + lt_save_MAGIC_CMD="$MAGIC_CMD"
18580 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18581 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18582 + for ac_dir in $ac_dummy; do
18583 + IFS="$lt_save_ifs"
18584 + test -z "$ac_dir" && ac_dir=.
18585 + if test -f $ac_dir/${ac_tool_prefix}file; then
18586 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
18587 + if test -n "$file_magic_test_file"; then
18588 + case $deplibs_check_method in
18589 + "file_magic "*)
18590 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
18591 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18592 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18593 + $EGREP "$file_magic_regex" > /dev/null; then
18594 + :
18595 + else
18596 + cat <<EOF 1>&2
18598 +*** Warning: the command libtool uses to detect shared libraries,
18599 +*** $file_magic_cmd, produces output that libtool cannot recognize.
18600 +*** The result is that libtool may fail to recognize shared libraries
18601 +*** as such. This will affect the creation of libtool libraries that
18602 +*** depend on shared libraries, but programs linked with such libtool
18603 +*** libraries will work regardless of this problem. Nevertheless, you
18604 +*** may want to report the problem to your system manager and/or to
18605 +*** bug-libtool@gnu.org
18607 +EOF
18608 + fi ;;
18609 + esac
18610 + fi
18611 + break
18612 + fi
18613 + done
18614 + IFS="$lt_save_ifs"
18615 + MAGIC_CMD="$lt_save_MAGIC_CMD"
18616 + ;;
18617 +esac
18618 +fi
18620 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18621 +if test -n "$MAGIC_CMD"; then
18622 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
18623 +echo "${ECHO_T}$MAGIC_CMD" >&6
18624 +else
18625 + echo "$as_me:$LINENO: result: no" >&5
18626 +echo "${ECHO_T}no" >&6
18627 +fi
18629 +if test -z "$lt_cv_path_MAGIC_CMD"; then
18630 + if test -n "$ac_tool_prefix"; then
18631 + echo "$as_me:$LINENO: checking for file" >&5
18632 +echo $ECHO_N "checking for file... $ECHO_C" >&6
18633 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
18634 + echo $ECHO_N "(cached) $ECHO_C" >&6
18635 +else
18636 + case $MAGIC_CMD in
18637 +[\\/*] | ?:[\\/]*)
18638 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
18639 + ;;
18640 +*)
18641 + lt_save_MAGIC_CMD="$MAGIC_CMD"
18642 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18643 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
18644 + for ac_dir in $ac_dummy; do
18645 + IFS="$lt_save_ifs"
18646 + test -z "$ac_dir" && ac_dir=.
18647 + if test -f $ac_dir/file; then
18648 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
18649 + if test -n "$file_magic_test_file"; then
18650 + case $deplibs_check_method in
18651 + "file_magic "*)
18652 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
18653 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18654 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
18655 + $EGREP "$file_magic_regex" > /dev/null; then
18656 + :
18657 + else
18658 + cat <<EOF 1>&2
18660 +*** Warning: the command libtool uses to detect shared libraries,
18661 +*** $file_magic_cmd, produces output that libtool cannot recognize.
18662 +*** The result is that libtool may fail to recognize shared libraries
18663 +*** as such. This will affect the creation of libtool libraries that
18664 +*** depend on shared libraries, but programs linked with such libtool
18665 +*** libraries will work regardless of this problem. Nevertheless, you
18666 +*** may want to report the problem to your system manager and/or to
18667 +*** bug-libtool@gnu.org
18669 +EOF
18670 + fi ;;
18671 + esac
18672 + fi
18673 + break
18674 + fi
18675 + done
18676 + IFS="$lt_save_ifs"
18677 + MAGIC_CMD="$lt_save_MAGIC_CMD"
18678 + ;;
18679 +esac
18680 +fi
18682 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
18683 +if test -n "$MAGIC_CMD"; then
18684 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
18685 +echo "${ECHO_T}$MAGIC_CMD" >&6
18686 +else
18687 + echo "$as_me:$LINENO: result: no" >&5
18688 +echo "${ECHO_T}no" >&6
18689 +fi
18691 + else
18692 + MAGIC_CMD=:
18693 + fi
18694 +fi
18696 + fi
18697 + ;;
18698 +esac
18700 +enable_dlopen=no
18701 +enable_win32_dll=no
18703 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
18704 +if test "${enable_libtool_lock+set}" = set; then
18705 + enableval="$enable_libtool_lock"
18707 +fi;
18708 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
18711 +# Check whether --with-pic or --without-pic was given.
18712 +if test "${with_pic+set}" = set; then
18713 + withval="$with_pic"
18714 + pic_mode="$withval"
18715 +else
18716 + pic_mode=default
18717 +fi;
18718 +test -z "$pic_mode" && pic_mode=default
18720 +# Use C for the default configuration in the libtool script
18721 +tagname=
18722 +lt_save_CC="$CC"
18723 +ac_ext=c
18724 +ac_cpp='$CPP $CPPFLAGS'
18725 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
18730 +# Source file extension for C test sources.
18731 +ac_ext=c
18733 +# Object file extension for compiled C test sources.
18734 +objext=o
18735 +objext=$objext
18737 +# Code to be used in simple compile tests
18738 +lt_simple_compile_test_code="int some_variable = 0;\n"
18740 +# Code to be used in simple link tests
18741 +lt_simple_link_test_code='int main(){return(0);}\n'
18744 +# If no C compiler was specified, use CC.
18745 +LTCC=${LTCC-"$CC"}
18747 +# Allow CC to be a program name with arguments.
18748 +compiler=$CC
18751 +#
18752 +# Check for any special shared library compilation flags.
18753 +#
18754 +lt_prog_cc_shlib=
18755 +if test "$GCC" = no; then
18756 + case $host_os in
18757 + sco3.2v5*)
18758 + lt_prog_cc_shlib='-belf'
18759 + ;;
18760 + esac
18761 +fi
18762 +if test -n "$lt_prog_cc_shlib"; then
18763 + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
18764 +echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
18765 + if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
18766 + else
18767 + { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
18768 +echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
18769 + lt_cv_prog_cc_can_build_shared=no
18770 + fi
18771 +fi
18774 +#
18775 +# Check to make sure the static flag actually works.
18776 +#
18777 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
18778 +echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
18779 +if test "${lt_prog_compiler_static_works+set}" = set; then
18780 + echo $ECHO_N "(cached) $ECHO_C" >&6
18781 +else
18782 + lt_prog_compiler_static_works=no
18783 + save_LDFLAGS="$LDFLAGS"
18784 + LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
18785 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
18786 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18787 + # The compiler can only warn and ignore the option if not recognized
18788 + # So say no if there are warnings
18789 + if test -s conftest.err; then
18790 + # Append any errors to the config.log.
18791 + cat conftest.err 1>&5
18792 + else
18793 + lt_prog_compiler_static_works=yes
18794 + fi
18795 + fi
18796 + $rm conftest*
18797 + LDFLAGS="$save_LDFLAGS"
18799 +fi
18800 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
18801 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
18803 +if test x"$lt_prog_compiler_static_works" = xyes; then
18804 + :
18805 +else
18806 + lt_prog_compiler_static=
18807 +fi
18812 +lt_prog_compiler_no_builtin_flag=
18814 +if test "$GCC" = yes; then
18815 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
18818 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
18819 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
18820 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
18821 + echo $ECHO_N "(cached) $ECHO_C" >&6
18822 +else
18823 + lt_cv_prog_compiler_rtti_exceptions=no
18824 + ac_outfile=conftest.$ac_objext
18825 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18826 + lt_compiler_flag="-fno-rtti -fno-exceptions"
18827 + # Insert the option either (1) after the last *FLAGS variable, or
18828 + # (2) before a word containing "conftest.", or (3) at the end.
18829 + # Note that $ac_compile itself does not contain backslashes and begins
18830 + # with a dollar sign (not a hyphen), so the echo should work correctly.
18831 + # The option is referenced via a variable to avoid confusing sed.
18832 + lt_compile=`echo "$ac_compile" | $SED \
18833 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18834 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18835 + -e 's:$: $lt_compiler_flag:'`
18836 + (eval echo "\"\$as_me:6241: $lt_compile\"" >&5)
18837 + (eval "$lt_compile" 2>conftest.err)
18838 + ac_status=$?
18839 + cat conftest.err >&5
18840 + echo "$as_me:6245: \$? = $ac_status" >&5
18841 + if (exit $ac_status) && test -s "$ac_outfile"; then
18842 + # The compiler can only warn and ignore the option if not recognized
18843 + # So say no if there are warnings
18844 + if test ! -s conftest.err; then
18845 + lt_cv_prog_compiler_rtti_exceptions=yes
18846 + fi
18847 + fi
18848 + $rm conftest*
18850 +fi
18851 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18852 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18854 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18855 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
18856 +else
18857 + :
18858 +fi
18860 +fi
18862 +lt_prog_compiler_wl=
18863 +lt_prog_compiler_pic=
18864 +lt_prog_compiler_static=
18866 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18867 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18869 + if test "$GCC" = yes; then
18870 + lt_prog_compiler_wl='-Wl,'
18871 + lt_prog_compiler_static='-static'
18873 + case $host_os in
18874 + aix*)
18875 + # All AIX code is PIC.
18876 + if test "$host_cpu" = ia64; then
18877 + # AIX 5 now supports IA64 processor
18878 + lt_prog_compiler_static='-Bstatic'
18879 + fi
18880 + ;;
18882 + amigaos*)
18883 + # FIXME: we need at least 68020 code to build shared libraries, but
18884 + # adding the `-m68020' flag to GCC prevents building anything better,
18885 + # like `-m68040'.
18886 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
18887 + ;;
18889 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18890 + # PIC is the default for these OSes.
18891 + ;;
18893 + mingw* | pw32* | os2*)
18894 + # This hack is so that the source file can tell whether it is being
18895 + # built for inclusion in a dll (and should export symbols for example).
18896 + lt_prog_compiler_pic='-DDLL_EXPORT'
18897 + ;;
18899 + darwin* | rhapsody*)
18900 + # PIC is the default on this platform
18901 + # Common symbols not allowed in MH_DYLIB files
18902 + lt_prog_compiler_pic='-fno-common'
18903 + ;;
18905 + msdosdjgpp*)
18906 + # Just because we use GCC doesn't mean we suddenly get shared libraries
18907 + # on systems that don't support them.
18908 + lt_prog_compiler_can_build_shared=no
18909 + enable_shared=no
18910 + ;;
18912 + sysv4*MP*)
18913 + if test -d /usr/nec; then
18914 + lt_prog_compiler_pic=-Kconform_pic
18915 + fi
18916 + ;;
18918 + hpux*)
18919 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18920 + # not for PA HP-UX.
18921 + case "$host_cpu" in
18922 + hppa*64*|ia64*)
18923 + # +Z the default
18924 + ;;
18925 + *)
18926 + lt_prog_compiler_pic='-fPIC'
18927 + ;;
18928 + esac
18929 + ;;
18931 + *)
18932 + lt_prog_compiler_pic='-fPIC'
18933 + ;;
18934 + esac
18935 + else
18936 + # PORTME Check for flag to pass linker flags through the system compiler.
18937 + case $host_os in
18938 + aix*)
18939 + lt_prog_compiler_wl='-Wl,'
18940 + if test "$host_cpu" = ia64; then
18941 + # AIX 5 now supports IA64 processor
18942 + lt_prog_compiler_static='-Bstatic'
18943 + else
18944 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
18945 + fi
18946 + ;;
18948 + mingw* | pw32* | os2*)
18949 + # This hack is so that the source file can tell whether it is being
18950 + # built for inclusion in a dll (and should export symbols for example).
18951 + lt_prog_compiler_pic='-DDLL_EXPORT'
18952 + ;;
18954 + hpux9* | hpux10* | hpux11*)
18955 + lt_prog_compiler_wl='-Wl,'
18956 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18957 + # not for PA HP-UX.
18958 + case "$host_cpu" in
18959 + hppa*64*|ia64*)
18960 + # +Z the default
18961 + ;;
18962 + *)
18963 + lt_prog_compiler_pic='+Z'
18964 + ;;
18965 + esac
18966 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
18967 + lt_prog_compiler_static='${wl}-a ${wl}archive'
18968 + ;;
18970 + irix5* | irix6* | nonstopux*)
18971 + lt_prog_compiler_wl='-Wl,'
18972 + # PIC (with -KPIC) is the default.
18973 + lt_prog_compiler_static='-non_shared'
18974 + ;;
18976 + newsos6)
18977 + lt_prog_compiler_pic='-KPIC'
18978 + lt_prog_compiler_static='-Bstatic'
18979 + ;;
18981 + linux*)
18982 + case $CC in
18983 + icc* | ecc*)
18984 + lt_prog_compiler_wl='-Wl,'
18985 + lt_prog_compiler_pic='-KPIC'
18986 + lt_prog_compiler_static='-static'
18987 + ;;
18988 + ccc*)
18989 + lt_prog_compiler_wl='-Wl,'
18990 + # All Alpha code is PIC.
18991 + lt_prog_compiler_static='-non_shared'
18992 + ;;
18993 + esac
18994 + ;;
18996 + osf3* | osf4* | osf5*)
18997 + lt_prog_compiler_wl='-Wl,'
18998 + # All OSF/1 code is PIC.
18999 + lt_prog_compiler_static='-non_shared'
19000 + ;;
19002 + sco3.2v5*)
19003 + lt_prog_compiler_pic='-Kpic'
19004 + lt_prog_compiler_static='-dn'
19005 + ;;
19007 + solaris*)
19008 + lt_prog_compiler_wl='-Wl,'
19009 + lt_prog_compiler_pic='-KPIC'
19010 + lt_prog_compiler_static='-Bstatic'
19011 + ;;
19013 + sunos4*)
19014 + lt_prog_compiler_wl='-Qoption ld '
19015 + lt_prog_compiler_pic='-PIC'
19016 + lt_prog_compiler_static='-Bstatic'
19017 + ;;
19019 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19020 + lt_prog_compiler_wl='-Wl,'
19021 + lt_prog_compiler_pic='-KPIC'
19022 + lt_prog_compiler_static='-Bstatic'
19023 + ;;
19025 + sysv4*MP*)
19026 + if test -d /usr/nec ;then
19027 + lt_prog_compiler_pic='-Kconform_pic'
19028 + lt_prog_compiler_static='-Bstatic'
19029 + fi
19030 + ;;
19032 + uts4*)
19033 + lt_prog_compiler_pic='-pic'
19034 + lt_prog_compiler_static='-Bstatic'
19035 + ;;
19037 + *)
19038 + lt_prog_compiler_can_build_shared=no
19039 + ;;
19040 + esac
19041 + fi
19043 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
19044 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
19046 +#
19047 +# Check to make sure the PIC flag actually works.
19048 +#
19049 +if test -n "$lt_prog_compiler_pic"; then
19051 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
19052 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
19053 +if test "${lt_prog_compiler_pic_works+set}" = set; then
19054 + echo $ECHO_N "(cached) $ECHO_C" >&6
19055 +else
19056 + lt_prog_compiler_pic_works=no
19057 + ac_outfile=conftest.$ac_objext
19058 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19059 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
19060 + # Insert the option either (1) after the last *FLAGS variable, or
19061 + # (2) before a word containing "conftest.", or (3) at the end.
19062 + # Note that $ac_compile itself does not contain backslashes and begins
19063 + # with a dollar sign (not a hyphen), so the echo should work correctly.
19064 + # The option is referenced via a variable to avoid confusing sed.
19065 + lt_compile=`echo "$ac_compile" | $SED \
19066 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19067 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19068 + -e 's:$: $lt_compiler_flag:'`
19069 + (eval echo "\"\$as_me:6474: $lt_compile\"" >&5)
19070 + (eval "$lt_compile" 2>conftest.err)
19071 + ac_status=$?
19072 + cat conftest.err >&5
19073 + echo "$as_me:6478: \$? = $ac_status" >&5
19074 + if (exit $ac_status) && test -s "$ac_outfile"; then
19075 + # The compiler can only warn and ignore the option if not recognized
19076 + # So say no if there are warnings
19077 + if test ! -s conftest.err; then
19078 + lt_prog_compiler_pic_works=yes
19079 + fi
19080 + fi
19081 + $rm conftest*
19083 +fi
19084 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
19085 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
19087 +if test x"$lt_prog_compiler_pic_works" = xyes; then
19088 + case $lt_prog_compiler_pic in
19089 + "" | " "*) ;;
19090 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
19091 + esac
19092 +else
19093 + lt_prog_compiler_pic=
19094 + lt_prog_compiler_can_build_shared=no
19095 +fi
19097 +fi
19098 +case "$host_os" in
19099 + # For platforms which do not support PIC, -DPIC is meaningless:
19100 + *djgpp*)
19101 + lt_prog_compiler_pic=
19102 + ;;
19103 + *)
19104 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
19105 + ;;
19106 +esac
19108 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19109 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19110 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
19111 + echo $ECHO_N "(cached) $ECHO_C" >&6
19112 +else
19113 + lt_cv_prog_compiler_c_o=no
19114 + $rm -r conftest 2>/dev/null
19115 + mkdir conftest
19116 + cd conftest
19117 + mkdir out
19118 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19120 + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19121 + # that will create temporary files in the current directory regardless of
19122 + # the output directory. Thus, making CWD read-only will cause this test
19123 + # to fail, enabling locking or at least warning the user not to do parallel
19124 + # builds.
19125 + chmod -w .
19127 + lt_compiler_flag="-o out/conftest2.$ac_objext"
19128 + # Insert the option either (1) after the last *FLAGS variable, or
19129 + # (2) before a word containing "conftest.", or (3) at the end.
19130 + # Note that $ac_compile itself does not contain backslashes and begins
19131 + # with a dollar sign (not a hyphen), so the echo should work correctly.
19132 + lt_compile=`echo "$ac_compile" | $SED \
19133 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19134 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19135 + -e 's:$: $lt_compiler_flag:'`
19136 + (eval echo "\"\$as_me:6541: $lt_compile\"" >&5)
19137 + (eval "$lt_compile" 2>out/conftest.err)
19138 + ac_status=$?
19139 + cat out/conftest.err >&5
19140 + echo "$as_me:6545: \$? = $ac_status" >&5
19141 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
19142 + then
19143 + # The compiler can only warn and ignore the option if not recognized
19144 + # So say no if there are warnings
19145 + if test ! -s out/conftest.err; then
19146 + lt_cv_prog_compiler_c_o=yes
19147 + fi
19148 + fi
19149 + chmod u+w .
19150 + $rm conftest*
19151 + # SGI C++ compiler will create directory out/ii_files/ for
19152 + # template instantiation
19153 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
19154 + $rm out/* && rmdir out
19155 + cd ..
19156 + rmdir conftest
19157 + $rm conftest*
19159 +fi
19160 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
19161 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
19164 +hard_links="nottested"
19165 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
19166 + # do not overwrite the value of need_locks provided by the user
19167 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19168 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19169 + hard_links=yes
19170 + $rm conftest*
19171 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
19172 + touch conftest.a
19173 + ln conftest.a conftest.b 2>&5 || hard_links=no
19174 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
19175 + echo "$as_me:$LINENO: result: $hard_links" >&5
19176 +echo "${ECHO_T}$hard_links" >&6
19177 + if test "$hard_links" = no; then
19178 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19179 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19180 + need_locks=warn
19181 + fi
19182 +else
19183 + need_locks=no
19184 +fi
19186 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19187 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19189 + runpath_var=
19190 + allow_undefined_flag=
19191 + enable_shared_with_static_runtimes=no
19192 + archive_cmds=
19193 + archive_expsym_cmds=
19194 + old_archive_From_new_cmds=
19195 + old_archive_from_expsyms_cmds=
19196 + export_dynamic_flag_spec=
19197 + whole_archive_flag_spec=
19198 + thread_safe_flag_spec=
19199 + hardcode_libdir_flag_spec=
19200 + hardcode_libdir_flag_spec_ld=
19201 + hardcode_libdir_separator=
19202 + hardcode_direct=no
19203 + hardcode_minus_L=no
19204 + hardcode_shlibpath_var=unsupported
19205 + link_all_deplibs=unknown
19206 + hardcode_automatic=no
19207 + module_cmds=
19208 + module_expsym_cmds=
19209 + always_export_symbols=no
19210 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19211 + # include_expsyms should be a list of space-separated symbols to be *always*
19212 + # included in the symbol list
19213 + include_expsyms=
19214 + # exclude_expsyms can be an extended regexp of symbols to exclude
19215 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
19216 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19217 + # as well as any symbol that contains `d'.
19218 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
19219 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19220 + # platforms (ab)use it in PIC code, but their linkers get confused if
19221 + # the symbol is explicitly referenced. Since portable code cannot
19222 + # rely on this symbol name, it's probably fine to never include it in
19223 + # preloaded symbol tables.
19224 + extract_expsyms_cmds=
19226 + case $host_os in
19227 + cygwin* | mingw* | pw32*)
19228 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
19229 + # When not using gcc, we currently assume that we are using
19230 + # Microsoft Visual C++.
19231 + if test "$GCC" != yes; then
19232 + with_gnu_ld=no
19233 + fi
19234 + ;;
19235 + openbsd*)
19236 + with_gnu_ld=no
19237 + ;;
19238 + esac
19240 + ld_shlibs=yes
19241 + if test "$with_gnu_ld" = yes; then
19242 + # If archive_cmds runs LD, not CC, wlarc should be empty
19243 + wlarc='${wl}'
19245 + # See if GNU ld supports shared libraries.
19246 + case $host_os in
19247 + aix3* | aix4* | aix5*)
19248 + # On AIX/PPC, the GNU linker is very broken
19249 + if test "$host_cpu" != ia64; then
19250 + ld_shlibs=no
19251 + cat <<EOF 1>&2
19253 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19254 +*** to be unable to reliably create shared libraries on AIX.
19255 +*** Therefore, libtool is disabling shared libraries support. If you
19256 +*** really care for shared libraries, you may want to modify your PATH
19257 +*** so that a non-GNU linker is found, and then restart.
19259 +EOF
19260 + fi
19261 + ;;
19263 + amigaos*)
19264 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19265 + hardcode_libdir_flag_spec='-L$libdir'
19266 + hardcode_minus_L=yes
19268 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19269 + # that the semantics of dynamic libraries on AmigaOS, at least up
19270 + # to version 4, is to share data among multiple programs linked
19271 + # with the same dynamic library. Since this doesn't match the
19272 + # behavior of shared libraries on other platforms, we can't use
19273 + # them.
19274 + ld_shlibs=no
19275 + ;;
19277 + beos*)
19278 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19279 + allow_undefined_flag=unsupported
19280 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19281 + # support --undefined. This deserves some investigation. FIXME
19282 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19283 + else
19284 + ld_shlibs=no
19285 + fi
19286 + ;;
19288 + cygwin* | mingw* | pw32*)
19289 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
19290 + # as there is no search path for DLLs.
19291 + hardcode_libdir_flag_spec='-L$libdir'
19292 + allow_undefined_flag=unsupported
19293 + always_export_symbols=no
19294 + enable_shared_with_static_runtimes=yes
19295 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19297 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19298 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19299 + # If the export-symbols file already is a .def file (1st line
19300 + # is EXPORTS), use it as is; otherwise, prepend...
19301 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19302 + cp $export_symbols $output_objdir/$soname.def;
19303 + else
19304 + echo EXPORTS > $output_objdir/$soname.def;
19305 + cat $export_symbols >> $output_objdir/$soname.def;
19306 + fi~
19307 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19308 + else
19309 + ld_shlibs=no
19310 + fi
19311 + ;;
19313 + netbsd*)
19314 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19315 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19316 + wlarc=
19317 + else
19318 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19319 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19320 + fi
19321 + ;;
19323 + solaris* | sysv5*)
19324 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19325 + ld_shlibs=no
19326 + cat <<EOF 1>&2
19328 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19329 +*** create shared libraries on Solaris systems. Therefore, libtool
19330 +*** is disabling shared libraries support. We urge you to upgrade GNU
19331 +*** binutils to release 2.9.1 or newer. Another option is to modify
19332 +*** your PATH or compiler configuration so that the native linker is
19333 +*** used, and then restart.
19335 +EOF
19336 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19337 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19338 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19339 + else
19340 + ld_shlibs=no
19341 + fi
19342 + ;;
19344 + sunos4*)
19345 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19346 + wlarc=
19347 + hardcode_direct=yes
19348 + hardcode_shlibpath_var=no
19349 + ;;
19351 + linux*)
19352 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
19353 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19354 + archive_cmds="$tmp_archive_cmds"
19355 + supports_anon_versioning=no
19356 + case `$LD -v 2>/dev/null` in
19357 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19358 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19359 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19360 + *\ 2.11.*) ;; # other 2.11 versions
19361 + *) supports_anon_versioning=yes ;;
19362 + esac
19363 + if test $supports_anon_versioning = yes; then
19364 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
19365 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19366 +$echo "local: *; };" >> $output_objdir/$libname.ver~
19367 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19368 + else
19369 + archive_expsym_cmds="$tmp_archive_cmds"
19370 + fi
19371 + else
19372 + ld_shlibs=no
19373 + fi
19374 + ;;
19376 + *)
19377 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19378 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19379 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19380 + else
19381 + ld_shlibs=no
19382 + fi
19383 + ;;
19384 + esac
19386 + if test "$ld_shlibs" = yes; then
19387 + runpath_var=LD_RUN_PATH
19388 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
19389 + export_dynamic_flag_spec='${wl}--export-dynamic'
19390 + # ancient GNU ld didn't support --whole-archive et. al.
19391 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19392 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19393 + else
19394 + whole_archive_flag_spec=
19395 + fi
19396 + fi
19397 + else
19398 + # PORTME fill in a description of your system's linker (not GNU ld)
19399 + case $host_os in
19400 + aix3*)
19401 + allow_undefined_flag=unsupported
19402 + always_export_symbols=yes
19403 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19404 + # Note: this linker hardcodes the directories in LIBPATH if there
19405 + # are no directories specified by -L.
19406 + hardcode_minus_L=yes
19407 + if test "$GCC" = yes && test -z "$link_static_flag"; then
19408 + # Neither direct hardcoding nor static linking is supported with a
19409 + # broken collect2.
19410 + hardcode_direct=unsupported
19411 + fi
19412 + ;;
19414 + aix4* | aix5*)
19415 + if test "$host_cpu" = ia64; then
19416 + # On IA64, the linker does run time linking by default, so we don't
19417 + # have to do anything special.
19418 + aix_use_runtimelinking=no
19419 + exp_sym_flag='-Bexport'
19420 + no_entry_flag=""
19421 + else
19422 + # If we're using GNU nm, then we don't want the "-C" option.
19423 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
19424 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19425 + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19426 + else
19427 + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19428 + fi
19429 + aix_use_runtimelinking=no
19431 + # Test if we are trying to use run time linking or normal
19432 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19433 + # need to do runtime linking.
19434 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19435 + for ld_flag in $LDFLAGS; do
19436 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19437 + aix_use_runtimelinking=yes
19438 + break
19439 + fi
19440 + done
19441 + esac
19443 + exp_sym_flag='-bexport'
19444 + no_entry_flag='-bnoentry'
19445 + fi
19447 + # When large executables or shared objects are built, AIX ld can
19448 + # have problems creating the table of contents. If linking a library
19449 + # or program results in "error TOC overflow" add -mminimal-toc to
19450 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19451 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19453 + archive_cmds=''
19454 + hardcode_direct=yes
19455 + hardcode_libdir_separator=':'
19456 + link_all_deplibs=yes
19458 + if test "$GCC" = yes; then
19459 + case $host_os in aix4.012|aix4.012.*)
19460 + # We only want to do this on AIX 4.2 and lower, the check
19461 + # below for broken collect2 doesn't work under 4.3+
19462 + collect2name=`${CC} -print-prog-name=collect2`
19463 + if test -f "$collect2name" && \
19464 + strings "$collect2name" | grep resolve_lib_name >/dev/null
19465 + then
19466 + # We have reworked collect2
19467 + hardcode_direct=yes
19468 + else
19469 + # We have old collect2
19470 + hardcode_direct=unsupported
19471 + # It fails to find uninstalled libraries when the uninstalled
19472 + # path is not listed in the libpath. Setting hardcode_minus_L
19473 + # to unsupported forces relinking
19474 + hardcode_minus_L=yes
19475 + hardcode_libdir_flag_spec='-L$libdir'
19476 + hardcode_libdir_separator=
19477 + fi
19478 + esac
19479 + shared_flag='-shared'
19480 + else
19481 + # not using gcc
19482 + if test "$host_cpu" = ia64; then
19483 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19484 + # chokes on -Wl,-G. The following line is correct:
19485 + shared_flag='-G'
19486 + else
19487 + if test "$aix_use_runtimelinking" = yes; then
19488 + shared_flag='${wl}-G'
19489 + else
19490 + shared_flag='${wl}-bM:SRE'
19491 + fi
19492 + fi
19493 + fi
19495 + # It seems that -bexpall does not export symbols beginning with
19496 + # underscore (_), so it is better to generate a list of symbols to export.
19497 + always_export_symbols=yes
19498 + if test "$aix_use_runtimelinking" = yes; then
19499 + # Warning - without using the other runtime loading flags (-brtl),
19500 + # -berok will link without error, but may produce a broken library.
19501 + allow_undefined_flag='-berok'
19502 + # Determine the default libpath from the value encoded in an empty executable.
19503 + cat >conftest.$ac_ext <<_ACEOF
19504 +/* confdefs.h. */
19505 +_ACEOF
19506 +cat confdefs.h >>conftest.$ac_ext
19507 +cat >>conftest.$ac_ext <<_ACEOF
19508 +/* end confdefs.h. */
19510 +int
19511 +main ()
19512 +{
19514 + ;
19515 + return 0;
19516 +}
19517 +_ACEOF
19518 +rm -f conftest.$ac_objext conftest$ac_exeext
19519 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19520 + (eval $ac_link) 2>conftest.er1
19521 + ac_status=$?
19522 + grep -v '^ *+' conftest.er1 >conftest.err
19523 + rm -f conftest.er1
19524 + cat conftest.err >&5
19525 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 + (exit $ac_status); } &&
19527 + { ac_try='test -z "$ac_c_werror_flag"
19528 + || test ! -s conftest.err'
19529 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 + (eval $ac_try) 2>&5
19531 + ac_status=$?
19532 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 + (exit $ac_status); }; } &&
19534 + { ac_try='test -s conftest$ac_exeext'
19535 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 + (eval $ac_try) 2>&5
19537 + ac_status=$?
19538 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 + (exit $ac_status); }; }; then
19541 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19542 +}'`
19543 +# Check for a 64-bit object if we didn't find anything.
19544 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19545 +}'`; fi
19546 +else
19547 + echo "$as_me: failed program was:" >&5
19548 +sed 's/^/| /' conftest.$ac_ext >&5
19550 +fi
19551 +rm -f conftest.err conftest.$ac_objext \
19552 + conftest$ac_exeext conftest.$ac_ext
19553 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19555 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19556 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19557 + else
19558 + if test "$host_cpu" = ia64; then
19559 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
19560 + allow_undefined_flag="-z nodefs"
19561 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19562 + else
19563 + # Determine the default libpath from the value encoded in an empty executable.
19564 + cat >conftest.$ac_ext <<_ACEOF
19565 +/* confdefs.h. */
19566 +_ACEOF
19567 +cat confdefs.h >>conftest.$ac_ext
19568 +cat >>conftest.$ac_ext <<_ACEOF
19569 +/* end confdefs.h. */
19571 +int
19572 +main ()
19573 +{
19575 + ;
19576 + return 0;
19577 +}
19578 +_ACEOF
19579 +rm -f conftest.$ac_objext conftest$ac_exeext
19580 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19581 + (eval $ac_link) 2>conftest.er1
19582 + ac_status=$?
19583 + grep -v '^ *+' conftest.er1 >conftest.err
19584 + rm -f conftest.er1
19585 + cat conftest.err >&5
19586 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 + (exit $ac_status); } &&
19588 + { ac_try='test -z "$ac_c_werror_flag"
19589 + || test ! -s conftest.err'
19590 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 + (eval $ac_try) 2>&5
19592 + ac_status=$?
19593 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 + (exit $ac_status); }; } &&
19595 + { ac_try='test -s conftest$ac_exeext'
19596 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 + (eval $ac_try) 2>&5
19598 + ac_status=$?
19599 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 + (exit $ac_status); }; }; then
19602 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19603 +}'`
19604 +# Check for a 64-bit object if we didn't find anything.
19605 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19606 +}'`; fi
19607 +else
19608 + echo "$as_me: failed program was:" >&5
19609 +sed 's/^/| /' conftest.$ac_ext >&5
19611 +fi
19612 +rm -f conftest.err conftest.$ac_objext \
19613 + conftest$ac_exeext conftest.$ac_ext
19614 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19616 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
19617 + # Warning - without using the other run time loading flags,
19618 + # -berok will link without error, but may produce a broken library.
19619 + no_undefined_flag=' ${wl}-bernotok'
19620 + allow_undefined_flag=' ${wl}-berok'
19621 + # -bexpall does not export symbols beginning with underscore (_)
19622 + always_export_symbols=yes
19623 + # Exported symbols can be pulled into shared objects from archives
19624 + whole_archive_flag_spec=' '
19625 + archive_cmds_need_lc=yes
19626 + # This is similar to how AIX traditionally builds it's shared libraries.
19627 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19628 + fi
19629 + fi
19630 + ;;
19632 + amigaos*)
19633 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
19634 + hardcode_libdir_flag_spec='-L$libdir'
19635 + hardcode_minus_L=yes
19636 + # see comment about different semantics on the GNU ld section
19637 + ld_shlibs=no
19638 + ;;
19640 + bsdi4*)
19641 + export_dynamic_flag_spec=-rdynamic
19642 + ;;
19644 + cygwin* | mingw* | pw32*)
19645 + # When not using gcc, we currently assume that we are using
19646 + # Microsoft Visual C++.
19647 + # hardcode_libdir_flag_spec is actually meaningless, as there is
19648 + # no search path for DLLs.
19649 + hardcode_libdir_flag_spec=' '
19650 + allow_undefined_flag=unsupported
19651 + # Tell ltmain to make .lib files, not .a files.
19652 + libext=lib
19653 + # Tell ltmain to make .dll files, not .so files.
19654 + shrext=".dll"
19655 + # FIXME: Setting linknames here is a bad hack.
19656 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19657 + # The linker will automatically build a .lib file if we build a DLL.
19658 + old_archive_From_new_cmds='true'
19659 + # FIXME: Should let the user specify the lib program.
19660 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
19661 + fix_srcfile_path='`cygpath -w "$srcfile"`'
19662 + enable_shared_with_static_runtimes=yes
19663 + ;;
19665 + darwin* | rhapsody*)
19666 + if test "$GXX" = yes ; then
19667 + archive_cmds_need_lc=no
19668 + case "$host_os" in
19669 + rhapsody* | darwin1.[012])
19670 + allow_undefined_flag='-undefined suppress'
19671 + ;;
19672 + *) # Darwin 1.3 on
19673 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19674 + allow_undefined_flag='-flat_namespace -undefined suppress'
19675 + else
19676 + case ${MACOSX_DEPLOYMENT_TARGET} in
19677 + 10.[012])
19678 + allow_undefined_flag='-flat_namespace -undefined suppress'
19679 + ;;
19680 + 10.*)
19681 + allow_undefined_flag='-undefined dynamic_lookup'
19682 + ;;
19683 + esac
19684 + fi
19685 + ;;
19686 + esac
19687 + lt_int_apple_cc_single_mod=no
19688 + output_verbose_link_cmd='echo'
19689 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19690 + lt_int_apple_cc_single_mod=yes
19691 + fi
19692 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19693 + archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19694 + else
19695 + archive_cmds='$CC -r ${wl}-bind_at_load -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'
19696 + fi
19697 + module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19698 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19699 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19700 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19701 + else
19702 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19703 + fi
19704 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19705 + hardcode_direct=no
19706 + hardcode_automatic=yes
19707 + hardcode_shlibpath_var=unsupported
19708 + whole_archive_flag_spec='-all_load $convenience'
19709 + link_all_deplibs=yes
19710 + else
19711 + ld_shlibs=no
19712 + fi
19713 + ;;
19715 + dgux*)
19716 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19717 + hardcode_libdir_flag_spec='-L$libdir'
19718 + hardcode_shlibpath_var=no
19719 + ;;
19721 + freebsd1*)
19722 + ld_shlibs=no
19723 + ;;
19725 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19726 + # support. Future versions do this automatically, but an explicit c++rt0.o
19727 + # does not break anything, and helps significantly (at the cost of a little
19728 + # extra space).
19729 + freebsd2.2*)
19730 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19731 + hardcode_libdir_flag_spec='-R$libdir'
19732 + hardcode_direct=yes
19733 + hardcode_shlibpath_var=no
19734 + ;;
19736 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19737 + freebsd2*)
19738 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19739 + hardcode_direct=yes
19740 + hardcode_minus_L=yes
19741 + hardcode_shlibpath_var=no
19742 + ;;
19744 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19745 + freebsd* | kfreebsd*-gnu)
19746 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19747 + hardcode_libdir_flag_spec='-R$libdir'
19748 + hardcode_direct=yes
19749 + hardcode_shlibpath_var=no
19750 + ;;
19752 + hpux9*)
19753 + if test "$GCC" = yes; then
19754 + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19755 + else
19756 + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19757 + fi
19758 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19759 + hardcode_libdir_separator=:
19760 + hardcode_direct=yes
19762 + # hardcode_minus_L: Not really in the search PATH,
19763 + # but as the default location of the library.
19764 + hardcode_minus_L=yes
19765 + export_dynamic_flag_spec='${wl}-E'
19766 + ;;
19768 + hpux10* | hpux11*)
19769 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19770 + case "$host_cpu" in
19771 + hppa*64*|ia64*)
19772 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19773 + ;;
19774 + *)
19775 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19776 + ;;
19777 + esac
19778 + else
19779 + case "$host_cpu" in
19780 + hppa*64*|ia64*)
19781 + archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19782 + ;;
19783 + *)
19784 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19785 + ;;
19786 + esac
19787 + fi
19788 + if test "$with_gnu_ld" = no; then
19789 + case "$host_cpu" in
19790 + hppa*64*)
19791 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19792 + hardcode_libdir_flag_spec_ld='+b $libdir'
19793 + hardcode_libdir_separator=:
19794 + hardcode_direct=no
19795 + hardcode_shlibpath_var=no
19796 + ;;
19797 + ia64*)
19798 + hardcode_libdir_flag_spec='-L$libdir'
19799 + hardcode_direct=no
19800 + hardcode_shlibpath_var=no
19802 + # hardcode_minus_L: Not really in the search PATH,
19803 + # but as the default location of the library.
19804 + hardcode_minus_L=yes
19805 + ;;
19806 + *)
19807 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
19808 + hardcode_libdir_separator=:
19809 + hardcode_direct=yes
19810 + export_dynamic_flag_spec='${wl}-E'
19812 + # hardcode_minus_L: Not really in the search PATH,
19813 + # but as the default location of the library.
19814 + hardcode_minus_L=yes
19815 + ;;
19816 + esac
19817 + fi
19818 + ;;
19820 + irix5* | irix6* | nonstopux*)
19821 + if test "$GCC" = yes; then
19822 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19823 + else
19824 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19825 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
19826 + fi
19827 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19828 + hardcode_libdir_separator=:
19829 + link_all_deplibs=yes
19830 + ;;
19832 + netbsd*)
19833 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19834 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19835 + else
19836 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19837 + fi
19838 + hardcode_libdir_flag_spec='-R$libdir'
19839 + hardcode_direct=yes
19840 + hardcode_shlibpath_var=no
19841 + ;;
19843 + newsos6)
19844 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19845 + hardcode_direct=yes
19846 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19847 + hardcode_libdir_separator=:
19848 + hardcode_shlibpath_var=no
19849 + ;;
19851 + openbsd*)
19852 + hardcode_direct=yes
19853 + hardcode_shlibpath_var=no
19854 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19855 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19856 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19857 + export_dynamic_flag_spec='${wl}-E'
19858 + else
19859 + case $host_os in
19860 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19861 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19862 + hardcode_libdir_flag_spec='-R$libdir'
19863 + ;;
19864 + *)
19865 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19866 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
19867 + ;;
19868 + esac
19869 + fi
19870 + ;;
19872 + os2*)
19873 + hardcode_libdir_flag_spec='-L$libdir'
19874 + hardcode_minus_L=yes
19875 + allow_undefined_flag=unsupported
19876 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
19877 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19878 + ;;
19880 + osf3*)
19881 + if test "$GCC" = yes; then
19882 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19883 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19884 + else
19885 + allow_undefined_flag=' -expect_unresolved \*'
19886 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19887 + fi
19888 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19889 + hardcode_libdir_separator=:
19890 + ;;
19892 + osf4* | osf5*) # as osf3* with the addition of -msym flag
19893 + if test "$GCC" = yes; then
19894 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
19895 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19896 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
19897 + else
19898 + allow_undefined_flag=' -expect_unresolved \*'
19899 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
19900 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
19901 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19903 + # Both c and cxx compiler support -rpath directly
19904 + hardcode_libdir_flag_spec='-rpath $libdir'
19905 + fi
19906 + hardcode_libdir_separator=:
19907 + ;;
19909 + sco3.2v5*)
19910 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19911 + hardcode_shlibpath_var=no
19912 + export_dynamic_flag_spec='${wl}-Bexport'
19913 + runpath_var=LD_RUN_PATH
19914 + hardcode_runpath_var=yes
19915 + ;;
19917 + solaris*)
19918 + no_undefined_flag=' -z text'
19919 + if test "$GCC" = yes; then
19920 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19921 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19922 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19923 + else
19924 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19925 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19926 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19927 + fi
19928 + hardcode_libdir_flag_spec='-R$libdir'
19929 + hardcode_shlibpath_var=no
19930 + case $host_os in
19931 + solaris2.[0-5] | solaris2.[0-5].*) ;;
19932 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19933 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
19934 + esac
19935 + link_all_deplibs=yes
19936 + ;;
19938 + sunos4*)
19939 + if test "x$host_vendor" = xsequent; then
19940 + # Use $CC to link under sequent, because it throws in some extra .o
19941 + # files that make .init and .fini sections work.
19942 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19943 + else
19944 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19945 + fi
19946 + hardcode_libdir_flag_spec='-L$libdir'
19947 + hardcode_direct=yes
19948 + hardcode_minus_L=yes
19949 + hardcode_shlibpath_var=no
19950 + ;;
19952 + sysv4)
19953 + case $host_vendor in
19954 + sni)
19955 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19956 + hardcode_direct=yes # is this really true???
19957 + ;;
19958 + siemens)
19959 + ## LD is ld it makes a PLAMLIB
19960 + ## CC just makes a GrossModule.
19961 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19962 + reload_cmds='$CC -r -o $output$reload_objs'
19963 + hardcode_direct=no
19964 + ;;
19965 + motorola)
19966 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19967 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
19968 + ;;
19969 + esac
19970 + runpath_var='LD_RUN_PATH'
19971 + hardcode_shlibpath_var=no
19972 + ;;
19974 + sysv4.3*)
19975 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19976 + hardcode_shlibpath_var=no
19977 + export_dynamic_flag_spec='-Bexport'
19978 + ;;
19980 + sysv4*MP*)
19981 + if test -d /usr/nec; then
19982 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19983 + hardcode_shlibpath_var=no
19984 + runpath_var=LD_RUN_PATH
19985 + hardcode_runpath_var=yes
19986 + ld_shlibs=yes
19987 + fi
19988 + ;;
19990 + sysv4.2uw2*)
19991 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19992 + hardcode_direct=yes
19993 + hardcode_minus_L=no
19994 + hardcode_shlibpath_var=no
19995 + hardcode_runpath_var=yes
19996 + runpath_var=LD_RUN_PATH
19997 + ;;
19999 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20000 + no_undefined_flag='${wl}-z ${wl}text'
20001 + if test "$GCC" = yes; then
20002 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20003 + else
20004 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20005 + fi
20006 + runpath_var='LD_RUN_PATH'
20007 + hardcode_shlibpath_var=no
20008 + ;;
20010 + sysv5*)
20011 + no_undefined_flag=' -z text'
20012 + # $CC -shared without GNU ld will not create a library from C++
20013 + # object files and a static libstdc++, better avoid it by now
20014 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20015 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20016 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20017 + hardcode_libdir_flag_spec=
20018 + hardcode_shlibpath_var=no
20019 + runpath_var='LD_RUN_PATH'
20020 + ;;
20022 + uts4*)
20023 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20024 + hardcode_libdir_flag_spec='-L$libdir'
20025 + hardcode_shlibpath_var=no
20026 + ;;
20028 + *)
20029 + ld_shlibs=no
20030 + ;;
20031 + esac
20032 + fi
20034 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
20035 +echo "${ECHO_T}$ld_shlibs" >&6
20036 +test "$ld_shlibs" = no && can_build_shared=no
20038 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20039 +if test "$GCC" = yes; then
20040 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20041 +fi
20043 +#
20044 +# Do we need to explicitly link libc?
20045 +#
20046 +case "x$archive_cmds_need_lc" in
20047 +x|xyes)
20048 + # Assume -lc should be added
20049 + archive_cmds_need_lc=yes
20051 + if test "$enable_shared" = yes && test "$GCC" = yes; then
20052 + case $archive_cmds in
20053 + *'~'*)
20054 + # FIXME: we may have to deal with multi-command sequences.
20055 + ;;
20056 + '$CC '*)
20057 + # Test whether the compiler implicitly links with -lc since on some
20058 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
20059 + # to ld, don't add -lc before -lgcc.
20060 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20061 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20062 + $rm conftest*
20063 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20065 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20066 + (eval $ac_compile) 2>&5
20067 + ac_status=$?
20068 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 + (exit $ac_status); } 2>conftest.err; then
20070 + soname=conftest
20071 + lib=conftest
20072 + libobjs=conftest.$ac_objext
20073 + deplibs=
20074 + wl=$lt_prog_compiler_wl
20075 + compiler_flags=-v
20076 + linker_flags=-v
20077 + verstring=
20078 + output_objdir=.
20079 + libname=conftest
20080 + lt_save_allow_undefined_flag=$allow_undefined_flag
20081 + allow_undefined_flag=
20082 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20083 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20084 + ac_status=$?
20085 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 + (exit $ac_status); }
20087 + then
20088 + archive_cmds_need_lc=no
20089 + else
20090 + archive_cmds_need_lc=yes
20091 + fi
20092 + allow_undefined_flag=$lt_save_allow_undefined_flag
20093 + else
20094 + cat conftest.err 1>&5
20095 + fi
20096 + $rm conftest*
20097 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
20098 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
20099 + ;;
20100 + esac
20101 + fi
20102 + ;;
20103 +esac
20105 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20106 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20107 +library_names_spec=
20108 +libname_spec='lib$name'
20109 +soname_spec=
20110 +shrext=".so"
20111 +postinstall_cmds=
20112 +postuninstall_cmds=
20113 +finish_cmds=
20114 +finish_eval=
20115 +shlibpath_var=
20116 +shlibpath_overrides_runpath=unknown
20117 +version_type=none
20118 +dynamic_linker="$host_os ld.so"
20119 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
20120 +if test "$GCC" = yes; then
20121 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20122 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
20123 + # if the path contains ";" then we assume it to be the separator
20124 + # otherwise default to the standard path separator (i.e. ":") - it is
20125 + # assumed that no part of a normal pathname contains ";" but that should
20126 + # okay in the real world where ";" in dirpaths is itself problematic.
20127 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20128 + else
20129 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20130 + fi
20131 +else
20132 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20133 +fi
20134 +need_lib_prefix=unknown
20135 +hardcode_into_libs=no
20137 +# when you set need_version to no, make sure it does not cause -set_version
20138 +# flags to be left without arguments
20139 +need_version=unknown
20141 +case $host_os in
20142 +aix3*)
20143 + version_type=linux
20144 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20145 + shlibpath_var=LIBPATH
20147 + # AIX 3 has no versioning support, so we append a major version to the name.
20148 + soname_spec='${libname}${release}${shared_ext}$major'
20149 + ;;
20151 +aix4* | aix5*)
20152 + version_type=linux
20153 + need_lib_prefix=no
20154 + need_version=no
20155 + hardcode_into_libs=yes
20156 + if test "$host_cpu" = ia64; then
20157 + # AIX 5 supports IA64
20158 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20159 + shlibpath_var=LD_LIBRARY_PATH
20160 + else
20161 + # With GCC up to 2.95.x, collect2 would create an import file
20162 + # for dependence libraries. The import file would start with
20163 + # the line `#! .'. This would cause the generated library to
20164 + # depend on `.', always an invalid library. This was fixed in
20165 + # development snapshots of GCC prior to 3.0.
20166 + case $host_os in
20167 + aix4 | aix4.[01] | aix4.[01].*)
20168 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20169 + echo ' yes '
20170 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20171 + :
20172 + else
20173 + can_build_shared=no
20174 + fi
20175 + ;;
20176 + esac
20177 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20178 + # soname into executable. Probably we can add versioning support to
20179 + # collect2, so additional links can be useful in future.
20180 + if test "$aix_use_runtimelinking" = yes; then
20181 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20182 + # instead of lib<name>.a to let people know that these are not
20183 + # typical AIX shared libraries.
20184 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20185 + else
20186 + # We preserve .a as extension for shared libraries through AIX4.2
20187 + # and later when we are not doing run time linking.
20188 + library_names_spec='${libname}${release}.a $libname.a'
20189 + soname_spec='${libname}${release}${shared_ext}$major'
20190 + fi
20191 + shlibpath_var=LIBPATH
20192 + fi
20193 + ;;
20195 +amigaos*)
20196 + library_names_spec='$libname.ixlibrary $libname.a'
20197 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
20198 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
20199 + ;;
20201 +beos*)
20202 + library_names_spec='${libname}${shared_ext}'
20203 + dynamic_linker="$host_os ld.so"
20204 + shlibpath_var=LIBRARY_PATH
20205 + ;;
20207 +bsdi4*)
20208 + version_type=linux
20209 + need_version=no
20210 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20211 + soname_spec='${libname}${release}${shared_ext}$major'
20212 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20213 + shlibpath_var=LD_LIBRARY_PATH
20214 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20215 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20216 + # the default ld.so.conf also contains /usr/contrib/lib and
20217 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20218 + # libtool to hard-code these into programs
20219 + ;;
20221 +cygwin* | mingw* | pw32*)
20222 + version_type=windows
20223 + shrext=".dll"
20224 + need_version=no
20225 + need_lib_prefix=no
20227 + case $GCC,$host_os in
20228 + yes,cygwin* | yes,mingw* | yes,pw32*)
20229 + library_names_spec='$libname.dll.a'
20230 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
20231 + postinstall_cmds='base_file=`basename \${file}`~
20232 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20233 + dldir=$destdir/`dirname \$dlpath`~
20234 + test -d \$dldir || mkdir -p \$dldir~
20235 + $install_prog $dir/$dlname \$dldir/$dlname'
20236 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20237 + dlpath=$dir/\$dldll~
20238 + $rm \$dlpath'
20239 + shlibpath_overrides_runpath=yes
20241 + case $host_os in
20242 + cygwin*)
20243 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20244 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20245 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20246 + ;;
20247 + mingw*)
20248 + # MinGW DLLs use traditional 'lib' prefix
20249 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20250 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20251 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20252 + # It is most probably a Windows format PATH printed by
20253 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
20254 + # path with ; separators, and with drive letters. We can handle the
20255 + # drive letters (cygwin fileutils understands them), so leave them,
20256 + # especially as we might pass files found there to a mingw objdump,
20257 + # which wouldn't understand a cygwinified path. Ahh.
20258 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20259 + else
20260 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20261 + fi
20262 + ;;
20263 + pw32*)
20264 + # pw32 DLLs use 'pw' prefix rather than 'lib'
20265 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20266 + ;;
20267 + esac
20268 + ;;
20270 + *)
20271 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20272 + ;;
20273 + esac
20274 + dynamic_linker='Win32 ld.exe'
20275 + # FIXME: first we should search . and the directory the executable is in
20276 + shlibpath_var=PATH
20277 + ;;
20279 +darwin* | rhapsody*)
20280 + dynamic_linker="$host_os dyld"
20281 + version_type=darwin
20282 + need_lib_prefix=no
20283 + need_version=no
20284 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20285 + soname_spec='${libname}${release}${major}$shared_ext'
20286 + shlibpath_overrides_runpath=yes
20287 + shlibpath_var=DYLD_LIBRARY_PATH
20288 + shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20289 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20290 + if test "$GCC" = yes; then
20291 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20292 + else
20293 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20294 + fi
20295 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20296 + ;;
20298 +dgux*)
20299 + version_type=linux
20300 + need_lib_prefix=no
20301 + need_version=no
20302 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20303 + soname_spec='${libname}${release}${shared_ext}$major'
20304 + shlibpath_var=LD_LIBRARY_PATH
20305 + ;;
20307 +freebsd1*)
20308 + dynamic_linker=no
20309 + ;;
20311 +kfreebsd*-gnu)
20312 + version_type=linux
20313 + need_lib_prefix=no
20314 + need_version=no
20315 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20316 + soname_spec='${libname}${release}${shared_ext}$major'
20317 + shlibpath_var=LD_LIBRARY_PATH
20318 + shlibpath_overrides_runpath=no
20319 + hardcode_into_libs=yes
20320 + dynamic_linker='GNU ld.so'
20321 + ;;
20323 +freebsd*)
20324 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20325 + version_type=freebsd-$objformat
20326 + case $version_type in
20327 + freebsd-elf*)
20328 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20329 + need_version=no
20330 + need_lib_prefix=no
20331 + ;;
20332 + freebsd-*)
20333 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20334 + need_version=yes
20335 + ;;
20336 + esac
20337 + shlibpath_var=LD_LIBRARY_PATH
20338 + case $host_os in
20339 + freebsd2*)
20340 + shlibpath_overrides_runpath=yes
20341 + ;;
20342 + freebsd3.01* | freebsdelf3.01*)
20343 + shlibpath_overrides_runpath=yes
20344 + hardcode_into_libs=yes
20345 + ;;
20346 + *) # from 3.2 on
20347 + shlibpath_overrides_runpath=no
20348 + hardcode_into_libs=yes
20349 + ;;
20350 + esac
20351 + ;;
20353 +gnu*)
20354 + version_type=linux
20355 + need_lib_prefix=no
20356 + need_version=no
20357 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20358 + soname_spec='${libname}${release}${shared_ext}$major'
20359 + shlibpath_var=LD_LIBRARY_PATH
20360 + hardcode_into_libs=yes
20361 + ;;
20363 +hpux9* | hpux10* | hpux11*)
20364 + # Give a soname corresponding to the major version so that dld.sl refuses to
20365 + # link against other versions.
20366 + version_type=sunos
20367 + need_lib_prefix=no
20368 + need_version=no
20369 + case "$host_cpu" in
20370 + ia64*)
20371 + shrext='.so'
20372 + hardcode_into_libs=yes
20373 + dynamic_linker="$host_os dld.so"
20374 + shlibpath_var=LD_LIBRARY_PATH
20375 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20376 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20377 + soname_spec='${libname}${release}${shared_ext}$major'
20378 + if test "X$HPUX_IA64_MODE" = X32; then
20379 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20380 + else
20381 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20382 + fi
20383 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20384 + ;;
20385 + hppa*64*)
20386 + shrext='.sl'
20387 + hardcode_into_libs=yes
20388 + dynamic_linker="$host_os dld.sl"
20389 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20390 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20391 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 + soname_spec='${libname}${release}${shared_ext}$major'
20393 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20394 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20395 + ;;
20396 + *)
20397 + shrext='.sl'
20398 + dynamic_linker="$host_os dld.sl"
20399 + shlibpath_var=SHLIB_PATH
20400 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20401 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20402 + soname_spec='${libname}${release}${shared_ext}$major'
20403 + ;;
20404 + esac
20405 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
20406 + postinstall_cmds='chmod 555 $lib'
20407 + ;;
20409 +irix5* | irix6* | nonstopux*)
20410 + case $host_os in
20411 + nonstopux*) version_type=nonstopux ;;
20412 + *)
20413 + if test "$lt_cv_prog_gnu_ld" = yes; then
20414 + version_type=linux
20415 + else
20416 + version_type=irix
20417 + fi ;;
20418 + esac
20419 + need_lib_prefix=no
20420 + need_version=no
20421 + soname_spec='${libname}${release}${shared_ext}$major'
20422 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20423 + case $host_os in
20424 + irix5* | nonstopux*)
20425 + libsuff= shlibsuff=
20426 + ;;
20427 + *)
20428 + case $LD in # libtool.m4 will add one of these switches to LD
20429 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20430 + libsuff= shlibsuff= libmagic=32-bit;;
20431 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20432 + libsuff=32 shlibsuff=N32 libmagic=N32;;
20433 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20434 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
20435 + *) libsuff= shlibsuff= libmagic=never-match;;
20436 + esac
20437 + ;;
20438 + esac
20439 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20440 + shlibpath_overrides_runpath=no
20441 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20442 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20443 + hardcode_into_libs=yes
20444 + ;;
20446 +# No shared lib support for Linux oldld, aout, or coff.
20447 +linux*oldld* | linux*aout* | linux*coff*)
20448 + dynamic_linker=no
20449 + ;;
20451 +# This must be Linux ELF.
20452 +linux*)
20453 + version_type=linux
20454 + need_lib_prefix=no
20455 + need_version=no
20456 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20457 + soname_spec='${libname}${release}${shared_ext}$major'
20458 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20459 + shlibpath_var=LD_LIBRARY_PATH
20460 + shlibpath_overrides_runpath=no
20461 + # This implies no fast_install, which is unacceptable.
20462 + # Some rework will be needed to allow for fast_install
20463 + # before this can be enabled.
20464 + hardcode_into_libs=yes
20466 + # /usr/X11R6/lib and /usr/local/lib are common enough...
20467 + sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
20469 + # We used to test for /lib/ld.so.1 and disable shared libraries on
20470 + # powerpc, because MkLinux only supported shared libraries with the
20471 + # GNU dynamic linker. Since this was broken with cross compilers,
20472 + # most powerpc-linux boxes support dynamic linking these days and
20473 + # people can always --disable-shared, the test was removed, and we
20474 + # assume the GNU/Linux dynamic linker is in use.
20475 + dynamic_linker='GNU/Linux ld.so'
20476 + ;;
20478 +knetbsd*-gnu)
20479 + version_type=linux
20480 + need_lib_prefix=no
20481 + need_version=no
20482 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20483 + soname_spec='${libname}${release}${shared_ext}$major'
20484 + shlibpath_var=LD_LIBRARY_PATH
20485 + shlibpath_overrides_runpath=no
20486 + hardcode_into_libs=yes
20487 + dynamic_linker='GNU ld.so'
20488 + ;;
20490 +netbsd*)
20491 + version_type=sunos
20492 + need_lib_prefix=no
20493 + need_version=no
20494 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20495 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20496 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20497 + dynamic_linker='NetBSD (a.out) ld.so'
20498 + else
20499 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20500 + soname_spec='${libname}${release}${shared_ext}$major'
20501 + dynamic_linker='NetBSD ld.elf_so'
20502 + fi
20503 + shlibpath_var=LD_LIBRARY_PATH
20504 + shlibpath_overrides_runpath=yes
20505 + hardcode_into_libs=yes
20506 + ;;
20508 +newsos6)
20509 + version_type=linux
20510 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20511 + shlibpath_var=LD_LIBRARY_PATH
20512 + shlibpath_overrides_runpath=yes
20513 + ;;
20515 +nto-qnx*)
20516 + version_type=linux
20517 + need_lib_prefix=no
20518 + need_version=no
20519 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20520 + soname_spec='${libname}${release}${shared_ext}$major'
20521 + shlibpath_var=LD_LIBRARY_PATH
20522 + shlibpath_overrides_runpath=yes
20523 + ;;
20525 +openbsd*)
20526 + version_type=sunos
20527 + need_lib_prefix=no
20528 + need_version=yes
20529 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20530 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20531 + shlibpath_var=LD_LIBRARY_PATH
20532 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20533 + case $host_os in
20534 + openbsd2.[89] | openbsd2.[89].*)
20535 + shlibpath_overrides_runpath=no
20536 + ;;
20537 + *)
20538 + shlibpath_overrides_runpath=yes
20539 + ;;
20540 + esac
20541 + else
20542 + shlibpath_overrides_runpath=yes
20543 + fi
20544 + ;;
20546 +os2*)
20547 + libname_spec='$name'
20548 + shrext=".dll"
20549 + need_lib_prefix=no
20550 + library_names_spec='$libname${shared_ext} $libname.a'
20551 + dynamic_linker='OS/2 ld.exe'
20552 + shlibpath_var=LIBPATH
20553 + ;;
20555 +osf3* | osf4* | osf5*)
20556 + version_type=osf
20557 + need_lib_prefix=no
20558 + need_version=no
20559 + soname_spec='${libname}${release}${shared_ext}$major'
20560 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20561 + shlibpath_var=LD_LIBRARY_PATH
20562 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20563 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20564 + ;;
20566 +sco3.2v5*)
20567 + version_type=osf
20568 + soname_spec='${libname}${release}${shared_ext}$major'
20569 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20570 + shlibpath_var=LD_LIBRARY_PATH
20571 + ;;
20573 +solaris*)
20574 + version_type=linux
20575 + need_lib_prefix=no
20576 + need_version=no
20577 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20578 + soname_spec='${libname}${release}${shared_ext}$major'
20579 + shlibpath_var=LD_LIBRARY_PATH
20580 + shlibpath_overrides_runpath=yes
20581 + hardcode_into_libs=yes
20582 + # ldd complains unless libraries are executable
20583 + postinstall_cmds='chmod +x $lib'
20584 + ;;
20586 +sunos4*)
20587 + version_type=sunos
20588 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20589 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20590 + shlibpath_var=LD_LIBRARY_PATH
20591 + shlibpath_overrides_runpath=yes
20592 + if test "$with_gnu_ld" = yes; then
20593 + need_lib_prefix=no
20594 + fi
20595 + need_version=yes
20596 + ;;
20598 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20599 + version_type=linux
20600 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20601 + soname_spec='${libname}${release}${shared_ext}$major'
20602 + shlibpath_var=LD_LIBRARY_PATH
20603 + case $host_vendor in
20604 + sni)
20605 + shlibpath_overrides_runpath=no
20606 + need_lib_prefix=no
20607 + export_dynamic_flag_spec='${wl}-Blargedynsym'
20608 + runpath_var=LD_RUN_PATH
20609 + ;;
20610 + siemens)
20611 + need_lib_prefix=no
20612 + ;;
20613 + motorola)
20614 + need_lib_prefix=no
20615 + need_version=no
20616 + shlibpath_overrides_runpath=no
20617 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20618 + ;;
20619 + esac
20620 + ;;
20622 +sysv4*MP*)
20623 + if test -d /usr/nec ;then
20624 + version_type=linux
20625 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20626 + soname_spec='$libname${shared_ext}.$major'
20627 + shlibpath_var=LD_LIBRARY_PATH
20628 + fi
20629 + ;;
20631 +uts4*)
20632 + version_type=linux
20633 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20634 + soname_spec='${libname}${release}${shared_ext}$major'
20635 + shlibpath_var=LD_LIBRARY_PATH
20636 + ;;
20638 +*)
20639 + dynamic_linker=no
20640 + ;;
20641 +esac
20642 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20643 +echo "${ECHO_T}$dynamic_linker" >&6
20644 +test "$dynamic_linker" = no && can_build_shared=no
20646 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20647 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20648 +hardcode_action=
20649 +if test -n "$hardcode_libdir_flag_spec" || \
20650 + test -n "$runpath_var " || \
20651 + test "X$hardcode_automatic"="Xyes" ; then
20653 + # We can hardcode non-existant directories.
20654 + if test "$hardcode_direct" != no &&
20655 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
20656 + # have to relink, otherwise we might link with an installed library
20657 + # when we should be linking with a yet-to-be-installed one
20658 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
20659 + test "$hardcode_minus_L" != no; then
20660 + # Linking always hardcodes the temporary library directory.
20661 + hardcode_action=relink
20662 + else
20663 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
20664 + hardcode_action=immediate
20665 + fi
20666 +else
20667 + # We cannot hardcode anything, or else we can only hardcode existing
20668 + # directories.
20669 + hardcode_action=unsupported
20670 +fi
20671 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
20672 +echo "${ECHO_T}$hardcode_action" >&6
20674 +if test "$hardcode_action" = relink; then
20675 + # Fast installation is not supported
20676 + enable_fast_install=no
20677 +elif test "$shlibpath_overrides_runpath" = yes ||
20678 + test "$enable_shared" = no; then
20679 + # Fast installation is not necessary
20680 + enable_fast_install=needless
20681 +fi
20683 +striplib=
20684 +old_striplib=
20685 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20686 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20687 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20688 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20689 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20690 + echo "$as_me:$LINENO: result: yes" >&5
20691 +echo "${ECHO_T}yes" >&6
20692 +else
20693 +# FIXME - insert some real tests, host_os isn't really good enough
20694 + case $host_os in
20695 + darwin*)
20696 + if test -n "$STRIP" ; then
20697 + striplib="$STRIP -x"
20698 + echo "$as_me:$LINENO: result: yes" >&5
20699 +echo "${ECHO_T}yes" >&6
20700 + else
20701 + echo "$as_me:$LINENO: result: no" >&5
20702 +echo "${ECHO_T}no" >&6
20703 +fi
20704 + ;;
20705 + *)
20706 + echo "$as_me:$LINENO: result: no" >&5
20707 +echo "${ECHO_T}no" >&6
20708 + ;;
20709 + esac
20710 +fi
20712 +if test "x$enable_dlopen" != xyes; then
20713 + enable_dlopen=unknown
20714 + enable_dlopen_self=unknown
20715 + enable_dlopen_self_static=unknown
20716 +else
20717 + lt_cv_dlopen=no
20718 + lt_cv_dlopen_libs=
20720 + case $host_os in
20721 + beos*)
20722 + lt_cv_dlopen="load_add_on"
20723 + lt_cv_dlopen_libs=
20724 + lt_cv_dlopen_self=yes
20725 + ;;
20727 + mingw* | pw32*)
20728 + lt_cv_dlopen="LoadLibrary"
20729 + lt_cv_dlopen_libs=
20730 + ;;
20732 + cygwin*)
20733 + lt_cv_dlopen="dlopen"
20734 + lt_cv_dlopen_libs=
20735 + ;;
20737 + darwin*)
20738 + # if libdl is installed we need to link against it
20739 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20740 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20741 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20742 + echo $ECHO_N "(cached) $ECHO_C" >&6
20743 +else
20744 + ac_check_lib_save_LIBS=$LIBS
20745 +LIBS="-ldl $LIBS"
20746 +cat >conftest.$ac_ext <<_ACEOF
20747 +/* confdefs.h. */
20748 +_ACEOF
20749 +cat confdefs.h >>conftest.$ac_ext
20750 +cat >>conftest.$ac_ext <<_ACEOF
20751 +/* end confdefs.h. */
20753 +/* Override any gcc2 internal prototype to avoid an error. */
20754 +#ifdef __cplusplus
20755 +extern "C"
20756 +#endif
20757 +/* We use char because int might match the return type of a gcc2
20758 + builtin and then its argument prototype would still apply. */
20759 +char dlopen ();
20760 +int
20761 +main ()
20762 +{
20763 +dlopen ();
20764 + ;
20765 + return 0;
20766 +}
20767 +_ACEOF
20768 +rm -f conftest.$ac_objext conftest$ac_exeext
20769 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770 + (eval $ac_link) 2>conftest.er1
20771 + ac_status=$?
20772 + grep -v '^ *+' conftest.er1 >conftest.err
20773 + rm -f conftest.er1
20774 + cat conftest.err >&5
20775 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 + (exit $ac_status); } &&
20777 + { ac_try='test -z "$ac_c_werror_flag"
20778 + || test ! -s conftest.err'
20779 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780 + (eval $ac_try) 2>&5
20781 + ac_status=$?
20782 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 + (exit $ac_status); }; } &&
20784 + { ac_try='test -s conftest$ac_exeext'
20785 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786 + (eval $ac_try) 2>&5
20787 + ac_status=$?
20788 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 + (exit $ac_status); }; }; then
20790 + ac_cv_lib_dl_dlopen=yes
20791 +else
20792 + echo "$as_me: failed program was:" >&5
20793 +sed 's/^/| /' conftest.$ac_ext >&5
20795 +ac_cv_lib_dl_dlopen=no
20796 +fi
20797 +rm -f conftest.err conftest.$ac_objext \
20798 + conftest$ac_exeext conftest.$ac_ext
20799 +LIBS=$ac_check_lib_save_LIBS
20800 +fi
20801 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20802 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20803 +if test $ac_cv_lib_dl_dlopen = yes; then
20804 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20805 +else
20807 + lt_cv_dlopen="dyld"
20808 + lt_cv_dlopen_libs=
20809 + lt_cv_dlopen_self=yes
20811 +fi
20813 + ;;
20815 + *)
20816 + echo "$as_me:$LINENO: checking for shl_load" >&5
20817 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20818 +if test "${ac_cv_func_shl_load+set}" = set; then
20819 + echo $ECHO_N "(cached) $ECHO_C" >&6
20820 +else
20821 + cat >conftest.$ac_ext <<_ACEOF
20822 +/* confdefs.h. */
20823 +_ACEOF
20824 +cat confdefs.h >>conftest.$ac_ext
20825 +cat >>conftest.$ac_ext <<_ACEOF
20826 +/* end confdefs.h. */
20827 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20828 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
20829 +#define shl_load innocuous_shl_load
20831 +/* System header to define __stub macros and hopefully few prototypes,
20832 + which can conflict with char shl_load (); below.
20833 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834 + <limits.h> exists even on freestanding compilers. */
20836 +#ifdef __STDC__
20837 +# include <limits.h>
20838 +#else
20839 +# include <assert.h>
20840 +#endif
20842 +#undef shl_load
20844 +/* Override any gcc2 internal prototype to avoid an error. */
20845 +#ifdef __cplusplus
20846 +extern "C"
20847 +{
20848 +#endif
20849 +/* We use char because int might match the return type of a gcc2
20850 + builtin and then its argument prototype would still apply. */
20851 +char shl_load ();
20852 +/* The GNU C library defines this for functions which it implements
20853 + to always fail with ENOSYS. Some functions are actually named
20854 + something starting with __ and the normal name is an alias. */
20855 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
20856 +choke me
20857 +#else
20858 +char (*f) () = shl_load;
20859 +#endif
20860 +#ifdef __cplusplus
20861 +}
20862 +#endif
20864 +int
20865 +main ()
20866 +{
20867 +return f != shl_load;
20868 + ;
20869 + return 0;
20870 +}
20871 +_ACEOF
20872 +rm -f conftest.$ac_objext conftest$ac_exeext
20873 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20874 + (eval $ac_link) 2>conftest.er1
20875 + ac_status=$?
20876 + grep -v '^ *+' conftest.er1 >conftest.err
20877 + rm -f conftest.er1
20878 + cat conftest.err >&5
20879 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 + (exit $ac_status); } &&
20881 + { ac_try='test -z "$ac_c_werror_flag"
20882 + || test ! -s conftest.err'
20883 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 + (eval $ac_try) 2>&5
20885 + ac_status=$?
20886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 + (exit $ac_status); }; } &&
20888 + { ac_try='test -s conftest$ac_exeext'
20889 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 + (eval $ac_try) 2>&5
20891 + ac_status=$?
20892 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 + (exit $ac_status); }; }; then
20894 + ac_cv_func_shl_load=yes
20895 +else
20896 + echo "$as_me: failed program was:" >&5
20897 +sed 's/^/| /' conftest.$ac_ext >&5
20899 +ac_cv_func_shl_load=no
20900 +fi
20901 +rm -f conftest.err conftest.$ac_objext \
20902 + conftest$ac_exeext conftest.$ac_ext
20903 +fi
20904 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20905 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20906 +if test $ac_cv_func_shl_load = yes; then
20907 + lt_cv_dlopen="shl_load"
20908 +else
20909 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20910 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20911 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20912 + echo $ECHO_N "(cached) $ECHO_C" >&6
20913 +else
20914 + ac_check_lib_save_LIBS=$LIBS
20915 +LIBS="-ldld $LIBS"
20916 +cat >conftest.$ac_ext <<_ACEOF
20917 +/* confdefs.h. */
20918 +_ACEOF
20919 +cat confdefs.h >>conftest.$ac_ext
20920 +cat >>conftest.$ac_ext <<_ACEOF
20921 +/* end confdefs.h. */
20923 +/* Override any gcc2 internal prototype to avoid an error. */
20924 +#ifdef __cplusplus
20925 +extern "C"
20926 +#endif
20927 +/* We use char because int might match the return type of a gcc2
20928 + builtin and then its argument prototype would still apply. */
20929 +char shl_load ();
20930 +int
20931 +main ()
20932 +{
20933 +shl_load ();
20934 + ;
20935 + return 0;
20936 +}
20937 +_ACEOF
20938 +rm -f conftest.$ac_objext conftest$ac_exeext
20939 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20940 + (eval $ac_link) 2>conftest.er1
20941 + ac_status=$?
20942 + grep -v '^ *+' conftest.er1 >conftest.err
20943 + rm -f conftest.er1
20944 + cat conftest.err >&5
20945 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 + (exit $ac_status); } &&
20947 + { ac_try='test -z "$ac_c_werror_flag"
20948 + || test ! -s conftest.err'
20949 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 + (eval $ac_try) 2>&5
20951 + ac_status=$?
20952 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 + (exit $ac_status); }; } &&
20954 + { ac_try='test -s conftest$ac_exeext'
20955 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 + (eval $ac_try) 2>&5
20957 + ac_status=$?
20958 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 + (exit $ac_status); }; }; then
20960 + ac_cv_lib_dld_shl_load=yes
20961 +else
20962 + echo "$as_me: failed program was:" >&5
20963 +sed 's/^/| /' conftest.$ac_ext >&5
20965 +ac_cv_lib_dld_shl_load=no
20966 +fi
20967 +rm -f conftest.err conftest.$ac_objext \
20968 + conftest$ac_exeext conftest.$ac_ext
20969 +LIBS=$ac_check_lib_save_LIBS
20970 +fi
20971 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20972 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20973 +if test $ac_cv_lib_dld_shl_load = yes; then
20974 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20975 +else
20976 + echo "$as_me:$LINENO: checking for dlopen" >&5
20977 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20978 +if test "${ac_cv_func_dlopen+set}" = set; then
20979 + echo $ECHO_N "(cached) $ECHO_C" >&6
20980 +else
20981 + cat >conftest.$ac_ext <<_ACEOF
20982 +/* confdefs.h. */
20983 +_ACEOF
20984 +cat confdefs.h >>conftest.$ac_ext
20985 +cat >>conftest.$ac_ext <<_ACEOF
20986 +/* end confdefs.h. */
20987 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20988 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
20989 +#define dlopen innocuous_dlopen
20991 +/* System header to define __stub macros and hopefully few prototypes,
20992 + which can conflict with char dlopen (); below.
20993 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20994 + <limits.h> exists even on freestanding compilers. */
20996 +#ifdef __STDC__
20997 +# include <limits.h>
20998 +#else
20999 +# include <assert.h>
21000 +#endif
21002 +#undef dlopen
21004 +/* Override any gcc2 internal prototype to avoid an error. */
21005 +#ifdef __cplusplus
21006 +extern "C"
21007 +{
21008 +#endif
21009 +/* We use char because int might match the return type of a gcc2
21010 + builtin and then its argument prototype would still apply. */
21011 +char dlopen ();
21012 +/* The GNU C library defines this for functions which it implements
21013 + to always fail with ENOSYS. Some functions are actually named
21014 + something starting with __ and the normal name is an alias. */
21015 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
21016 +choke me
21017 +#else
21018 +char (*f) () = dlopen;
21019 +#endif
21020 +#ifdef __cplusplus
21021 +}
21022 +#endif
21024 +int
21025 +main ()
21026 +{
21027 +return f != dlopen;
21028 + ;
21029 + return 0;
21030 +}
21031 +_ACEOF
21032 +rm -f conftest.$ac_objext conftest$ac_exeext
21033 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21034 + (eval $ac_link) 2>conftest.er1
21035 + ac_status=$?
21036 + grep -v '^ *+' conftest.er1 >conftest.err
21037 + rm -f conftest.er1
21038 + cat conftest.err >&5
21039 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 + (exit $ac_status); } &&
21041 + { ac_try='test -z "$ac_c_werror_flag"
21042 + || test ! -s conftest.err'
21043 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21044 + (eval $ac_try) 2>&5
21045 + ac_status=$?
21046 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 + (exit $ac_status); }; } &&
21048 + { ac_try='test -s conftest$ac_exeext'
21049 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 + (eval $ac_try) 2>&5
21051 + ac_status=$?
21052 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 + (exit $ac_status); }; }; then
21054 + ac_cv_func_dlopen=yes
21055 +else
21056 + echo "$as_me: failed program was:" >&5
21057 +sed 's/^/| /' conftest.$ac_ext >&5
21059 +ac_cv_func_dlopen=no
21060 +fi
21061 +rm -f conftest.err conftest.$ac_objext \
21062 + conftest$ac_exeext conftest.$ac_ext
21063 +fi
21064 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21065 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
21066 +if test $ac_cv_func_dlopen = yes; then
21067 + lt_cv_dlopen="dlopen"
21068 +else
21069 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21070 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
21071 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21072 + echo $ECHO_N "(cached) $ECHO_C" >&6
21073 +else
21074 + ac_check_lib_save_LIBS=$LIBS
21075 +LIBS="-ldl $LIBS"
21076 +cat >conftest.$ac_ext <<_ACEOF
21077 +/* confdefs.h. */
21078 +_ACEOF
21079 +cat confdefs.h >>conftest.$ac_ext
21080 +cat >>conftest.$ac_ext <<_ACEOF
21081 +/* end confdefs.h. */
21083 +/* Override any gcc2 internal prototype to avoid an error. */
21084 +#ifdef __cplusplus
21085 +extern "C"
21086 +#endif
21087 +/* We use char because int might match the return type of a gcc2
21088 + builtin and then its argument prototype would still apply. */
21089 +char dlopen ();
21090 +int
21091 +main ()
21092 +{
21093 +dlopen ();
21094 + ;
21095 + return 0;
21096 +}
21097 +_ACEOF
21098 +rm -f conftest.$ac_objext conftest$ac_exeext
21099 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21100 + (eval $ac_link) 2>conftest.er1
21101 + ac_status=$?
21102 + grep -v '^ *+' conftest.er1 >conftest.err
21103 + rm -f conftest.er1
21104 + cat conftest.err >&5
21105 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 + (exit $ac_status); } &&
21107 + { ac_try='test -z "$ac_c_werror_flag"
21108 + || test ! -s conftest.err'
21109 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21110 + (eval $ac_try) 2>&5
21111 + ac_status=$?
21112 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 + (exit $ac_status); }; } &&
21114 + { ac_try='test -s conftest$ac_exeext'
21115 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21116 + (eval $ac_try) 2>&5
21117 + ac_status=$?
21118 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 + (exit $ac_status); }; }; then
21120 + ac_cv_lib_dl_dlopen=yes
21121 +else
21122 + echo "$as_me: failed program was:" >&5
21123 +sed 's/^/| /' conftest.$ac_ext >&5
21125 +ac_cv_lib_dl_dlopen=no
21126 +fi
21127 +rm -f conftest.err conftest.$ac_objext \
21128 + conftest$ac_exeext conftest.$ac_ext
21129 +LIBS=$ac_check_lib_save_LIBS
21130 +fi
21131 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21132 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
21133 +if test $ac_cv_lib_dl_dlopen = yes; then
21134 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21135 +else
21136 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21137 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
21138 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21139 + echo $ECHO_N "(cached) $ECHO_C" >&6
21140 +else
21141 + ac_check_lib_save_LIBS=$LIBS
21142 +LIBS="-lsvld $LIBS"
21143 +cat >conftest.$ac_ext <<_ACEOF
21144 +/* confdefs.h. */
21145 +_ACEOF
21146 +cat confdefs.h >>conftest.$ac_ext
21147 +cat >>conftest.$ac_ext <<_ACEOF
21148 +/* end confdefs.h. */
21150 +/* Override any gcc2 internal prototype to avoid an error. */
21151 +#ifdef __cplusplus
21152 +extern "C"
21153 +#endif
21154 +/* We use char because int might match the return type of a gcc2
21155 + builtin and then its argument prototype would still apply. */
21156 +char dlopen ();
21157 +int
21158 +main ()
21159 +{
21160 +dlopen ();
21161 + ;
21162 + return 0;
21163 +}
21164 +_ACEOF
21165 +rm -f conftest.$ac_objext conftest$ac_exeext
21166 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21167 + (eval $ac_link) 2>conftest.er1
21168 + ac_status=$?
21169 + grep -v '^ *+' conftest.er1 >conftest.err
21170 + rm -f conftest.er1
21171 + cat conftest.err >&5
21172 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 + (exit $ac_status); } &&
21174 + { ac_try='test -z "$ac_c_werror_flag"
21175 + || test ! -s conftest.err'
21176 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21177 + (eval $ac_try) 2>&5
21178 + ac_status=$?
21179 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180 + (exit $ac_status); }; } &&
21181 + { ac_try='test -s conftest$ac_exeext'
21182 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21183 + (eval $ac_try) 2>&5
21184 + ac_status=$?
21185 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 + (exit $ac_status); }; }; then
21187 + ac_cv_lib_svld_dlopen=yes
21188 +else
21189 + echo "$as_me: failed program was:" >&5
21190 +sed 's/^/| /' conftest.$ac_ext >&5
21192 +ac_cv_lib_svld_dlopen=no
21193 +fi
21194 +rm -f conftest.err conftest.$ac_objext \
21195 + conftest$ac_exeext conftest.$ac_ext
21196 +LIBS=$ac_check_lib_save_LIBS
21197 +fi
21198 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21199 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
21200 +if test $ac_cv_lib_svld_dlopen = yes; then
21201 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21202 +else
21203 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21204 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
21205 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21206 + echo $ECHO_N "(cached) $ECHO_C" >&6
21207 +else
21208 + ac_check_lib_save_LIBS=$LIBS
21209 +LIBS="-ldld $LIBS"
21210 +cat >conftest.$ac_ext <<_ACEOF
21211 +/* confdefs.h. */
21212 +_ACEOF
21213 +cat confdefs.h >>conftest.$ac_ext
21214 +cat >>conftest.$ac_ext <<_ACEOF
21215 +/* end confdefs.h. */
21217 +/* Override any gcc2 internal prototype to avoid an error. */
21218 +#ifdef __cplusplus
21219 +extern "C"
21220 +#endif
21221 +/* We use char because int might match the return type of a gcc2
21222 + builtin and then its argument prototype would still apply. */
21223 +char dld_link ();
21224 +int
21225 +main ()
21226 +{
21227 +dld_link ();
21228 + ;
21229 + return 0;
21230 +}
21231 +_ACEOF
21232 +rm -f conftest.$ac_objext conftest$ac_exeext
21233 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21234 + (eval $ac_link) 2>conftest.er1
21235 + ac_status=$?
21236 + grep -v '^ *+' conftest.er1 >conftest.err
21237 + rm -f conftest.er1
21238 + cat conftest.err >&5
21239 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 + (exit $ac_status); } &&
21241 + { ac_try='test -z "$ac_c_werror_flag"
21242 + || test ! -s conftest.err'
21243 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 + (eval $ac_try) 2>&5
21245 + ac_status=$?
21246 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 + (exit $ac_status); }; } &&
21248 + { ac_try='test -s conftest$ac_exeext'
21249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 + (eval $ac_try) 2>&5
21251 + ac_status=$?
21252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 + (exit $ac_status); }; }; then
21254 + ac_cv_lib_dld_dld_link=yes
21255 +else
21256 + echo "$as_me: failed program was:" >&5
21257 +sed 's/^/| /' conftest.$ac_ext >&5
21259 +ac_cv_lib_dld_dld_link=no
21260 +fi
21261 +rm -f conftest.err conftest.$ac_objext \
21262 + conftest$ac_exeext conftest.$ac_ext
21263 +LIBS=$ac_check_lib_save_LIBS
21264 +fi
21265 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21266 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
21267 +if test $ac_cv_lib_dld_dld_link = yes; then
21268 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21269 +fi
21272 +fi
21275 +fi
21278 +fi
21281 +fi
21284 +fi
21286 + ;;
21287 + esac
21289 + if test "x$lt_cv_dlopen" != xno; then
21290 + enable_dlopen=yes
21291 + else
21292 + enable_dlopen=no
21293 + fi
21295 + case $lt_cv_dlopen in
21296 + dlopen)
21297 + save_CPPFLAGS="$CPPFLAGS"
21298 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21300 + save_LDFLAGS="$LDFLAGS"
21301 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21303 + save_LIBS="$LIBS"
21304 + LIBS="$lt_cv_dlopen_libs $LIBS"
21306 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21307 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
21308 +if test "${lt_cv_dlopen_self+set}" = set; then
21309 + echo $ECHO_N "(cached) $ECHO_C" >&6
21310 +else
21311 + if test "$cross_compiling" = yes; then :
21312 + lt_cv_dlopen_self=cross
21313 +else
21314 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21315 + lt_status=$lt_dlunknown
21316 + cat > conftest.$ac_ext <<EOF
21317 +#line 8722 "configure"
21318 +#include "confdefs.h"
21320 +#if HAVE_DLFCN_H
21321 +#include <dlfcn.h>
21322 +#endif
21324 +#include <stdio.h>
21326 +#ifdef RTLD_GLOBAL
21327 +# define LT_DLGLOBAL RTLD_GLOBAL
21328 +#else
21329 +# ifdef DL_GLOBAL
21330 +# define LT_DLGLOBAL DL_GLOBAL
21331 +# else
21332 +# define LT_DLGLOBAL 0
21333 +# endif
21334 +#endif
21336 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21337 + find out it does not work in some platform. */
21338 +#ifndef LT_DLLAZY_OR_NOW
21339 +# ifdef RTLD_LAZY
21340 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
21341 +# else
21342 +# ifdef DL_LAZY
21343 +# define LT_DLLAZY_OR_NOW DL_LAZY
21344 +# else
21345 +# ifdef RTLD_NOW
21346 +# define LT_DLLAZY_OR_NOW RTLD_NOW
21347 +# else
21348 +# ifdef DL_NOW
21349 +# define LT_DLLAZY_OR_NOW DL_NOW
21350 +# else
21351 +# define LT_DLLAZY_OR_NOW 0
21352 +# endif
21353 +# endif
21354 +# endif
21355 +# endif
21356 +#endif
21358 +#ifdef __cplusplus
21359 +extern "C" void exit (int);
21360 +#endif
21362 +void fnord() { int i=42;}
21363 +int main ()
21364 +{
21365 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21366 + int status = $lt_dlunknown;
21368 + if (self)
21369 + {
21370 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21371 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21372 + /* dlclose (self); */
21373 + }
21375 + exit (status);
21376 +}
21377 +EOF
21378 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21379 + (eval $ac_link) 2>&5
21380 + ac_status=$?
21381 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21383 + (./conftest; exit; ) 2>/dev/null
21384 + lt_status=$?
21385 + case x$lt_status in
21386 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21387 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21388 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21389 + esac
21390 + else :
21391 + # compilation failed
21392 + lt_cv_dlopen_self=no
21393 + fi
21394 +fi
21395 +rm -fr conftest*
21398 +fi
21399 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21400 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
21402 + if test "x$lt_cv_dlopen_self" = xyes; then
21403 + LDFLAGS="$LDFLAGS $link_static_flag"
21404 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21405 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
21406 +if test "${lt_cv_dlopen_self_static+set}" = set; then
21407 + echo $ECHO_N "(cached) $ECHO_C" >&6
21408 +else
21409 + if test "$cross_compiling" = yes; then :
21410 + lt_cv_dlopen_self_static=cross
21411 +else
21412 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21413 + lt_status=$lt_dlunknown
21414 + cat > conftest.$ac_ext <<EOF
21415 +#line 8820 "configure"
21416 +#include "confdefs.h"
21418 +#if HAVE_DLFCN_H
21419 +#include <dlfcn.h>
21420 +#endif
21422 +#include <stdio.h>
21424 +#ifdef RTLD_GLOBAL
21425 +# define LT_DLGLOBAL RTLD_GLOBAL
21426 +#else
21427 +# ifdef DL_GLOBAL
21428 +# define LT_DLGLOBAL DL_GLOBAL
21429 +# else
21430 +# define LT_DLGLOBAL 0
21431 +# endif
21432 +#endif
21434 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21435 + find out it does not work in some platform. */
21436 +#ifndef LT_DLLAZY_OR_NOW
21437 +# ifdef RTLD_LAZY
21438 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
21439 +# else
21440 +# ifdef DL_LAZY
21441 +# define LT_DLLAZY_OR_NOW DL_LAZY
21442 +# else
21443 +# ifdef RTLD_NOW
21444 +# define LT_DLLAZY_OR_NOW RTLD_NOW
21445 +# else
21446 +# ifdef DL_NOW
21447 +# define LT_DLLAZY_OR_NOW DL_NOW
21448 +# else
21449 +# define LT_DLLAZY_OR_NOW 0
21450 +# endif
21451 +# endif
21452 +# endif
21453 +# endif
21454 +#endif
21456 +#ifdef __cplusplus
21457 +extern "C" void exit (int);
21458 +#endif
21460 +void fnord() { int i=42;}
21461 +int main ()
21462 +{
21463 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21464 + int status = $lt_dlunknown;
21466 + if (self)
21467 + {
21468 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21469 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21470 + /* dlclose (self); */
21471 + }
21473 + exit (status);
21474 +}
21475 +EOF
21476 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21477 + (eval $ac_link) 2>&5
21478 + ac_status=$?
21479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21481 + (./conftest; exit; ) 2>/dev/null
21482 + lt_status=$?
21483 + case x$lt_status in
21484 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21485 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21486 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21487 + esac
21488 + else :
21489 + # compilation failed
21490 + lt_cv_dlopen_self_static=no
21491 + fi
21492 +fi
21493 +rm -fr conftest*
21496 +fi
21497 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21498 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
21499 + fi
21501 + CPPFLAGS="$save_CPPFLAGS"
21502 + LDFLAGS="$save_LDFLAGS"
21503 + LIBS="$save_LIBS"
21504 + ;;
21505 + esac
21507 + case $lt_cv_dlopen_self in
21508 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21509 + *) enable_dlopen_self=unknown ;;
21510 + esac
21512 + case $lt_cv_dlopen_self_static in
21513 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21514 + *) enable_dlopen_self_static=unknown ;;
21515 + esac
21516 +fi
21519 +# Report which librarie types wil actually be built
21520 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
21521 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
21522 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
21523 +echo "${ECHO_T}$can_build_shared" >&6
21525 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
21526 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
21527 +test "$can_build_shared" = "no" && enable_shared=no
21529 +# On AIX, shared libraries and static libraries use the same namespace, and
21530 +# are all built from PIC.
21531 +case "$host_os" in
21532 +aix3*)
21533 + test "$enable_shared" = yes && enable_static=no
21534 + if test -n "$RANLIB"; then
21535 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
21536 + postinstall_cmds='$RANLIB $lib'
21537 + fi
21538 + ;;
21540 +aix4*)
21541 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21542 + test "$enable_shared" = yes && enable_static=no
21543 + fi
21544 + ;;
21545 + darwin* | rhapsody*)
21546 + if test "$GCC" = yes; then
21547 + archive_cmds_need_lc=no
21548 + case "$host_os" in
21549 + rhapsody* | darwin1.[012])
21550 + allow_undefined_flag='-undefined suppress'
21551 + ;;
21552 + *) # Darwin 1.3 on
21553 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21554 + allow_undefined_flag='-flat_namespace -undefined suppress'
21555 + else
21556 + case ${MACOSX_DEPLOYMENT_TARGET} in
21557 + 10.[012])
21558 + allow_undefined_flag='-flat_namespace -undefined suppress'
21559 + ;;
21560 + 10.*)
21561 + allow_undefined_flag='-undefined dynamic_lookup'
21562 + ;;
21563 + esac
21564 + fi
21565 + ;;
21566 + esac
21567 + output_verbose_link_cmd='echo'
21568 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
21569 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21570 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21571 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21572 + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
21573 + hardcode_direct=no
21574 + hardcode_automatic=yes
21575 + hardcode_shlibpath_var=unsupported
21576 + whole_archive_flag_spec='-all_load $convenience'
21577 + link_all_deplibs=yes
21578 + else
21579 + ld_shlibs=no
21580 + fi
21581 + ;;
21582 +esac
21583 +echo "$as_me:$LINENO: result: $enable_shared" >&5
21584 +echo "${ECHO_T}$enable_shared" >&6
21586 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
21587 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
21588 +# Make sure either enable_shared or enable_static is yes.
21589 +test "$enable_shared" = yes || enable_static=yes
21590 +echo "$as_me:$LINENO: result: $enable_static" >&5
21591 +echo "${ECHO_T}$enable_static" >&6
21593 +# The else clause should only fire when bootstrapping the
21594 +# libtool distribution, otherwise you forgot to ship ltmain.sh
21595 +# with your package, and you will get complaints that there are
21596 +# no rules to generate ltmain.sh.
21597 +if test -f "$ltmain"; then
21598 + # See if we are running on zsh, and set the options which allow our commands through
21599 + # without removal of \ escapes.
21600 + if test -n "${ZSH_VERSION+set}" ; then
21601 + setopt NO_GLOB_SUBST
21602 + fi
21603 + # Now quote all the things that may contain metacharacters while being
21604 + # careful not to overquote the AC_SUBSTed values. We take copies of the
21605 + # variables and quote the copies for generation of the libtool script.
21606 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21607 + SED SHELL STRIP \
21608 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21609 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21610 + deplibs_check_method reload_flag reload_cmds need_locks \
21611 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21612 + lt_cv_sys_global_symbol_to_c_name_address \
21613 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21614 + old_postinstall_cmds old_postuninstall_cmds \
21615 + compiler \
21616 + CC \
21617 + LD \
21618 + lt_prog_compiler_wl \
21619 + lt_prog_compiler_pic \
21620 + lt_prog_compiler_static \
21621 + lt_prog_compiler_no_builtin_flag \
21622 + export_dynamic_flag_spec \
21623 + thread_safe_flag_spec \
21624 + whole_archive_flag_spec \
21625 + enable_shared_with_static_runtimes \
21626 + old_archive_cmds \
21627 + old_archive_from_new_cmds \
21628 + predep_objects \
21629 + postdep_objects \
21630 + predeps \
21631 + postdeps \
21632 + compiler_lib_search_path \
21633 + archive_cmds \
21634 + archive_expsym_cmds \
21635 + postinstall_cmds \
21636 + postuninstall_cmds \
21637 + old_archive_from_expsyms_cmds \
21638 + allow_undefined_flag \
21639 + no_undefined_flag \
21640 + export_symbols_cmds \
21641 + hardcode_libdir_flag_spec \
21642 + hardcode_libdir_flag_spec_ld \
21643 + hardcode_libdir_separator \
21644 + hardcode_automatic \
21645 + module_cmds \
21646 + module_expsym_cmds \
21647 + lt_cv_prog_compiler_c_o \
21648 + exclude_expsyms \
21649 + include_expsyms; do
21651 + case $var in
21652 + old_archive_cmds | \
21653 + old_archive_from_new_cmds | \
21654 + archive_cmds | \
21655 + archive_expsym_cmds | \
21656 + module_cmds | \
21657 + module_expsym_cmds | \
21658 + old_archive_from_expsyms_cmds | \
21659 + export_symbols_cmds | \
21660 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
21661 + postinstall_cmds | postuninstall_cmds | \
21662 + old_postinstall_cmds | old_postuninstall_cmds | \
21663 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21664 + # Double-quote double-evaled strings.
21665 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21666 + ;;
21667 + *)
21668 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21669 + ;;
21670 + esac
21671 + done
21673 + case $lt_echo in
21674 + *'\$0 --fallback-echo"')
21675 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21676 + ;;
21677 + esac
21679 +cfgfile="${ofile}T"
21680 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
21681 + $rm -f "$cfgfile"
21682 + { echo "$as_me:$LINENO: creating $ofile" >&5
21683 +echo "$as_me: creating $ofile" >&6;}
21685 + cat <<__EOF__ >> "$cfgfile"
21686 +#! $SHELL
21688 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21689 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
21690 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21691 +#
21692 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
21693 +# Free Software Foundation, Inc.
21694 +#
21695 +# This file is part of GNU Libtool:
21696 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
21697 +#
21698 +# This program is free software; you can redistribute it and/or modify
21699 +# it under the terms of the GNU General Public License as published by
21700 +# the Free Software Foundation; either version 2 of the License, or
21701 +# (at your option) any later version.
21702 +#
21703 +# This program is distributed in the hope that it will be useful, but
21704 +# WITHOUT ANY WARRANTY; without even the implied warranty of
21705 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21706 +# General Public License for more details.
21707 +#
21708 +# You should have received a copy of the GNU General Public License
21709 +# along with this program; if not, write to the Free Software
21710 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21711 +#
21712 +# As a special exception to the GNU General Public License, if you
21713 +# distribute this file as part of a program that contains a
21714 +# configuration script generated by Autoconf, you may include it under
21715 +# the same distribution terms that you use for the rest of that program.
21717 +# A sed program that does not truncate output.
21718 +SED=$lt_SED
21720 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21721 +Xsed="$SED -e s/^X//"
21723 +# The HP-UX ksh and POSIX shell print the target directory to stdout
21724 +# if CDPATH is set.
21725 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
21727 +# The names of the tagged configurations supported by this script.
21728 +available_tags=
21730 +# ### BEGIN LIBTOOL CONFIG
21732 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21734 +# Shell to use when invoking shell scripts.
21735 +SHELL=$lt_SHELL
21737 +# Whether or not to build shared libraries.
21738 +build_libtool_libs=$enable_shared
21740 +# Whether or not to build static libraries.
21741 +build_old_libs=$enable_static
21743 +# Whether or not to add -lc for building shared libraries.
21744 +build_libtool_need_lc=$archive_cmds_need_lc
21746 +# Whether or not to disallow shared libs when runtime libs are static
21747 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21749 +# Whether or not to optimize for fast installation.
21750 +fast_install=$enable_fast_install
21752 +# The host system.
21753 +host_alias=$host_alias
21754 +host=$host
21756 +# An echo program that does not interpret backslashes.
21757 +echo=$lt_echo
21759 +# The archiver.
21760 +AR=$lt_AR
21761 +AR_FLAGS=$lt_AR_FLAGS
21763 +# A C compiler.
21764 +LTCC=$lt_LTCC
21766 +# A language-specific compiler.
21767 +CC=$lt_compiler
21769 +# Is the compiler the GNU C compiler?
21770 +with_gcc=$GCC
21772 +# An ERE matcher.
21773 +EGREP=$lt_EGREP
21775 +# The linker used to build libraries.
21776 +LD=$lt_LD
21778 +# Whether we need hard or soft links.
21779 +LN_S=$lt_LN_S
21781 +# A BSD-compatible nm program.
21782 +NM=$lt_NM
21784 +# A symbol stripping program
21785 +STRIP=$lt_STRIP
21787 +# Used to examine libraries when file_magic_cmd begins "file"
21788 +MAGIC_CMD=$MAGIC_CMD
21790 +# Used on cygwin: DLL creation program.
21791 +DLLTOOL="$DLLTOOL"
21793 +# Used on cygwin: object dumper.
21794 +OBJDUMP="$OBJDUMP"
21796 +# Used on cygwin: assembler.
21797 +AS="$AS"
21799 +# The name of the directory that contains temporary libtool files.
21800 +objdir=$objdir
21802 +# How to create reloadable object files.
21803 +reload_flag=$lt_reload_flag
21804 +reload_cmds=$lt_reload_cmds
21806 +# How to pass a linker flag through the compiler.
21807 +wl=$lt_lt_prog_compiler_wl
21809 +# Object file suffix (normally "o").
21810 +objext="$ac_objext"
21812 +# Old archive suffix (normally "a").
21813 +libext="$libext"
21815 +# Shared library suffix (normally ".so").
21816 +shrext='$shrext'
21818 +# Executable file suffix (normally "").
21819 +exeext="$exeext"
21821 +# Additional compiler flags for building library objects.
21822 +pic_flag=$lt_lt_prog_compiler_pic
21823 +pic_mode=$pic_mode
21825 +# What is the maximum length of a command?
21826 +max_cmd_len=$lt_cv_sys_max_cmd_len
21828 +# Does compiler simultaneously support -c and -o options?
21829 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21831 +# Must we lock files when doing compilation ?
21832 +need_locks=$lt_need_locks
21834 +# Do we need the lib prefix for modules?
21835 +need_lib_prefix=$need_lib_prefix
21837 +# Do we need a version for libraries?
21838 +need_version=$need_version
21840 +# Whether dlopen is supported.
21841 +dlopen_support=$enable_dlopen
21843 +# Whether dlopen of programs is supported.
21844 +dlopen_self=$enable_dlopen_self
21846 +# Whether dlopen of statically linked programs is supported.
21847 +dlopen_self_static=$enable_dlopen_self_static
21849 +# Compiler flag to prevent dynamic linking.
21850 +link_static_flag=$lt_lt_prog_compiler_static
21852 +# Compiler flag to turn off builtin functions.
21853 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21855 +# Compiler flag to allow reflexive dlopens.
21856 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21858 +# Compiler flag to generate shared objects directly from archives.
21859 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
21861 +# Compiler flag to generate thread-safe objects.
21862 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
21864 +# Library versioning type.
21865 +version_type=$version_type
21867 +# Format of library name prefix.
21868 +libname_spec=$lt_libname_spec
21870 +# List of archive names. First name is the real one, the rest are links.
21871 +# The last name is the one that the linker finds with -lNAME.
21872 +library_names_spec=$lt_library_names_spec
21874 +# The coded name of the library, if different from the real name.
21875 +soname_spec=$lt_soname_spec
21877 +# Commands used to build and install an old-style archive.
21878 +RANLIB=$lt_RANLIB
21879 +old_archive_cmds=$lt_old_archive_cmds
21880 +old_postinstall_cmds=$lt_old_postinstall_cmds
21881 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
21883 +# Create an old-style archive from a shared archive.
21884 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21886 +# Create a temporary old-style archive to link instead of a shared archive.
21887 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21889 +# Commands used to build and install a shared archive.
21890 +archive_cmds=$lt_archive_cmds
21891 +archive_expsym_cmds=$lt_archive_expsym_cmds
21892 +postinstall_cmds=$lt_postinstall_cmds
21893 +postuninstall_cmds=$lt_postuninstall_cmds
21895 +# Commands used to build a loadable module (assumed same as above if empty)
21896 +module_cmds=$lt_module_cmds
21897 +module_expsym_cmds=$lt_module_expsym_cmds
21899 +# Commands to strip libraries.
21900 +old_striplib=$lt_old_striplib
21901 +striplib=$lt_striplib
21903 +# Dependencies to place before the objects being linked to create a
21904 +# shared library.
21905 +predep_objects=$lt_predep_objects
21907 +# Dependencies to place after the objects being linked to create a
21908 +# shared library.
21909 +postdep_objects=$lt_postdep_objects
21911 +# Dependencies to place before the objects being linked to create a
21912 +# shared library.
21913 +predeps=$lt_predeps
21915 +# Dependencies to place after the objects being linked to create a
21916 +# shared library.
21917 +postdeps=$lt_postdeps
21919 +# The library search path used internally by the compiler when linking
21920 +# a shared library.
21921 +compiler_lib_search_path=$lt_compiler_lib_search_path
21923 +# Method to check whether dependent libraries are shared objects.
21924 +deplibs_check_method=$lt_deplibs_check_method
21926 +# Command to use when deplibs_check_method == file_magic.
21927 +file_magic_cmd=$lt_file_magic_cmd
21929 +# Flag that allows shared libraries with undefined symbols to be built.
21930 +allow_undefined_flag=$lt_allow_undefined_flag
21932 +# Flag that forces no undefined symbols.
21933 +no_undefined_flag=$lt_no_undefined_flag
21935 +# Commands used to finish a libtool library installation in a directory.
21936 +finish_cmds=$lt_finish_cmds
21938 +# Same as above, but a single script fragment to be evaled but not shown.
21939 +finish_eval=$lt_finish_eval
21941 +# Take the output of nm and produce a listing of raw symbols and C names.
21942 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21944 +# Transform the output of nm in a proper C declaration
21945 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21947 +# Transform the output of nm in a C name address pair
21948 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21950 +# This is the shared library runtime path variable.
21951 +runpath_var=$runpath_var
21953 +# This is the shared library path variable.
21954 +shlibpath_var=$shlibpath_var
21956 +# Is shlibpath searched before the hard-coded library search path?
21957 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21959 +# How to hardcode a shared library path into an executable.
21960 +hardcode_action=$hardcode_action
21962 +# Whether we should hardcode library paths into libraries.
21963 +hardcode_into_libs=$hardcode_into_libs
21965 +# Flag to hardcode \$libdir into a binary during linking.
21966 +# This must work even if \$libdir does not exist.
21967 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21969 +# If ld is used when linking, flag to hardcode \$libdir into
21970 +# a binary during linking. This must work even if \$libdir does
21971 +# not exist.
21972 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21974 +# Whether we need a single -rpath flag with a separated argument.
21975 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
21977 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21978 +# resulting binary.
21979 +hardcode_direct=$hardcode_direct
21981 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21982 +# resulting binary.
21983 +hardcode_minus_L=$hardcode_minus_L
21985 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21986 +# the resulting binary.
21987 +hardcode_shlibpath_var=$hardcode_shlibpath_var
21989 +# Set to yes if building a shared library automatically hardcodes DIR into the library
21990 +# and all subsequent libraries and executables linked against it.
21991 +hardcode_automatic=$hardcode_automatic
21993 +# Variables whose values should be saved in libtool wrapper scripts and
21994 +# restored at relink time.
21995 +variables_saved_for_relink="$variables_saved_for_relink"
21997 +# Whether libtool must link a program against all its dependency libraries.
21998 +link_all_deplibs=$link_all_deplibs
22000 +# Compile-time system search path for libraries
22001 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22003 +# Run-time system search path for libraries
22004 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22006 +# Fix the shell variable \$srcfile for the compiler.
22007 +fix_srcfile_path="$fix_srcfile_path"
22009 +# Set to yes if exported symbols are required.
22010 +always_export_symbols=$always_export_symbols
22012 +# The commands to list exported symbols.
22013 +export_symbols_cmds=$lt_export_symbols_cmds
22015 +# The commands to extract the exported symbol list from a shared archive.
22016 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
22018 +# Symbols that should not be listed in the preloaded symbols.
22019 +exclude_expsyms=$lt_exclude_expsyms
22021 +# Symbols that must always be exported.
22022 +include_expsyms=$lt_include_expsyms
22024 +# ### END LIBTOOL CONFIG
22026 +__EOF__
22029 + case $host_os in
22030 + aix3*)
22031 + cat <<\EOF >> "$cfgfile"
22033 +# AIX sometimes has problems with the GCC collect2 program. For some
22034 +# reason, if we set the COLLECT_NAMES environment variable, the problems
22035 +# vanish in a puff of smoke.
22036 +if test "X${COLLECT_NAMES+set}" != Xset; then
22037 + COLLECT_NAMES=
22038 + export COLLECT_NAMES
22039 +fi
22040 +EOF
22041 + ;;
22042 + esac
22044 + # We use sed instead of cat because bash on DJGPP gets confused if
22045 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
22046 + # text mode, it properly converts lines to CR/LF. This bash problem
22047 + # is reportedly fixed, but why not run on old versions too?
22048 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
22050 + mv -f "$cfgfile" "$ofile" || \
22051 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22052 + chmod +x "$ofile"
22054 +else
22055 + # If there is no Makefile yet, we rely on a make rule to execute
22056 + # `config.status --recheck' to rerun these tests and create the
22057 + # libtool script then.
22058 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
22059 + if test -f "$ltmain_in"; then
22060 + test -f Makefile && make "$ltmain"
22061 + fi
22062 +fi
22065 +ac_ext=c
22066 +ac_cpp='$CPP $CPPFLAGS'
22067 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22068 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22069 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
22071 +CC="$lt_save_CC"
22074 +# Check whether --with-tags or --without-tags was given.
22075 +if test "${with_tags+set}" = set; then
22076 + withval="$with_tags"
22077 + tagnames="$withval"
22078 +fi;
22080 +if test -f "$ltmain" && test -n "$tagnames"; then
22081 + if test ! -f "${ofile}"; then
22082 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
22083 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
22084 + fi
22086 + if test -z "$LTCC"; then
22087 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
22088 + if test -z "$LTCC"; then
22089 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
22090 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
22091 + else
22092 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
22093 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
22094 + fi
22095 + fi
22097 + # Extract list of available tagged configurations in $ofile.
22098 + # Note that this assumes the entire list is on one line.
22099 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
22101 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
22102 + for tagname in $tagnames; do
22103 + IFS="$lt_save_ifs"
22104 + # Check whether tagname contains only valid characters
22105 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
22106 + "") ;;
22107 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
22108 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
22109 + { (exit 1); exit 1; }; }
22110 + ;;
22111 + esac
22113 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
22114 + then
22115 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
22116 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
22117 + { (exit 1); exit 1; }; }
22118 + fi
22120 + # Update the list of available tags.
22121 + if test -n "$tagname"; then
22122 + echo appending configuration tag \"$tagname\" to $ofile
22124 + case $tagname in
22125 + CXX)
22126 + if test -n "$CXX" && test "X$CXX" != "Xno"; then
22127 + ac_ext=cc
22128 +ac_cpp='$CXXCPP $CPPFLAGS'
22129 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22130 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22131 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22136 +archive_cmds_need_lc_CXX=no
22137 +allow_undefined_flag_CXX=
22138 +always_export_symbols_CXX=no
22139 +archive_expsym_cmds_CXX=
22140 +export_dynamic_flag_spec_CXX=
22141 +hardcode_direct_CXX=no
22142 +hardcode_libdir_flag_spec_CXX=
22143 +hardcode_libdir_flag_spec_ld_CXX=
22144 +hardcode_libdir_separator_CXX=
22145 +hardcode_minus_L_CXX=no
22146 +hardcode_automatic_CXX=no
22147 +module_cmds_CXX=
22148 +module_expsym_cmds_CXX=
22149 +link_all_deplibs_CXX=unknown
22150 +old_archive_cmds_CXX=$old_archive_cmds
22151 +no_undefined_flag_CXX=
22152 +whole_archive_flag_spec_CXX=
22153 +enable_shared_with_static_runtimes_CXX=no
22155 +# Dependencies to place before and after the object being linked:
22156 +predep_objects_CXX=
22157 +postdep_objects_CXX=
22158 +predeps_CXX=
22159 +postdeps_CXX=
22160 +compiler_lib_search_path_CXX=
22162 +# Source file extension for C++ test sources.
22163 +ac_ext=cc
22165 +# Object file extension for compiled C++ test sources.
22166 +objext=o
22167 +objext_CXX=$objext
22169 +# Code to be used in simple compile tests
22170 +lt_simple_compile_test_code="int some_variable = 0;\n"
22172 +# Code to be used in simple link tests
22173 +lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
22175 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22177 +# If no C compiler was specified, use CC.
22178 +LTCC=${LTCC-"$CC"}
22180 +# Allow CC to be a program name with arguments.
22181 +compiler=$CC
22184 +# Allow CC to be a program name with arguments.
22185 +lt_save_CC=$CC
22186 +lt_save_LD=$LD
22187 +lt_save_GCC=$GCC
22188 +GCC=$GXX
22189 +lt_save_with_gnu_ld=$with_gnu_ld
22190 +lt_save_path_LD=$lt_cv_path_LD
22191 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
22192 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
22193 +else
22194 + unset lt_cv_prog_gnu_ld
22195 +fi
22196 +if test -n "${lt_cv_path_LDCXX+set}"; then
22197 + lt_cv_path_LD=$lt_cv_path_LDCXX
22198 +else
22199 + unset lt_cv_path_LD
22200 +fi
22201 +test -z "${LDCXX+set}" || LD=$LDCXX
22202 +CC=${CXX-"c++"}
22203 +compiler=$CC
22204 +compiler_CXX=$CC
22205 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
22207 +# We don't want -fno-exception wen compiling C++ code, so set the
22208 +# no_builtin_flag separately
22209 +if test "$GXX" = yes; then
22210 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
22211 +else
22212 + lt_prog_compiler_no_builtin_flag_CXX=
22213 +fi
22215 +if test "$GXX" = yes; then
22216 + # Set up default GNU C++ configuration
22219 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
22220 +if test "${with_gnu_ld+set}" = set; then
22221 + withval="$with_gnu_ld"
22222 + test "$withval" = no || with_gnu_ld=yes
22223 +else
22224 + with_gnu_ld=no
22225 +fi;
22226 +ac_prog=ld
22227 +if test "$GCC" = yes; then
22228 + # Check if gcc -print-prog-name=ld gives a path.
22229 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
22230 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
22231 + case $host in
22232 + *-*-mingw*)
22233 + # gcc leaves a trailing carriage return which upsets mingw
22234 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
22235 + *)
22236 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
22237 + esac
22238 + case $ac_prog in
22239 + # Accept absolute paths.
22240 + [\\/]* | ?:[\\/]*)
22241 + re_direlt='/[^/][^/]*/\.\./'
22242 + # Canonicalize the pathname of ld
22243 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
22244 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
22245 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
22246 + done
22247 + test -z "$LD" && LD="$ac_prog"
22248 + ;;
22249 + "")
22250 + # If it fails, then pretend we aren't using GCC.
22251 + ac_prog=ld
22252 + ;;
22253 + *)
22254 + # If it is relative, then search for the first ld in PATH.
22255 + with_gnu_ld=unknown
22256 + ;;
22257 + esac
22258 +elif test "$with_gnu_ld" = yes; then
22259 + echo "$as_me:$LINENO: checking for GNU ld" >&5
22260 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
22261 +else
22262 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
22263 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
22264 +fi
22265 +if test "${lt_cv_path_LD+set}" = set; then
22266 + echo $ECHO_N "(cached) $ECHO_C" >&6
22267 +else
22268 + if test -z "$LD"; then
22269 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22270 + for ac_dir in $PATH; do
22271 + IFS="$lt_save_ifs"
22272 + test -z "$ac_dir" && ac_dir=.
22273 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
22274 + lt_cv_path_LD="$ac_dir/$ac_prog"
22275 + # Check to see if the program is GNU ld. I'd rather use --version,
22276 + # but apparently some GNU ld's only accept -v.
22277 + # Break only if it was the GNU/non-GNU ld that we prefer.
22278 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
22279 + *GNU* | *'with BFD'*)
22280 + test "$with_gnu_ld" != no && break
22281 + ;;
22282 + *)
22283 + test "$with_gnu_ld" != yes && break
22284 + ;;
22285 + esac
22286 + fi
22287 + done
22288 + IFS="$lt_save_ifs"
22289 +else
22290 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
22291 +fi
22292 +fi
22294 +LD="$lt_cv_path_LD"
22295 +if test -n "$LD"; then
22296 + echo "$as_me:$LINENO: result: $LD" >&5
22297 +echo "${ECHO_T}$LD" >&6
22298 +else
22299 + echo "$as_me:$LINENO: result: no" >&5
22300 +echo "${ECHO_T}no" >&6
22301 +fi
22302 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
22303 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
22304 + { (exit 1); exit 1; }; }
22305 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
22306 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
22307 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
22308 + echo $ECHO_N "(cached) $ECHO_C" >&6
22309 +else
22310 + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
22311 +case `$LD -v 2>&1 </dev/null` in
22312 +*GNU* | *'with BFD'*)
22313 + lt_cv_prog_gnu_ld=yes
22314 + ;;
22315 +*)
22316 + lt_cv_prog_gnu_ld=no
22317 + ;;
22318 +esac
22319 +fi
22320 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
22321 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
22322 +with_gnu_ld=$lt_cv_prog_gnu_ld
22326 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
22327 + # archiving commands below assume that GNU ld is being used.
22328 + if test "$with_gnu_ld" = yes; then
22329 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22330 + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22332 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
22333 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22335 + # If archive_cmds runs LD, not CC, wlarc should be empty
22336 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
22337 + # investigate it a little bit more. (MM)
22338 + wlarc='${wl}'
22340 + # ancient GNU ld didn't support --whole-archive et. al.
22341 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
22342 + grep 'no-whole-archive' > /dev/null; then
22343 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
22344 + else
22345 + whole_archive_flag_spec_CXX=
22346 + fi
22347 + else
22348 + with_gnu_ld=no
22349 + wlarc=
22351 + # A generic and very simple default shared library creation
22352 + # command for GNU C++ for the case where it uses the native
22353 + # linker, instead of GNU ld. If possible, this setting should
22354 + # overridden to take advantage of the native linker features on
22355 + # the platform it is being used on.
22356 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
22357 + fi
22359 + # Commands to make compiler produce verbose output that lists
22360 + # what "hidden" libraries, object files and flags are used when
22361 + # linking a shared library.
22362 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
22364 +else
22365 + GXX=no
22366 + with_gnu_ld=no
22367 + wlarc=
22368 +fi
22370 +# PORTME: fill in a description of your system's C++ link characteristics
22371 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22372 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
22373 +ld_shlibs_CXX=yes
22374 +case $host_os in
22375 + aix3*)
22376 + # FIXME: insert proper C++ library support
22377 + ld_shlibs_CXX=no
22378 + ;;
22379 + aix4* | aix5*)
22380 + if test "$host_cpu" = ia64; then
22381 + # On IA64, the linker does run time linking by default, so we don't
22382 + # have to do anything special.
22383 + aix_use_runtimelinking=no
22384 + exp_sym_flag='-Bexport'
22385 + no_entry_flag=""
22386 + else
22387 + aix_use_runtimelinking=no
22389 + # Test if we are trying to use run time linking or normal
22390 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22391 + # need to do runtime linking.
22392 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
22393 + for ld_flag in $LDFLAGS; do
22394 + case $ld_flag in
22395 + *-brtl*)
22396 + aix_use_runtimelinking=yes
22397 + break
22398 + ;;
22399 + esac
22400 + done
22401 + esac
22403 + exp_sym_flag='-bexport'
22404 + no_entry_flag='-bnoentry'
22405 + fi
22407 + # When large executables or shared objects are built, AIX ld can
22408 + # have problems creating the table of contents. If linking a library
22409 + # or program results in "error TOC overflow" add -mminimal-toc to
22410 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22411 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22413 + archive_cmds_CXX=''
22414 + hardcode_direct_CXX=yes
22415 + hardcode_libdir_separator_CXX=':'
22416 + link_all_deplibs_CXX=yes
22418 + if test "$GXX" = yes; then
22419 + case $host_os in aix4.012|aix4.012.*)
22420 + # We only want to do this on AIX 4.2 and lower, the check
22421 + # below for broken collect2 doesn't work under 4.3+
22422 + collect2name=`${CC} -print-prog-name=collect2`
22423 + if test -f "$collect2name" && \
22424 + strings "$collect2name" | grep resolve_lib_name >/dev/null
22425 + then
22426 + # We have reworked collect2
22427 + hardcode_direct_CXX=yes
22428 + else
22429 + # We have old collect2
22430 + hardcode_direct_CXX=unsupported
22431 + # It fails to find uninstalled libraries when the uninstalled
22432 + # path is not listed in the libpath. Setting hardcode_minus_L
22433 + # to unsupported forces relinking
22434 + hardcode_minus_L_CXX=yes
22435 + hardcode_libdir_flag_spec_CXX='-L$libdir'
22436 + hardcode_libdir_separator_CXX=
22437 + fi
22438 + esac
22439 + shared_flag='-shared'
22440 + else
22441 + # not using gcc
22442 + if test "$host_cpu" = ia64; then
22443 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22444 + # chokes on -Wl,-G. The following line is correct:
22445 + shared_flag='-G'
22446 + else
22447 + if test "$aix_use_runtimelinking" = yes; then
22448 + shared_flag='${wl}-G'
22449 + else
22450 + shared_flag='${wl}-bM:SRE'
22451 + fi
22452 + fi
22453 + fi
22455 + # It seems that -bexpall does not export symbols beginning with
22456 + # underscore (_), so it is better to generate a list of symbols to export.
22457 + always_export_symbols_CXX=yes
22458 + if test "$aix_use_runtimelinking" = yes; then
22459 + # Warning - without using the other runtime loading flags (-brtl),
22460 + # -berok will link without error, but may produce a broken library.
22461 + allow_undefined_flag_CXX='-berok'
22462 + # Determine the default libpath from the value encoded in an empty executable.
22463 + cat >conftest.$ac_ext <<_ACEOF
22464 +/* confdefs.h. */
22465 +_ACEOF
22466 +cat confdefs.h >>conftest.$ac_ext
22467 +cat >>conftest.$ac_ext <<_ACEOF
22468 +/* end confdefs.h. */
22470 +int
22471 +main ()
22472 +{
22474 + ;
22475 + return 0;
22476 +}
22477 +_ACEOF
22478 +rm -f conftest.$ac_objext conftest$ac_exeext
22479 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22480 + (eval $ac_link) 2>conftest.er1
22481 + ac_status=$?
22482 + grep -v '^ *+' conftest.er1 >conftest.err
22483 + rm -f conftest.er1
22484 + cat conftest.err >&5
22485 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 + (exit $ac_status); } &&
22487 + { ac_try='test -z "$ac_cxx_werror_flag"
22488 + || test ! -s conftest.err'
22489 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22490 + (eval $ac_try) 2>&5
22491 + ac_status=$?
22492 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 + (exit $ac_status); }; } &&
22494 + { ac_try='test -s conftest$ac_exeext'
22495 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22496 + (eval $ac_try) 2>&5
22497 + ac_status=$?
22498 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499 + (exit $ac_status); }; }; then
22501 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22502 +}'`
22503 +# Check for a 64-bit object if we didn't find anything.
22504 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22505 +}'`; fi
22506 +else
22507 + echo "$as_me: failed program was:" >&5
22508 +sed 's/^/| /' conftest.$ac_ext >&5
22510 +fi
22511 +rm -f conftest.err conftest.$ac_objext \
22512 + conftest$ac_exeext conftest.$ac_ext
22513 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22515 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22517 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22518 + else
22519 + if test "$host_cpu" = ia64; then
22520 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
22521 + allow_undefined_flag_CXX="-z nodefs"
22522 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
22523 + else
22524 + # Determine the default libpath from the value encoded in an empty executable.
22525 + cat >conftest.$ac_ext <<_ACEOF
22526 +/* confdefs.h. */
22527 +_ACEOF
22528 +cat confdefs.h >>conftest.$ac_ext
22529 +cat >>conftest.$ac_ext <<_ACEOF
22530 +/* end confdefs.h. */
22532 +int
22533 +main ()
22534 +{
22536 + ;
22537 + return 0;
22538 +}
22539 +_ACEOF
22540 +rm -f conftest.$ac_objext conftest$ac_exeext
22541 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22542 + (eval $ac_link) 2>conftest.er1
22543 + ac_status=$?
22544 + grep -v '^ *+' conftest.er1 >conftest.err
22545 + rm -f conftest.er1
22546 + cat conftest.err >&5
22547 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 + (exit $ac_status); } &&
22549 + { ac_try='test -z "$ac_cxx_werror_flag"
22550 + || test ! -s conftest.err'
22551 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 + (eval $ac_try) 2>&5
22553 + ac_status=$?
22554 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 + (exit $ac_status); }; } &&
22556 + { ac_try='test -s conftest$ac_exeext'
22557 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22558 + (eval $ac_try) 2>&5
22559 + ac_status=$?
22560 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 + (exit $ac_status); }; }; then
22563 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22564 +}'`
22565 +# Check for a 64-bit object if we didn't find anything.
22566 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
22567 +}'`; fi
22568 +else
22569 + echo "$as_me: failed program was:" >&5
22570 +sed 's/^/| /' conftest.$ac_ext >&5
22572 +fi
22573 +rm -f conftest.err conftest.$ac_objext \
22574 + conftest$ac_exeext conftest.$ac_ext
22575 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22577 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
22578 + # Warning - without using the other run time loading flags,
22579 + # -berok will link without error, but may produce a broken library.
22580 + no_undefined_flag_CXX=' ${wl}-bernotok'
22581 + allow_undefined_flag_CXX=' ${wl}-berok'
22582 + # -bexpall does not export symbols beginning with underscore (_)
22583 + always_export_symbols_CXX=yes
22584 + # Exported symbols can be pulled into shared objects from archives
22585 + whole_archive_flag_spec_CXX=' '
22586 + archive_cmds_need_lc_CXX=yes
22587 + # This is similar to how AIX traditionally builds it's shared libraries.
22588 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
22589 + fi
22590 + fi
22591 + ;;
22592 + chorus*)
22593 + case $cc_basename in
22594 + *)
22595 + # FIXME: insert proper C++ library support
22596 + ld_shlibs_CXX=no
22597 + ;;
22598 + esac
22599 + ;;
22601 + cygwin* | mingw* | pw32*)
22602 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
22603 + # as there is no search path for DLLs.
22604 + hardcode_libdir_flag_spec_CXX='-L$libdir'
22605 + allow_undefined_flag_CXX=unsupported
22606 + always_export_symbols_CXX=no
22607 + enable_shared_with_static_runtimes_CXX=yes
22609 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
22610 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22611 + # If the export-symbols file already is a .def file (1st line
22612 + # is EXPORTS), use it as is; otherwise, prepend...
22613 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22614 + cp $export_symbols $output_objdir/$soname.def;
22615 + else
22616 + echo EXPORTS > $output_objdir/$soname.def;
22617 + cat $export_symbols >> $output_objdir/$soname.def;
22618 + fi~
22619 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
22620 + else
22621 + ld_shlibs_CXX=no
22622 + fi
22623 + ;;
22625 + darwin* | rhapsody*)
22626 + if test "$GXX" = yes; then
22627 + archive_cmds_need_lc_CXX=no
22628 + case "$host_os" in
22629 + rhapsody* | darwin1.[012])
22630 + allow_undefined_flag_CXX='-undefined suppress'
22631 + ;;
22632 + *) # Darwin 1.3 on
22633 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22634 + allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
22635 + else
22636 + case ${MACOSX_DEPLOYMENT_TARGET} in
22637 + 10.[012])
22638 + allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
22639 + ;;
22640 + 10.*)
22641 + allow_undefined_flag_CXX='-undefined dynamic_lookup'
22642 + ;;
22643 + esac
22644 + fi
22645 + ;;
22646 + esac
22647 + lt_int_apple_cc_single_mod=no
22648 + output_verbose_link_cmd='echo'
22649 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
22650 + lt_int_apple_cc_single_mod=yes
22651 + fi
22652 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22653 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22654 + else
22655 + archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
22656 + fi
22657 + module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22659 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
22660 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
22661 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22662 + else
22663 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22664 + fi
22665 + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22666 + hardcode_direct_CXX=no
22667 + hardcode_automatic_CXX=yes
22668 + hardcode_shlibpath_var_CXX=unsupported
22669 + whole_archive_flag_spec_CXX='-all_load $convenience'
22670 + link_all_deplibs_CXX=yes
22671 + else
22672 + ld_shlibs_CXX=no
22673 + fi
22674 + ;;
22676 + dgux*)
22677 + case $cc_basename in
22678 + ec++)
22679 + # FIXME: insert proper C++ library support
22680 + ld_shlibs_CXX=no
22681 + ;;
22682 + ghcx)
22683 + # Green Hills C++ Compiler
22684 + # FIXME: insert proper C++ library support
22685 + ld_shlibs_CXX=no
22686 + ;;
22687 + *)
22688 + # FIXME: insert proper C++ library support
22689 + ld_shlibs_CXX=no
22690 + ;;
22691 + esac
22692 + ;;
22693 + freebsd12*)
22694 + # C++ shared libraries reported to be fairly broken before switch to ELF
22695 + ld_shlibs_CXX=no
22696 + ;;
22697 + freebsd-elf*)
22698 + archive_cmds_need_lc_CXX=no
22699 + ;;
22700 + freebsd* | kfreebsd*-gnu)
22701 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
22702 + # conventions
22703 + ld_shlibs_CXX=yes
22704 + ;;
22705 + gnu*)
22706 + ;;
22707 + hpux9*)
22708 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22709 + hardcode_libdir_separator_CXX=:
22710 + export_dynamic_flag_spec_CXX='${wl}-E'
22711 + hardcode_direct_CXX=yes
22712 + hardcode_minus_L_CXX=yes # Not in the search PATH,
22713 + # but as the default
22714 + # location of the library.
22716 + case $cc_basename in
22717 + CC)
22718 + # FIXME: insert proper C++ library support
22719 + ld_shlibs_CXX=no
22720 + ;;
22721 + aCC)
22722 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22723 + # Commands to make compiler produce verbose output that lists
22724 + # what "hidden" libraries, object files and flags are used when
22725 + # linking a shared library.
22726 + #
22727 + # There doesn't appear to be a way to prevent this compiler from
22728 + # explicitly linking system object files so we need to strip them
22729 + # from the output so that they don't get included in the library
22730 + # dependencies.
22731 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
22732 + ;;
22733 + *)
22734 + if test "$GXX" = yes; then
22735 + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
22736 + else
22737 + # FIXME: insert proper C++ library support
22738 + ld_shlibs_CXX=no
22739 + fi
22740 + ;;
22741 + esac
22742 + ;;
22743 + hpux10*|hpux11*)
22744 + if test $with_gnu_ld = no; then
22745 + case "$host_cpu" in
22746 + hppa*64*)
22747 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22748 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
22749 + hardcode_libdir_separator_CXX=:
22750 + ;;
22751 + ia64*)
22752 + hardcode_libdir_flag_spec_CXX='-L$libdir'
22753 + ;;
22754 + *)
22755 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
22756 + hardcode_libdir_separator_CXX=:
22757 + export_dynamic_flag_spec_CXX='${wl}-E'
22758 + ;;
22759 + esac
22760 + fi
22761 + case "$host_cpu" in
22762 + hppa*64*)
22763 + hardcode_direct_CXX=no
22764 + hardcode_shlibpath_var_CXX=no
22765 + ;;
22766 + ia64*)
22767 + hardcode_direct_CXX=no
22768 + hardcode_shlibpath_var_CXX=no
22769 + hardcode_minus_L_CXX=yes # Not in the search PATH,
22770 + # but as the default
22771 + # location of the library.
22772 + ;;
22773 + *)
22774 + hardcode_direct_CXX=yes
22775 + hardcode_minus_L_CXX=yes # Not in the search PATH,
22776 + # but as the default
22777 + # location of the library.
22778 + ;;
22779 + esac
22781 + case $cc_basename in
22782 + CC)
22783 + # FIXME: insert proper C++ library support
22784 + ld_shlibs_CXX=no
22785 + ;;
22786 + aCC)
22787 + case "$host_cpu" in
22788 + hppa*64*|ia64*)
22789 + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
22790 + ;;
22791 + *)
22792 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22793 + ;;
22794 + esac
22795 + # Commands to make compiler produce verbose output that lists
22796 + # what "hidden" libraries, object files and flags are used when
22797 + # linking a shared library.
22798 + #
22799 + # There doesn't appear to be a way to prevent this compiler from
22800 + # explicitly linking system object files so we need to strip them
22801 + # from the output so that they don't get included in the library
22802 + # dependencies.
22803 + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
22804 + ;;
22805 + *)
22806 + if test "$GXX" = yes; then
22807 + if test $with_gnu_ld = no; then
22808 + case "$host_cpu" in
22809 + ia64*|hppa*64*)
22810 + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
22811 + ;;
22812 + *)
22813 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
22814 + ;;
22815 + esac
22816 + fi
22817 + else
22818 + # FIXME: insert proper C++ library support
22819 + ld_shlibs_CXX=no
22820 + fi
22821 + ;;
22822 + esac
22823 + ;;
22824 + irix5* | irix6*)
22825 + case $cc_basename in
22826 + CC)
22827 + # SGI C++
22828 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
22830 + # Archives containing C++ object files must be created using
22831 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
22832 + # necessary to make sure instantiated templates are included
22833 + # in the archive.
22834 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
22835 + ;;
22836 + *)
22837 + if test "$GXX" = yes; then
22838 + if test "$with_gnu_ld" = no; then
22839 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
22840 + else
22841 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
22842 + fi
22843 + fi
22844 + link_all_deplibs_CXX=yes
22845 + ;;
22846 + esac
22847 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22848 + hardcode_libdir_separator_CXX=:
22849 + ;;
22850 + linux*)
22851 + case $cc_basename in
22852 + KCC)
22853 + # Kuck and Associates, Inc. (KAI) C++ Compiler
22855 + # KCC will only create a shared library if the output file
22856 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
22857 + # to its proper name (with version) after linking.
22858 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22859 + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
22860 + # Commands to make compiler produce verbose output that lists
22861 + # what "hidden" libraries, object files and flags are used when
22862 + # linking a shared library.
22863 + #
22864 + # There doesn't appear to be a way to prevent this compiler from
22865 + # explicitly linking system object files so we need to strip them
22866 + # from the output so that they don't get included in the library
22867 + # dependencies.
22868 + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
22870 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
22871 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22873 + # Archives containing C++ object files must be created using
22874 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22875 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22876 + ;;
22877 + icpc)
22878 + # Intel C++
22879 + with_gnu_ld=yes
22880 + archive_cmds_need_lc_CXX=no
22881 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22882 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22883 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22884 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
22885 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
22886 + ;;
22887 + cxx)
22888 + # Compaq C++
22889 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
22890 + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
22892 + runpath_var=LD_RUN_PATH
22893 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
22894 + hardcode_libdir_separator_CXX=:
22896 + # Commands to make compiler produce verbose output that lists
22897 + # what "hidden" libraries, object files and flags are used when
22898 + # linking a shared library.
22899 + #
22900 + # There doesn't appear to be a way to prevent this compiler from
22901 + # explicitly linking system object files so we need to strip them
22902 + # from the output so that they don't get included in the library
22903 + # dependencies.
22904 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
22905 + ;;
22906 + esac
22907 + ;;
22908 + lynxos*)
22909 + # FIXME: insert proper C++ library support
22910 + ld_shlibs_CXX=no
22911 + ;;
22912 + m88k*)
22913 + # FIXME: insert proper C++ library support
22914 + ld_shlibs_CXX=no
22915 + ;;
22916 + mvs*)
22917 + case $cc_basename in
22918 + cxx)
22919 + # FIXME: insert proper C++ library support
22920 + ld_shlibs_CXX=no
22921 + ;;
22922 + *)
22923 + # FIXME: insert proper C++ library support
22924 + ld_shlibs_CXX=no
22925 + ;;
22926 + esac
22927 + ;;
22928 + netbsd*)
22929 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22930 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
22931 + wlarc=
22932 + hardcode_libdir_flag_spec_CXX='-R$libdir'
22933 + hardcode_direct_CXX=yes
22934 + hardcode_shlibpath_var_CXX=no
22935 + fi
22936 + # Workaround some broken pre-1.5 toolchains
22937 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
22938 + ;;
22939 + osf3*)
22940 + case $cc_basename in
22941 + KCC)
22942 + # Kuck and Associates, Inc. (KAI) C++ Compiler
22944 + # KCC will only create a shared library if the output file
22945 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
22946 + # to its proper name (with version) after linking.
22947 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
22949 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
22950 + hardcode_libdir_separator_CXX=:
22952 + # Archives containing C++ object files must be created using
22953 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
22954 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
22956 + ;;
22957 + RCC)
22958 + # Rational C++ 2.4.1
22959 + # FIXME: insert proper C++ library support
22960 + ld_shlibs_CXX=no
22961 + ;;
22962 + cxx)
22963 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22964 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
22966 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22967 + hardcode_libdir_separator_CXX=:
22969 + # Commands to make compiler produce verbose output that lists
22970 + # what "hidden" libraries, object files and flags are used when
22971 + # linking a shared library.
22972 + #
22973 + # There doesn't appear to be a way to prevent this compiler from
22974 + # explicitly linking system object files so we need to strip them
22975 + # from the output so that they don't get included in the library
22976 + # dependencies.
22977 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
22978 + ;;
22979 + *)
22980 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
22981 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
22982 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
22984 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
22985 + hardcode_libdir_separator_CXX=:
22987 + # Commands to make compiler produce verbose output that lists
22988 + # what "hidden" libraries, object files and flags are used when
22989 + # linking a shared library.
22990 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
22992 + else
22993 + # FIXME: insert proper C++ library support
22994 + ld_shlibs_CXX=no
22995 + fi
22996 + ;;
22997 + esac
22998 + ;;
22999 + osf4* | osf5*)
23000 + case $cc_basename in
23001 + KCC)
23002 + # Kuck and Associates, Inc. (KAI) C++ Compiler
23004 + # KCC will only create a shared library if the output file
23005 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
23006 + # to its proper name (with version) after linking.
23007 + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
23009 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
23010 + hardcode_libdir_separator_CXX=:
23012 + # Archives containing C++ object files must be created using
23013 + # the KAI C++ compiler.
23014 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
23015 + ;;
23016 + RCC)
23017 + # Rational C++ 2.4.1
23018 + # FIXME: insert proper C++ library support
23019 + ld_shlibs_CXX=no
23020 + ;;
23021 + cxx)
23022 + allow_undefined_flag_CXX=' -expect_unresolved \*'
23023 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
23024 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
23025 + echo "-hidden">> $lib.exp~
23026 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
23027 + $rm $lib.exp'
23029 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
23030 + hardcode_libdir_separator_CXX=:
23032 + # Commands to make compiler produce verbose output that lists
23033 + # what "hidden" libraries, object files and flags are used when
23034 + # linking a shared library.
23035 + #
23036 + # There doesn't appear to be a way to prevent this compiler from
23037 + # explicitly linking system object files so we need to strip them
23038 + # from the output so that they don't get included in the library
23039 + # dependencies.
23040 + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
23041 + ;;
23042 + *)
23043 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23044 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
23045 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
23047 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
23048 + hardcode_libdir_separator_CXX=:
23050 + # Commands to make compiler produce verbose output that lists
23051 + # what "hidden" libraries, object files and flags are used when
23052 + # linking a shared library.
23053 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
23055 + else
23056 + # FIXME: insert proper C++ library support
23057 + ld_shlibs_CXX=no
23058 + fi
23059 + ;;
23060 + esac
23061 + ;;
23062 + psos*)
23063 + # FIXME: insert proper C++ library support
23064 + ld_shlibs_CXX=no
23065 + ;;
23066 + sco*)
23067 + archive_cmds_need_lc_CXX=no
23068 + case $cc_basename in
23069 + CC)
23070 + # FIXME: insert proper C++ library support
23071 + ld_shlibs_CXX=no
23072 + ;;
23073 + *)
23074 + # FIXME: insert proper C++ library support
23075 + ld_shlibs_CXX=no
23076 + ;;
23077 + esac
23078 + ;;
23079 + sunos4*)
23080 + case $cc_basename in
23081 + CC)
23082 + # Sun C++ 4.x
23083 + # FIXME: insert proper C++ library support
23084 + ld_shlibs_CXX=no
23085 + ;;
23086 + lcc)
23087 + # Lucid
23088 + # FIXME: insert proper C++ library support
23089 + ld_shlibs_CXX=no
23090 + ;;
23091 + *)
23092 + # FIXME: insert proper C++ library support
23093 + ld_shlibs_CXX=no
23094 + ;;
23095 + esac
23096 + ;;
23097 + solaris*)
23098 + case $cc_basename in
23099 + CC)
23100 + # Sun C++ 4.2, 5.x and Centerline C++
23101 + no_undefined_flag_CXX=' -zdefs'
23102 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
23103 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23104 + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
23106 + hardcode_libdir_flag_spec_CXX='-R$libdir'
23107 + hardcode_shlibpath_var_CXX=no
23108 + case $host_os in
23109 + solaris2.0-5 | solaris2.0-5.*) ;;
23110 + *)
23111 + # The C++ compiler is used as linker so we must use $wl
23112 + # flag to pass the commands to the underlying system
23113 + # linker.
23114 + # Supported since Solaris 2.6 (maybe 2.5.1?)
23115 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
23116 + ;;
23117 + esac
23118 + link_all_deplibs_CXX=yes
23120 + # Commands to make compiler produce verbose output that lists
23121 + # what "hidden" libraries, object files and flags are used when
23122 + # linking a shared library.
23123 + #
23124 + # There doesn't appear to be a way to prevent this compiler from
23125 + # explicitly linking system object files so we need to strip them
23126 + # from the output so that they don't get included in the library
23127 + # dependencies.
23128 + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
23130 + # Archives containing C++ object files must be created using
23131 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
23132 + # necessary to make sure instantiated templates are included
23133 + # in the archive.
23134 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
23135 + ;;
23136 + gcx)
23137 + # Green Hills C++ Compiler
23138 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23140 + # The C++ compiler must be used to create the archive.
23141 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
23142 + ;;
23143 + *)
23144 + # GNU C++ compiler with Solaris linker
23145 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
23146 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
23147 + if $CC --version | grep -v '^2\.7' > /dev/null; then
23148 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23149 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23150 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
23152 + # Commands to make compiler produce verbose output that lists
23153 + # what "hidden" libraries, object files and flags are used when
23154 + # linking a shared library.
23155 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
23156 + else
23157 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
23158 + # platform.
23159 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
23160 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
23161 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
23163 + # Commands to make compiler produce verbose output that lists
23164 + # what "hidden" libraries, object files and flags are used when
23165 + # linking a shared library.
23166 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
23167 + fi
23169 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
23170 + fi
23171 + ;;
23172 + esac
23173 + ;;
23174 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
23175 + archive_cmds_need_lc_CXX=no
23176 + ;;
23177 + tandem*)
23178 + case $cc_basename in
23179 + NCC)
23180 + # NonStop-UX NCC 3.20
23181 + # FIXME: insert proper C++ library support
23182 + ld_shlibs_CXX=no
23183 + ;;
23184 + *)
23185 + # FIXME: insert proper C++ library support
23186 + ld_shlibs_CXX=no
23187 + ;;
23188 + esac
23189 + ;;
23190 + vxworks*)
23191 + # FIXME: insert proper C++ library support
23192 + ld_shlibs_CXX=no
23193 + ;;
23194 + *)
23195 + # FIXME: insert proper C++ library support
23196 + ld_shlibs_CXX=no
23197 + ;;
23198 +esac
23199 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
23200 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
23201 +test "$ld_shlibs_CXX" = no && can_build_shared=no
23203 +GCC_CXX="$GXX"
23204 +LD_CXX="$LD"
23207 +cat > conftest.$ac_ext <<EOF
23208 +class Foo
23209 +{
23210 +public:
23211 + Foo (void) { a = 0; }
23212 +private:
23213 + int a;
23214 +};
23215 +EOF
23217 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23218 + (eval $ac_compile) 2>&5
23219 + ac_status=$?
23220 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 + (exit $ac_status); }; then
23222 + # Parse the compiler output and extract the necessary
23223 + # objects, libraries and library flags.
23225 + # Sentinel used to keep track of whether or not we are before
23226 + # the conftest object file.
23227 + pre_test_object_deps_done=no
23229 + # The `*' in the case matches for architectures that use `case' in
23230 + # $output_verbose_cmd can trigger glob expansion during the loop
23231 + # eval without this substitution.
23232 + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
23234 + for p in `eval $output_verbose_link_cmd`; do
23235 + case $p in
23237 + -L* | -R* | -l*)
23238 + # Some compilers place space between "-{L,R}" and the path.
23239 + # Remove the space.
23240 + if test $p = "-L" \
23241 + || test $p = "-R"; then
23242 + prev=$p
23243 + continue
23244 + else
23245 + prev=
23246 + fi
23248 + if test "$pre_test_object_deps_done" = no; then
23249 + case $p in
23250 + -L* | -R*)
23251 + # Internal compiler library paths should come after those
23252 + # provided the user. The postdeps already come after the
23253 + # user supplied libs so there is no need to process them.
23254 + if test -z "$compiler_lib_search_path_CXX"; then
23255 + compiler_lib_search_path_CXX="${prev}${p}"
23256 + else
23257 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
23258 + fi
23259 + ;;
23260 + # The "-l" case would never come before the object being
23261 + # linked, so don't bother handling this case.
23262 + esac
23263 + else
23264 + if test -z "$postdeps_CXX"; then
23265 + postdeps_CXX="${prev}${p}"
23266 + else
23267 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
23268 + fi
23269 + fi
23270 + ;;
23272 + *.$objext)
23273 + # This assumes that the test object file only shows up
23274 + # once in the compiler output.
23275 + if test "$p" = "conftest.$objext"; then
23276 + pre_test_object_deps_done=yes
23277 + continue
23278 + fi
23280 + if test "$pre_test_object_deps_done" = no; then
23281 + if test -z "$predep_objects_CXX"; then
23282 + predep_objects_CXX="$p"
23283 + else
23284 + predep_objects_CXX="$predep_objects_CXX $p"
23285 + fi
23286 + else
23287 + if test -z "$postdep_objects_CXX"; then
23288 + postdep_objects_CXX="$p"
23289 + else
23290 + postdep_objects_CXX="$postdep_objects_CXX $p"
23291 + fi
23292 + fi
23293 + ;;
23295 + *) ;; # Ignore the rest.
23297 + esac
23298 + done
23300 + # Clean up.
23301 + rm -f a.out a.exe
23302 +else
23303 + echo "libtool.m4: error: problem compiling CXX test program"
23304 +fi
23306 +$rm -f confest.$objext
23308 +case " $postdeps_CXX " in
23309 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
23310 +esac
23312 +lt_prog_compiler_wl_CXX=
23313 +lt_prog_compiler_pic_CXX=
23314 +lt_prog_compiler_static_CXX=
23316 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
23317 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
23319 + # C++ specific cases for pic, static, wl, etc.
23320 + if test "$GXX" = yes; then
23321 + lt_prog_compiler_wl_CXX='-Wl,'
23322 + lt_prog_compiler_static_CXX='-static'
23324 + case $host_os in
23325 + aix*)
23326 + # All AIX code is PIC.
23327 + if test "$host_cpu" = ia64; then
23328 + # AIX 5 now supports IA64 processor
23329 + lt_prog_compiler_static_CXX='-Bstatic'
23330 + fi
23331 + ;;
23332 + amigaos*)
23333 + # FIXME: we need at least 68020 code to build shared libraries, but
23334 + # adding the `-m68020' flag to GCC prevents building anything better,
23335 + # like `-m68040'.
23336 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
23337 + ;;
23338 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
23339 + # PIC is the default for these OSes.
23340 + ;;
23341 + mingw* | os2* | pw32*)
23342 + # This hack is so that the source file can tell whether it is being
23343 + # built for inclusion in a dll (and should export symbols for example).
23344 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
23345 + ;;
23346 + darwin* | rhapsody*)
23347 + # PIC is the default on this platform
23348 + # Common symbols not allowed in MH_DYLIB files
23349 + lt_prog_compiler_pic_CXX='-fno-common'
23350 + ;;
23351 + *djgpp*)
23352 + # DJGPP does not support shared libraries at all
23353 + lt_prog_compiler_pic_CXX=
23354 + ;;
23355 + sysv4*MP*)
23356 + if test -d /usr/nec; then
23357 + lt_prog_compiler_pic_CXX=-Kconform_pic
23358 + fi
23359 + ;;
23360 + hpux*)
23361 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
23362 + # not for PA HP-UX.
23363 + case "$host_cpu" in
23364 + hppa*64*|ia64*)
23365 + ;;
23366 + *)
23367 + lt_prog_compiler_pic_CXX='-fPIC'
23368 + ;;
23369 + esac
23370 + ;;
23371 + *)
23372 + lt_prog_compiler_pic_CXX='-fPIC'
23373 + ;;
23374 + esac
23375 + else
23376 + case $host_os in
23377 + aix4* | aix5*)
23378 + # All AIX code is PIC.
23379 + if test "$host_cpu" = ia64; then
23380 + # AIX 5 now supports IA64 processor
23381 + lt_prog_compiler_static_CXX='-Bstatic'
23382 + else
23383 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
23384 + fi
23385 + ;;
23386 + chorus*)
23387 + case $cc_basename in
23388 + cxch68)
23389 + # Green Hills C++ Compiler
23390 + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
23391 + ;;
23392 + esac
23393 + ;;
23394 + dgux*)
23395 + case $cc_basename in
23396 + ec++)
23397 + lt_prog_compiler_pic_CXX='-KPIC'
23398 + ;;
23399 + ghcx)
23400 + # Green Hills C++ Compiler
23401 + lt_prog_compiler_pic_CXX='-pic'
23402 + ;;
23403 + *)
23404 + ;;
23405 + esac
23406 + ;;
23407 + freebsd* | kfreebsd*-gnu)
23408 + # FreeBSD uses GNU C++
23409 + ;;
23410 + hpux9* | hpux10* | hpux11*)
23411 + case $cc_basename in
23412 + CC)
23413 + lt_prog_compiler_wl_CXX='-Wl,'
23414 + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
23415 + if test "$host_cpu" != ia64; then
23416 + lt_prog_compiler_pic_CXX='+Z'
23417 + fi
23418 + ;;
23419 + aCC)
23420 + lt_prog_compiler_wl_CXX='-Wl,'
23421 + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
23422 + case "$host_cpu" in
23423 + hppa*64*|ia64*)
23424 + # +Z the default
23425 + ;;
23426 + *)
23427 + lt_prog_compiler_pic_CXX='+Z'
23428 + ;;
23429 + esac
23430 + ;;
23431 + *)
23432 + ;;
23433 + esac
23434 + ;;
23435 + irix5* | irix6* | nonstopux*)
23436 + case $cc_basename in
23437 + CC)
23438 + lt_prog_compiler_wl_CXX='-Wl,'
23439 + lt_prog_compiler_static_CXX='-non_shared'
23440 + # CC pic flag -KPIC is the default.
23441 + ;;
23442 + *)
23443 + ;;
23444 + esac
23445 + ;;
23446 + linux*)
23447 + case $cc_basename in
23448 + KCC)
23449 + # KAI C++ Compiler
23450 + lt_prog_compiler_wl_CXX='--backend -Wl,'
23451 + lt_prog_compiler_pic_CXX='-fPIC'
23452 + ;;
23453 + icpc)
23454 + # Intel C++
23455 + lt_prog_compiler_wl_CXX='-Wl,'
23456 + lt_prog_compiler_pic_CXX='-KPIC'
23457 + lt_prog_compiler_static_CXX='-static'
23458 + ;;
23459 + cxx)
23460 + # Compaq C++
23461 + # Make sure the PIC flag is empty. It appears that all Alpha
23462 + # Linux and Compaq Tru64 Unix objects are PIC.
23463 + lt_prog_compiler_pic_CXX=
23464 + lt_prog_compiler_static_CXX='-non_shared'
23465 + ;;
23466 + *)
23467 + ;;
23468 + esac
23469 + ;;
23470 + lynxos*)
23471 + ;;
23472 + m88k*)
23473 + ;;
23474 + mvs*)
23475 + case $cc_basename in
23476 + cxx)
23477 + lt_prog_compiler_pic_CXX='-W c,exportall'
23478 + ;;
23479 + *)
23480 + ;;
23481 + esac
23482 + ;;
23483 + netbsd*)
23484 + ;;
23485 + osf3* | osf4* | osf5*)
23486 + case $cc_basename in
23487 + KCC)
23488 + lt_prog_compiler_wl_CXX='--backend -Wl,'
23489 + ;;
23490 + RCC)
23491 + # Rational C++ 2.4.1
23492 + lt_prog_compiler_pic_CXX='-pic'
23493 + ;;
23494 + cxx)
23495 + # Digital/Compaq C++
23496 + lt_prog_compiler_wl_CXX='-Wl,'
23497 + # Make sure the PIC flag is empty. It appears that all Alpha
23498 + # Linux and Compaq Tru64 Unix objects are PIC.
23499 + lt_prog_compiler_pic_CXX=
23500 + lt_prog_compiler_static_CXX='-non_shared'
23501 + ;;
23502 + *)
23503 + ;;
23504 + esac
23505 + ;;
23506 + psos*)
23507 + ;;
23508 + sco*)
23509 + case $cc_basename in
23510 + CC)
23511 + lt_prog_compiler_pic_CXX='-fPIC'
23512 + ;;
23513 + *)
23514 + ;;
23515 + esac
23516 + ;;
23517 + solaris*)
23518 + case $cc_basename in
23519 + CC)
23520 + # Sun C++ 4.2, 5.x and Centerline C++
23521 + lt_prog_compiler_pic_CXX='-KPIC'
23522 + lt_prog_compiler_static_CXX='-Bstatic'
23523 + lt_prog_compiler_wl_CXX='-Qoption ld '
23524 + ;;
23525 + gcx)
23526 + # Green Hills C++ Compiler
23527 + lt_prog_compiler_pic_CXX='-PIC'
23528 + ;;
23529 + *)
23530 + ;;
23531 + esac
23532 + ;;
23533 + sunos4*)
23534 + case $cc_basename in
23535 + CC)
23536 + # Sun C++ 4.x
23537 + lt_prog_compiler_pic_CXX='-pic'
23538 + lt_prog_compiler_static_CXX='-Bstatic'
23539 + ;;
23540 + lcc)
23541 + # Lucid
23542 + lt_prog_compiler_pic_CXX='-pic'
23543 + ;;
23544 + *)
23545 + ;;
23546 + esac
23547 + ;;
23548 + tandem*)
23549 + case $cc_basename in
23550 + NCC)
23551 + # NonStop-UX NCC 3.20
23552 + lt_prog_compiler_pic_CXX='-KPIC'
23553 + ;;
23554 + *)
23555 + ;;
23556 + esac
23557 + ;;
23558 + unixware*)
23559 + ;;
23560 + vxworks*)
23561 + ;;
23562 + *)
23563 + lt_prog_compiler_can_build_shared_CXX=no
23564 + ;;
23565 + esac
23566 + fi
23568 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
23569 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
23571 +#
23572 +# Check to make sure the PIC flag actually works.
23573 +#
23574 +if test -n "$lt_prog_compiler_pic_CXX"; then
23576 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
23577 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
23578 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
23579 + echo $ECHO_N "(cached) $ECHO_C" >&6
23580 +else
23581 + lt_prog_compiler_pic_works_CXX=no
23582 + ac_outfile=conftest.$ac_objext
23583 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23584 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
23585 + # Insert the option either (1) after the last *FLAGS variable, or
23586 + # (2) before a word containing "conftest.", or (3) at the end.
23587 + # Note that $ac_compile itself does not contain backslashes and begins
23588 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23589 + # The option is referenced via a variable to avoid confusing sed.
23590 + lt_compile=`echo "$ac_compile" | $SED \
23591 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23592 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23593 + -e 's:$: $lt_compiler_flag:'`
23594 + (eval echo "\"\$as_me:10999: $lt_compile\"" >&5)
23595 + (eval "$lt_compile" 2>conftest.err)
23596 + ac_status=$?
23597 + cat conftest.err >&5
23598 + echo "$as_me:11003: \$? = $ac_status" >&5
23599 + if (exit $ac_status) && test -s "$ac_outfile"; then
23600 + # The compiler can only warn and ignore the option if not recognized
23601 + # So say no if there are warnings
23602 + if test ! -s conftest.err; then
23603 + lt_prog_compiler_pic_works_CXX=yes
23604 + fi
23605 + fi
23606 + $rm conftest*
23608 +fi
23609 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
23610 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
23612 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
23613 + case $lt_prog_compiler_pic_CXX in
23614 + "" | " "*) ;;
23615 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
23616 + esac
23617 +else
23618 + lt_prog_compiler_pic_CXX=
23619 + lt_prog_compiler_can_build_shared_CXX=no
23620 +fi
23622 +fi
23623 +case "$host_os" in
23624 + # For platforms which do not support PIC, -DPIC is meaningless:
23625 + *djgpp*)
23626 + lt_prog_compiler_pic_CXX=
23627 + ;;
23628 + *)
23629 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
23630 + ;;
23631 +esac
23633 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
23634 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
23635 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
23636 + echo $ECHO_N "(cached) $ECHO_C" >&6
23637 +else
23638 + lt_cv_prog_compiler_c_o_CXX=no
23639 + $rm -r conftest 2>/dev/null
23640 + mkdir conftest
23641 + cd conftest
23642 + mkdir out
23643 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23645 + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
23646 + # that will create temporary files in the current directory regardless of
23647 + # the output directory. Thus, making CWD read-only will cause this test
23648 + # to fail, enabling locking or at least warning the user not to do parallel
23649 + # builds.
23650 + chmod -w .
23652 + lt_compiler_flag="-o out/conftest2.$ac_objext"
23653 + # Insert the option either (1) after the last *FLAGS variable, or
23654 + # (2) before a word containing "conftest.", or (3) at the end.
23655 + # Note that $ac_compile itself does not contain backslashes and begins
23656 + # with a dollar sign (not a hyphen), so the echo should work correctly.
23657 + lt_compile=`echo "$ac_compile" | $SED \
23658 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
23659 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
23660 + -e 's:$: $lt_compiler_flag:'`
23661 + (eval echo "\"\$as_me:11066: $lt_compile\"" >&5)
23662 + (eval "$lt_compile" 2>out/conftest.err)
23663 + ac_status=$?
23664 + cat out/conftest.err >&5
23665 + echo "$as_me:11070: \$? = $ac_status" >&5
23666 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
23667 + then
23668 + # The compiler can only warn and ignore the option if not recognized
23669 + # So say no if there are warnings
23670 + if test ! -s out/conftest.err; then
23671 + lt_cv_prog_compiler_c_o_CXX=yes
23672 + fi
23673 + fi
23674 + chmod u+w .
23675 + $rm conftest*
23676 + # SGI C++ compiler will create directory out/ii_files/ for
23677 + # template instantiation
23678 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
23679 + $rm out/* && rmdir out
23680 + cd ..
23681 + rmdir conftest
23682 + $rm conftest*
23684 +fi
23685 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
23686 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
23689 +hard_links="nottested"
23690 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
23691 + # do not overwrite the value of need_locks provided by the user
23692 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
23693 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
23694 + hard_links=yes
23695 + $rm conftest*
23696 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23697 + touch conftest.a
23698 + ln conftest.a conftest.b 2>&5 || hard_links=no
23699 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
23700 + echo "$as_me:$LINENO: result: $hard_links" >&5
23701 +echo "${ECHO_T}$hard_links" >&6
23702 + if test "$hard_links" = no; then
23703 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
23704 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
23705 + need_locks=warn
23706 + fi
23707 +else
23708 + need_locks=no
23709 +fi
23711 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
23712 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
23714 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23715 + case $host_os in
23716 + aix4* | aix5*)
23717 + # If we're using GNU nm, then we don't want the "-C" option.
23718 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
23719 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
23720 + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23721 + else
23722 + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
23723 + fi
23724 + ;;
23725 + pw32*)
23726 + export_symbols_cmds_CXX="$ltdll_cmds"
23727 + ;;
23728 + cygwin* | mingw*)
23729 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
23730 + ;;
23731 + *)
23732 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
23733 + ;;
23734 + esac
23736 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
23737 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
23738 +test "$ld_shlibs_CXX" = no && can_build_shared=no
23740 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23741 +if test "$GCC" = yes; then
23742 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23743 +fi
23745 +#
23746 +# Do we need to explicitly link libc?
23747 +#
23748 +case "x$archive_cmds_need_lc_CXX" in
23749 +x|xyes)
23750 + # Assume -lc should be added
23751 + archive_cmds_need_lc_CXX=yes
23753 + if test "$enable_shared" = yes && test "$GCC" = yes; then
23754 + case $archive_cmds_CXX in
23755 + *'~'*)
23756 + # FIXME: we may have to deal with multi-command sequences.
23757 + ;;
23758 + '$CC '*)
23759 + # Test whether the compiler implicitly links with -lc since on some
23760 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
23761 + # to ld, don't add -lc before -lgcc.
23762 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
23763 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
23764 + $rm conftest*
23765 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
23767 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23768 + (eval $ac_compile) 2>&5
23769 + ac_status=$?
23770 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771 + (exit $ac_status); } 2>conftest.err; then
23772 + soname=conftest
23773 + lib=conftest
23774 + libobjs=conftest.$ac_objext
23775 + deplibs=
23776 + wl=$lt_prog_compiler_wl_CXX
23777 + compiler_flags=-v
23778 + linker_flags=-v
23779 + verstring=
23780 + output_objdir=.
23781 + libname=conftest
23782 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
23783 + allow_undefined_flag_CXX=
23784 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
23785 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
23786 + ac_status=$?
23787 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 + (exit $ac_status); }
23789 + then
23790 + archive_cmds_need_lc_CXX=no
23791 + else
23792 + archive_cmds_need_lc_CXX=yes
23793 + fi
23794 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
23795 + else
23796 + cat conftest.err 1>&5
23797 + fi
23798 + $rm conftest*
23799 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
23800 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
23801 + ;;
23802 + esac
23803 + fi
23804 + ;;
23805 +esac
23807 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
23808 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
23809 +library_names_spec=
23810 +libname_spec='lib$name'
23811 +soname_spec=
23812 +shrext=".so"
23813 +postinstall_cmds=
23814 +postuninstall_cmds=
23815 +finish_cmds=
23816 +finish_eval=
23817 +shlibpath_var=
23818 +shlibpath_overrides_runpath=unknown
23819 +version_type=none
23820 +dynamic_linker="$host_os ld.so"
23821 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
23822 +if test "$GCC" = yes; then
23823 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23824 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
23825 + # if the path contains ";" then we assume it to be the separator
23826 + # otherwise default to the standard path separator (i.e. ":") - it is
23827 + # assumed that no part of a normal pathname contains ";" but that should
23828 + # okay in the real world where ";" in dirpaths is itself problematic.
23829 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23830 + else
23831 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23832 + fi
23833 +else
23834 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23835 +fi
23836 +need_lib_prefix=unknown
23837 +hardcode_into_libs=no
23839 +# when you set need_version to no, make sure it does not cause -set_version
23840 +# flags to be left without arguments
23841 +need_version=unknown
23843 +case $host_os in
23844 +aix3*)
23845 + version_type=linux
23846 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23847 + shlibpath_var=LIBPATH
23849 + # AIX 3 has no versioning support, so we append a major version to the name.
23850 + soname_spec='${libname}${release}${shared_ext}$major'
23851 + ;;
23853 +aix4* | aix5*)
23854 + version_type=linux
23855 + need_lib_prefix=no
23856 + need_version=no
23857 + hardcode_into_libs=yes
23858 + if test "$host_cpu" = ia64; then
23859 + # AIX 5 supports IA64
23860 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23861 + shlibpath_var=LD_LIBRARY_PATH
23862 + else
23863 + # With GCC up to 2.95.x, collect2 would create an import file
23864 + # for dependence libraries. The import file would start with
23865 + # the line `#! .'. This would cause the generated library to
23866 + # depend on `.', always an invalid library. This was fixed in
23867 + # development snapshots of GCC prior to 3.0.
23868 + case $host_os in
23869 + aix4 | aix4.[01] | aix4.[01].*)
23870 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23871 + echo ' yes '
23872 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
23873 + :
23874 + else
23875 + can_build_shared=no
23876 + fi
23877 + ;;
23878 + esac
23879 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23880 + # soname into executable. Probably we can add versioning support to
23881 + # collect2, so additional links can be useful in future.
23882 + if test "$aix_use_runtimelinking" = yes; then
23883 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23884 + # instead of lib<name>.a to let people know that these are not
23885 + # typical AIX shared libraries.
23886 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23887 + else
23888 + # We preserve .a as extension for shared libraries through AIX4.2
23889 + # and later when we are not doing run time linking.
23890 + library_names_spec='${libname}${release}.a $libname.a'
23891 + soname_spec='${libname}${release}${shared_ext}$major'
23892 + fi
23893 + shlibpath_var=LIBPATH
23894 + fi
23895 + ;;
23897 +amigaos*)
23898 + library_names_spec='$libname.ixlibrary $libname.a'
23899 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
23900 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
23901 + ;;
23903 +beos*)
23904 + library_names_spec='${libname}${shared_ext}'
23905 + dynamic_linker="$host_os ld.so"
23906 + shlibpath_var=LIBRARY_PATH
23907 + ;;
23909 +bsdi4*)
23910 + version_type=linux
23911 + need_version=no
23912 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23913 + soname_spec='${libname}${release}${shared_ext}$major'
23914 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23915 + shlibpath_var=LD_LIBRARY_PATH
23916 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23917 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23918 + # the default ld.so.conf also contains /usr/contrib/lib and
23919 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23920 + # libtool to hard-code these into programs
23921 + ;;
23923 +cygwin* | mingw* | pw32*)
23924 + version_type=windows
23925 + shrext=".dll"
23926 + need_version=no
23927 + need_lib_prefix=no
23929 + case $GCC,$host_os in
23930 + yes,cygwin* | yes,mingw* | yes,pw32*)
23931 + library_names_spec='$libname.dll.a'
23932 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
23933 + postinstall_cmds='base_file=`basename \${file}`~
23934 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23935 + dldir=$destdir/`dirname \$dlpath`~
23936 + test -d \$dldir || mkdir -p \$dldir~
23937 + $install_prog $dir/$dlname \$dldir/$dlname'
23938 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23939 + dlpath=$dir/\$dldll~
23940 + $rm \$dlpath'
23941 + shlibpath_overrides_runpath=yes
23943 + case $host_os in
23944 + cygwin*)
23945 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23946 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23947 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23948 + ;;
23949 + mingw*)
23950 + # MinGW DLLs use traditional 'lib' prefix
23951 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23952 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23953 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
23954 + # It is most probably a Windows format PATH printed by
23955 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
23956 + # path with ; separators, and with drive letters. We can handle the
23957 + # drive letters (cygwin fileutils understands them), so leave them,
23958 + # especially as we might pass files found there to a mingw objdump,
23959 + # which wouldn't understand a cygwinified path. Ahh.
23960 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23961 + else
23962 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23963 + fi
23964 + ;;
23965 + pw32*)
23966 + # pw32 DLLs use 'pw' prefix rather than 'lib'
23967 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
23968 + ;;
23969 + esac
23970 + ;;
23972 + *)
23973 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23974 + ;;
23975 + esac
23976 + dynamic_linker='Win32 ld.exe'
23977 + # FIXME: first we should search . and the directory the executable is in
23978 + shlibpath_var=PATH
23979 + ;;
23981 +darwin* | rhapsody*)
23982 + dynamic_linker="$host_os dyld"
23983 + version_type=darwin
23984 + need_lib_prefix=no
23985 + need_version=no
23986 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23987 + soname_spec='${libname}${release}${major}$shared_ext'
23988 + shlibpath_overrides_runpath=yes
23989 + shlibpath_var=DYLD_LIBRARY_PATH
23990 + shrext='$(test .$module = .yes && echo .so || echo .dylib)'
23991 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
23992 + if test "$GCC" = yes; then
23993 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
23994 + else
23995 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
23996 + fi
23997 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23998 + ;;
24000 +dgux*)
24001 + version_type=linux
24002 + need_lib_prefix=no
24003 + need_version=no
24004 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
24005 + soname_spec='${libname}${release}${shared_ext}$major'
24006 + shlibpath_var=LD_LIBRARY_PATH
24007 + ;;
24009 +freebsd1*)
24010 + dynamic_linker=no
24011 + ;;
24013 +kfreebsd*-gnu)
24014 + version_type=linux
24015 + need_lib_prefix=no
24016 + need_version=no
24017 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24018 + soname_spec='${libname}${release}${shared_ext}$major'
24019 + shlibpath_var=LD_LIBRARY_PATH
24020 + shlibpath_overrides_runpath=no
24021 + hardcode_into_libs=yes
24022 + dynamic_linker='GNU ld.so'
24023 + ;;
24025 +freebsd*)
24026 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
24027 + version_type=freebsd-$objformat
24028 + case $version_type in
24029 + freebsd-elf*)
24030 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
24031 + need_version=no
24032 + need_lib_prefix=no
24033 + ;;
24034 + freebsd-*)
24035 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
24036 + need_version=yes
24037 + ;;
24038 + esac
24039 + shlibpath_var=LD_LIBRARY_PATH
24040 + case $host_os in
24041 + freebsd2*)
24042 + shlibpath_overrides_runpath=yes
24043 + ;;
24044 + freebsd3.01* | freebsdelf3.01*)
24045 + shlibpath_overrides_runpath=yes
24046 + hardcode_into_libs=yes
24047 + ;;
24048 + *) # from 3.2 on
24049 + shlibpath_overrides_runpath=no
24050 + hardcode_into_libs=yes
24051 + ;;
24052 + esac
24053 + ;;
24055 +gnu*)
24056 + version_type=linux
24057 + need_lib_prefix=no
24058 + need_version=no
24059 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
24060 + soname_spec='${libname}${release}${shared_ext}$major'
24061 + shlibpath_var=LD_LIBRARY_PATH
24062 + hardcode_into_libs=yes
24063 + ;;
24065 +hpux9* | hpux10* | hpux11*)
24066 + # Give a soname corresponding to the major version so that dld.sl refuses to
24067 + # link against other versions.
24068 + version_type=sunos
24069 + need_lib_prefix=no
24070 + need_version=no
24071 + case "$host_cpu" in
24072 + ia64*)
24073 + shrext='.so'
24074 + hardcode_into_libs=yes
24075 + dynamic_linker="$host_os dld.so"
24076 + shlibpath_var=LD_LIBRARY_PATH
24077 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24078 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24079 + soname_spec='${libname}${release}${shared_ext}$major'
24080 + if test "X$HPUX_IA64_MODE" = X32; then
24081 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
24082 + else
24083 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
24084 + fi
24085 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24086 + ;;
24087 + hppa*64*)
24088 + shrext='.sl'
24089 + hardcode_into_libs=yes
24090 + dynamic_linker="$host_os dld.sl"
24091 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
24092 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
24093 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24094 + soname_spec='${libname}${release}${shared_ext}$major'
24095 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
24096 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
24097 + ;;
24098 + *)
24099 + shrext='.sl'
24100 + dynamic_linker="$host_os dld.sl"
24101 + shlibpath_var=SHLIB_PATH
24102 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
24103 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24104 + soname_spec='${libname}${release}${shared_ext}$major'
24105 + ;;
24106 + esac
24107 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
24108 + postinstall_cmds='chmod 555 $lib'
24109 + ;;
24111 +irix5* | irix6* | nonstopux*)
24112 + case $host_os in
24113 + nonstopux*) version_type=nonstopux ;;
24114 + *)
24115 + if test "$lt_cv_prog_gnu_ld" = yes; then
24116 + version_type=linux
24117 + else
24118 + version_type=irix
24119 + fi ;;
24120 + esac
24121 + need_lib_prefix=no
24122 + need_version=no
24123 + soname_spec='${libname}${release}${shared_ext}$major'
24124 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
24125 + case $host_os in
24126 + irix5* | nonstopux*)
24127 + libsuff= shlibsuff=
24128 + ;;
24129 + *)
24130 + case $LD in # libtool.m4 will add one of these switches to LD
24131 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
24132 + libsuff= shlibsuff= libmagic=32-bit;;
24133 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
24134 + libsuff=32 shlibsuff=N32 libmagic=N32;;
24135 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
24136 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
24137 + *) libsuff= shlibsuff= libmagic=never-match;;
24138 + esac
24139 + ;;
24140 + esac
24141 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
24142 + shlibpath_overrides_runpath=no
24143 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
24144 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
24145 + hardcode_into_libs=yes
24146 + ;;
24148 +# No shared lib support for Linux oldld, aout, or coff.
24149 +linux*oldld* | linux*aout* | linux*coff*)
24150 + dynamic_linker=no
24151 + ;;
24153 +# This must be Linux ELF.
24154 +linux*)
24155 + version_type=linux
24156 + need_lib_prefix=no
24157 + need_version=no
24158 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24159 + soname_spec='${libname}${release}${shared_ext}$major'
24160 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
24161 + shlibpath_var=LD_LIBRARY_PATH
24162 + shlibpath_overrides_runpath=no
24163 + # This implies no fast_install, which is unacceptable.
24164 + # Some rework will be needed to allow for fast_install
24165 + # before this can be enabled.
24166 + hardcode_into_libs=yes
24168 + # /usr/X11R6/lib and /usr/local/lib are common enough...
24169 + sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
24171 + # We used to test for /lib/ld.so.1 and disable shared libraries on
24172 + # powerpc, because MkLinux only supported shared libraries with the
24173 + # GNU dynamic linker. Since this was broken with cross compilers,
24174 + # most powerpc-linux boxes support dynamic linking these days and
24175 + # people can always --disable-shared, the test was removed, and we
24176 + # assume the GNU/Linux dynamic linker is in use.
24177 + dynamic_linker='GNU/Linux ld.so'
24178 + ;;
24180 +knetbsd*-gnu)
24181 + version_type=linux
24182 + need_lib_prefix=no
24183 + need_version=no
24184 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
24185 + soname_spec='${libname}${release}${shared_ext}$major'
24186 + shlibpath_var=LD_LIBRARY_PATH
24187 + shlibpath_overrides_runpath=no
24188 + hardcode_into_libs=yes
24189 + dynamic_linker='GNU ld.so'
24190 + ;;
24192 +netbsd*)
24193 + version_type=sunos
24194 + need_lib_prefix=no
24195 + need_version=no
24196 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
24197 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24198 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24199 + dynamic_linker='NetBSD (a.out) ld.so'
24200 + else
24201 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
24202 + soname_spec='${libname}${release}${shared_ext}$major'
24203 + dynamic_linker='NetBSD ld.elf_so'
24204 + fi
24205 + shlibpath_var=LD_LIBRARY_PATH
24206 + shlibpath_overrides_runpath=yes
24207 + hardcode_into_libs=yes
24208 + ;;
24210 +newsos6)
24211 + version_type=linux
24212 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24213 + shlibpath_var=LD_LIBRARY_PATH
24214 + shlibpath_overrides_runpath=yes
24215 + ;;
24217 +nto-qnx*)
24218 + version_type=linux
24219 + need_lib_prefix=no
24220 + need_version=no
24221 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24222 + soname_spec='${libname}${release}${shared_ext}$major'
24223 + shlibpath_var=LD_LIBRARY_PATH
24224 + shlibpath_overrides_runpath=yes
24225 + ;;
24227 +openbsd*)
24228 + version_type=sunos
24229 + need_lib_prefix=no
24230 + need_version=yes
24231 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24232 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
24233 + shlibpath_var=LD_LIBRARY_PATH
24234 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
24235 + case $host_os in
24236 + openbsd2.[89] | openbsd2.[89].*)
24237 + shlibpath_overrides_runpath=no
24238 + ;;
24239 + *)
24240 + shlibpath_overrides_runpath=yes
24241 + ;;
24242 + esac
24243 + else
24244 + shlibpath_overrides_runpath=yes
24245 + fi
24246 + ;;
24248 +os2*)
24249 + libname_spec='$name'
24250 + shrext=".dll"
24251 + need_lib_prefix=no
24252 + library_names_spec='$libname${shared_ext} $libname.a'
24253 + dynamic_linker='OS/2 ld.exe'
24254 + shlibpath_var=LIBPATH
24255 + ;;
24257 +osf3* | osf4* | osf5*)
24258 + version_type=osf
24259 + need_lib_prefix=no
24260 + need_version=no
24261 + soname_spec='${libname}${release}${shared_ext}$major'
24262 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24263 + shlibpath_var=LD_LIBRARY_PATH
24264 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
24265 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
24266 + ;;
24268 +sco3.2v5*)
24269 + version_type=osf
24270 + soname_spec='${libname}${release}${shared_ext}$major'
24271 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24272 + shlibpath_var=LD_LIBRARY_PATH
24273 + ;;
24275 +solaris*)
24276 + version_type=linux
24277 + need_lib_prefix=no
24278 + need_version=no
24279 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24280 + soname_spec='${libname}${release}${shared_ext}$major'
24281 + shlibpath_var=LD_LIBRARY_PATH
24282 + shlibpath_overrides_runpath=yes
24283 + hardcode_into_libs=yes
24284 + # ldd complains unless libraries are executable
24285 + postinstall_cmds='chmod +x $lib'
24286 + ;;
24288 +sunos4*)
24289 + version_type=sunos
24290 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
24291 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
24292 + shlibpath_var=LD_LIBRARY_PATH
24293 + shlibpath_overrides_runpath=yes
24294 + if test "$with_gnu_ld" = yes; then
24295 + need_lib_prefix=no
24296 + fi
24297 + need_version=yes
24298 + ;;
24300 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
24301 + version_type=linux
24302 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24303 + soname_spec='${libname}${release}${shared_ext}$major'
24304 + shlibpath_var=LD_LIBRARY_PATH
24305 + case $host_vendor in
24306 + sni)
24307 + shlibpath_overrides_runpath=no
24308 + need_lib_prefix=no
24309 + export_dynamic_flag_spec='${wl}-Blargedynsym'
24310 + runpath_var=LD_RUN_PATH
24311 + ;;
24312 + siemens)
24313 + need_lib_prefix=no
24314 + ;;
24315 + motorola)
24316 + need_lib_prefix=no
24317 + need_version=no
24318 + shlibpath_overrides_runpath=no
24319 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
24320 + ;;
24321 + esac
24322 + ;;
24324 +sysv4*MP*)
24325 + if test -d /usr/nec ;then
24326 + version_type=linux
24327 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
24328 + soname_spec='$libname${shared_ext}.$major'
24329 + shlibpath_var=LD_LIBRARY_PATH
24330 + fi
24331 + ;;
24333 +uts4*)
24334 + version_type=linux
24335 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
24336 + soname_spec='${libname}${release}${shared_ext}$major'
24337 + shlibpath_var=LD_LIBRARY_PATH
24338 + ;;
24340 +*)
24341 + dynamic_linker=no
24342 + ;;
24343 +esac
24344 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
24345 +echo "${ECHO_T}$dynamic_linker" >&6
24346 +test "$dynamic_linker" = no && can_build_shared=no
24348 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
24349 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
24350 +hardcode_action_CXX=
24351 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
24352 + test -n "$runpath_var CXX" || \
24353 + test "X$hardcode_automatic_CXX"="Xyes" ; then
24355 + # We can hardcode non-existant directories.
24356 + if test "$hardcode_direct_CXX" != no &&
24357 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
24358 + # have to relink, otherwise we might link with an installed library
24359 + # when we should be linking with a yet-to-be-installed one
24360 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
24361 + test "$hardcode_minus_L_CXX" != no; then
24362 + # Linking always hardcodes the temporary library directory.
24363 + hardcode_action_CXX=relink
24364 + else
24365 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
24366 + hardcode_action_CXX=immediate
24367 + fi
24368 +else
24369 + # We cannot hardcode anything, or else we can only hardcode existing
24370 + # directories.
24371 + hardcode_action_CXX=unsupported
24372 +fi
24373 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
24374 +echo "${ECHO_T}$hardcode_action_CXX" >&6
24376 +if test "$hardcode_action_CXX" = relink; then
24377 + # Fast installation is not supported
24378 + enable_fast_install=no
24379 +elif test "$shlibpath_overrides_runpath" = yes ||
24380 + test "$enable_shared" = no; then
24381 + # Fast installation is not necessary
24382 + enable_fast_install=needless
24383 +fi
24385 +striplib=
24386 +old_striplib=
24387 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
24388 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
24389 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
24390 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
24391 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
24392 + echo "$as_me:$LINENO: result: yes" >&5
24393 +echo "${ECHO_T}yes" >&6
24394 +else
24395 +# FIXME - insert some real tests, host_os isn't really good enough
24396 + case $host_os in
24397 + darwin*)
24398 + if test -n "$STRIP" ; then
24399 + striplib="$STRIP -x"
24400 + echo "$as_me:$LINENO: result: yes" >&5
24401 +echo "${ECHO_T}yes" >&6
24402 + else
24403 + echo "$as_me:$LINENO: result: no" >&5
24404 +echo "${ECHO_T}no" >&6
24405 +fi
24406 + ;;
24407 + *)
24408 + echo "$as_me:$LINENO: result: no" >&5
24409 +echo "${ECHO_T}no" >&6
24410 + ;;
24411 + esac
24412 +fi
24414 +if test "x$enable_dlopen" != xyes; then
24415 + enable_dlopen=unknown
24416 + enable_dlopen_self=unknown
24417 + enable_dlopen_self_static=unknown
24418 +else
24419 + lt_cv_dlopen=no
24420 + lt_cv_dlopen_libs=
24422 + case $host_os in
24423 + beos*)
24424 + lt_cv_dlopen="load_add_on"
24425 + lt_cv_dlopen_libs=
24426 + lt_cv_dlopen_self=yes
24427 + ;;
24429 + mingw* | pw32*)
24430 + lt_cv_dlopen="LoadLibrary"
24431 + lt_cv_dlopen_libs=
24432 + ;;
24434 + cygwin*)
24435 + lt_cv_dlopen="dlopen"
24436 + lt_cv_dlopen_libs=
24437 + ;;
24439 + darwin*)
24440 + # if libdl is installed we need to link against it
24441 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24442 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24443 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24444 + echo $ECHO_N "(cached) $ECHO_C" >&6
24445 +else
24446 + ac_check_lib_save_LIBS=$LIBS
24447 +LIBS="-ldl $LIBS"
24448 +cat >conftest.$ac_ext <<_ACEOF
24449 +/* confdefs.h. */
24450 +_ACEOF
24451 +cat confdefs.h >>conftest.$ac_ext
24452 +cat >>conftest.$ac_ext <<_ACEOF
24453 +/* end confdefs.h. */
24455 +/* Override any gcc2 internal prototype to avoid an error. */
24456 +#ifdef __cplusplus
24457 +extern "C"
24458 +#endif
24459 +/* We use char because int might match the return type of a gcc2
24460 + builtin and then its argument prototype would still apply. */
24461 +char dlopen ();
24462 +int
24463 +main ()
24464 +{
24465 +dlopen ();
24466 + ;
24467 + return 0;
24468 +}
24469 +_ACEOF
24470 +rm -f conftest.$ac_objext conftest$ac_exeext
24471 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24472 + (eval $ac_link) 2>conftest.er1
24473 + ac_status=$?
24474 + grep -v '^ *+' conftest.er1 >conftest.err
24475 + rm -f conftest.er1
24476 + cat conftest.err >&5
24477 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24478 + (exit $ac_status); } &&
24479 + { ac_try='test -z "$ac_cxx_werror_flag"
24480 + || test ! -s conftest.err'
24481 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24482 + (eval $ac_try) 2>&5
24483 + ac_status=$?
24484 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24485 + (exit $ac_status); }; } &&
24486 + { ac_try='test -s conftest$ac_exeext'
24487 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 + (eval $ac_try) 2>&5
24489 + ac_status=$?
24490 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 + (exit $ac_status); }; }; then
24492 + ac_cv_lib_dl_dlopen=yes
24493 +else
24494 + echo "$as_me: failed program was:" >&5
24495 +sed 's/^/| /' conftest.$ac_ext >&5
24497 +ac_cv_lib_dl_dlopen=no
24498 +fi
24499 +rm -f conftest.err conftest.$ac_objext \
24500 + conftest$ac_exeext conftest.$ac_ext
24501 +LIBS=$ac_check_lib_save_LIBS
24502 +fi
24503 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24504 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24505 +if test $ac_cv_lib_dl_dlopen = yes; then
24506 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24507 +else
24509 + lt_cv_dlopen="dyld"
24510 + lt_cv_dlopen_libs=
24511 + lt_cv_dlopen_self=yes
24513 +fi
24515 + ;;
24517 + *)
24518 + echo "$as_me:$LINENO: checking for shl_load" >&5
24519 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
24520 +if test "${ac_cv_func_shl_load+set}" = set; then
24521 + echo $ECHO_N "(cached) $ECHO_C" >&6
24522 +else
24523 + cat >conftest.$ac_ext <<_ACEOF
24524 +/* confdefs.h. */
24525 +_ACEOF
24526 +cat confdefs.h >>conftest.$ac_ext
24527 +cat >>conftest.$ac_ext <<_ACEOF
24528 +/* end confdefs.h. */
24529 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
24530 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
24531 +#define shl_load innocuous_shl_load
24533 +/* System header to define __stub macros and hopefully few prototypes,
24534 + which can conflict with char shl_load (); below.
24535 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24536 + <limits.h> exists even on freestanding compilers. */
24538 +#ifdef __STDC__
24539 +# include <limits.h>
24540 +#else
24541 +# include <assert.h>
24542 +#endif
24544 +#undef shl_load
24546 +/* Override any gcc2 internal prototype to avoid an error. */
24547 +#ifdef __cplusplus
24548 +extern "C"
24549 +{
24550 +#endif
24551 +/* We use char because int might match the return type of a gcc2
24552 + builtin and then its argument prototype would still apply. */
24553 +char shl_load ();
24554 +/* The GNU C library defines this for functions which it implements
24555 + to always fail with ENOSYS. Some functions are actually named
24556 + something starting with __ and the normal name is an alias. */
24557 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
24558 +choke me
24559 +#else
24560 +char (*f) () = shl_load;
24561 +#endif
24562 +#ifdef __cplusplus
24563 +}
24564 +#endif
24566 +int
24567 +main ()
24568 +{
24569 +return f != shl_load;
24570 + ;
24571 + return 0;
24572 +}
24573 +_ACEOF
24574 +rm -f conftest.$ac_objext conftest$ac_exeext
24575 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576 + (eval $ac_link) 2>conftest.er1
24577 + ac_status=$?
24578 + grep -v '^ *+' conftest.er1 >conftest.err
24579 + rm -f conftest.er1
24580 + cat conftest.err >&5
24581 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 + (exit $ac_status); } &&
24583 + { ac_try='test -z "$ac_cxx_werror_flag"
24584 + || test ! -s conftest.err'
24585 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24586 + (eval $ac_try) 2>&5
24587 + ac_status=$?
24588 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24589 + (exit $ac_status); }; } &&
24590 + { ac_try='test -s conftest$ac_exeext'
24591 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24592 + (eval $ac_try) 2>&5
24593 + ac_status=$?
24594 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 + (exit $ac_status); }; }; then
24596 + ac_cv_func_shl_load=yes
24597 +else
24598 + echo "$as_me: failed program was:" >&5
24599 +sed 's/^/| /' conftest.$ac_ext >&5
24601 +ac_cv_func_shl_load=no
24602 +fi
24603 +rm -f conftest.err conftest.$ac_objext \
24604 + conftest$ac_exeext conftest.$ac_ext
24605 +fi
24606 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
24607 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
24608 +if test $ac_cv_func_shl_load = yes; then
24609 + lt_cv_dlopen="shl_load"
24610 +else
24611 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
24612 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
24613 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
24614 + echo $ECHO_N "(cached) $ECHO_C" >&6
24615 +else
24616 + ac_check_lib_save_LIBS=$LIBS
24617 +LIBS="-ldld $LIBS"
24618 +cat >conftest.$ac_ext <<_ACEOF
24619 +/* confdefs.h. */
24620 +_ACEOF
24621 +cat confdefs.h >>conftest.$ac_ext
24622 +cat >>conftest.$ac_ext <<_ACEOF
24623 +/* end confdefs.h. */
24625 +/* Override any gcc2 internal prototype to avoid an error. */
24626 +#ifdef __cplusplus
24627 +extern "C"
24628 +#endif
24629 +/* We use char because int might match the return type of a gcc2
24630 + builtin and then its argument prototype would still apply. */
24631 +char shl_load ();
24632 +int
24633 +main ()
24634 +{
24635 +shl_load ();
24636 + ;
24637 + return 0;
24638 +}
24639 +_ACEOF
24640 +rm -f conftest.$ac_objext conftest$ac_exeext
24641 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24642 + (eval $ac_link) 2>conftest.er1
24643 + ac_status=$?
24644 + grep -v '^ *+' conftest.er1 >conftest.err
24645 + rm -f conftest.er1
24646 + cat conftest.err >&5
24647 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24648 + (exit $ac_status); } &&
24649 + { ac_try='test -z "$ac_cxx_werror_flag"
24650 + || test ! -s conftest.err'
24651 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24652 + (eval $ac_try) 2>&5
24653 + ac_status=$?
24654 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655 + (exit $ac_status); }; } &&
24656 + { ac_try='test -s conftest$ac_exeext'
24657 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 + (eval $ac_try) 2>&5
24659 + ac_status=$?
24660 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 + (exit $ac_status); }; }; then
24662 + ac_cv_lib_dld_shl_load=yes
24663 +else
24664 + echo "$as_me: failed program was:" >&5
24665 +sed 's/^/| /' conftest.$ac_ext >&5
24667 +ac_cv_lib_dld_shl_load=no
24668 +fi
24669 +rm -f conftest.err conftest.$ac_objext \
24670 + conftest$ac_exeext conftest.$ac_ext
24671 +LIBS=$ac_check_lib_save_LIBS
24672 +fi
24673 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
24674 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
24675 +if test $ac_cv_lib_dld_shl_load = yes; then
24676 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
24677 +else
24678 + echo "$as_me:$LINENO: checking for dlopen" >&5
24679 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
24680 +if test "${ac_cv_func_dlopen+set}" = set; then
24681 + echo $ECHO_N "(cached) $ECHO_C" >&6
24682 +else
24683 + cat >conftest.$ac_ext <<_ACEOF
24684 +/* confdefs.h. */
24685 +_ACEOF
24686 +cat confdefs.h >>conftest.$ac_ext
24687 +cat >>conftest.$ac_ext <<_ACEOF
24688 +/* end confdefs.h. */
24689 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
24690 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
24691 +#define dlopen innocuous_dlopen
24693 +/* System header to define __stub macros and hopefully few prototypes,
24694 + which can conflict with char dlopen (); below.
24695 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24696 + <limits.h> exists even on freestanding compilers. */
24698 +#ifdef __STDC__
24699 +# include <limits.h>
24700 +#else
24701 +# include <assert.h>
24702 +#endif
24704 +#undef dlopen
24706 +/* Override any gcc2 internal prototype to avoid an error. */
24707 +#ifdef __cplusplus
24708 +extern "C"
24709 +{
24710 +#endif
24711 +/* We use char because int might match the return type of a gcc2
24712 + builtin and then its argument prototype would still apply. */
24713 +char dlopen ();
24714 +/* The GNU C library defines this for functions which it implements
24715 + to always fail with ENOSYS. Some functions are actually named
24716 + something starting with __ and the normal name is an alias. */
24717 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
24718 +choke me
24719 +#else
24720 +char (*f) () = dlopen;
24721 +#endif
24722 +#ifdef __cplusplus
24723 +}
24724 +#endif
24726 +int
24727 +main ()
24728 +{
24729 +return f != dlopen;
24730 + ;
24731 + return 0;
24732 +}
24733 +_ACEOF
24734 +rm -f conftest.$ac_objext conftest$ac_exeext
24735 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24736 + (eval $ac_link) 2>conftest.er1
24737 + ac_status=$?
24738 + grep -v '^ *+' conftest.er1 >conftest.err
24739 + rm -f conftest.er1
24740 + cat conftest.err >&5
24741 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 + (exit $ac_status); } &&
24743 + { ac_try='test -z "$ac_cxx_werror_flag"
24744 + || test ! -s conftest.err'
24745 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 + (eval $ac_try) 2>&5
24747 + ac_status=$?
24748 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 + (exit $ac_status); }; } &&
24750 + { ac_try='test -s conftest$ac_exeext'
24751 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24752 + (eval $ac_try) 2>&5
24753 + ac_status=$?
24754 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 + (exit $ac_status); }; }; then
24756 + ac_cv_func_dlopen=yes
24757 +else
24758 + echo "$as_me: failed program was:" >&5
24759 +sed 's/^/| /' conftest.$ac_ext >&5
24761 +ac_cv_func_dlopen=no
24762 +fi
24763 +rm -f conftest.err conftest.$ac_objext \
24764 + conftest$ac_exeext conftest.$ac_ext
24765 +fi
24766 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
24767 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
24768 +if test $ac_cv_func_dlopen = yes; then
24769 + lt_cv_dlopen="dlopen"
24770 +else
24771 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24772 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24773 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24774 + echo $ECHO_N "(cached) $ECHO_C" >&6
24775 +else
24776 + ac_check_lib_save_LIBS=$LIBS
24777 +LIBS="-ldl $LIBS"
24778 +cat >conftest.$ac_ext <<_ACEOF
24779 +/* confdefs.h. */
24780 +_ACEOF
24781 +cat confdefs.h >>conftest.$ac_ext
24782 +cat >>conftest.$ac_ext <<_ACEOF
24783 +/* end confdefs.h. */
24785 +/* Override any gcc2 internal prototype to avoid an error. */
24786 +#ifdef __cplusplus
24787 +extern "C"
24788 +#endif
24789 +/* We use char because int might match the return type of a gcc2
24790 + builtin and then its argument prototype would still apply. */
24791 +char dlopen ();
24792 +int
24793 +main ()
24794 +{
24795 +dlopen ();
24796 + ;
24797 + return 0;
24798 +}
24799 +_ACEOF
24800 +rm -f conftest.$ac_objext conftest$ac_exeext
24801 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24802 + (eval $ac_link) 2>conftest.er1
24803 + ac_status=$?
24804 + grep -v '^ *+' conftest.er1 >conftest.err
24805 + rm -f conftest.er1
24806 + cat conftest.err >&5
24807 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 + (exit $ac_status); } &&
24809 + { ac_try='test -z "$ac_cxx_werror_flag"
24810 + || test ! -s conftest.err'
24811 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24812 + (eval $ac_try) 2>&5
24813 + ac_status=$?
24814 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 + (exit $ac_status); }; } &&
24816 + { ac_try='test -s conftest$ac_exeext'
24817 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24818 + (eval $ac_try) 2>&5
24819 + ac_status=$?
24820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24821 + (exit $ac_status); }; }; then
24822 + ac_cv_lib_dl_dlopen=yes
24823 +else
24824 + echo "$as_me: failed program was:" >&5
24825 +sed 's/^/| /' conftest.$ac_ext >&5
24827 +ac_cv_lib_dl_dlopen=no
24828 +fi
24829 +rm -f conftest.err conftest.$ac_objext \
24830 + conftest$ac_exeext conftest.$ac_ext
24831 +LIBS=$ac_check_lib_save_LIBS
24832 +fi
24833 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24834 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24835 +if test $ac_cv_lib_dl_dlopen = yes; then
24836 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
24837 +else
24838 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
24839 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
24840 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
24841 + echo $ECHO_N "(cached) $ECHO_C" >&6
24842 +else
24843 + ac_check_lib_save_LIBS=$LIBS
24844 +LIBS="-lsvld $LIBS"
24845 +cat >conftest.$ac_ext <<_ACEOF
24846 +/* confdefs.h. */
24847 +_ACEOF
24848 +cat confdefs.h >>conftest.$ac_ext
24849 +cat >>conftest.$ac_ext <<_ACEOF
24850 +/* end confdefs.h. */
24852 +/* Override any gcc2 internal prototype to avoid an error. */
24853 +#ifdef __cplusplus
24854 +extern "C"
24855 +#endif
24856 +/* We use char because int might match the return type of a gcc2
24857 + builtin and then its argument prototype would still apply. */
24858 +char dlopen ();
24859 +int
24860 +main ()
24861 +{
24862 +dlopen ();
24863 + ;
24864 + return 0;
24865 +}
24866 +_ACEOF
24867 +rm -f conftest.$ac_objext conftest$ac_exeext
24868 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24869 + (eval $ac_link) 2>conftest.er1
24870 + ac_status=$?
24871 + grep -v '^ *+' conftest.er1 >conftest.err
24872 + rm -f conftest.er1
24873 + cat conftest.err >&5
24874 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 + (exit $ac_status); } &&
24876 + { ac_try='test -z "$ac_cxx_werror_flag"
24877 + || test ! -s conftest.err'
24878 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24879 + (eval $ac_try) 2>&5
24880 + ac_status=$?
24881 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24882 + (exit $ac_status); }; } &&
24883 + { ac_try='test -s conftest$ac_exeext'
24884 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885 + (eval $ac_try) 2>&5
24886 + ac_status=$?
24887 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888 + (exit $ac_status); }; }; then
24889 + ac_cv_lib_svld_dlopen=yes
24890 +else
24891 + echo "$as_me: failed program was:" >&5
24892 +sed 's/^/| /' conftest.$ac_ext >&5
24894 +ac_cv_lib_svld_dlopen=no
24895 +fi
24896 +rm -f conftest.err conftest.$ac_objext \
24897 + conftest$ac_exeext conftest.$ac_ext
24898 +LIBS=$ac_check_lib_save_LIBS
24899 +fi
24900 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
24901 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
24902 +if test $ac_cv_lib_svld_dlopen = yes; then
24903 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
24904 +else
24905 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
24906 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
24907 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
24908 + echo $ECHO_N "(cached) $ECHO_C" >&6
24909 +else
24910 + ac_check_lib_save_LIBS=$LIBS
24911 +LIBS="-ldld $LIBS"
24912 +cat >conftest.$ac_ext <<_ACEOF
24913 +/* confdefs.h. */
24914 +_ACEOF
24915 +cat confdefs.h >>conftest.$ac_ext
24916 +cat >>conftest.$ac_ext <<_ACEOF
24917 +/* end confdefs.h. */
24919 +/* Override any gcc2 internal prototype to avoid an error. */
24920 +#ifdef __cplusplus
24921 +extern "C"
24922 +#endif
24923 +/* We use char because int might match the return type of a gcc2
24924 + builtin and then its argument prototype would still apply. */
24925 +char dld_link ();
24926 +int
24927 +main ()
24928 +{
24929 +dld_link ();
24930 + ;
24931 + return 0;
24932 +}
24933 +_ACEOF
24934 +rm -f conftest.$ac_objext conftest$ac_exeext
24935 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24936 + (eval $ac_link) 2>conftest.er1
24937 + ac_status=$?
24938 + grep -v '^ *+' conftest.er1 >conftest.err
24939 + rm -f conftest.er1
24940 + cat conftest.err >&5
24941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 + (exit $ac_status); } &&
24943 + { ac_try='test -z "$ac_cxx_werror_flag"
24944 + || test ! -s conftest.err'
24945 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946 + (eval $ac_try) 2>&5
24947 + ac_status=$?
24948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949 + (exit $ac_status); }; } &&
24950 + { ac_try='test -s conftest$ac_exeext'
24951 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952 + (eval $ac_try) 2>&5
24953 + ac_status=$?
24954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955 + (exit $ac_status); }; }; then
24956 + ac_cv_lib_dld_dld_link=yes
24957 +else
24958 + echo "$as_me: failed program was:" >&5
24959 +sed 's/^/| /' conftest.$ac_ext >&5
24961 +ac_cv_lib_dld_dld_link=no
24962 +fi
24963 +rm -f conftest.err conftest.$ac_objext \
24964 + conftest$ac_exeext conftest.$ac_ext
24965 +LIBS=$ac_check_lib_save_LIBS
24966 +fi
24967 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
24968 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
24969 +if test $ac_cv_lib_dld_dld_link = yes; then
24970 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
24971 +fi
24974 +fi
24977 +fi
24980 +fi
24983 +fi
24986 +fi
24988 + ;;
24989 + esac
24991 + if test "x$lt_cv_dlopen" != xno; then
24992 + enable_dlopen=yes
24993 + else
24994 + enable_dlopen=no
24995 + fi
24997 + case $lt_cv_dlopen in
24998 + dlopen)
24999 + save_CPPFLAGS="$CPPFLAGS"
25000 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
25002 + save_LDFLAGS="$LDFLAGS"
25003 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
25005 + save_LIBS="$LIBS"
25006 + LIBS="$lt_cv_dlopen_libs $LIBS"
25008 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
25009 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
25010 +if test "${lt_cv_dlopen_self+set}" = set; then
25011 + echo $ECHO_N "(cached) $ECHO_C" >&6
25012 +else
25013 + if test "$cross_compiling" = yes; then :
25014 + lt_cv_dlopen_self=cross
25015 +else
25016 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25017 + lt_status=$lt_dlunknown
25018 + cat > conftest.$ac_ext <<EOF
25019 +#line 12424 "configure"
25020 +#include "confdefs.h"
25022 +#if HAVE_DLFCN_H
25023 +#include <dlfcn.h>
25024 +#endif
25026 +#include <stdio.h>
25028 +#ifdef RTLD_GLOBAL
25029 +# define LT_DLGLOBAL RTLD_GLOBAL
25030 +#else
25031 +# ifdef DL_GLOBAL
25032 +# define LT_DLGLOBAL DL_GLOBAL
25033 +# else
25034 +# define LT_DLGLOBAL 0
25035 +# endif
25036 +#endif
25038 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25039 + find out it does not work in some platform. */
25040 +#ifndef LT_DLLAZY_OR_NOW
25041 +# ifdef RTLD_LAZY
25042 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
25043 +# else
25044 +# ifdef DL_LAZY
25045 +# define LT_DLLAZY_OR_NOW DL_LAZY
25046 +# else
25047 +# ifdef RTLD_NOW
25048 +# define LT_DLLAZY_OR_NOW RTLD_NOW
25049 +# else
25050 +# ifdef DL_NOW
25051 +# define LT_DLLAZY_OR_NOW DL_NOW
25052 +# else
25053 +# define LT_DLLAZY_OR_NOW 0
25054 +# endif
25055 +# endif
25056 +# endif
25057 +# endif
25058 +#endif
25060 +#ifdef __cplusplus
25061 +extern "C" void exit (int);
25062 +#endif
25064 +void fnord() { int i=42;}
25065 +int main ()
25066 +{
25067 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25068 + int status = $lt_dlunknown;
25070 + if (self)
25071 + {
25072 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
25073 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25074 + /* dlclose (self); */
25075 + }
25077 + exit (status);
25078 +}
25079 +EOF
25080 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25081 + (eval $ac_link) 2>&5
25082 + ac_status=$?
25083 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25084 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25085 + (./conftest; exit; ) 2>/dev/null
25086 + lt_status=$?
25087 + case x$lt_status in
25088 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
25089 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
25090 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
25091 + esac
25092 + else :
25093 + # compilation failed
25094 + lt_cv_dlopen_self=no
25095 + fi
25096 +fi
25097 +rm -fr conftest*
25100 +fi
25101 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
25102 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
25104 + if test "x$lt_cv_dlopen_self" = xyes; then
25105 + LDFLAGS="$LDFLAGS $link_static_flag"
25106 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
25107 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
25108 +if test "${lt_cv_dlopen_self_static+set}" = set; then
25109 + echo $ECHO_N "(cached) $ECHO_C" >&6
25110 +else
25111 + if test "$cross_compiling" = yes; then :
25112 + lt_cv_dlopen_self_static=cross
25113 +else
25114 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
25115 + lt_status=$lt_dlunknown
25116 + cat > conftest.$ac_ext <<EOF
25117 +#line 12522 "configure"
25118 +#include "confdefs.h"
25120 +#if HAVE_DLFCN_H
25121 +#include <dlfcn.h>
25122 +#endif
25124 +#include <stdio.h>
25126 +#ifdef RTLD_GLOBAL
25127 +# define LT_DLGLOBAL RTLD_GLOBAL
25128 +#else
25129 +# ifdef DL_GLOBAL
25130 +# define LT_DLGLOBAL DL_GLOBAL
25131 +# else
25132 +# define LT_DLGLOBAL 0
25133 +# endif
25134 +#endif
25136 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
25137 + find out it does not work in some platform. */
25138 +#ifndef LT_DLLAZY_OR_NOW
25139 +# ifdef RTLD_LAZY
25140 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
25141 +# else
25142 +# ifdef DL_LAZY
25143 +# define LT_DLLAZY_OR_NOW DL_LAZY
25144 +# else
25145 +# ifdef RTLD_NOW
25146 +# define LT_DLLAZY_OR_NOW RTLD_NOW
25147 +# else
25148 +# ifdef DL_NOW
25149 +# define LT_DLLAZY_OR_NOW DL_NOW
25150 +# else
25151 +# define LT_DLLAZY_OR_NOW 0
25152 +# endif
25153 +# endif
25154 +# endif
25155 +# endif
25156 +#endif
25158 +#ifdef __cplusplus
25159 +extern "C" void exit (int);
25160 +#endif
25162 +void fnord() { int i=42;}
25163 +int main ()
25164 +{
25165 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
25166 + int status = $lt_dlunknown;
25168 + if (self)
25169 + {
25170 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
25171 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
25172 + /* dlclose (self); */
25173 + }
25175 + exit (status);
25176 +}
25177 +EOF
25178 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25179 + (eval $ac_link) 2>&5
25180 + ac_status=$?
25181 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
25183 + (./conftest; exit; ) 2>/dev/null
25184 + lt_status=$?
25185 + case x$lt_status in
25186 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
25187 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
25188 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
25189 + esac
25190 + else :
25191 + # compilation failed
25192 + lt_cv_dlopen_self_static=no
25193 + fi
25194 +fi
25195 +rm -fr conftest*
25198 +fi
25199 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
25200 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
25201 + fi
25203 + CPPFLAGS="$save_CPPFLAGS"
25204 + LDFLAGS="$save_LDFLAGS"
25205 + LIBS="$save_LIBS"
25206 + ;;
25207 + esac
25209 + case $lt_cv_dlopen_self in
25210 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
25211 + *) enable_dlopen_self=unknown ;;
25212 + esac
25214 + case $lt_cv_dlopen_self_static in
25215 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
25216 + *) enable_dlopen_self_static=unknown ;;
25217 + esac
25218 +fi
25221 +# The else clause should only fire when bootstrapping the
25222 +# libtool distribution, otherwise you forgot to ship ltmain.sh
25223 +# with your package, and you will get complaints that there are
25224 +# no rules to generate ltmain.sh.
25225 +if test -f "$ltmain"; then
25226 + # See if we are running on zsh, and set the options which allow our commands through
25227 + # without removal of \ escapes.
25228 + if test -n "${ZSH_VERSION+set}" ; then
25229 + setopt NO_GLOB_SUBST
25230 + fi
25231 + # Now quote all the things that may contain metacharacters while being
25232 + # careful not to overquote the AC_SUBSTed values. We take copies of the
25233 + # variables and quote the copies for generation of the libtool script.
25234 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
25235 + SED SHELL STRIP \
25236 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
25237 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
25238 + deplibs_check_method reload_flag reload_cmds need_locks \
25239 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
25240 + lt_cv_sys_global_symbol_to_c_name_address \
25241 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
25242 + old_postinstall_cmds old_postuninstall_cmds \
25243 + compiler_CXX \
25244 + CC_CXX \
25245 + LD_CXX \
25246 + lt_prog_compiler_wl_CXX \
25247 + lt_prog_compiler_pic_CXX \
25248 + lt_prog_compiler_static_CXX \
25249 + lt_prog_compiler_no_builtin_flag_CXX \
25250 + export_dynamic_flag_spec_CXX \
25251 + thread_safe_flag_spec_CXX \
25252 + whole_archive_flag_spec_CXX \
25253 + enable_shared_with_static_runtimes_CXX \
25254 + old_archive_cmds_CXX \
25255 + old_archive_from_new_cmds_CXX \
25256 + predep_objects_CXX \
25257 + postdep_objects_CXX \
25258 + predeps_CXX \
25259 + postdeps_CXX \
25260 + compiler_lib_search_path_CXX \
25261 + archive_cmds_CXX \
25262 + archive_expsym_cmds_CXX \
25263 + postinstall_cmds_CXX \
25264 + postuninstall_cmds_CXX \
25265 + old_archive_from_expsyms_cmds_CXX \
25266 + allow_undefined_flag_CXX \
25267 + no_undefined_flag_CXX \
25268 + export_symbols_cmds_CXX \
25269 + hardcode_libdir_flag_spec_CXX \
25270 + hardcode_libdir_flag_spec_ld_CXX \
25271 + hardcode_libdir_separator_CXX \
25272 + hardcode_automatic_CXX \
25273 + module_cmds_CXX \
25274 + module_expsym_cmds_CXX \
25275 + lt_cv_prog_compiler_c_o_CXX \
25276 + exclude_expsyms_CXX \
25277 + include_expsyms_CXX; do
25279 + case $var in
25280 + old_archive_cmds_CXX | \
25281 + old_archive_from_new_cmds_CXX | \
25282 + archive_cmds_CXX | \
25283 + archive_expsym_cmds_CXX | \
25284 + module_cmds_CXX | \
25285 + module_expsym_cmds_CXX | \
25286 + old_archive_from_expsyms_cmds_CXX | \
25287 + export_symbols_cmds_CXX | \
25288 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
25289 + postinstall_cmds | postuninstall_cmds | \
25290 + old_postinstall_cmds | old_postuninstall_cmds | \
25291 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
25292 + # Double-quote double-evaled strings.
25293 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
25294 + ;;
25295 + *)
25296 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
25297 + ;;
25298 + esac
25299 + done
25301 + case $lt_echo in
25302 + *'\$0 --fallback-echo"')
25303 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
25304 + ;;
25305 + esac
25307 +cfgfile="$ofile"
25309 + cat <<__EOF__ >> "$cfgfile"
25310 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
25312 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25314 +# Shell to use when invoking shell scripts.
25315 +SHELL=$lt_SHELL
25317 +# Whether or not to build shared libraries.
25318 +build_libtool_libs=$enable_shared
25320 +# Whether or not to build static libraries.
25321 +build_old_libs=$enable_static
25323 +# Whether or not to add -lc for building shared libraries.
25324 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
25326 +# Whether or not to disallow shared libs when runtime libs are static
25327 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25329 +# Whether or not to optimize for fast installation.
25330 +fast_install=$enable_fast_install
25332 +# The host system.
25333 +host_alias=$host_alias
25334 +host=$host
25336 +# An echo program that does not interpret backslashes.
25337 +echo=$lt_echo
25339 +# The archiver.
25340 +AR=$lt_AR
25341 +AR_FLAGS=$lt_AR_FLAGS
25343 +# A C compiler.
25344 +LTCC=$lt_LTCC
25346 +# A language-specific compiler.
25347 +CC=$lt_compiler_CXX
25349 +# Is the compiler the GNU C compiler?
25350 +with_gcc=$GCC_CXX
25352 +# An ERE matcher.
25353 +EGREP=$lt_EGREP
25355 +# The linker used to build libraries.
25356 +LD=$lt_LD_CXX
25358 +# Whether we need hard or soft links.
25359 +LN_S=$lt_LN_S
25361 +# A BSD-compatible nm program.
25362 +NM=$lt_NM
25364 +# A symbol stripping program
25365 +STRIP=$lt_STRIP
25367 +# Used to examine libraries when file_magic_cmd begins "file"
25368 +MAGIC_CMD=$MAGIC_CMD
25370 +# Used on cygwin: DLL creation program.
25371 +DLLTOOL="$DLLTOOL"
25373 +# Used on cygwin: object dumper.
25374 +OBJDUMP="$OBJDUMP"
25376 +# Used on cygwin: assembler.
25377 +AS="$AS"
25379 +# The name of the directory that contains temporary libtool files.
25380 +objdir=$objdir
25382 +# How to create reloadable object files.
25383 +reload_flag=$lt_reload_flag
25384 +reload_cmds=$lt_reload_cmds
25386 +# How to pass a linker flag through the compiler.
25387 +wl=$lt_lt_prog_compiler_wl_CXX
25389 +# Object file suffix (normally "o").
25390 +objext="$ac_objext"
25392 +# Old archive suffix (normally "a").
25393 +libext="$libext"
25395 +# Shared library suffix (normally ".so").
25396 +shrext='$shrext'
25398 +# Executable file suffix (normally "").
25399 +exeext="$exeext"
25401 +# Additional compiler flags for building library objects.
25402 +pic_flag=$lt_lt_prog_compiler_pic_CXX
25403 +pic_mode=$pic_mode
25405 +# What is the maximum length of a command?
25406 +max_cmd_len=$lt_cv_sys_max_cmd_len
25408 +# Does compiler simultaneously support -c and -o options?
25409 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25411 +# Must we lock files when doing compilation ?
25412 +need_locks=$lt_need_locks
25414 +# Do we need the lib prefix for modules?
25415 +need_lib_prefix=$need_lib_prefix
25417 +# Do we need a version for libraries?
25418 +need_version=$need_version
25420 +# Whether dlopen is supported.
25421 +dlopen_support=$enable_dlopen
25423 +# Whether dlopen of programs is supported.
25424 +dlopen_self=$enable_dlopen_self
25426 +# Whether dlopen of statically linked programs is supported.
25427 +dlopen_self_static=$enable_dlopen_self_static
25429 +# Compiler flag to prevent dynamic linking.
25430 +link_static_flag=$lt_lt_prog_compiler_static_CXX
25432 +# Compiler flag to turn off builtin functions.
25433 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25435 +# Compiler flag to allow reflexive dlopens.
25436 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25438 +# Compiler flag to generate shared objects directly from archives.
25439 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25441 +# Compiler flag to generate thread-safe objects.
25442 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
25444 +# Library versioning type.
25445 +version_type=$version_type
25447 +# Format of library name prefix.
25448 +libname_spec=$lt_libname_spec
25450 +# List of archive names. First name is the real one, the rest are links.
25451 +# The last name is the one that the linker finds with -lNAME.
25452 +library_names_spec=$lt_library_names_spec
25454 +# The coded name of the library, if different from the real name.
25455 +soname_spec=$lt_soname_spec
25457 +# Commands used to build and install an old-style archive.
25458 +RANLIB=$lt_RANLIB
25459 +old_archive_cmds=$lt_old_archive_cmds_CXX
25460 +old_postinstall_cmds=$lt_old_postinstall_cmds
25461 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
25463 +# Create an old-style archive from a shared archive.
25464 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25466 +# Create a temporary old-style archive to link instead of a shared archive.
25467 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25469 +# Commands used to build and install a shared archive.
25470 +archive_cmds=$lt_archive_cmds_CXX
25471 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25472 +postinstall_cmds=$lt_postinstall_cmds
25473 +postuninstall_cmds=$lt_postuninstall_cmds
25475 +# Commands used to build a loadable module (assumed same as above if empty)
25476 +module_cmds=$lt_module_cmds_CXX
25477 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
25479 +# Commands to strip libraries.
25480 +old_striplib=$lt_old_striplib
25481 +striplib=$lt_striplib
25483 +# Dependencies to place before the objects being linked to create a
25484 +# shared library.
25485 +predep_objects=$lt_predep_objects_CXX
25487 +# Dependencies to place after the objects being linked to create a
25488 +# shared library.
25489 +postdep_objects=$lt_postdep_objects_CXX
25491 +# Dependencies to place before the objects being linked to create a
25492 +# shared library.
25493 +predeps=$lt_predeps_CXX
25495 +# Dependencies to place after the objects being linked to create a
25496 +# shared library.
25497 +postdeps=$lt_postdeps_CXX
25499 +# The library search path used internally by the compiler when linking
25500 +# a shared library.
25501 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25503 +# Method to check whether dependent libraries are shared objects.
25504 +deplibs_check_method=$lt_deplibs_check_method
25506 +# Command to use when deplibs_check_method == file_magic.
25507 +file_magic_cmd=$lt_file_magic_cmd
25509 +# Flag that allows shared libraries with undefined symbols to be built.
25510 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
25512 +# Flag that forces no undefined symbols.
25513 +no_undefined_flag=$lt_no_undefined_flag_CXX
25515 +# Commands used to finish a libtool library installation in a directory.
25516 +finish_cmds=$lt_finish_cmds
25518 +# Same as above, but a single script fragment to be evaled but not shown.
25519 +finish_eval=$lt_finish_eval
25521 +# Take the output of nm and produce a listing of raw symbols and C names.
25522 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25524 +# Transform the output of nm in a proper C declaration
25525 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25527 +# Transform the output of nm in a C name address pair
25528 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25530 +# This is the shared library runtime path variable.
25531 +runpath_var=$runpath_var
25533 +# This is the shared library path variable.
25534 +shlibpath_var=$shlibpath_var
25536 +# Is shlibpath searched before the hard-coded library search path?
25537 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25539 +# How to hardcode a shared library path into an executable.
25540 +hardcode_action=$hardcode_action_CXX
25542 +# Whether we should hardcode library paths into libraries.
25543 +hardcode_into_libs=$hardcode_into_libs
25545 +# Flag to hardcode \$libdir into a binary during linking.
25546 +# This must work even if \$libdir does not exist.
25547 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25549 +# If ld is used when linking, flag to hardcode \$libdir into
25550 +# a binary during linking. This must work even if \$libdir does
25551 +# not exist.
25552 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25554 +# Whether we need a single -rpath flag with a separated argument.
25555 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25557 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
25558 +# resulting binary.
25559 +hardcode_direct=$hardcode_direct_CXX
25561 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
25562 +# resulting binary.
25563 +hardcode_minus_L=$hardcode_minus_L_CXX
25565 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
25566 +# the resulting binary.
25567 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25569 +# Set to yes if building a shared library automatically hardcodes DIR into the library
25570 +# and all subsequent libraries and executables linked against it.
25571 +hardcode_automatic=$hardcode_automatic_CXX
25573 +# Variables whose values should be saved in libtool wrapper scripts and
25574 +# restored at relink time.
25575 +variables_saved_for_relink="$variables_saved_for_relink"
25577 +# Whether libtool must link a program against all its dependency libraries.
25578 +link_all_deplibs=$link_all_deplibs_CXX
25580 +# Compile-time system search path for libraries
25581 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25583 +# Run-time system search path for libraries
25584 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
25586 +# Fix the shell variable \$srcfile for the compiler.
25587 +fix_srcfile_path="$fix_srcfile_path_CXX"
25589 +# Set to yes if exported symbols are required.
25590 +always_export_symbols=$always_export_symbols_CXX
25592 +# The commands to list exported symbols.
25593 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
25595 +# The commands to extract the exported symbol list from a shared archive.
25596 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
25598 +# Symbols that should not be listed in the preloaded symbols.
25599 +exclude_expsyms=$lt_exclude_expsyms_CXX
25601 +# Symbols that must always be exported.
25602 +include_expsyms=$lt_include_expsyms_CXX
25604 +# ### END LIBTOOL TAG CONFIG: $tagname
25606 +__EOF__
25609 +else
25610 + # If there is no Makefile yet, we rely on a make rule to execute
25611 + # `config.status --recheck' to rerun these tests and create the
25612 + # libtool script then.
25613 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
25614 + if test -f "$ltmain_in"; then
25615 + test -f Makefile && make "$ltmain"
25616 + fi
25617 +fi
25620 +ac_ext=c
25621 +ac_cpp='$CPP $CPPFLAGS'
25622 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25623 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25624 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
25626 +CC=$lt_save_CC
25627 +LDCXX=$LD
25628 +LD=$lt_save_LD
25629 +GCC=$lt_save_GCC
25630 +with_gnu_ldcxx=$with_gnu_ld
25631 +with_gnu_ld=$lt_save_with_gnu_ld
25632 +lt_cv_path_LDCXX=$lt_cv_path_LD
25633 +lt_cv_path_LD=$lt_save_path_LD
25634 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
25635 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
25637 + else
25638 + tagname=""
25639 + fi
25640 + ;;
25642 + F77)
25643 + if test -n "$F77" && test "X$F77" != "Xno"; then
25645 +ac_ext=f
25646 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
25647 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25648 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
25651 +archive_cmds_need_lc_F77=no
25652 +allow_undefined_flag_F77=
25653 +always_export_symbols_F77=no
25654 +archive_expsym_cmds_F77=
25655 +export_dynamic_flag_spec_F77=
25656 +hardcode_direct_F77=no
25657 +hardcode_libdir_flag_spec_F77=
25658 +hardcode_libdir_flag_spec_ld_F77=
25659 +hardcode_libdir_separator_F77=
25660 +hardcode_minus_L_F77=no
25661 +hardcode_automatic_F77=no
25662 +module_cmds_F77=
25663 +module_expsym_cmds_F77=
25664 +link_all_deplibs_F77=unknown
25665 +old_archive_cmds_F77=$old_archive_cmds
25666 +no_undefined_flag_F77=
25667 +whole_archive_flag_spec_F77=
25668 +enable_shared_with_static_runtimes_F77=no
25670 +# Source file extension for f77 test sources.
25671 +ac_ext=f
25673 +# Object file extension for compiled f77 test sources.
25674 +objext=o
25675 +objext_F77=$objext
25677 +# Code to be used in simple compile tests
25678 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
25680 +# Code to be used in simple link tests
25681 +lt_simple_link_test_code=" program t\n end\n"
25683 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
25685 +# If no C compiler was specified, use CC.
25686 +LTCC=${LTCC-"$CC"}
25688 +# Allow CC to be a program name with arguments.
25689 +compiler=$CC
25692 +# Allow CC to be a program name with arguments.
25693 +lt_save_CC="$CC"
25694 +CC=${F77-"f77"}
25695 +compiler=$CC
25696 +compiler_F77=$CC
25697 +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
25699 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
25700 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
25701 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
25702 +echo "${ECHO_T}$can_build_shared" >&6
25704 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
25705 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
25706 +test "$can_build_shared" = "no" && enable_shared=no
25708 +# On AIX, shared libraries and static libraries use the same namespace, and
25709 +# are all built from PIC.
25710 +case "$host_os" in
25711 +aix3*)
25712 + test "$enable_shared" = yes && enable_static=no
25713 + if test -n "$RANLIB"; then
25714 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
25715 + postinstall_cmds='$RANLIB $lib'
25716 + fi
25717 + ;;
25718 +aix4*)
25719 + test "$enable_shared" = yes && enable_static=no
25720 + ;;
25721 +esac
25722 +echo "$as_me:$LINENO: result: $enable_shared" >&5
25723 +echo "${ECHO_T}$enable_shared" >&6
25725 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
25726 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
25727 +# Make sure either enable_shared or enable_static is yes.
25728 +test "$enable_shared" = yes || enable_static=yes
25729 +echo "$as_me:$LINENO: result: $enable_static" >&5
25730 +echo "${ECHO_T}$enable_static" >&6
25732 +test "$ld_shlibs_F77" = no && can_build_shared=no
25734 +GCC_F77="$G77"
25735 +LD_F77="$LD"
25737 +lt_prog_compiler_wl_F77=
25738 +lt_prog_compiler_pic_F77=
25739 +lt_prog_compiler_static_F77=
25741 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
25742 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
25744 + if test "$GCC" = yes; then
25745 + lt_prog_compiler_wl_F77='-Wl,'
25746 + lt_prog_compiler_static_F77='-static'
25748 + case $host_os in
25749 + aix*)
25750 + # All AIX code is PIC.
25751 + if test "$host_cpu" = ia64; then
25752 + # AIX 5 now supports IA64 processor
25753 + lt_prog_compiler_static_F77='-Bstatic'
25754 + fi
25755 + ;;
25757 + amigaos*)
25758 + # FIXME: we need at least 68020 code to build shared libraries, but
25759 + # adding the `-m68020' flag to GCC prevents building anything better,
25760 + # like `-m68040'.
25761 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
25762 + ;;
25764 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
25765 + # PIC is the default for these OSes.
25766 + ;;
25768 + mingw* | pw32* | os2*)
25769 + # This hack is so that the source file can tell whether it is being
25770 + # built for inclusion in a dll (and should export symbols for example).
25771 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25772 + ;;
25774 + darwin* | rhapsody*)
25775 + # PIC is the default on this platform
25776 + # Common symbols not allowed in MH_DYLIB files
25777 + lt_prog_compiler_pic_F77='-fno-common'
25778 + ;;
25780 + msdosdjgpp*)
25781 + # Just because we use GCC doesn't mean we suddenly get shared libraries
25782 + # on systems that don't support them.
25783 + lt_prog_compiler_can_build_shared_F77=no
25784 + enable_shared=no
25785 + ;;
25787 + sysv4*MP*)
25788 + if test -d /usr/nec; then
25789 + lt_prog_compiler_pic_F77=-Kconform_pic
25790 + fi
25791 + ;;
25793 + hpux*)
25794 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25795 + # not for PA HP-UX.
25796 + case "$host_cpu" in
25797 + hppa*64*|ia64*)
25798 + # +Z the default
25799 + ;;
25800 + *)
25801 + lt_prog_compiler_pic_F77='-fPIC'
25802 + ;;
25803 + esac
25804 + ;;
25806 + *)
25807 + lt_prog_compiler_pic_F77='-fPIC'
25808 + ;;
25809 + esac
25810 + else
25811 + # PORTME Check for flag to pass linker flags through the system compiler.
25812 + case $host_os in
25813 + aix*)
25814 + lt_prog_compiler_wl_F77='-Wl,'
25815 + if test "$host_cpu" = ia64; then
25816 + # AIX 5 now supports IA64 processor
25817 + lt_prog_compiler_static_F77='-Bstatic'
25818 + else
25819 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
25820 + fi
25821 + ;;
25823 + mingw* | pw32* | os2*)
25824 + # This hack is so that the source file can tell whether it is being
25825 + # built for inclusion in a dll (and should export symbols for example).
25826 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
25827 + ;;
25829 + hpux9* | hpux10* | hpux11*)
25830 + lt_prog_compiler_wl_F77='-Wl,'
25831 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
25832 + # not for PA HP-UX.
25833 + case "$host_cpu" in
25834 + hppa*64*|ia64*)
25835 + # +Z the default
25836 + ;;
25837 + *)
25838 + lt_prog_compiler_pic_F77='+Z'
25839 + ;;
25840 + esac
25841 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
25842 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
25843 + ;;
25845 + irix5* | irix6* | nonstopux*)
25846 + lt_prog_compiler_wl_F77='-Wl,'
25847 + # PIC (with -KPIC) is the default.
25848 + lt_prog_compiler_static_F77='-non_shared'
25849 + ;;
25851 + newsos6)
25852 + lt_prog_compiler_pic_F77='-KPIC'
25853 + lt_prog_compiler_static_F77='-Bstatic'
25854 + ;;
25856 + linux*)
25857 + case $CC in
25858 + icc* | ecc*)
25859 + lt_prog_compiler_wl_F77='-Wl,'
25860 + lt_prog_compiler_pic_F77='-KPIC'
25861 + lt_prog_compiler_static_F77='-static'
25862 + ;;
25863 + ccc*)
25864 + lt_prog_compiler_wl_F77='-Wl,'
25865 + # All Alpha code is PIC.
25866 + lt_prog_compiler_static_F77='-non_shared'
25867 + ;;
25868 + esac
25869 + ;;
25871 + osf3* | osf4* | osf5*)
25872 + lt_prog_compiler_wl_F77='-Wl,'
25873 + # All OSF/1 code is PIC.
25874 + lt_prog_compiler_static_F77='-non_shared'
25875 + ;;
25877 + sco3.2v5*)
25878 + lt_prog_compiler_pic_F77='-Kpic'
25879 + lt_prog_compiler_static_F77='-dn'
25880 + ;;
25882 + solaris*)
25883 + lt_prog_compiler_wl_F77='-Wl,'
25884 + lt_prog_compiler_pic_F77='-KPIC'
25885 + lt_prog_compiler_static_F77='-Bstatic'
25886 + ;;
25888 + sunos4*)
25889 + lt_prog_compiler_wl_F77='-Qoption ld '
25890 + lt_prog_compiler_pic_F77='-PIC'
25891 + lt_prog_compiler_static_F77='-Bstatic'
25892 + ;;
25894 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
25895 + lt_prog_compiler_wl_F77='-Wl,'
25896 + lt_prog_compiler_pic_F77='-KPIC'
25897 + lt_prog_compiler_static_F77='-Bstatic'
25898 + ;;
25900 + sysv4*MP*)
25901 + if test -d /usr/nec ;then
25902 + lt_prog_compiler_pic_F77='-Kconform_pic'
25903 + lt_prog_compiler_static_F77='-Bstatic'
25904 + fi
25905 + ;;
25907 + uts4*)
25908 + lt_prog_compiler_pic_F77='-pic'
25909 + lt_prog_compiler_static_F77='-Bstatic'
25910 + ;;
25912 + *)
25913 + lt_prog_compiler_can_build_shared_F77=no
25914 + ;;
25915 + esac
25916 + fi
25918 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
25919 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
25921 +#
25922 +# Check to make sure the PIC flag actually works.
25923 +#
25924 +if test -n "$lt_prog_compiler_pic_F77"; then
25926 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
25927 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
25928 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
25929 + echo $ECHO_N "(cached) $ECHO_C" >&6
25930 +else
25931 + lt_prog_compiler_pic_works_F77=no
25932 + ac_outfile=conftest.$ac_objext
25933 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25934 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
25935 + # Insert the option either (1) after the last *FLAGS variable, or
25936 + # (2) before a word containing "conftest.", or (3) at the end.
25937 + # Note that $ac_compile itself does not contain backslashes and begins
25938 + # with a dollar sign (not a hyphen), so the echo should work correctly.
25939 + # The option is referenced via a variable to avoid confusing sed.
25940 + lt_compile=`echo "$ac_compile" | $SED \
25941 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
25942 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
25943 + -e 's:$: $lt_compiler_flag:'`
25944 + (eval echo "\"\$as_me:13349: $lt_compile\"" >&5)
25945 + (eval "$lt_compile" 2>conftest.err)
25946 + ac_status=$?
25947 + cat conftest.err >&5
25948 + echo "$as_me:13353: \$? = $ac_status" >&5
25949 + if (exit $ac_status) && test -s "$ac_outfile"; then
25950 + # The compiler can only warn and ignore the option if not recognized
25951 + # So say no if there are warnings
25952 + if test ! -s conftest.err; then
25953 + lt_prog_compiler_pic_works_F77=yes
25954 + fi
25955 + fi
25956 + $rm conftest*
25958 +fi
25959 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
25960 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
25962 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
25963 + case $lt_prog_compiler_pic_F77 in
25964 + "" | " "*) ;;
25965 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
25966 + esac
25967 +else
25968 + lt_prog_compiler_pic_F77=
25969 + lt_prog_compiler_can_build_shared_F77=no
25970 +fi
25972 +fi
25973 +case "$host_os" in
25974 + # For platforms which do not support PIC, -DPIC is meaningless:
25975 + *djgpp*)
25976 + lt_prog_compiler_pic_F77=
25977 + ;;
25978 + *)
25979 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
25980 + ;;
25981 +esac
25983 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
25984 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
25985 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
25986 + echo $ECHO_N "(cached) $ECHO_C" >&6
25987 +else
25988 + lt_cv_prog_compiler_c_o_F77=no
25989 + $rm -r conftest 2>/dev/null
25990 + mkdir conftest
25991 + cd conftest
25992 + mkdir out
25993 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
25995 + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
25996 + # that will create temporary files in the current directory regardless of
25997 + # the output directory. Thus, making CWD read-only will cause this test
25998 + # to fail, enabling locking or at least warning the user not to do parallel
25999 + # builds.
26000 + chmod -w .
26002 + lt_compiler_flag="-o out/conftest2.$ac_objext"
26003 + # Insert the option either (1) after the last *FLAGS variable, or
26004 + # (2) before a word containing "conftest.", or (3) at the end.
26005 + # Note that $ac_compile itself does not contain backslashes and begins
26006 + # with a dollar sign (not a hyphen), so the echo should work correctly.
26007 + lt_compile=`echo "$ac_compile" | $SED \
26008 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
26009 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
26010 + -e 's:$: $lt_compiler_flag:'`
26011 + (eval echo "\"\$as_me:13416: $lt_compile\"" >&5)
26012 + (eval "$lt_compile" 2>out/conftest.err)
26013 + ac_status=$?
26014 + cat out/conftest.err >&5
26015 + echo "$as_me:13420: \$? = $ac_status" >&5
26016 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
26017 + then
26018 + # The compiler can only warn and ignore the option if not recognized
26019 + # So say no if there are warnings
26020 + if test ! -s out/conftest.err; then
26021 + lt_cv_prog_compiler_c_o_F77=yes
26022 + fi
26023 + fi
26024 + chmod u+w .
26025 + $rm conftest*
26026 + # SGI C++ compiler will create directory out/ii_files/ for
26027 + # template instantiation
26028 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
26029 + $rm out/* && rmdir out
26030 + cd ..
26031 + rmdir conftest
26032 + $rm conftest*
26034 +fi
26035 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
26036 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
26039 +hard_links="nottested"
26040 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
26041 + # do not overwrite the value of need_locks provided by the user
26042 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
26043 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
26044 + hard_links=yes
26045 + $rm conftest*
26046 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26047 + touch conftest.a
26048 + ln conftest.a conftest.b 2>&5 || hard_links=no
26049 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
26050 + echo "$as_me:$LINENO: result: $hard_links" >&5
26051 +echo "${ECHO_T}$hard_links" >&6
26052 + if test "$hard_links" = no; then
26053 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
26054 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
26055 + need_locks=warn
26056 + fi
26057 +else
26058 + need_locks=no
26059 +fi
26061 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
26062 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
26064 + runpath_var=
26065 + allow_undefined_flag_F77=
26066 + enable_shared_with_static_runtimes_F77=no
26067 + archive_cmds_F77=
26068 + archive_expsym_cmds_F77=
26069 + old_archive_From_new_cmds_F77=
26070 + old_archive_from_expsyms_cmds_F77=
26071 + export_dynamic_flag_spec_F77=
26072 + whole_archive_flag_spec_F77=
26073 + thread_safe_flag_spec_F77=
26074 + hardcode_libdir_flag_spec_F77=
26075 + hardcode_libdir_flag_spec_ld_F77=
26076 + hardcode_libdir_separator_F77=
26077 + hardcode_direct_F77=no
26078 + hardcode_minus_L_F77=no
26079 + hardcode_shlibpath_var_F77=unsupported
26080 + link_all_deplibs_F77=unknown
26081 + hardcode_automatic_F77=no
26082 + module_cmds_F77=
26083 + module_expsym_cmds_F77=
26084 + always_export_symbols_F77=no
26085 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
26086 + # include_expsyms should be a list of space-separated symbols to be *always*
26087 + # included in the symbol list
26088 + include_expsyms_F77=
26089 + # exclude_expsyms can be an extended regexp of symbols to exclude
26090 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
26091 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
26092 + # as well as any symbol that contains `d'.
26093 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
26094 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
26095 + # platforms (ab)use it in PIC code, but their linkers get confused if
26096 + # the symbol is explicitly referenced. Since portable code cannot
26097 + # rely on this symbol name, it's probably fine to never include it in
26098 + # preloaded symbol tables.
26099 + extract_expsyms_cmds=
26101 + case $host_os in
26102 + cygwin* | mingw* | pw32*)
26103 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
26104 + # When not using gcc, we currently assume that we are using
26105 + # Microsoft Visual C++.
26106 + if test "$GCC" != yes; then
26107 + with_gnu_ld=no
26108 + fi
26109 + ;;
26110 + openbsd*)
26111 + with_gnu_ld=no
26112 + ;;
26113 + esac
26115 + ld_shlibs_F77=yes
26116 + if test "$with_gnu_ld" = yes; then
26117 + # If archive_cmds runs LD, not CC, wlarc should be empty
26118 + wlarc='${wl}'
26120 + # See if GNU ld supports shared libraries.
26121 + case $host_os in
26122 + aix3* | aix4* | aix5*)
26123 + # On AIX/PPC, the GNU linker is very broken
26124 + if test "$host_cpu" != ia64; then
26125 + ld_shlibs_F77=no
26126 + cat <<EOF 1>&2
26128 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
26129 +*** to be unable to reliably create shared libraries on AIX.
26130 +*** Therefore, libtool is disabling shared libraries support. If you
26131 +*** really care for shared libraries, you may want to modify your PATH
26132 +*** so that a non-GNU linker is found, and then restart.
26134 +EOF
26135 + fi
26136 + ;;
26138 + amigaos*)
26139 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
26140 + hardcode_libdir_flag_spec_F77='-L$libdir'
26141 + hardcode_minus_L_F77=yes
26143 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
26144 + # that the semantics of dynamic libraries on AmigaOS, at least up
26145 + # to version 4, is to share data among multiple programs linked
26146 + # with the same dynamic library. Since this doesn't match the
26147 + # behavior of shared libraries on other platforms, we can't use
26148 + # them.
26149 + ld_shlibs_F77=no
26150 + ;;
26152 + beos*)
26153 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26154 + allow_undefined_flag_F77=unsupported
26155 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
26156 + # support --undefined. This deserves some investigation. FIXME
26157 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26158 + else
26159 + ld_shlibs_F77=no
26160 + fi
26161 + ;;
26163 + cygwin* | mingw* | pw32*)
26164 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
26165 + # as there is no search path for DLLs.
26166 + hardcode_libdir_flag_spec_F77='-L$libdir'
26167 + allow_undefined_flag_F77=unsupported
26168 + always_export_symbols_F77=no
26169 + enable_shared_with_static_runtimes_F77=yes
26170 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
26172 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
26173 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
26174 + # If the export-symbols file already is a .def file (1st line
26175 + # is EXPORTS), use it as is; otherwise, prepend...
26176 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
26177 + cp $export_symbols $output_objdir/$soname.def;
26178 + else
26179 + echo EXPORTS > $output_objdir/$soname.def;
26180 + cat $export_symbols >> $output_objdir/$soname.def;
26181 + fi~
26182 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
26183 + else
26184 + ld_shlibs=no
26185 + fi
26186 + ;;
26188 + netbsd*)
26189 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26190 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
26191 + wlarc=
26192 + else
26193 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26194 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26195 + fi
26196 + ;;
26198 + solaris* | sysv5*)
26199 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
26200 + ld_shlibs_F77=no
26201 + cat <<EOF 1>&2
26203 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
26204 +*** create shared libraries on Solaris systems. Therefore, libtool
26205 +*** is disabling shared libraries support. We urge you to upgrade GNU
26206 +*** binutils to release 2.9.1 or newer. Another option is to modify
26207 +*** your PATH or compiler configuration so that the native linker is
26208 +*** used, and then restart.
26210 +EOF
26211 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26212 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26213 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26214 + else
26215 + ld_shlibs_F77=no
26216 + fi
26217 + ;;
26219 + sunos4*)
26220 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26221 + wlarc=
26222 + hardcode_direct_F77=yes
26223 + hardcode_shlibpath_var_F77=no
26224 + ;;
26226 + linux*)
26227 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
26228 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26229 + archive_cmds_F77="$tmp_archive_cmds"
26230 + supports_anon_versioning=no
26231 + case `$LD -v 2>/dev/null` in
26232 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
26233 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
26234 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
26235 + *\ 2.11.*) ;; # other 2.11 versions
26236 + *) supports_anon_versioning=yes ;;
26237 + esac
26238 + if test $supports_anon_versioning = yes; then
26239 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
26240 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
26241 +$echo "local: *; };" >> $output_objdir/$libname.ver~
26242 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
26243 + else
26244 + archive_expsym_cmds_F77="$tmp_archive_cmds"
26245 + fi
26246 + else
26247 + ld_shlibs_F77=no
26248 + fi
26249 + ;;
26251 + *)
26252 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
26253 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
26254 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
26255 + else
26256 + ld_shlibs_F77=no
26257 + fi
26258 + ;;
26259 + esac
26261 + if test "$ld_shlibs_F77" = yes; then
26262 + runpath_var=LD_RUN_PATH
26263 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
26264 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
26265 + # ancient GNU ld didn't support --whole-archive et. al.
26266 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
26267 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
26268 + else
26269 + whole_archive_flag_spec_F77=
26270 + fi
26271 + fi
26272 + else
26273 + # PORTME fill in a description of your system's linker (not GNU ld)
26274 + case $host_os in
26275 + aix3*)
26276 + allow_undefined_flag_F77=unsupported
26277 + always_export_symbols_F77=yes
26278 + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
26279 + # Note: this linker hardcodes the directories in LIBPATH if there
26280 + # are no directories specified by -L.
26281 + hardcode_minus_L_F77=yes
26282 + if test "$GCC" = yes && test -z "$link_static_flag"; then
26283 + # Neither direct hardcoding nor static linking is supported with a
26284 + # broken collect2.
26285 + hardcode_direct_F77=unsupported
26286 + fi
26287 + ;;
26289 + aix4* | aix5*)
26290 + if test "$host_cpu" = ia64; then
26291 + # On IA64, the linker does run time linking by default, so we don't
26292 + # have to do anything special.
26293 + aix_use_runtimelinking=no
26294 + exp_sym_flag='-Bexport'
26295 + no_entry_flag=""
26296 + else
26297 + # If we're using GNU nm, then we don't want the "-C" option.
26298 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
26299 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
26300 + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26301 + else
26302 + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
26303 + fi
26304 + aix_use_runtimelinking=no
26306 + # Test if we are trying to use run time linking or normal
26307 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
26308 + # need to do runtime linking.
26309 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
26310 + for ld_flag in $LDFLAGS; do
26311 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
26312 + aix_use_runtimelinking=yes
26313 + break
26314 + fi
26315 + done
26316 + esac
26318 + exp_sym_flag='-bexport'
26319 + no_entry_flag='-bnoentry'
26320 + fi
26322 + # When large executables or shared objects are built, AIX ld can
26323 + # have problems creating the table of contents. If linking a library
26324 + # or program results in "error TOC overflow" add -mminimal-toc to
26325 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
26326 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
26328 + archive_cmds_F77=''
26329 + hardcode_direct_F77=yes
26330 + hardcode_libdir_separator_F77=':'
26331 + link_all_deplibs_F77=yes
26333 + if test "$GCC" = yes; then
26334 + case $host_os in aix4.012|aix4.012.*)
26335 + # We only want to do this on AIX 4.2 and lower, the check
26336 + # below for broken collect2 doesn't work under 4.3+
26337 + collect2name=`${CC} -print-prog-name=collect2`
26338 + if test -f "$collect2name" && \
26339 + strings "$collect2name" | grep resolve_lib_name >/dev/null
26340 + then
26341 + # We have reworked collect2
26342 + hardcode_direct_F77=yes
26343 + else
26344 + # We have old collect2
26345 + hardcode_direct_F77=unsupported
26346 + # It fails to find uninstalled libraries when the uninstalled
26347 + # path is not listed in the libpath. Setting hardcode_minus_L
26348 + # to unsupported forces relinking
26349 + hardcode_minus_L_F77=yes
26350 + hardcode_libdir_flag_spec_F77='-L$libdir'
26351 + hardcode_libdir_separator_F77=
26352 + fi
26353 + esac
26354 + shared_flag='-shared'
26355 + else
26356 + # not using gcc
26357 + if test "$host_cpu" = ia64; then
26358 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
26359 + # chokes on -Wl,-G. The following line is correct:
26360 + shared_flag='-G'
26361 + else
26362 + if test "$aix_use_runtimelinking" = yes; then
26363 + shared_flag='${wl}-G'
26364 + else
26365 + shared_flag='${wl}-bM:SRE'
26366 + fi
26367 + fi
26368 + fi
26370 + # It seems that -bexpall does not export symbols beginning with
26371 + # underscore (_), so it is better to generate a list of symbols to export.
26372 + always_export_symbols_F77=yes
26373 + if test "$aix_use_runtimelinking" = yes; then
26374 + # Warning - without using the other runtime loading flags (-brtl),
26375 + # -berok will link without error, but may produce a broken library.
26376 + allow_undefined_flag_F77='-berok'
26377 + # Determine the default libpath from the value encoded in an empty executable.
26378 + cat >conftest.$ac_ext <<_ACEOF
26379 + program main
26381 + end
26382 +_ACEOF
26383 +rm -f conftest.$ac_objext conftest$ac_exeext
26384 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26385 + (eval $ac_link) 2>conftest.er1
26386 + ac_status=$?
26387 + grep -v '^ *+' conftest.er1 >conftest.err
26388 + rm -f conftest.er1
26389 + cat conftest.err >&5
26390 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26391 + (exit $ac_status); } &&
26392 + { ac_try='test -z "$ac_f77_werror_flag"
26393 + || test ! -s conftest.err'
26394 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26395 + (eval $ac_try) 2>&5
26396 + ac_status=$?
26397 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398 + (exit $ac_status); }; } &&
26399 + { ac_try='test -s conftest$ac_exeext'
26400 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401 + (eval $ac_try) 2>&5
26402 + ac_status=$?
26403 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404 + (exit $ac_status); }; }; then
26406 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26407 +}'`
26408 +# Check for a 64-bit object if we didn't find anything.
26409 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26410 +}'`; fi
26411 +else
26412 + echo "$as_me: failed program was:" >&5
26413 +sed 's/^/| /' conftest.$ac_ext >&5
26415 +fi
26416 +rm -f conftest.err conftest.$ac_objext \
26417 + conftest$ac_exeext conftest.$ac_ext
26418 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26420 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26421 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
26422 + else
26423 + if test "$host_cpu" = ia64; then
26424 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
26425 + allow_undefined_flag_F77="-z nodefs"
26426 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
26427 + else
26428 + # Determine the default libpath from the value encoded in an empty executable.
26429 + cat >conftest.$ac_ext <<_ACEOF
26430 + program main
26432 + end
26433 +_ACEOF
26434 +rm -f conftest.$ac_objext conftest$ac_exeext
26435 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26436 + (eval $ac_link) 2>conftest.er1
26437 + ac_status=$?
26438 + grep -v '^ *+' conftest.er1 >conftest.err
26439 + rm -f conftest.er1
26440 + cat conftest.err >&5
26441 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26442 + (exit $ac_status); } &&
26443 + { ac_try='test -z "$ac_f77_werror_flag"
26444 + || test ! -s conftest.err'
26445 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446 + (eval $ac_try) 2>&5
26447 + ac_status=$?
26448 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 + (exit $ac_status); }; } &&
26450 + { ac_try='test -s conftest$ac_exeext'
26451 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26452 + (eval $ac_try) 2>&5
26453 + ac_status=$?
26454 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26455 + (exit $ac_status); }; }; then
26457 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26458 +}'`
26459 +# Check for a 64-bit object if we didn't find anything.
26460 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
26461 +}'`; fi
26462 +else
26463 + echo "$as_me: failed program was:" >&5
26464 +sed 's/^/| /' conftest.$ac_ext >&5
26466 +fi
26467 +rm -f conftest.err conftest.$ac_objext \
26468 + conftest$ac_exeext conftest.$ac_ext
26469 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
26471 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
26472 + # Warning - without using the other run time loading flags,
26473 + # -berok will link without error, but may produce a broken library.
26474 + no_undefined_flag_F77=' ${wl}-bernotok'
26475 + allow_undefined_flag_F77=' ${wl}-berok'
26476 + # -bexpall does not export symbols beginning with underscore (_)
26477 + always_export_symbols_F77=yes
26478 + # Exported symbols can be pulled into shared objects from archives
26479 + whole_archive_flag_spec_F77=' '
26480 + archive_cmds_need_lc_F77=yes
26481 + # This is similar to how AIX traditionally builds it's shared libraries.
26482 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
26483 + fi
26484 + fi
26485 + ;;
26487 + amigaos*)
26488 + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
26489 + hardcode_libdir_flag_spec_F77='-L$libdir'
26490 + hardcode_minus_L_F77=yes
26491 + # see comment about different semantics on the GNU ld section
26492 + ld_shlibs_F77=no
26493 + ;;
26495 + bsdi4*)
26496 + export_dynamic_flag_spec_F77=-rdynamic
26497 + ;;
26499 + cygwin* | mingw* | pw32*)
26500 + # When not using gcc, we currently assume that we are using
26501 + # Microsoft Visual C++.
26502 + # hardcode_libdir_flag_spec is actually meaningless, as there is
26503 + # no search path for DLLs.
26504 + hardcode_libdir_flag_spec_F77=' '
26505 + allow_undefined_flag_F77=unsupported
26506 + # Tell ltmain to make .lib files, not .a files.
26507 + libext=lib
26508 + # Tell ltmain to make .dll files, not .so files.
26509 + shrext=".dll"
26510 + # FIXME: Setting linknames here is a bad hack.
26511 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
26512 + # The linker will automatically build a .lib file if we build a DLL.
26513 + old_archive_From_new_cmds_F77='true'
26514 + # FIXME: Should let the user specify the lib program.
26515 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
26516 + fix_srcfile_path='`cygpath -w "$srcfile"`'
26517 + enable_shared_with_static_runtimes_F77=yes
26518 + ;;
26520 + darwin* | rhapsody*)
26521 + if test "$GXX" = yes ; then
26522 + archive_cmds_need_lc_F77=no
26523 + case "$host_os" in
26524 + rhapsody* | darwin1.[012])
26525 + allow_undefined_flag_F77='-undefined suppress'
26526 + ;;
26527 + *) # Darwin 1.3 on
26528 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
26529 + allow_undefined_flag_F77='-flat_namespace -undefined suppress'
26530 + else
26531 + case ${MACOSX_DEPLOYMENT_TARGET} in
26532 + 10.[012])
26533 + allow_undefined_flag_F77='-flat_namespace -undefined suppress'
26534 + ;;
26535 + 10.*)
26536 + allow_undefined_flag_F77='-undefined dynamic_lookup'
26537 + ;;
26538 + esac
26539 + fi
26540 + ;;
26541 + esac
26542 + lt_int_apple_cc_single_mod=no
26543 + output_verbose_link_cmd='echo'
26544 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
26545 + lt_int_apple_cc_single_mod=yes
26546 + fi
26547 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26548 + archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
26549 + else
26550 + archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
26551 + fi
26552 + module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
26553 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
26554 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
26555 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26556 + else
26557 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26558 + fi
26559 + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
26560 + hardcode_direct_F77=no
26561 + hardcode_automatic_F77=yes
26562 + hardcode_shlibpath_var_F77=unsupported
26563 + whole_archive_flag_spec_F77='-all_load $convenience'
26564 + link_all_deplibs_F77=yes
26565 + else
26566 + ld_shlibs_F77=no
26567 + fi
26568 + ;;
26570 + dgux*)
26571 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26572 + hardcode_libdir_flag_spec_F77='-L$libdir'
26573 + hardcode_shlibpath_var_F77=no
26574 + ;;
26576 + freebsd1*)
26577 + ld_shlibs_F77=no
26578 + ;;
26580 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
26581 + # support. Future versions do this automatically, but an explicit c++rt0.o
26582 + # does not break anything, and helps significantly (at the cost of a little
26583 + # extra space).
26584 + freebsd2.2*)
26585 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
26586 + hardcode_libdir_flag_spec_F77='-R$libdir'
26587 + hardcode_direct_F77=yes
26588 + hardcode_shlibpath_var_F77=no
26589 + ;;
26591 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
26592 + freebsd2*)
26593 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26594 + hardcode_direct_F77=yes
26595 + hardcode_minus_L_F77=yes
26596 + hardcode_shlibpath_var_F77=no
26597 + ;;
26599 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
26600 + freebsd* | kfreebsd*-gnu)
26601 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
26602 + hardcode_libdir_flag_spec_F77='-R$libdir'
26603 + hardcode_direct_F77=yes
26604 + hardcode_shlibpath_var_F77=no
26605 + ;;
26607 + hpux9*)
26608 + if test "$GCC" = yes; then
26609 + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26610 + else
26611 + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
26612 + fi
26613 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26614 + hardcode_libdir_separator_F77=:
26615 + hardcode_direct_F77=yes
26617 + # hardcode_minus_L: Not really in the search PATH,
26618 + # but as the default location of the library.
26619 + hardcode_minus_L_F77=yes
26620 + export_dynamic_flag_spec_F77='${wl}-E'
26621 + ;;
26623 + hpux10* | hpux11*)
26624 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
26625 + case "$host_cpu" in
26626 + hppa*64*|ia64*)
26627 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26628 + ;;
26629 + *)
26630 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
26631 + ;;
26632 + esac
26633 + else
26634 + case "$host_cpu" in
26635 + hppa*64*|ia64*)
26636 + archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
26637 + ;;
26638 + *)
26639 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
26640 + ;;
26641 + esac
26642 + fi
26643 + if test "$with_gnu_ld" = no; then
26644 + case "$host_cpu" in
26645 + hppa*64*)
26646 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26647 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
26648 + hardcode_libdir_separator_F77=:
26649 + hardcode_direct_F77=no
26650 + hardcode_shlibpath_var_F77=no
26651 + ;;
26652 + ia64*)
26653 + hardcode_libdir_flag_spec_F77='-L$libdir'
26654 + hardcode_direct_F77=no
26655 + hardcode_shlibpath_var_F77=no
26657 + # hardcode_minus_L: Not really in the search PATH,
26658 + # but as the default location of the library.
26659 + hardcode_minus_L_F77=yes
26660 + ;;
26661 + *)
26662 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
26663 + hardcode_libdir_separator_F77=:
26664 + hardcode_direct_F77=yes
26665 + export_dynamic_flag_spec_F77='${wl}-E'
26667 + # hardcode_minus_L: Not really in the search PATH,
26668 + # but as the default location of the library.
26669 + hardcode_minus_L_F77=yes
26670 + ;;
26671 + esac
26672 + fi
26673 + ;;
26675 + irix5* | irix6* | nonstopux*)
26676 + if test "$GCC" = yes; then
26677 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26678 + else
26679 + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26680 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
26681 + fi
26682 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26683 + hardcode_libdir_separator_F77=:
26684 + link_all_deplibs_F77=yes
26685 + ;;
26687 + netbsd*)
26688 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
26689 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
26690 + else
26691 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
26692 + fi
26693 + hardcode_libdir_flag_spec_F77='-R$libdir'
26694 + hardcode_direct_F77=yes
26695 + hardcode_shlibpath_var_F77=no
26696 + ;;
26698 + newsos6)
26699 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26700 + hardcode_direct_F77=yes
26701 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26702 + hardcode_libdir_separator_F77=:
26703 + hardcode_shlibpath_var_F77=no
26704 + ;;
26706 + openbsd*)
26707 + hardcode_direct_F77=yes
26708 + hardcode_shlibpath_var_F77=no
26709 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
26710 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26711 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26712 + export_dynamic_flag_spec_F77='${wl}-E'
26713 + else
26714 + case $host_os in
26715 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
26716 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
26717 + hardcode_libdir_flag_spec_F77='-R$libdir'
26718 + ;;
26719 + *)
26720 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
26721 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
26722 + ;;
26723 + esac
26724 + fi
26725 + ;;
26727 + os2*)
26728 + hardcode_libdir_flag_spec_F77='-L$libdir'
26729 + hardcode_minus_L_F77=yes
26730 + allow_undefined_flag_F77=unsupported
26731 + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
26732 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
26733 + ;;
26735 + osf3*)
26736 + if test "$GCC" = yes; then
26737 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26738 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26739 + else
26740 + allow_undefined_flag_F77=' -expect_unresolved \*'
26741 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26742 + fi
26743 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26744 + hardcode_libdir_separator_F77=:
26745 + ;;
26747 + osf4* | osf5*) # as osf3* with the addition of -msym flag
26748 + if test "$GCC" = yes; then
26749 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
26750 + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
26751 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
26752 + else
26753 + allow_undefined_flag_F77=' -expect_unresolved \*'
26754 + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
26755 + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
26756 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
26758 + # Both c and cxx compiler support -rpath directly
26759 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
26760 + fi
26761 + hardcode_libdir_separator_F77=:
26762 + ;;
26764 + sco3.2v5*)
26765 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26766 + hardcode_shlibpath_var_F77=no
26767 + export_dynamic_flag_spec_F77='${wl}-Bexport'
26768 + runpath_var=LD_RUN_PATH
26769 + hardcode_runpath_var=yes
26770 + ;;
26772 + solaris*)
26773 + no_undefined_flag_F77=' -z text'
26774 + if test "$GCC" = yes; then
26775 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26776 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26777 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
26778 + else
26779 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26780 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26781 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26782 + fi
26783 + hardcode_libdir_flag_spec_F77='-R$libdir'
26784 + hardcode_shlibpath_var_F77=no
26785 + case $host_os in
26786 + solaris2.[0-5] | solaris2.[0-5].*) ;;
26787 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
26788 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
26789 + esac
26790 + link_all_deplibs_F77=yes
26791 + ;;
26793 + sunos4*)
26794 + if test "x$host_vendor" = xsequent; then
26795 + # Use $CC to link under sequent, because it throws in some extra .o
26796 + # files that make .init and .fini sections work.
26797 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
26798 + else
26799 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
26800 + fi
26801 + hardcode_libdir_flag_spec_F77='-L$libdir'
26802 + hardcode_direct_F77=yes
26803 + hardcode_minus_L_F77=yes
26804 + hardcode_shlibpath_var_F77=no
26805 + ;;
26807 + sysv4)
26808 + case $host_vendor in
26809 + sni)
26810 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26811 + hardcode_direct_F77=yes # is this really true???
26812 + ;;
26813 + siemens)
26814 + ## LD is ld it makes a PLAMLIB
26815 + ## CC just makes a GrossModule.
26816 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26817 + reload_cmds_F77='$CC -r -o $output$reload_objs'
26818 + hardcode_direct_F77=no
26819 + ;;
26820 + motorola)
26821 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26822 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
26823 + ;;
26824 + esac
26825 + runpath_var='LD_RUN_PATH'
26826 + hardcode_shlibpath_var_F77=no
26827 + ;;
26829 + sysv4.3*)
26830 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26831 + hardcode_shlibpath_var_F77=no
26832 + export_dynamic_flag_spec_F77='-Bexport'
26833 + ;;
26835 + sysv4*MP*)
26836 + if test -d /usr/nec; then
26837 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26838 + hardcode_shlibpath_var_F77=no
26839 + runpath_var=LD_RUN_PATH
26840 + hardcode_runpath_var=yes
26841 + ld_shlibs_F77=yes
26842 + fi
26843 + ;;
26845 + sysv4.2uw2*)
26846 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
26847 + hardcode_direct_F77=yes
26848 + hardcode_minus_L_F77=no
26849 + hardcode_shlibpath_var_F77=no
26850 + hardcode_runpath_var=yes
26851 + runpath_var=LD_RUN_PATH
26852 + ;;
26854 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
26855 + no_undefined_flag_F77='${wl}-z ${wl}text'
26856 + if test "$GCC" = yes; then
26857 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26858 + else
26859 + archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
26860 + fi
26861 + runpath_var='LD_RUN_PATH'
26862 + hardcode_shlibpath_var_F77=no
26863 + ;;
26865 + sysv5*)
26866 + no_undefined_flag_F77=' -z text'
26867 + # $CC -shared without GNU ld will not create a library from C++
26868 + # object files and a static libstdc++, better avoid it by now
26869 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
26870 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
26871 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
26872 + hardcode_libdir_flag_spec_F77=
26873 + hardcode_shlibpath_var_F77=no
26874 + runpath_var='LD_RUN_PATH'
26875 + ;;
26877 + uts4*)
26878 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
26879 + hardcode_libdir_flag_spec_F77='-L$libdir'
26880 + hardcode_shlibpath_var_F77=no
26881 + ;;
26883 + *)
26884 + ld_shlibs_F77=no
26885 + ;;
26886 + esac
26887 + fi
26889 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
26890 +echo "${ECHO_T}$ld_shlibs_F77" >&6
26891 +test "$ld_shlibs_F77" = no && can_build_shared=no
26893 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
26894 +if test "$GCC" = yes; then
26895 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
26896 +fi
26898 +#
26899 +# Do we need to explicitly link libc?
26900 +#
26901 +case "x$archive_cmds_need_lc_F77" in
26902 +x|xyes)
26903 + # Assume -lc should be added
26904 + archive_cmds_need_lc_F77=yes
26906 + if test "$enable_shared" = yes && test "$GCC" = yes; then
26907 + case $archive_cmds_F77 in
26908 + *'~'*)
26909 + # FIXME: we may have to deal with multi-command sequences.
26910 + ;;
26911 + '$CC '*)
26912 + # Test whether the compiler implicitly links with -lc since on some
26913 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
26914 + # to ld, don't add -lc before -lgcc.
26915 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
26916 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
26917 + $rm conftest*
26918 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
26920 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26921 + (eval $ac_compile) 2>&5
26922 + ac_status=$?
26923 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 + (exit $ac_status); } 2>conftest.err; then
26925 + soname=conftest
26926 + lib=conftest
26927 + libobjs=conftest.$ac_objext
26928 + deplibs=
26929 + wl=$lt_prog_compiler_wl_F77
26930 + compiler_flags=-v
26931 + linker_flags=-v
26932 + verstring=
26933 + output_objdir=.
26934 + libname=conftest
26935 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
26936 + allow_undefined_flag_F77=
26937 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
26938 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
26939 + ac_status=$?
26940 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 + (exit $ac_status); }
26942 + then
26943 + archive_cmds_need_lc_F77=no
26944 + else
26945 + archive_cmds_need_lc_F77=yes
26946 + fi
26947 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
26948 + else
26949 + cat conftest.err 1>&5
26950 + fi
26951 + $rm conftest*
26952 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
26953 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
26954 + ;;
26955 + esac
26956 + fi
26957 + ;;
26958 +esac
26960 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
26961 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
26962 +library_names_spec=
26963 +libname_spec='lib$name'
26964 +soname_spec=
26965 +shrext=".so"
26966 +postinstall_cmds=
26967 +postuninstall_cmds=
26968 +finish_cmds=
26969 +finish_eval=
26970 +shlibpath_var=
26971 +shlibpath_overrides_runpath=unknown
26972 +version_type=none
26973 +dynamic_linker="$host_os ld.so"
26974 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
26975 +if test "$GCC" = yes; then
26976 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
26977 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
26978 + # if the path contains ";" then we assume it to be the separator
26979 + # otherwise default to the standard path separator (i.e. ":") - it is
26980 + # assumed that no part of a normal pathname contains ";" but that should
26981 + # okay in the real world where ";" in dirpaths is itself problematic.
26982 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
26983 + else
26984 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
26985 + fi
26986 +else
26987 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
26988 +fi
26989 +need_lib_prefix=unknown
26990 +hardcode_into_libs=no
26992 +# when you set need_version to no, make sure it does not cause -set_version
26993 +# flags to be left without arguments
26994 +need_version=unknown
26996 +case $host_os in
26997 +aix3*)
26998 + version_type=linux
26999 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
27000 + shlibpath_var=LIBPATH
27002 + # AIX 3 has no versioning support, so we append a major version to the name.
27003 + soname_spec='${libname}${release}${shared_ext}$major'
27004 + ;;
27006 +aix4* | aix5*)
27007 + version_type=linux
27008 + need_lib_prefix=no
27009 + need_version=no
27010 + hardcode_into_libs=yes
27011 + if test "$host_cpu" = ia64; then
27012 + # AIX 5 supports IA64
27013 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
27014 + shlibpath_var=LD_LIBRARY_PATH
27015 + else
27016 + # With GCC up to 2.95.x, collect2 would create an import file
27017 + # for dependence libraries. The import file would start with
27018 + # the line `#! .'. This would cause the generated library to
27019 + # depend on `.', always an invalid library. This was fixed in
27020 + # development snapshots of GCC prior to 3.0.
27021 + case $host_os in
27022 + aix4 | aix4.[01] | aix4.[01].*)
27023 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
27024 + echo ' yes '
27025 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
27026 + :
27027 + else
27028 + can_build_shared=no
27029 + fi
27030 + ;;
27031 + esac
27032 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
27033 + # soname into executable. Probably we can add versioning support to
27034 + # collect2, so additional links can be useful in future.
27035 + if test "$aix_use_runtimelinking" = yes; then
27036 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
27037 + # instead of lib<name>.a to let people know that these are not
27038 + # typical AIX shared libraries.
27039 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27040 + else
27041 + # We preserve .a as extension for shared libraries through AIX4.2
27042 + # and later when we are not doing run time linking.
27043 + library_names_spec='${libname}${release}.a $libname.a'
27044 + soname_spec='${libname}${release}${shared_ext}$major'
27045 + fi
27046 + shlibpath_var=LIBPATH
27047 + fi
27048 + ;;
27050 +amigaos*)
27051 + library_names_spec='$libname.ixlibrary $libname.a'
27052 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
27053 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
27054 + ;;
27056 +beos*)
27057 + library_names_spec='${libname}${shared_ext}'
27058 + dynamic_linker="$host_os ld.so"
27059 + shlibpath_var=LIBRARY_PATH
27060 + ;;
27062 +bsdi4*)
27063 + version_type=linux
27064 + need_version=no
27065 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27066 + soname_spec='${libname}${release}${shared_ext}$major'
27067 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
27068 + shlibpath_var=LD_LIBRARY_PATH
27069 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
27070 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
27071 + # the default ld.so.conf also contains /usr/contrib/lib and
27072 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
27073 + # libtool to hard-code these into programs
27074 + ;;
27076 +cygwin* | mingw* | pw32*)
27077 + version_type=windows
27078 + shrext=".dll"
27079 + need_version=no
27080 + need_lib_prefix=no
27082 + case $GCC,$host_os in
27083 + yes,cygwin* | yes,mingw* | yes,pw32*)
27084 + library_names_spec='$libname.dll.a'
27085 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
27086 + postinstall_cmds='base_file=`basename \${file}`~
27087 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
27088 + dldir=$destdir/`dirname \$dlpath`~
27089 + test -d \$dldir || mkdir -p \$dldir~
27090 + $install_prog $dir/$dlname \$dldir/$dlname'
27091 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
27092 + dlpath=$dir/\$dldll~
27093 + $rm \$dlpath'
27094 + shlibpath_overrides_runpath=yes
27096 + case $host_os in
27097 + cygwin*)
27098 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
27099 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27100 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
27101 + ;;
27102 + mingw*)
27103 + # MinGW DLLs use traditional 'lib' prefix
27104 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
27105 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
27106 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
27107 + # It is most probably a Windows format PATH printed by
27108 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
27109 + # path with ; separators, and with drive letters. We can handle the
27110 + # drive letters (cygwin fileutils understands them), so leave them,
27111 + # especially as we might pass files found there to a mingw objdump,
27112 + # which wouldn't understand a cygwinified path. Ahh.
27113 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
27114 + else
27115 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
27116 + fi
27117 + ;;
27118 + pw32*)
27119 + # pw32 DLLs use 'pw' prefix rather than 'lib'
27120 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
27121 + ;;
27122 + esac
27123 + ;;
27125 + *)
27126 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
27127 + ;;
27128 + esac
27129 + dynamic_linker='Win32 ld.exe'
27130 + # FIXME: first we should search . and the directory the executable is in
27131 + shlibpath_var=PATH
27132 + ;;
27134 +darwin* | rhapsody*)
27135 + dynamic_linker="$host_os dyld"
27136 + version_type=darwin
27137 + need_lib_prefix=no
27138 + need_version=no
27139 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
27140 + soname_spec='${libname}${release}${major}$shared_ext'
27141 + shlibpath_overrides_runpath=yes
27142 + shlibpath_var=DYLD_LIBRARY_PATH
27143 + shrext='$(test .$module = .yes && echo .so || echo .dylib)'
27144 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
27145 + if test "$GCC" = yes; then
27146 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
27147 + else
27148 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
27149 + fi
27150 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
27151 + ;;
27153 +dgux*)
27154 + version_type=linux
27155 + need_lib_prefix=no
27156 + need_version=no
27157 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
27158 + soname_spec='${libname}${release}${shared_ext}$major'
27159 + shlibpath_var=LD_LIBRARY_PATH
27160 + ;;
27162 +freebsd1*)
27163 + dynamic_linker=no
27164 + ;;
27166 +kfreebsd*-gnu)
27167 + version_type=linux
27168 + need_lib_prefix=no
27169 + need_version=no
27170 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27171 + soname_spec='${libname}${release}${shared_ext}$major'
27172 + shlibpath_var=LD_LIBRARY_PATH
27173 + shlibpath_overrides_runpath=no
27174 + hardcode_into_libs=yes
27175 + dynamic_linker='GNU ld.so'
27176 + ;;
27178 +freebsd*)
27179 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
27180 + version_type=freebsd-$objformat
27181 + case $version_type in
27182 + freebsd-elf*)
27183 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
27184 + need_version=no
27185 + need_lib_prefix=no
27186 + ;;
27187 + freebsd-*)
27188 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
27189 + need_version=yes
27190 + ;;
27191 + esac
27192 + shlibpath_var=LD_LIBRARY_PATH
27193 + case $host_os in
27194 + freebsd2*)
27195 + shlibpath_overrides_runpath=yes
27196 + ;;
27197 + freebsd3.01* | freebsdelf3.01*)
27198 + shlibpath_overrides_runpath=yes
27199 + hardcode_into_libs=yes
27200 + ;;
27201 + *) # from 3.2 on
27202 + shlibpath_overrides_runpath=no
27203 + hardcode_into_libs=yes
27204 + ;;
27205 + esac
27206 + ;;
27208 +gnu*)
27209 + version_type=linux
27210 + need_lib_prefix=no
27211 + need_version=no
27212 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
27213 + soname_spec='${libname}${release}${shared_ext}$major'
27214 + shlibpath_var=LD_LIBRARY_PATH
27215 + hardcode_into_libs=yes
27216 + ;;
27218 +hpux9* | hpux10* | hpux11*)
27219 + # Give a soname corresponding to the major version so that dld.sl refuses to
27220 + # link against other versions.
27221 + version_type=sunos
27222 + need_lib_prefix=no
27223 + need_version=no
27224 + case "$host_cpu" in
27225 + ia64*)
27226 + shrext='.so'
27227 + hardcode_into_libs=yes
27228 + dynamic_linker="$host_os dld.so"
27229 + shlibpath_var=LD_LIBRARY_PATH
27230 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27231 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27232 + soname_spec='${libname}${release}${shared_ext}$major'
27233 + if test "X$HPUX_IA64_MODE" = X32; then
27234 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
27235 + else
27236 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
27237 + fi
27238 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27239 + ;;
27240 + hppa*64*)
27241 + shrext='.sl'
27242 + hardcode_into_libs=yes
27243 + dynamic_linker="$host_os dld.sl"
27244 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
27245 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
27246 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27247 + soname_spec='${libname}${release}${shared_ext}$major'
27248 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
27249 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
27250 + ;;
27251 + *)
27252 + shrext='.sl'
27253 + dynamic_linker="$host_os dld.sl"
27254 + shlibpath_var=SHLIB_PATH
27255 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
27256 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27257 + soname_spec='${libname}${release}${shared_ext}$major'
27258 + ;;
27259 + esac
27260 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
27261 + postinstall_cmds='chmod 555 $lib'
27262 + ;;
27264 +irix5* | irix6* | nonstopux*)
27265 + case $host_os in
27266 + nonstopux*) version_type=nonstopux ;;
27267 + *)
27268 + if test "$lt_cv_prog_gnu_ld" = yes; then
27269 + version_type=linux
27270 + else
27271 + version_type=irix
27272 + fi ;;
27273 + esac
27274 + need_lib_prefix=no
27275 + need_version=no
27276 + soname_spec='${libname}${release}${shared_ext}$major'
27277 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
27278 + case $host_os in
27279 + irix5* | nonstopux*)
27280 + libsuff= shlibsuff=
27281 + ;;
27282 + *)
27283 + case $LD in # libtool.m4 will add one of these switches to LD
27284 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
27285 + libsuff= shlibsuff= libmagic=32-bit;;
27286 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
27287 + libsuff=32 shlibsuff=N32 libmagic=N32;;
27288 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
27289 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
27290 + *) libsuff= shlibsuff= libmagic=never-match;;
27291 + esac
27292 + ;;
27293 + esac
27294 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
27295 + shlibpath_overrides_runpath=no
27296 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
27297 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
27298 + hardcode_into_libs=yes
27299 + ;;
27301 +# No shared lib support for Linux oldld, aout, or coff.
27302 +linux*oldld* | linux*aout* | linux*coff*)
27303 + dynamic_linker=no
27304 + ;;
27306 +# This must be Linux ELF.
27307 +linux*)
27308 + version_type=linux
27309 + need_lib_prefix=no
27310 + need_version=no
27311 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27312 + soname_spec='${libname}${release}${shared_ext}$major'
27313 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
27314 + shlibpath_var=LD_LIBRARY_PATH
27315 + shlibpath_overrides_runpath=no
27316 + # This implies no fast_install, which is unacceptable.
27317 + # Some rework will be needed to allow for fast_install
27318 + # before this can be enabled.
27319 + hardcode_into_libs=yes
27321 + # /usr/X11R6/lib and /usr/local/lib are common enough...
27322 + sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
27324 + # We used to test for /lib/ld.so.1 and disable shared libraries on
27325 + # powerpc, because MkLinux only supported shared libraries with the
27326 + # GNU dynamic linker. Since this was broken with cross compilers,
27327 + # most powerpc-linux boxes support dynamic linking these days and
27328 + # people can always --disable-shared, the test was removed, and we
27329 + # assume the GNU/Linux dynamic linker is in use.
27330 + dynamic_linker='GNU/Linux ld.so'
27331 + ;;
27333 +knetbsd*-gnu)
27334 + version_type=linux
27335 + need_lib_prefix=no
27336 + need_version=no
27337 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
27338 + soname_spec='${libname}${release}${shared_ext}$major'
27339 + shlibpath_var=LD_LIBRARY_PATH
27340 + shlibpath_overrides_runpath=no
27341 + hardcode_into_libs=yes
27342 + dynamic_linker='GNU ld.so'
27343 + ;;
27345 +netbsd*)
27346 + version_type=sunos
27347 + need_lib_prefix=no
27348 + need_version=no
27349 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
27350 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27351 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27352 + dynamic_linker='NetBSD (a.out) ld.so'
27353 + else
27354 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
27355 + soname_spec='${libname}${release}${shared_ext}$major'
27356 + dynamic_linker='NetBSD ld.elf_so'
27357 + fi
27358 + shlibpath_var=LD_LIBRARY_PATH
27359 + shlibpath_overrides_runpath=yes
27360 + hardcode_into_libs=yes
27361 + ;;
27363 +newsos6)
27364 + version_type=linux
27365 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27366 + shlibpath_var=LD_LIBRARY_PATH
27367 + shlibpath_overrides_runpath=yes
27368 + ;;
27370 +nto-qnx*)
27371 + version_type=linux
27372 + need_lib_prefix=no
27373 + need_version=no
27374 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27375 + soname_spec='${libname}${release}${shared_ext}$major'
27376 + shlibpath_var=LD_LIBRARY_PATH
27377 + shlibpath_overrides_runpath=yes
27378 + ;;
27380 +openbsd*)
27381 + version_type=sunos
27382 + need_lib_prefix=no
27383 + need_version=yes
27384 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27385 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
27386 + shlibpath_var=LD_LIBRARY_PATH
27387 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
27388 + case $host_os in
27389 + openbsd2.[89] | openbsd2.[89].*)
27390 + shlibpath_overrides_runpath=no
27391 + ;;
27392 + *)
27393 + shlibpath_overrides_runpath=yes
27394 + ;;
27395 + esac
27396 + else
27397 + shlibpath_overrides_runpath=yes
27398 + fi
27399 + ;;
27401 +os2*)
27402 + libname_spec='$name'
27403 + shrext=".dll"
27404 + need_lib_prefix=no
27405 + library_names_spec='$libname${shared_ext} $libname.a'
27406 + dynamic_linker='OS/2 ld.exe'
27407 + shlibpath_var=LIBPATH
27408 + ;;
27410 +osf3* | osf4* | osf5*)
27411 + version_type=osf
27412 + need_lib_prefix=no
27413 + need_version=no
27414 + soname_spec='${libname}${release}${shared_ext}$major'
27415 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27416 + shlibpath_var=LD_LIBRARY_PATH
27417 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
27418 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
27419 + ;;
27421 +sco3.2v5*)
27422 + version_type=osf
27423 + soname_spec='${libname}${release}${shared_ext}$major'
27424 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27425 + shlibpath_var=LD_LIBRARY_PATH
27426 + ;;
27428 +solaris*)
27429 + version_type=linux
27430 + need_lib_prefix=no
27431 + need_version=no
27432 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27433 + soname_spec='${libname}${release}${shared_ext}$major'
27434 + shlibpath_var=LD_LIBRARY_PATH
27435 + shlibpath_overrides_runpath=yes
27436 + hardcode_into_libs=yes
27437 + # ldd complains unless libraries are executable
27438 + postinstall_cmds='chmod +x $lib'
27439 + ;;
27441 +sunos4*)
27442 + version_type=sunos
27443 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
27444 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
27445 + shlibpath_var=LD_LIBRARY_PATH
27446 + shlibpath_overrides_runpath=yes
27447 + if test "$with_gnu_ld" = yes; then
27448 + need_lib_prefix=no
27449 + fi
27450 + need_version=yes
27451 + ;;
27453 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
27454 + version_type=linux
27455 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27456 + soname_spec='${libname}${release}${shared_ext}$major'
27457 + shlibpath_var=LD_LIBRARY_PATH
27458 + case $host_vendor in
27459 + sni)
27460 + shlibpath_overrides_runpath=no
27461 + need_lib_prefix=no
27462 + export_dynamic_flag_spec='${wl}-Blargedynsym'
27463 + runpath_var=LD_RUN_PATH
27464 + ;;
27465 + siemens)
27466 + need_lib_prefix=no
27467 + ;;
27468 + motorola)
27469 + need_lib_prefix=no
27470 + need_version=no
27471 + shlibpath_overrides_runpath=no
27472 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
27473 + ;;
27474 + esac
27475 + ;;
27477 +sysv4*MP*)
27478 + if test -d /usr/nec ;then
27479 + version_type=linux
27480 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
27481 + soname_spec='$libname${shared_ext}.$major'
27482 + shlibpath_var=LD_LIBRARY_PATH
27483 + fi
27484 + ;;
27486 +uts4*)
27487 + version_type=linux
27488 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
27489 + soname_spec='${libname}${release}${shared_ext}$major'
27490 + shlibpath_var=LD_LIBRARY_PATH
27491 + ;;
27493 +*)
27494 + dynamic_linker=no
27495 + ;;
27496 +esac
27497 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
27498 +echo "${ECHO_T}$dynamic_linker" >&6
27499 +test "$dynamic_linker" = no && can_build_shared=no
27501 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
27502 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
27503 +hardcode_action_F77=
27504 +if test -n "$hardcode_libdir_flag_spec_F77" || \
27505 + test -n "$runpath_var F77" || \
27506 + test "X$hardcode_automatic_F77"="Xyes" ; then
27508 + # We can hardcode non-existant directories.
27509 + if test "$hardcode_direct_F77" != no &&
27510 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
27511 + # have to relink, otherwise we might link with an installed library
27512 + # when we should be linking with a yet-to-be-installed one
27513 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
27514 + test "$hardcode_minus_L_F77" != no; then
27515 + # Linking always hardcodes the temporary library directory.
27516 + hardcode_action_F77=relink
27517 + else
27518 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
27519 + hardcode_action_F77=immediate
27520 + fi
27521 +else
27522 + # We cannot hardcode anything, or else we can only hardcode existing
27523 + # directories.
27524 + hardcode_action_F77=unsupported
27525 +fi
27526 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
27527 +echo "${ECHO_T}$hardcode_action_F77" >&6
27529 +if test "$hardcode_action_F77" = relink; then
27530 + # Fast installation is not supported
27531 + enable_fast_install=no
27532 +elif test "$shlibpath_overrides_runpath" = yes ||
27533 + test "$enable_shared" = no; then
27534 + # Fast installation is not necessary
27535 + enable_fast_install=needless
27536 +fi
27538 +striplib=
27539 +old_striplib=
27540 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
27541 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
27542 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
27543 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
27544 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
27545 + echo "$as_me:$LINENO: result: yes" >&5
27546 +echo "${ECHO_T}yes" >&6
27547 +else
27548 +# FIXME - insert some real tests, host_os isn't really good enough
27549 + case $host_os in
27550 + darwin*)
27551 + if test -n "$STRIP" ; then
27552 + striplib="$STRIP -x"
27553 + echo "$as_me:$LINENO: result: yes" >&5
27554 +echo "${ECHO_T}yes" >&6
27555 + else
27556 + echo "$as_me:$LINENO: result: no" >&5
27557 +echo "${ECHO_T}no" >&6
27558 +fi
27559 + ;;
27560 + *)
27561 + echo "$as_me:$LINENO: result: no" >&5
27562 +echo "${ECHO_T}no" >&6
27563 + ;;
27564 + esac
27565 +fi
27569 +# The else clause should only fire when bootstrapping the
27570 +# libtool distribution, otherwise you forgot to ship ltmain.sh
27571 +# with your package, and you will get complaints that there are
27572 +# no rules to generate ltmain.sh.
27573 +if test -f "$ltmain"; then
27574 + # See if we are running on zsh, and set the options which allow our commands through
27575 + # without removal of \ escapes.
27576 + if test -n "${ZSH_VERSION+set}" ; then
27577 + setopt NO_GLOB_SUBST
27578 + fi
27579 + # Now quote all the things that may contain metacharacters while being
27580 + # careful not to overquote the AC_SUBSTed values. We take copies of the
27581 + # variables and quote the copies for generation of the libtool script.
27582 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
27583 + SED SHELL STRIP \
27584 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
27585 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
27586 + deplibs_check_method reload_flag reload_cmds need_locks \
27587 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
27588 + lt_cv_sys_global_symbol_to_c_name_address \
27589 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
27590 + old_postinstall_cmds old_postuninstall_cmds \
27591 + compiler_F77 \
27592 + CC_F77 \
27593 + LD_F77 \
27594 + lt_prog_compiler_wl_F77 \
27595 + lt_prog_compiler_pic_F77 \
27596 + lt_prog_compiler_static_F77 \
27597 + lt_prog_compiler_no_builtin_flag_F77 \
27598 + export_dynamic_flag_spec_F77 \
27599 + thread_safe_flag_spec_F77 \
27600 + whole_archive_flag_spec_F77 \
27601 + enable_shared_with_static_runtimes_F77 \
27602 + old_archive_cmds_F77 \
27603 + old_archive_from_new_cmds_F77 \
27604 + predep_objects_F77 \
27605 + postdep_objects_F77 \
27606 + predeps_F77 \
27607 + postdeps_F77 \
27608 + compiler_lib_search_path_F77 \
27609 + archive_cmds_F77 \
27610 + archive_expsym_cmds_F77 \
27611 + postinstall_cmds_F77 \
27612 + postuninstall_cmds_F77 \
27613 + old_archive_from_expsyms_cmds_F77 \
27614 + allow_undefined_flag_F77 \
27615 + no_undefined_flag_F77 \
27616 + export_symbols_cmds_F77 \
27617 + hardcode_libdir_flag_spec_F77 \
27618 + hardcode_libdir_flag_spec_ld_F77 \
27619 + hardcode_libdir_separator_F77 \
27620 + hardcode_automatic_F77 \
27621 + module_cmds_F77 \
27622 + module_expsym_cmds_F77 \
27623 + lt_cv_prog_compiler_c_o_F77 \
27624 + exclude_expsyms_F77 \
27625 + include_expsyms_F77; do
27627 + case $var in
27628 + old_archive_cmds_F77 | \
27629 + old_archive_from_new_cmds_F77 | \
27630 + archive_cmds_F77 | \
27631 + archive_expsym_cmds_F77 | \
27632 + module_cmds_F77 | \
27633 + module_expsym_cmds_F77 | \
27634 + old_archive_from_expsyms_cmds_F77 | \
27635 + export_symbols_cmds_F77 | \
27636 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
27637 + postinstall_cmds | postuninstall_cmds | \
27638 + old_postinstall_cmds | old_postuninstall_cmds | \
27639 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
27640 + # Double-quote double-evaled strings.
27641 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
27642 + ;;
27643 + *)
27644 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
27645 + ;;
27646 + esac
27647 + done
27649 + case $lt_echo in
27650 + *'\$0 --fallback-echo"')
27651 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
27652 + ;;
27653 + esac
27655 +cfgfile="$ofile"
27657 + cat <<__EOF__ >> "$cfgfile"
27658 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
27660 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27662 +# Shell to use when invoking shell scripts.
27663 +SHELL=$lt_SHELL
27665 +# Whether or not to build shared libraries.
27666 +build_libtool_libs=$enable_shared
27668 +# Whether or not to build static libraries.
27669 +build_old_libs=$enable_static
27671 +# Whether or not to add -lc for building shared libraries.
27672 +build_libtool_need_lc=$archive_cmds_need_lc_F77
27674 +# Whether or not to disallow shared libs when runtime libs are static
27675 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
27677 +# Whether or not to optimize for fast installation.
27678 +fast_install=$enable_fast_install
27680 +# The host system.
27681 +host_alias=$host_alias
27682 +host=$host
27684 +# An echo program that does not interpret backslashes.
27685 +echo=$lt_echo
27687 +# The archiver.
27688 +AR=$lt_AR
27689 +AR_FLAGS=$lt_AR_FLAGS
27691 +# A C compiler.
27692 +LTCC=$lt_LTCC
27694 +# A language-specific compiler.
27695 +CC=$lt_compiler_F77
27697 +# Is the compiler the GNU C compiler?
27698 +with_gcc=$GCC_F77
27700 +# An ERE matcher.
27701 +EGREP=$lt_EGREP
27703 +# The linker used to build libraries.
27704 +LD=$lt_LD_F77
27706 +# Whether we need hard or soft links.
27707 +LN_S=$lt_LN_S
27709 +# A BSD-compatible nm program.
27710 +NM=$lt_NM
27712 +# A symbol stripping program
27713 +STRIP=$lt_STRIP
27715 +# Used to examine libraries when file_magic_cmd begins "file"
27716 +MAGIC_CMD=$MAGIC_CMD
27718 +# Used on cygwin: DLL creation program.
27719 +DLLTOOL="$DLLTOOL"
27721 +# Used on cygwin: object dumper.
27722 +OBJDUMP="$OBJDUMP"
27724 +# Used on cygwin: assembler.
27725 +AS="$AS"
27727 +# The name of the directory that contains temporary libtool files.
27728 +objdir=$objdir
27730 +# How to create reloadable object files.
27731 +reload_flag=$lt_reload_flag
27732 +reload_cmds=$lt_reload_cmds
27734 +# How to pass a linker flag through the compiler.
27735 +wl=$lt_lt_prog_compiler_wl_F77
27737 +# Object file suffix (normally "o").
27738 +objext="$ac_objext"
27740 +# Old archive suffix (normally "a").
27741 +libext="$libext"
27743 +# Shared library suffix (normally ".so").
27744 +shrext='$shrext'
27746 +# Executable file suffix (normally "").
27747 +exeext="$exeext"
27749 +# Additional compiler flags for building library objects.
27750 +pic_flag=$lt_lt_prog_compiler_pic_F77
27751 +pic_mode=$pic_mode
27753 +# What is the maximum length of a command?
27754 +max_cmd_len=$lt_cv_sys_max_cmd_len
27756 +# Does compiler simultaneously support -c and -o options?
27757 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
27759 +# Must we lock files when doing compilation ?
27760 +need_locks=$lt_need_locks
27762 +# Do we need the lib prefix for modules?
27763 +need_lib_prefix=$need_lib_prefix
27765 +# Do we need a version for libraries?
27766 +need_version=$need_version
27768 +# Whether dlopen is supported.
27769 +dlopen_support=$enable_dlopen
27771 +# Whether dlopen of programs is supported.
27772 +dlopen_self=$enable_dlopen_self
27774 +# Whether dlopen of statically linked programs is supported.
27775 +dlopen_self_static=$enable_dlopen_self_static
27777 +# Compiler flag to prevent dynamic linking.
27778 +link_static_flag=$lt_lt_prog_compiler_static_F77
27780 +# Compiler flag to turn off builtin functions.
27781 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
27783 +# Compiler flag to allow reflexive dlopens.
27784 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
27786 +# Compiler flag to generate shared objects directly from archives.
27787 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
27789 +# Compiler flag to generate thread-safe objects.
27790 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
27792 +# Library versioning type.
27793 +version_type=$version_type
27795 +# Format of library name prefix.
27796 +libname_spec=$lt_libname_spec
27798 +# List of archive names. First name is the real one, the rest are links.
27799 +# The last name is the one that the linker finds with -lNAME.
27800 +library_names_spec=$lt_library_names_spec
27802 +# The coded name of the library, if different from the real name.
27803 +soname_spec=$lt_soname_spec
27805 +# Commands used to build and install an old-style archive.
27806 +RANLIB=$lt_RANLIB
27807 +old_archive_cmds=$lt_old_archive_cmds_F77
27808 +old_postinstall_cmds=$lt_old_postinstall_cmds
27809 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
27811 +# Create an old-style archive from a shared archive.
27812 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
27814 +# Create a temporary old-style archive to link instead of a shared archive.
27815 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
27817 +# Commands used to build and install a shared archive.
27818 +archive_cmds=$lt_archive_cmds_F77
27819 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
27820 +postinstall_cmds=$lt_postinstall_cmds
27821 +postuninstall_cmds=$lt_postuninstall_cmds
27823 +# Commands used to build a loadable module (assumed same as above if empty)
27824 +module_cmds=$lt_module_cmds_F77
27825 +module_expsym_cmds=$lt_module_expsym_cmds_F77
27827 +# Commands to strip libraries.
27828 +old_striplib=$lt_old_striplib
27829 +striplib=$lt_striplib
27831 +# Dependencies to place before the objects being linked to create a
27832 +# shared library.
27833 +predep_objects=$lt_predep_objects_F77
27835 +# Dependencies to place after the objects being linked to create a
27836 +# shared library.
27837 +postdep_objects=$lt_postdep_objects_F77
27839 +# Dependencies to place before the objects being linked to create a
27840 +# shared library.
27841 +predeps=$lt_predeps_F77
27843 +# Dependencies to place after the objects being linked to create a
27844 +# shared library.
27845 +postdeps=$lt_postdeps_F77
27847 +# The library search path used internally by the compiler when linking
27848 +# a shared library.
27849 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
27851 +# Method to check whether dependent libraries are shared objects.
27852 +deplibs_check_method=$lt_deplibs_check_method
27854 +# Command to use when deplibs_check_method == file_magic.
27855 +file_magic_cmd=$lt_file_magic_cmd
27857 +# Flag that allows shared libraries with undefined symbols to be built.
27858 +allow_undefined_flag=$lt_allow_undefined_flag_F77
27860 +# Flag that forces no undefined symbols.
27861 +no_undefined_flag=$lt_no_undefined_flag_F77
27863 +# Commands used to finish a libtool library installation in a directory.
27864 +finish_cmds=$lt_finish_cmds
27866 +# Same as above, but a single script fragment to be evaled but not shown.
27867 +finish_eval=$lt_finish_eval
27869 +# Take the output of nm and produce a listing of raw symbols and C names.
27870 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27872 +# Transform the output of nm in a proper C declaration
27873 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27875 +# Transform the output of nm in a C name address pair
27876 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27878 +# This is the shared library runtime path variable.
27879 +runpath_var=$runpath_var
27881 +# This is the shared library path variable.
27882 +shlibpath_var=$shlibpath_var
27884 +# Is shlibpath searched before the hard-coded library search path?
27885 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27887 +# How to hardcode a shared library path into an executable.
27888 +hardcode_action=$hardcode_action_F77
27890 +# Whether we should hardcode library paths into libraries.
27891 +hardcode_into_libs=$hardcode_into_libs
27893 +# Flag to hardcode \$libdir into a binary during linking.
27894 +# This must work even if \$libdir does not exist.
27895 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
27897 +# If ld is used when linking, flag to hardcode \$libdir into
27898 +# a binary during linking. This must work even if \$libdir does
27899 +# not exist.
27900 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
27902 +# Whether we need a single -rpath flag with a separated argument.
27903 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
27905 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
27906 +# resulting binary.
27907 +hardcode_direct=$hardcode_direct_F77
27909 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
27910 +# resulting binary.
27911 +hardcode_minus_L=$hardcode_minus_L_F77
27913 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
27914 +# the resulting binary.
27915 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
27917 +# Set to yes if building a shared library automatically hardcodes DIR into the library
27918 +# and all subsequent libraries and executables linked against it.
27919 +hardcode_automatic=$hardcode_automatic_F77
27921 +# Variables whose values should be saved in libtool wrapper scripts and
27922 +# restored at relink time.
27923 +variables_saved_for_relink="$variables_saved_for_relink"
27925 +# Whether libtool must link a program against all its dependency libraries.
27926 +link_all_deplibs=$link_all_deplibs_F77
27928 +# Compile-time system search path for libraries
27929 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27931 +# Run-time system search path for libraries
27932 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27934 +# Fix the shell variable \$srcfile for the compiler.
27935 +fix_srcfile_path="$fix_srcfile_path_F77"
27937 +# Set to yes if exported symbols are required.
27938 +always_export_symbols=$always_export_symbols_F77
27940 +# The commands to list exported symbols.
27941 +export_symbols_cmds=$lt_export_symbols_cmds_F77
27943 +# The commands to extract the exported symbol list from a shared archive.
27944 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
27946 +# Symbols that should not be listed in the preloaded symbols.
27947 +exclude_expsyms=$lt_exclude_expsyms_F77
27949 +# Symbols that must always be exported.
27950 +include_expsyms=$lt_include_expsyms_F77
27952 +# ### END LIBTOOL TAG CONFIG: $tagname
27954 +__EOF__
27957 +else
27958 + # If there is no Makefile yet, we rely on a make rule to execute
27959 + # `config.status --recheck' to rerun these tests and create the
27960 + # libtool script then.
27961 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
27962 + if test -f "$ltmain_in"; then
27963 + test -f Makefile && make "$ltmain"
27964 + fi
27965 +fi
27968 +ac_ext=c
27969 +ac_cpp='$CPP $CPPFLAGS'
27970 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27971 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27972 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
27974 +CC="$lt_save_CC"
27976 + else
27977 + tagname=""
27978 + fi
27979 + ;;
27981 + GCJ)
27982 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
27986 +# Source file extension for Java test sources.
27987 +ac_ext=java
27989 +# Object file extension for compiled Java test sources.
27990 +objext=o
27991 +objext_GCJ=$objext
27993 +# Code to be used in simple compile tests
27994 +lt_simple_compile_test_code="class foo {}\n"
27996 +# Code to be used in simple link tests
27997 +lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
27999 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
28001 +# If no C compiler was specified, use CC.
28002 +LTCC=${LTCC-"$CC"}
28004 +# Allow CC to be a program name with arguments.
28005 +compiler=$CC
28008 +# Allow CC to be a program name with arguments.
28009 +lt_save_CC="$CC"
28010 +CC=${GCJ-"gcj"}
28011 +compiler=$CC
28012 +compiler_GCJ=$CC
28014 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
28015 +archive_cmds_need_lc_GCJ=no
28018 +lt_prog_compiler_no_builtin_flag_GCJ=
28020 +if test "$GCC" = yes; then
28021 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
28024 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
28025 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
28026 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
28027 + echo $ECHO_N "(cached) $ECHO_C" >&6
28028 +else
28029 + lt_cv_prog_compiler_rtti_exceptions=no
28030 + ac_outfile=conftest.$ac_objext
28031 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28032 + lt_compiler_flag="-fno-rtti -fno-exceptions"
28033 + # Insert the option either (1) after the last *FLAGS variable, or
28034 + # (2) before a word containing "conftest.", or (3) at the end.
28035 + # Note that $ac_compile itself does not contain backslashes and begins
28036 + # with a dollar sign (not a hyphen), so the echo should work correctly.
28037 + # The option is referenced via a variable to avoid confusing sed.
28038 + lt_compile=`echo "$ac_compile" | $SED \
28039 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
28040 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28041 + -e 's:$: $lt_compiler_flag:'`
28042 + (eval echo "\"\$as_me:15447: $lt_compile\"" >&5)
28043 + (eval "$lt_compile" 2>conftest.err)
28044 + ac_status=$?
28045 + cat conftest.err >&5
28046 + echo "$as_me:15451: \$? = $ac_status" >&5
28047 + if (exit $ac_status) && test -s "$ac_outfile"; then
28048 + # The compiler can only warn and ignore the option if not recognized
28049 + # So say no if there are warnings
28050 + if test ! -s conftest.err; then
28051 + lt_cv_prog_compiler_rtti_exceptions=yes
28052 + fi
28053 + fi
28054 + $rm conftest*
28056 +fi
28057 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
28058 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
28060 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
28061 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
28062 +else
28063 + :
28064 +fi
28066 +fi
28068 +lt_prog_compiler_wl_GCJ=
28069 +lt_prog_compiler_pic_GCJ=
28070 +lt_prog_compiler_static_GCJ=
28072 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
28073 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
28075 + if test "$GCC" = yes; then
28076 + lt_prog_compiler_wl_GCJ='-Wl,'
28077 + lt_prog_compiler_static_GCJ='-static'
28079 + case $host_os in
28080 + aix*)
28081 + # All AIX code is PIC.
28082 + if test "$host_cpu" = ia64; then
28083 + # AIX 5 now supports IA64 processor
28084 + lt_prog_compiler_static_GCJ='-Bstatic'
28085 + fi
28086 + ;;
28088 + amigaos*)
28089 + # FIXME: we need at least 68020 code to build shared libraries, but
28090 + # adding the `-m68020' flag to GCC prevents building anything better,
28091 + # like `-m68040'.
28092 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
28093 + ;;
28095 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
28096 + # PIC is the default for these OSes.
28097 + ;;
28099 + mingw* | pw32* | os2*)
28100 + # This hack is so that the source file can tell whether it is being
28101 + # built for inclusion in a dll (and should export symbols for example).
28102 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
28103 + ;;
28105 + darwin* | rhapsody*)
28106 + # PIC is the default on this platform
28107 + # Common symbols not allowed in MH_DYLIB files
28108 + lt_prog_compiler_pic_GCJ='-fno-common'
28109 + ;;
28111 + msdosdjgpp*)
28112 + # Just because we use GCC doesn't mean we suddenly get shared libraries
28113 + # on systems that don't support them.
28114 + lt_prog_compiler_can_build_shared_GCJ=no
28115 + enable_shared=no
28116 + ;;
28118 + sysv4*MP*)
28119 + if test -d /usr/nec; then
28120 + lt_prog_compiler_pic_GCJ=-Kconform_pic
28121 + fi
28122 + ;;
28124 + hpux*)
28125 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
28126 + # not for PA HP-UX.
28127 + case "$host_cpu" in
28128 + hppa*64*|ia64*)
28129 + # +Z the default
28130 + ;;
28131 + *)
28132 + lt_prog_compiler_pic_GCJ='-fPIC'
28133 + ;;
28134 + esac
28135 + ;;
28137 + *)
28138 + lt_prog_compiler_pic_GCJ='-fPIC'
28139 + ;;
28140 + esac
28141 + else
28142 + # PORTME Check for flag to pass linker flags through the system compiler.
28143 + case $host_os in
28144 + aix*)
28145 + lt_prog_compiler_wl_GCJ='-Wl,'
28146 + if test "$host_cpu" = ia64; then
28147 + # AIX 5 now supports IA64 processor
28148 + lt_prog_compiler_static_GCJ='-Bstatic'
28149 + else
28150 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
28151 + fi
28152 + ;;
28154 + mingw* | pw32* | os2*)
28155 + # This hack is so that the source file can tell whether it is being
28156 + # built for inclusion in a dll (and should export symbols for example).
28157 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
28158 + ;;
28160 + hpux9* | hpux10* | hpux11*)
28161 + lt_prog_compiler_wl_GCJ='-Wl,'
28162 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
28163 + # not for PA HP-UX.
28164 + case "$host_cpu" in
28165 + hppa*64*|ia64*)
28166 + # +Z the default
28167 + ;;
28168 + *)
28169 + lt_prog_compiler_pic_GCJ='+Z'
28170 + ;;
28171 + esac
28172 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
28173 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
28174 + ;;
28176 + irix5* | irix6* | nonstopux*)
28177 + lt_prog_compiler_wl_GCJ='-Wl,'
28178 + # PIC (with -KPIC) is the default.
28179 + lt_prog_compiler_static_GCJ='-non_shared'
28180 + ;;
28182 + newsos6)
28183 + lt_prog_compiler_pic_GCJ='-KPIC'
28184 + lt_prog_compiler_static_GCJ='-Bstatic'
28185 + ;;
28187 + linux*)
28188 + case $CC in
28189 + icc* | ecc*)
28190 + lt_prog_compiler_wl_GCJ='-Wl,'
28191 + lt_prog_compiler_pic_GCJ='-KPIC'
28192 + lt_prog_compiler_static_GCJ='-static'
28193 + ;;
28194 + ccc*)
28195 + lt_prog_compiler_wl_GCJ='-Wl,'
28196 + # All Alpha code is PIC.
28197 + lt_prog_compiler_static_GCJ='-non_shared'
28198 + ;;
28199 + esac
28200 + ;;
28202 + osf3* | osf4* | osf5*)
28203 + lt_prog_compiler_wl_GCJ='-Wl,'
28204 + # All OSF/1 code is PIC.
28205 + lt_prog_compiler_static_GCJ='-non_shared'
28206 + ;;
28208 + sco3.2v5*)
28209 + lt_prog_compiler_pic_GCJ='-Kpic'
28210 + lt_prog_compiler_static_GCJ='-dn'
28211 + ;;
28213 + solaris*)
28214 + lt_prog_compiler_wl_GCJ='-Wl,'
28215 + lt_prog_compiler_pic_GCJ='-KPIC'
28216 + lt_prog_compiler_static_GCJ='-Bstatic'
28217 + ;;
28219 + sunos4*)
28220 + lt_prog_compiler_wl_GCJ='-Qoption ld '
28221 + lt_prog_compiler_pic_GCJ='-PIC'
28222 + lt_prog_compiler_static_GCJ='-Bstatic'
28223 + ;;
28225 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
28226 + lt_prog_compiler_wl_GCJ='-Wl,'
28227 + lt_prog_compiler_pic_GCJ='-KPIC'
28228 + lt_prog_compiler_static_GCJ='-Bstatic'
28229 + ;;
28231 + sysv4*MP*)
28232 + if test -d /usr/nec ;then
28233 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
28234 + lt_prog_compiler_static_GCJ='-Bstatic'
28235 + fi
28236 + ;;
28238 + uts4*)
28239 + lt_prog_compiler_pic_GCJ='-pic'
28240 + lt_prog_compiler_static_GCJ='-Bstatic'
28241 + ;;
28243 + *)
28244 + lt_prog_compiler_can_build_shared_GCJ=no
28245 + ;;
28246 + esac
28247 + fi
28249 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
28250 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
28252 +#
28253 +# Check to make sure the PIC flag actually works.
28254 +#
28255 +if test -n "$lt_prog_compiler_pic_GCJ"; then
28257 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
28258 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
28259 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
28260 + echo $ECHO_N "(cached) $ECHO_C" >&6
28261 +else
28262 + lt_prog_compiler_pic_works_GCJ=no
28263 + ac_outfile=conftest.$ac_objext
28264 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28265 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
28266 + # Insert the option either (1) after the last *FLAGS variable, or
28267 + # (2) before a word containing "conftest.", or (3) at the end.
28268 + # Note that $ac_compile itself does not contain backslashes and begins
28269 + # with a dollar sign (not a hyphen), so the echo should work correctly.
28270 + # The option is referenced via a variable to avoid confusing sed.
28271 + lt_compile=`echo "$ac_compile" | $SED \
28272 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
28273 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28274 + -e 's:$: $lt_compiler_flag:'`
28275 + (eval echo "\"\$as_me:15680: $lt_compile\"" >&5)
28276 + (eval "$lt_compile" 2>conftest.err)
28277 + ac_status=$?
28278 + cat conftest.err >&5
28279 + echo "$as_me:15684: \$? = $ac_status" >&5
28280 + if (exit $ac_status) && test -s "$ac_outfile"; then
28281 + # The compiler can only warn and ignore the option if not recognized
28282 + # So say no if there are warnings
28283 + if test ! -s conftest.err; then
28284 + lt_prog_compiler_pic_works_GCJ=yes
28285 + fi
28286 + fi
28287 + $rm conftest*
28289 +fi
28290 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
28291 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
28293 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
28294 + case $lt_prog_compiler_pic_GCJ in
28295 + "" | " "*) ;;
28296 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
28297 + esac
28298 +else
28299 + lt_prog_compiler_pic_GCJ=
28300 + lt_prog_compiler_can_build_shared_GCJ=no
28301 +fi
28303 +fi
28304 +case "$host_os" in
28305 + # For platforms which do not support PIC, -DPIC is meaningless:
28306 + *djgpp*)
28307 + lt_prog_compiler_pic_GCJ=
28308 + ;;
28309 + *)
28310 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
28311 + ;;
28312 +esac
28314 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
28315 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
28316 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
28317 + echo $ECHO_N "(cached) $ECHO_C" >&6
28318 +else
28319 + lt_cv_prog_compiler_c_o_GCJ=no
28320 + $rm -r conftest 2>/dev/null
28321 + mkdir conftest
28322 + cd conftest
28323 + mkdir out
28324 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
28326 + # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
28327 + # that will create temporary files in the current directory regardless of
28328 + # the output directory. Thus, making CWD read-only will cause this test
28329 + # to fail, enabling locking or at least warning the user not to do parallel
28330 + # builds.
28331 + chmod -w .
28333 + lt_compiler_flag="-o out/conftest2.$ac_objext"
28334 + # Insert the option either (1) after the last *FLAGS variable, or
28335 + # (2) before a word containing "conftest.", or (3) at the end.
28336 + # Note that $ac_compile itself does not contain backslashes and begins
28337 + # with a dollar sign (not a hyphen), so the echo should work correctly.
28338 + lt_compile=`echo "$ac_compile" | $SED \
28339 + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
28340 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
28341 + -e 's:$: $lt_compiler_flag:'`
28342 + (eval echo "\"\$as_me:15747: $lt_compile\"" >&5)
28343 + (eval "$lt_compile" 2>out/conftest.err)
28344 + ac_status=$?
28345 + cat out/conftest.err >&5
28346 + echo "$as_me:15751: \$? = $ac_status" >&5
28347 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
28348 + then
28349 + # The compiler can only warn and ignore the option if not recognized
28350 + # So say no if there are warnings
28351 + if test ! -s out/conftest.err; then
28352 + lt_cv_prog_compiler_c_o_GCJ=yes
28353 + fi
28354 + fi
28355 + chmod u+w .
28356 + $rm conftest*
28357 + # SGI C++ compiler will create directory out/ii_files/ for
28358 + # template instantiation
28359 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
28360 + $rm out/* && rmdir out
28361 + cd ..
28362 + rmdir conftest
28363 + $rm conftest*
28365 +fi
28366 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
28367 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
28370 +hard_links="nottested"
28371 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
28372 + # do not overwrite the value of need_locks provided by the user
28373 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
28374 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
28375 + hard_links=yes
28376 + $rm conftest*
28377 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
28378 + touch conftest.a
28379 + ln conftest.a conftest.b 2>&5 || hard_links=no
28380 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
28381 + echo "$as_me:$LINENO: result: $hard_links" >&5
28382 +echo "${ECHO_T}$hard_links" >&6
28383 + if test "$hard_links" = no; then
28384 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
28385 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
28386 + need_locks=warn
28387 + fi
28388 +else
28389 + need_locks=no
28390 +fi
28392 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
28393 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
28395 + runpath_var=
28396 + allow_undefined_flag_GCJ=
28397 + enable_shared_with_static_runtimes_GCJ=no
28398 + archive_cmds_GCJ=
28399 + archive_expsym_cmds_GCJ=
28400 + old_archive_From_new_cmds_GCJ=
28401 + old_archive_from_expsyms_cmds_GCJ=
28402 + export_dynamic_flag_spec_GCJ=
28403 + whole_archive_flag_spec_GCJ=
28404 + thread_safe_flag_spec_GCJ=
28405 + hardcode_libdir_flag_spec_GCJ=
28406 + hardcode_libdir_flag_spec_ld_GCJ=
28407 + hardcode_libdir_separator_GCJ=
28408 + hardcode_direct_GCJ=no
28409 + hardcode_minus_L_GCJ=no
28410 + hardcode_shlibpath_var_GCJ=unsupported
28411 + link_all_deplibs_GCJ=unknown
28412 + hardcode_automatic_GCJ=no
28413 + module_cmds_GCJ=
28414 + module_expsym_cmds_GCJ=
28415 + always_export_symbols_GCJ=no
28416 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
28417 + # include_expsyms should be a list of space-separated symbols to be *always*
28418 + # included in the symbol list
28419 + include_expsyms_GCJ=
28420 + # exclude_expsyms can be an extended regexp of symbols to exclude
28421 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
28422 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
28423 + # as well as any symbol that contains `d'.
28424 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
28425 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
28426 + # platforms (ab)use it in PIC code, but their linkers get confused if
28427 + # the symbol is explicitly referenced. Since portable code cannot
28428 + # rely on this symbol name, it's probably fine to never include it in
28429 + # preloaded symbol tables.
28430 + extract_expsyms_cmds=
28432 + case $host_os in
28433 + cygwin* | mingw* | pw32*)
28434 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
28435 + # When not using gcc, we currently assume that we are using
28436 + # Microsoft Visual C++.
28437 + if test "$GCC" != yes; then
28438 + with_gnu_ld=no
28439 + fi
28440 + ;;
28441 + openbsd*)
28442 + with_gnu_ld=no
28443 + ;;
28444 + esac
28446 + ld_shlibs_GCJ=yes
28447 + if test "$with_gnu_ld" = yes; then
28448 + # If archive_cmds runs LD, not CC, wlarc should be empty
28449 + wlarc='${wl}'
28451 + # See if GNU ld supports shared libraries.
28452 + case $host_os in
28453 + aix3* | aix4* | aix5*)
28454 + # On AIX/PPC, the GNU linker is very broken
28455 + if test "$host_cpu" != ia64; then
28456 + ld_shlibs_GCJ=no
28457 + cat <<EOF 1>&2
28459 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
28460 +*** to be unable to reliably create shared libraries on AIX.
28461 +*** Therefore, libtool is disabling shared libraries support. If you
28462 +*** really care for shared libraries, you may want to modify your PATH
28463 +*** so that a non-GNU linker is found, and then restart.
28465 +EOF
28466 + fi
28467 + ;;
28469 + amigaos*)
28470 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
28471 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
28472 + hardcode_minus_L_GCJ=yes
28474 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
28475 + # that the semantics of dynamic libraries on AmigaOS, at least up
28476 + # to version 4, is to share data among multiple programs linked
28477 + # with the same dynamic library. Since this doesn't match the
28478 + # behavior of shared libraries on other platforms, we can't use
28479 + # them.
28480 + ld_shlibs_GCJ=no
28481 + ;;
28483 + beos*)
28484 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28485 + allow_undefined_flag_GCJ=unsupported
28486 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
28487 + # support --undefined. This deserves some investigation. FIXME
28488 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28489 + else
28490 + ld_shlibs_GCJ=no
28491 + fi
28492 + ;;
28494 + cygwin* | mingw* | pw32*)
28495 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
28496 + # as there is no search path for DLLs.
28497 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
28498 + allow_undefined_flag_GCJ=unsupported
28499 + always_export_symbols_GCJ=no
28500 + enable_shared_with_static_runtimes_GCJ=yes
28501 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
28503 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
28504 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
28505 + # If the export-symbols file already is a .def file (1st line
28506 + # is EXPORTS), use it as is; otherwise, prepend...
28507 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
28508 + cp $export_symbols $output_objdir/$soname.def;
28509 + else
28510 + echo EXPORTS > $output_objdir/$soname.def;
28511 + cat $export_symbols >> $output_objdir/$soname.def;
28512 + fi~
28513 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
28514 + else
28515 + ld_shlibs=no
28516 + fi
28517 + ;;
28519 + netbsd*)
28520 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
28521 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
28522 + wlarc=
28523 + else
28524 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28525 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28526 + fi
28527 + ;;
28529 + solaris* | sysv5*)
28530 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
28531 + ld_shlibs_GCJ=no
28532 + cat <<EOF 1>&2
28534 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
28535 +*** create shared libraries on Solaris systems. Therefore, libtool
28536 +*** is disabling shared libraries support. We urge you to upgrade GNU
28537 +*** binutils to release 2.9.1 or newer. Another option is to modify
28538 +*** your PATH or compiler configuration so that the native linker is
28539 +*** used, and then restart.
28541 +EOF
28542 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28543 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28544 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28545 + else
28546 + ld_shlibs_GCJ=no
28547 + fi
28548 + ;;
28550 + sunos4*)
28551 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28552 + wlarc=
28553 + hardcode_direct_GCJ=yes
28554 + hardcode_shlibpath_var_GCJ=no
28555 + ;;
28557 + linux*)
28558 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
28559 + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28560 + archive_cmds_GCJ="$tmp_archive_cmds"
28561 + supports_anon_versioning=no
28562 + case `$LD -v 2>/dev/null` in
28563 + *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
28564 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
28565 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
28566 + *\ 2.11.*) ;; # other 2.11 versions
28567 + *) supports_anon_versioning=yes ;;
28568 + esac
28569 + if test $supports_anon_versioning = yes; then
28570 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
28571 +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
28572 +$echo "local: *; };" >> $output_objdir/$libname.ver~
28573 + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
28574 + else
28575 + archive_expsym_cmds_GCJ="$tmp_archive_cmds"
28576 + fi
28577 + else
28578 + ld_shlibs_GCJ=no
28579 + fi
28580 + ;;
28582 + *)
28583 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
28584 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
28585 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
28586 + else
28587 + ld_shlibs_GCJ=no
28588 + fi
28589 + ;;
28590 + esac
28592 + if test "$ld_shlibs_GCJ" = yes; then
28593 + runpath_var=LD_RUN_PATH
28594 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
28595 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
28596 + # ancient GNU ld didn't support --whole-archive et. al.
28597 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
28598 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
28599 + else
28600 + whole_archive_flag_spec_GCJ=
28601 + fi
28602 + fi
28603 + else
28604 + # PORTME fill in a description of your system's linker (not GNU ld)
28605 + case $host_os in
28606 + aix3*)
28607 + allow_undefined_flag_GCJ=unsupported
28608 + always_export_symbols_GCJ=yes
28609 + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
28610 + # Note: this linker hardcodes the directories in LIBPATH if there
28611 + # are no directories specified by -L.
28612 + hardcode_minus_L_GCJ=yes
28613 + if test "$GCC" = yes && test -z "$link_static_flag"; then
28614 + # Neither direct hardcoding nor static linking is supported with a
28615 + # broken collect2.
28616 + hardcode_direct_GCJ=unsupported
28617 + fi
28618 + ;;
28620 + aix4* | aix5*)
28621 + if test "$host_cpu" = ia64; then
28622 + # On IA64, the linker does run time linking by default, so we don't
28623 + # have to do anything special.
28624 + aix_use_runtimelinking=no
28625 + exp_sym_flag='-Bexport'
28626 + no_entry_flag=""
28627 + else
28628 + # If we're using GNU nm, then we don't want the "-C" option.
28629 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
28630 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
28631 + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
28632 + else
28633 + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
28634 + fi
28635 + aix_use_runtimelinking=no
28637 + # Test if we are trying to use run time linking or normal
28638 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
28639 + # need to do runtime linking.
28640 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
28641 + for ld_flag in $LDFLAGS; do
28642 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
28643 + aix_use_runtimelinking=yes
28644 + break
28645 + fi
28646 + done
28647 + esac
28649 + exp_sym_flag='-bexport'
28650 + no_entry_flag='-bnoentry'
28651 + fi
28653 + # When large executables or shared objects are built, AIX ld can
28654 + # have problems creating the table of contents. If linking a library
28655 + # or program results in "error TOC overflow" add -mminimal-toc to
28656 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
28657 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
28659 + archive_cmds_GCJ=''
28660 + hardcode_direct_GCJ=yes
28661 + hardcode_libdir_separator_GCJ=':'
28662 + link_all_deplibs_GCJ=yes
28664 + if test "$GCC" = yes; then
28665 + case $host_os in aix4.012|aix4.012.*)
28666 + # We only want to do this on AIX 4.2 and lower, the check
28667 + # below for broken collect2 doesn't work under 4.3+
28668 + collect2name=`${CC} -print-prog-name=collect2`
28669 + if test -f "$collect2name" && \
28670 + strings "$collect2name" | grep resolve_lib_name >/dev/null
28671 + then
28672 + # We have reworked collect2
28673 + hardcode_direct_GCJ=yes
28674 + else
28675 + # We have old collect2
28676 + hardcode_direct_GCJ=unsupported
28677 + # It fails to find uninstalled libraries when the uninstalled
28678 + # path is not listed in the libpath. Setting hardcode_minus_L
28679 + # to unsupported forces relinking
28680 + hardcode_minus_L_GCJ=yes
28681 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
28682 + hardcode_libdir_separator_GCJ=
28683 + fi
28684 + esac
28685 + shared_flag='-shared'
28686 + else
28687 + # not using gcc
28688 + if test "$host_cpu" = ia64; then
28689 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
28690 + # chokes on -Wl,-G. The following line is correct:
28691 + shared_flag='-G'
28692 + else
28693 + if test "$aix_use_runtimelinking" = yes; then
28694 + shared_flag='${wl}-G'
28695 + else
28696 + shared_flag='${wl}-bM:SRE'
28697 + fi
28698 + fi
28699 + fi
28701 + # It seems that -bexpall does not export symbols beginning with
28702 + # underscore (_), so it is better to generate a list of symbols to export.
28703 + always_export_symbols_GCJ=yes
28704 + if test "$aix_use_runtimelinking" = yes; then
28705 + # Warning - without using the other runtime loading flags (-brtl),
28706 + # -berok will link without error, but may produce a broken library.
28707 + allow_undefined_flag_GCJ='-berok'
28708 + # Determine the default libpath from the value encoded in an empty executable.
28709 + cat >conftest.$ac_ext <<_ACEOF
28710 +/* confdefs.h. */
28711 +_ACEOF
28712 +cat confdefs.h >>conftest.$ac_ext
28713 +cat >>conftest.$ac_ext <<_ACEOF
28714 +/* end confdefs.h. */
28716 +int
28717 +main ()
28718 +{
28720 + ;
28721 + return 0;
28722 +}
28723 +_ACEOF
28724 +rm -f conftest.$ac_objext conftest$ac_exeext
28725 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28726 + (eval $ac_link) 2>conftest.er1
28727 + ac_status=$?
28728 + grep -v '^ *+' conftest.er1 >conftest.err
28729 + rm -f conftest.er1
28730 + cat conftest.err >&5
28731 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28732 + (exit $ac_status); } &&
28733 + { ac_try='test -z "$ac_c_werror_flag"
28734 + || test ! -s conftest.err'
28735 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736 + (eval $ac_try) 2>&5
28737 + ac_status=$?
28738 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739 + (exit $ac_status); }; } &&
28740 + { ac_try='test -s conftest$ac_exeext'
28741 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28742 + (eval $ac_try) 2>&5
28743 + ac_status=$?
28744 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745 + (exit $ac_status); }; }; then
28747 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28748 +}'`
28749 +# Check for a 64-bit object if we didn't find anything.
28750 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28751 +}'`; fi
28752 +else
28753 + echo "$as_me: failed program was:" >&5
28754 +sed 's/^/| /' conftest.$ac_ext >&5
28756 +fi
28757 +rm -f conftest.err conftest.$ac_objext \
28758 + conftest$ac_exeext conftest.$ac_ext
28759 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28761 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
28762 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
28763 + else
28764 + if test "$host_cpu" = ia64; then
28765 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
28766 + allow_undefined_flag_GCJ="-z nodefs"
28767 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
28768 + else
28769 + # Determine the default libpath from the value encoded in an empty executable.
28770 + cat >conftest.$ac_ext <<_ACEOF
28771 +/* confdefs.h. */
28772 +_ACEOF
28773 +cat confdefs.h >>conftest.$ac_ext
28774 +cat >>conftest.$ac_ext <<_ACEOF
28775 +/* end confdefs.h. */
28777 +int
28778 +main ()
28779 +{
28781 + ;
28782 + return 0;
28783 +}
28784 +_ACEOF
28785 +rm -f conftest.$ac_objext conftest$ac_exeext
28786 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28787 + (eval $ac_link) 2>conftest.er1
28788 + ac_status=$?
28789 + grep -v '^ *+' conftest.er1 >conftest.err
28790 + rm -f conftest.er1
28791 + cat conftest.err >&5
28792 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28793 + (exit $ac_status); } &&
28794 + { ac_try='test -z "$ac_c_werror_flag"
28795 + || test ! -s conftest.err'
28796 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28797 + (eval $ac_try) 2>&5
28798 + ac_status=$?
28799 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28800 + (exit $ac_status); }; } &&
28801 + { ac_try='test -s conftest$ac_exeext'
28802 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28803 + (eval $ac_try) 2>&5
28804 + ac_status=$?
28805 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806 + (exit $ac_status); }; }; then
28808 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28809 +}'`
28810 +# Check for a 64-bit object if we didn't find anything.
28811 +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
28812 +}'`; fi
28813 +else
28814 + echo "$as_me: failed program was:" >&5
28815 +sed 's/^/| /' conftest.$ac_ext >&5
28817 +fi
28818 +rm -f conftest.err conftest.$ac_objext \
28819 + conftest$ac_exeext conftest.$ac_ext
28820 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
28822 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
28823 + # Warning - without using the other run time loading flags,
28824 + # -berok will link without error, but may produce a broken library.
28825 + no_undefined_flag_GCJ=' ${wl}-bernotok'
28826 + allow_undefined_flag_GCJ=' ${wl}-berok'
28827 + # -bexpall does not export symbols beginning with underscore (_)
28828 + always_export_symbols_GCJ=yes
28829 + # Exported symbols can be pulled into shared objects from archives
28830 + whole_archive_flag_spec_GCJ=' '
28831 + archive_cmds_need_lc_GCJ=yes
28832 + # This is similar to how AIX traditionally builds it's shared libraries.
28833 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
28834 + fi
28835 + fi
28836 + ;;
28838 + amigaos*)
28839 + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
28840 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
28841 + hardcode_minus_L_GCJ=yes
28842 + # see comment about different semantics on the GNU ld section
28843 + ld_shlibs_GCJ=no
28844 + ;;
28846 + bsdi4*)
28847 + export_dynamic_flag_spec_GCJ=-rdynamic
28848 + ;;
28850 + cygwin* | mingw* | pw32*)
28851 + # When not using gcc, we currently assume that we are using
28852 + # Microsoft Visual C++.
28853 + # hardcode_libdir_flag_spec is actually meaningless, as there is
28854 + # no search path for DLLs.
28855 + hardcode_libdir_flag_spec_GCJ=' '
28856 + allow_undefined_flag_GCJ=unsupported
28857 + # Tell ltmain to make .lib files, not .a files.
28858 + libext=lib
28859 + # Tell ltmain to make .dll files, not .so files.
28860 + shrext=".dll"
28861 + # FIXME: Setting linknames here is a bad hack.
28862 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
28863 + # The linker will automatically build a .lib file if we build a DLL.
28864 + old_archive_From_new_cmds_GCJ='true'
28865 + # FIXME: Should let the user specify the lib program.
28866 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
28867 + fix_srcfile_path='`cygpath -w "$srcfile"`'
28868 + enable_shared_with_static_runtimes_GCJ=yes
28869 + ;;
28871 + darwin* | rhapsody*)
28872 + if test "$GXX" = yes ; then
28873 + archive_cmds_need_lc_GCJ=no
28874 + case "$host_os" in
28875 + rhapsody* | darwin1.[012])
28876 + allow_undefined_flag_GCJ='-undefined suppress'
28877 + ;;
28878 + *) # Darwin 1.3 on
28879 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
28880 + allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
28881 + else
28882 + case ${MACOSX_DEPLOYMENT_TARGET} in
28883 + 10.[012])
28884 + allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
28885 + ;;
28886 + 10.*)
28887 + allow_undefined_flag_GCJ='-undefined dynamic_lookup'
28888 + ;;
28889 + esac
28890 + fi
28891 + ;;
28892 + esac
28893 + lt_int_apple_cc_single_mod=no
28894 + output_verbose_link_cmd='echo'
28895 + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
28896 + lt_int_apple_cc_single_mod=yes
28897 + fi
28898 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
28899 + archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
28900 + else
28901 + archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
28902 + fi
28903 + module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
28904 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
28905 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
28906 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28907 + else
28908 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28909 + fi
28910 + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
28911 + hardcode_direct_GCJ=no
28912 + hardcode_automatic_GCJ=yes
28913 + hardcode_shlibpath_var_GCJ=unsupported
28914 + whole_archive_flag_spec_GCJ='-all_load $convenience'
28915 + link_all_deplibs_GCJ=yes
28916 + else
28917 + ld_shlibs_GCJ=no
28918 + fi
28919 + ;;
28921 + dgux*)
28922 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
28923 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
28924 + hardcode_shlibpath_var_GCJ=no
28925 + ;;
28927 + freebsd1*)
28928 + ld_shlibs_GCJ=no
28929 + ;;
28931 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
28932 + # support. Future versions do this automatically, but an explicit c++rt0.o
28933 + # does not break anything, and helps significantly (at the cost of a little
28934 + # extra space).
28935 + freebsd2.2*)
28936 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
28937 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
28938 + hardcode_direct_GCJ=yes
28939 + hardcode_shlibpath_var_GCJ=no
28940 + ;;
28942 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
28943 + freebsd2*)
28944 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
28945 + hardcode_direct_GCJ=yes
28946 + hardcode_minus_L_GCJ=yes
28947 + hardcode_shlibpath_var_GCJ=no
28948 + ;;
28950 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
28951 + freebsd* | kfreebsd*-gnu)
28952 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
28953 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
28954 + hardcode_direct_GCJ=yes
28955 + hardcode_shlibpath_var_GCJ=no
28956 + ;;
28958 + hpux9*)
28959 + if test "$GCC" = yes; then
28960 + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28961 + else
28962 + archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
28963 + fi
28964 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
28965 + hardcode_libdir_separator_GCJ=:
28966 + hardcode_direct_GCJ=yes
28968 + # hardcode_minus_L: Not really in the search PATH,
28969 + # but as the default location of the library.
28970 + hardcode_minus_L_GCJ=yes
28971 + export_dynamic_flag_spec_GCJ='${wl}-E'
28972 + ;;
28974 + hpux10* | hpux11*)
28975 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
28976 + case "$host_cpu" in
28977 + hppa*64*|ia64*)
28978 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
28979 + ;;
28980 + *)
28981 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
28982 + ;;
28983 + esac
28984 + else
28985 + case "$host_cpu" in
28986 + hppa*64*|ia64*)
28987 + archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
28988 + ;;
28989 + *)
28990 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
28991 + ;;
28992 + esac
28993 + fi
28994 + if test "$with_gnu_ld" = no; then
28995 + case "$host_cpu" in
28996 + hppa*64*)
28997 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
28998 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
28999 + hardcode_libdir_separator_GCJ=:
29000 + hardcode_direct_GCJ=no
29001 + hardcode_shlibpath_var_GCJ=no
29002 + ;;
29003 + ia64*)
29004 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
29005 + hardcode_direct_GCJ=no
29006 + hardcode_shlibpath_var_GCJ=no
29008 + # hardcode_minus_L: Not really in the search PATH,
29009 + # but as the default location of the library.
29010 + hardcode_minus_L_GCJ=yes
29011 + ;;
29012 + *)
29013 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
29014 + hardcode_libdir_separator_GCJ=:
29015 + hardcode_direct_GCJ=yes
29016 + export_dynamic_flag_spec_GCJ='${wl}-E'
29018 + # hardcode_minus_L: Not really in the search PATH,
29019 + # but as the default location of the library.
29020 + hardcode_minus_L_GCJ=yes
29021 + ;;
29022 + esac
29023 + fi
29024 + ;;
29026 + irix5* | irix6* | nonstopux*)
29027 + if test "$GCC" = yes; then
29028 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29029 + else
29030 + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29031 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
29032 + fi
29033 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
29034 + hardcode_libdir_separator_GCJ=:
29035 + link_all_deplibs_GCJ=yes
29036 + ;;
29038 + netbsd*)
29039 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29040 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
29041 + else
29042 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
29043 + fi
29044 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
29045 + hardcode_direct_GCJ=yes
29046 + hardcode_shlibpath_var_GCJ=no
29047 + ;;
29049 + newsos6)
29050 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29051 + hardcode_direct_GCJ=yes
29052 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
29053 + hardcode_libdir_separator_GCJ=:
29054 + hardcode_shlibpath_var_GCJ=no
29055 + ;;
29057 + openbsd*)
29058 + hardcode_direct_GCJ=yes
29059 + hardcode_shlibpath_var_GCJ=no
29060 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29061 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29062 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
29063 + export_dynamic_flag_spec_GCJ='${wl}-E'
29064 + else
29065 + case $host_os in
29066 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
29067 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
29068 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
29069 + ;;
29070 + *)
29071 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
29072 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
29073 + ;;
29074 + esac
29075 + fi
29076 + ;;
29078 + os2*)
29079 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
29080 + hardcode_minus_L_GCJ=yes
29081 + allow_undefined_flag_GCJ=unsupported
29082 + archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
29083 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
29084 + ;;
29086 + osf3*)
29087 + if test "$GCC" = yes; then
29088 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
29089 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29090 + else
29091 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
29092 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29093 + fi
29094 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
29095 + hardcode_libdir_separator_GCJ=:
29096 + ;;
29098 + osf4* | osf5*) # as osf3* with the addition of -msym flag
29099 + if test "$GCC" = yes; then
29100 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
29101 + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
29102 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
29103 + else
29104 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
29105 + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
29106 + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
29107 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
29109 + # Both c and cxx compiler support -rpath directly
29110 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
29111 + fi
29112 + hardcode_libdir_separator_GCJ=:
29113 + ;;
29115 + sco3.2v5*)
29116 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29117 + hardcode_shlibpath_var_GCJ=no
29118 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
29119 + runpath_var=LD_RUN_PATH
29120 + hardcode_runpath_var=yes
29121 + ;;
29123 + solaris*)
29124 + no_undefined_flag_GCJ=' -z text'
29125 + if test "$GCC" = yes; then
29126 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29127 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29128 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
29129 + else
29130 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
29131 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29132 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
29133 + fi
29134 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
29135 + hardcode_shlibpath_var_GCJ=no
29136 + case $host_os in
29137 + solaris2.[0-5] | solaris2.[0-5].*) ;;
29138 + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
29139 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
29140 + esac
29141 + link_all_deplibs_GCJ=yes
29142 + ;;
29144 + sunos4*)
29145 + if test "x$host_vendor" = xsequent; then
29146 + # Use $CC to link under sequent, because it throws in some extra .o
29147 + # files that make .init and .fini sections work.
29148 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
29149 + else
29150 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
29151 + fi
29152 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
29153 + hardcode_direct_GCJ=yes
29154 + hardcode_minus_L_GCJ=yes
29155 + hardcode_shlibpath_var_GCJ=no
29156 + ;;
29158 + sysv4)
29159 + case $host_vendor in
29160 + sni)
29161 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29162 + hardcode_direct_GCJ=yes # is this really true???
29163 + ;;
29164 + siemens)
29165 + ## LD is ld it makes a PLAMLIB
29166 + ## CC just makes a GrossModule.
29167 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29168 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
29169 + hardcode_direct_GCJ=no
29170 + ;;
29171 + motorola)
29172 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29173 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
29174 + ;;
29175 + esac
29176 + runpath_var='LD_RUN_PATH'
29177 + hardcode_shlibpath_var_GCJ=no
29178 + ;;
29180 + sysv4.3*)
29181 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29182 + hardcode_shlibpath_var_GCJ=no
29183 + export_dynamic_flag_spec_GCJ='-Bexport'
29184 + ;;
29186 + sysv4*MP*)
29187 + if test -d /usr/nec; then
29188 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29189 + hardcode_shlibpath_var_GCJ=no
29190 + runpath_var=LD_RUN_PATH
29191 + hardcode_runpath_var=yes
29192 + ld_shlibs_GCJ=yes
29193 + fi
29194 + ;;
29196 + sysv4.2uw2*)
29197 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
29198 + hardcode_direct_GCJ=yes
29199 + hardcode_minus_L_GCJ=no
29200 + hardcode_shlibpath_var_GCJ=no
29201 + hardcode_runpath_var=yes
29202 + runpath_var=LD_RUN_PATH
29203 + ;;
29205 + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
29206 + no_undefined_flag_GCJ='${wl}-z ${wl}text'
29207 + if test "$GCC" = yes; then
29208 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29209 + else
29210 + archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
29211 + fi
29212 + runpath_var='LD_RUN_PATH'
29213 + hardcode_shlibpath_var_GCJ=no
29214 + ;;
29216 + sysv5*)
29217 + no_undefined_flag_GCJ=' -z text'
29218 + # $CC -shared without GNU ld will not create a library from C++
29219 + # object files and a static libstdc++, better avoid it by now
29220 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
29221 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
29222 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
29223 + hardcode_libdir_flag_spec_GCJ=
29224 + hardcode_shlibpath_var_GCJ=no
29225 + runpath_var='LD_RUN_PATH'
29226 + ;;
29228 + uts4*)
29229 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
29230 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
29231 + hardcode_shlibpath_var_GCJ=no
29232 + ;;
29234 + *)
29235 + ld_shlibs_GCJ=no
29236 + ;;
29237 + esac
29238 + fi
29240 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
29241 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
29242 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
29244 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
29245 +if test "$GCC" = yes; then
29246 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
29247 +fi
29249 +#
29250 +# Do we need to explicitly link libc?
29251 +#
29252 +case "x$archive_cmds_need_lc_GCJ" in
29253 +x|xyes)
29254 + # Assume -lc should be added
29255 + archive_cmds_need_lc_GCJ=yes
29257 + if test "$enable_shared" = yes && test "$GCC" = yes; then
29258 + case $archive_cmds_GCJ in
29259 + *'~'*)
29260 + # FIXME: we may have to deal with multi-command sequences.
29261 + ;;
29262 + '$CC '*)
29263 + # Test whether the compiler implicitly links with -lc since on some
29264 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
29265 + # to ld, don't add -lc before -lgcc.
29266 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
29267 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
29268 + $rm conftest*
29269 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
29271 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29272 + (eval $ac_compile) 2>&5
29273 + ac_status=$?
29274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29275 + (exit $ac_status); } 2>conftest.err; then
29276 + soname=conftest
29277 + lib=conftest
29278 + libobjs=conftest.$ac_objext
29279 + deplibs=
29280 + wl=$lt_prog_compiler_wl_GCJ
29281 + compiler_flags=-v
29282 + linker_flags=-v
29283 + verstring=
29284 + output_objdir=.
29285 + libname=conftest
29286 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
29287 + allow_undefined_flag_GCJ=
29288 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
29289 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
29290 + ac_status=$?
29291 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29292 + (exit $ac_status); }
29293 + then
29294 + archive_cmds_need_lc_GCJ=no
29295 + else
29296 + archive_cmds_need_lc_GCJ=yes
29297 + fi
29298 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
29299 + else
29300 + cat conftest.err 1>&5
29301 + fi
29302 + $rm conftest*
29303 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
29304 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
29305 + ;;
29306 + esac
29307 + fi
29308 + ;;
29309 +esac
29311 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
29312 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
29313 +library_names_spec=
29314 +libname_spec='lib$name'
29315 +soname_spec=
29316 +shrext=".so"
29317 +postinstall_cmds=
29318 +postuninstall_cmds=
29319 +finish_cmds=
29320 +finish_eval=
29321 +shlibpath_var=
29322 +shlibpath_overrides_runpath=unknown
29323 +version_type=none
29324 +dynamic_linker="$host_os ld.so"
29325 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
29326 +if test "$GCC" = yes; then
29327 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29328 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
29329 + # if the path contains ";" then we assume it to be the separator
29330 + # otherwise default to the standard path separator (i.e. ":") - it is
29331 + # assumed that no part of a normal pathname contains ";" but that should
29332 + # okay in the real world where ";" in dirpaths is itself problematic.
29333 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29334 + else
29335 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29336 + fi
29337 +else
29338 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
29339 +fi
29340 +need_lib_prefix=unknown
29341 +hardcode_into_libs=no
29343 +# when you set need_version to no, make sure it does not cause -set_version
29344 +# flags to be left without arguments
29345 +need_version=unknown
29347 +case $host_os in
29348 +aix3*)
29349 + version_type=linux
29350 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
29351 + shlibpath_var=LIBPATH
29353 + # AIX 3 has no versioning support, so we append a major version to the name.
29354 + soname_spec='${libname}${release}${shared_ext}$major'
29355 + ;;
29357 +aix4* | aix5*)
29358 + version_type=linux
29359 + need_lib_prefix=no
29360 + need_version=no
29361 + hardcode_into_libs=yes
29362 + if test "$host_cpu" = ia64; then
29363 + # AIX 5 supports IA64
29364 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
29365 + shlibpath_var=LD_LIBRARY_PATH
29366 + else
29367 + # With GCC up to 2.95.x, collect2 would create an import file
29368 + # for dependence libraries. The import file would start with
29369 + # the line `#! .'. This would cause the generated library to
29370 + # depend on `.', always an invalid library. This was fixed in
29371 + # development snapshots of GCC prior to 3.0.
29372 + case $host_os in
29373 + aix4 | aix4.[01] | aix4.[01].*)
29374 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
29375 + echo ' yes '
29376 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
29377 + :
29378 + else
29379 + can_build_shared=no
29380 + fi
29381 + ;;
29382 + esac
29383 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
29384 + # soname into executable. Probably we can add versioning support to
29385 + # collect2, so additional links can be useful in future.
29386 + if test "$aix_use_runtimelinking" = yes; then
29387 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
29388 + # instead of lib<name>.a to let people know that these are not
29389 + # typical AIX shared libraries.
29390 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29391 + else
29392 + # We preserve .a as extension for shared libraries through AIX4.2
29393 + # and later when we are not doing run time linking.
29394 + library_names_spec='${libname}${release}.a $libname.a'
29395 + soname_spec='${libname}${release}${shared_ext}$major'
29396 + fi
29397 + shlibpath_var=LIBPATH
29398 + fi
29399 + ;;
29401 +amigaos*)
29402 + library_names_spec='$libname.ixlibrary $libname.a'
29403 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
29404 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
29405 + ;;
29407 +beos*)
29408 + library_names_spec='${libname}${shared_ext}'
29409 + dynamic_linker="$host_os ld.so"
29410 + shlibpath_var=LIBRARY_PATH
29411 + ;;
29413 +bsdi4*)
29414 + version_type=linux
29415 + need_version=no
29416 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29417 + soname_spec='${libname}${release}${shared_ext}$major'
29418 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
29419 + shlibpath_var=LD_LIBRARY_PATH
29420 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
29421 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
29422 + # the default ld.so.conf also contains /usr/contrib/lib and
29423 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
29424 + # libtool to hard-code these into programs
29425 + ;;
29427 +cygwin* | mingw* | pw32*)
29428 + version_type=windows
29429 + shrext=".dll"
29430 + need_version=no
29431 + need_lib_prefix=no
29433 + case $GCC,$host_os in
29434 + yes,cygwin* | yes,mingw* | yes,pw32*)
29435 + library_names_spec='$libname.dll.a'
29436 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
29437 + postinstall_cmds='base_file=`basename \${file}`~
29438 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
29439 + dldir=$destdir/`dirname \$dlpath`~
29440 + test -d \$dldir || mkdir -p \$dldir~
29441 + $install_prog $dir/$dlname \$dldir/$dlname'
29442 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
29443 + dlpath=$dir/\$dldll~
29444 + $rm \$dlpath'
29445 + shlibpath_overrides_runpath=yes
29447 + case $host_os in
29448 + cygwin*)
29449 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
29450 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29451 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
29452 + ;;
29453 + mingw*)
29454 + # MinGW DLLs use traditional 'lib' prefix
29455 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
29456 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
29457 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
29458 + # It is most probably a Windows format PATH printed by
29459 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
29460 + # path with ; separators, and with drive letters. We can handle the
29461 + # drive letters (cygwin fileutils understands them), so leave them,
29462 + # especially as we might pass files found there to a mingw objdump,
29463 + # which wouldn't understand a cygwinified path. Ahh.
29464 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
29465 + else
29466 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
29467 + fi
29468 + ;;
29469 + pw32*)
29470 + # pw32 DLLs use 'pw' prefix rather than 'lib'
29471 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
29472 + ;;
29473 + esac
29474 + ;;
29476 + *)
29477 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
29478 + ;;
29479 + esac
29480 + dynamic_linker='Win32 ld.exe'
29481 + # FIXME: first we should search . and the directory the executable is in
29482 + shlibpath_var=PATH
29483 + ;;
29485 +darwin* | rhapsody*)
29486 + dynamic_linker="$host_os dyld"
29487 + version_type=darwin
29488 + need_lib_prefix=no
29489 + need_version=no
29490 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
29491 + soname_spec='${libname}${release}${major}$shared_ext'
29492 + shlibpath_overrides_runpath=yes
29493 + shlibpath_var=DYLD_LIBRARY_PATH
29494 + shrext='$(test .$module = .yes && echo .so || echo .dylib)'
29495 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
29496 + if test "$GCC" = yes; then
29497 + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
29498 + else
29499 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
29500 + fi
29501 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
29502 + ;;
29504 +dgux*)
29505 + version_type=linux
29506 + need_lib_prefix=no
29507 + need_version=no
29508 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
29509 + soname_spec='${libname}${release}${shared_ext}$major'
29510 + shlibpath_var=LD_LIBRARY_PATH
29511 + ;;
29513 +freebsd1*)
29514 + dynamic_linker=no
29515 + ;;
29517 +kfreebsd*-gnu)
29518 + version_type=linux
29519 + need_lib_prefix=no
29520 + need_version=no
29521 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29522 + soname_spec='${libname}${release}${shared_ext}$major'
29523 + shlibpath_var=LD_LIBRARY_PATH
29524 + shlibpath_overrides_runpath=no
29525 + hardcode_into_libs=yes
29526 + dynamic_linker='GNU ld.so'
29527 + ;;
29529 +freebsd*)
29530 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
29531 + version_type=freebsd-$objformat
29532 + case $version_type in
29533 + freebsd-elf*)
29534 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
29535 + need_version=no
29536 + need_lib_prefix=no
29537 + ;;
29538 + freebsd-*)
29539 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
29540 + need_version=yes
29541 + ;;
29542 + esac
29543 + shlibpath_var=LD_LIBRARY_PATH
29544 + case $host_os in
29545 + freebsd2*)
29546 + shlibpath_overrides_runpath=yes
29547 + ;;
29548 + freebsd3.01* | freebsdelf3.01*)
29549 + shlibpath_overrides_runpath=yes
29550 + hardcode_into_libs=yes
29551 + ;;
29552 + *) # from 3.2 on
29553 + shlibpath_overrides_runpath=no
29554 + hardcode_into_libs=yes
29555 + ;;
29556 + esac
29557 + ;;
29559 +gnu*)
29560 + version_type=linux
29561 + need_lib_prefix=no
29562 + need_version=no
29563 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
29564 + soname_spec='${libname}${release}${shared_ext}$major'
29565 + shlibpath_var=LD_LIBRARY_PATH
29566 + hardcode_into_libs=yes
29567 + ;;
29569 +hpux9* | hpux10* | hpux11*)
29570 + # Give a soname corresponding to the major version so that dld.sl refuses to
29571 + # link against other versions.
29572 + version_type=sunos
29573 + need_lib_prefix=no
29574 + need_version=no
29575 + case "$host_cpu" in
29576 + ia64*)
29577 + shrext='.so'
29578 + hardcode_into_libs=yes
29579 + dynamic_linker="$host_os dld.so"
29580 + shlibpath_var=LD_LIBRARY_PATH
29581 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29582 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29583 + soname_spec='${libname}${release}${shared_ext}$major'
29584 + if test "X$HPUX_IA64_MODE" = X32; then
29585 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
29586 + else
29587 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
29588 + fi
29589 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29590 + ;;
29591 + hppa*64*)
29592 + shrext='.sl'
29593 + hardcode_into_libs=yes
29594 + dynamic_linker="$host_os dld.sl"
29595 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
29596 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
29597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29598 + soname_spec='${libname}${release}${shared_ext}$major'
29599 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
29600 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
29601 + ;;
29602 + *)
29603 + shrext='.sl'
29604 + dynamic_linker="$host_os dld.sl"
29605 + shlibpath_var=SHLIB_PATH
29606 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
29607 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29608 + soname_spec='${libname}${release}${shared_ext}$major'
29609 + ;;
29610 + esac
29611 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
29612 + postinstall_cmds='chmod 555 $lib'
29613 + ;;
29615 +irix5* | irix6* | nonstopux*)
29616 + case $host_os in
29617 + nonstopux*) version_type=nonstopux ;;
29618 + *)
29619 + if test "$lt_cv_prog_gnu_ld" = yes; then
29620 + version_type=linux
29621 + else
29622 + version_type=irix
29623 + fi ;;
29624 + esac
29625 + need_lib_prefix=no
29626 + need_version=no
29627 + soname_spec='${libname}${release}${shared_ext}$major'
29628 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
29629 + case $host_os in
29630 + irix5* | nonstopux*)
29631 + libsuff= shlibsuff=
29632 + ;;
29633 + *)
29634 + case $LD in # libtool.m4 will add one of these switches to LD
29635 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
29636 + libsuff= shlibsuff= libmagic=32-bit;;
29637 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
29638 + libsuff=32 shlibsuff=N32 libmagic=N32;;
29639 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
29640 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
29641 + *) libsuff= shlibsuff= libmagic=never-match;;
29642 + esac
29643 + ;;
29644 + esac
29645 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
29646 + shlibpath_overrides_runpath=no
29647 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
29648 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
29649 + hardcode_into_libs=yes
29650 + ;;
29652 +# No shared lib support for Linux oldld, aout, or coff.
29653 +linux*oldld* | linux*aout* | linux*coff*)
29654 + dynamic_linker=no
29655 + ;;
29657 +# This must be Linux ELF.
29658 +linux*)
29659 + version_type=linux
29660 + need_lib_prefix=no
29661 + need_version=no
29662 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29663 + soname_spec='${libname}${release}${shared_ext}$major'
29664 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
29665 + shlibpath_var=LD_LIBRARY_PATH
29666 + shlibpath_overrides_runpath=no
29667 + # This implies no fast_install, which is unacceptable.
29668 + # Some rework will be needed to allow for fast_install
29669 + # before this can be enabled.
29670 + hardcode_into_libs=yes
29672 + # /usr/X11R6/lib and /usr/local/lib are common enough...
29673 + sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/X11R6/lib /usr/local/lib"
29675 + # We used to test for /lib/ld.so.1 and disable shared libraries on
29676 + # powerpc, because MkLinux only supported shared libraries with the
29677 + # GNU dynamic linker. Since this was broken with cross compilers,
29678 + # most powerpc-linux boxes support dynamic linking these days and
29679 + # people can always --disable-shared, the test was removed, and we
29680 + # assume the GNU/Linux dynamic linker is in use.
29681 + dynamic_linker='GNU/Linux ld.so'
29682 + ;;
29684 +knetbsd*-gnu)
29685 + version_type=linux
29686 + need_lib_prefix=no
29687 + need_version=no
29688 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
29689 + soname_spec='${libname}${release}${shared_ext}$major'
29690 + shlibpath_var=LD_LIBRARY_PATH
29691 + shlibpath_overrides_runpath=no
29692 + hardcode_into_libs=yes
29693 + dynamic_linker='GNU ld.so'
29694 + ;;
29696 +netbsd*)
29697 + version_type=sunos
29698 + need_lib_prefix=no
29699 + need_version=no
29700 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
29701 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29702 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29703 + dynamic_linker='NetBSD (a.out) ld.so'
29704 + else
29705 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
29706 + soname_spec='${libname}${release}${shared_ext}$major'
29707 + dynamic_linker='NetBSD ld.elf_so'
29708 + fi
29709 + shlibpath_var=LD_LIBRARY_PATH
29710 + shlibpath_overrides_runpath=yes
29711 + hardcode_into_libs=yes
29712 + ;;
29714 +newsos6)
29715 + version_type=linux
29716 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29717 + shlibpath_var=LD_LIBRARY_PATH
29718 + shlibpath_overrides_runpath=yes
29719 + ;;
29721 +nto-qnx*)
29722 + version_type=linux
29723 + need_lib_prefix=no
29724 + need_version=no
29725 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29726 + soname_spec='${libname}${release}${shared_ext}$major'
29727 + shlibpath_var=LD_LIBRARY_PATH
29728 + shlibpath_overrides_runpath=yes
29729 + ;;
29731 +openbsd*)
29732 + version_type=sunos
29733 + need_lib_prefix=no
29734 + need_version=yes
29735 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29736 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
29737 + shlibpath_var=LD_LIBRARY_PATH
29738 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
29739 + case $host_os in
29740 + openbsd2.[89] | openbsd2.[89].*)
29741 + shlibpath_overrides_runpath=no
29742 + ;;
29743 + *)
29744 + shlibpath_overrides_runpath=yes
29745 + ;;
29746 + esac
29747 + else
29748 + shlibpath_overrides_runpath=yes
29749 + fi
29750 + ;;
29752 +os2*)
29753 + libname_spec='$name'
29754 + shrext=".dll"
29755 + need_lib_prefix=no
29756 + library_names_spec='$libname${shared_ext} $libname.a'
29757 + dynamic_linker='OS/2 ld.exe'
29758 + shlibpath_var=LIBPATH
29759 + ;;
29761 +osf3* | osf4* | osf5*)
29762 + version_type=osf
29763 + need_lib_prefix=no
29764 + need_version=no
29765 + soname_spec='${libname}${release}${shared_ext}$major'
29766 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29767 + shlibpath_var=LD_LIBRARY_PATH
29768 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
29769 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
29770 + ;;
29772 +sco3.2v5*)
29773 + version_type=osf
29774 + soname_spec='${libname}${release}${shared_ext}$major'
29775 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29776 + shlibpath_var=LD_LIBRARY_PATH
29777 + ;;
29779 +solaris*)
29780 + version_type=linux
29781 + need_lib_prefix=no
29782 + need_version=no
29783 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29784 + soname_spec='${libname}${release}${shared_ext}$major'
29785 + shlibpath_var=LD_LIBRARY_PATH
29786 + shlibpath_overrides_runpath=yes
29787 + hardcode_into_libs=yes
29788 + # ldd complains unless libraries are executable
29789 + postinstall_cmds='chmod +x $lib'
29790 + ;;
29792 +sunos4*)
29793 + version_type=sunos
29794 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
29795 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
29796 + shlibpath_var=LD_LIBRARY_PATH
29797 + shlibpath_overrides_runpath=yes
29798 + if test "$with_gnu_ld" = yes; then
29799 + need_lib_prefix=no
29800 + fi
29801 + need_version=yes
29802 + ;;
29804 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
29805 + version_type=linux
29806 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29807 + soname_spec='${libname}${release}${shared_ext}$major'
29808 + shlibpath_var=LD_LIBRARY_PATH
29809 + case $host_vendor in
29810 + sni)
29811 + shlibpath_overrides_runpath=no
29812 + need_lib_prefix=no
29813 + export_dynamic_flag_spec='${wl}-Blargedynsym'
29814 + runpath_var=LD_RUN_PATH
29815 + ;;
29816 + siemens)
29817 + need_lib_prefix=no
29818 + ;;
29819 + motorola)
29820 + need_lib_prefix=no
29821 + need_version=no
29822 + shlibpath_overrides_runpath=no
29823 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
29824 + ;;
29825 + esac
29826 + ;;
29828 +sysv4*MP*)
29829 + if test -d /usr/nec ;then
29830 + version_type=linux
29831 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
29832 + soname_spec='$libname${shared_ext}.$major'
29833 + shlibpath_var=LD_LIBRARY_PATH
29834 + fi
29835 + ;;
29837 +uts4*)
29838 + version_type=linux
29839 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
29840 + soname_spec='${libname}${release}${shared_ext}$major'
29841 + shlibpath_var=LD_LIBRARY_PATH
29842 + ;;
29844 +*)
29845 + dynamic_linker=no
29846 + ;;
29847 +esac
29848 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
29849 +echo "${ECHO_T}$dynamic_linker" >&6
29850 +test "$dynamic_linker" = no && can_build_shared=no
29852 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
29853 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
29854 +hardcode_action_GCJ=
29855 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
29856 + test -n "$runpath_var GCJ" || \
29857 + test "X$hardcode_automatic_GCJ"="Xyes" ; then
29859 + # We can hardcode non-existant directories.
29860 + if test "$hardcode_direct_GCJ" != no &&
29861 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
29862 + # have to relink, otherwise we might link with an installed library
29863 + # when we should be linking with a yet-to-be-installed one
29864 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
29865 + test "$hardcode_minus_L_GCJ" != no; then
29866 + # Linking always hardcodes the temporary library directory.
29867 + hardcode_action_GCJ=relink
29868 + else
29869 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
29870 + hardcode_action_GCJ=immediate
29871 + fi
29872 +else
29873 + # We cannot hardcode anything, or else we can only hardcode existing
29874 + # directories.
29875 + hardcode_action_GCJ=unsupported
29876 +fi
29877 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
29878 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
29880 +if test "$hardcode_action_GCJ" = relink; then
29881 + # Fast installation is not supported
29882 + enable_fast_install=no
29883 +elif test "$shlibpath_overrides_runpath" = yes ||
29884 + test "$enable_shared" = no; then
29885 + # Fast installation is not necessary
29886 + enable_fast_install=needless
29887 +fi
29889 +striplib=
29890 +old_striplib=
29891 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
29892 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
29893 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
29894 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
29895 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
29896 + echo "$as_me:$LINENO: result: yes" >&5
29897 +echo "${ECHO_T}yes" >&6
29898 +else
29899 +# FIXME - insert some real tests, host_os isn't really good enough
29900 + case $host_os in
29901 + darwin*)
29902 + if test -n "$STRIP" ; then
29903 + striplib="$STRIP -x"
29904 + echo "$as_me:$LINENO: result: yes" >&5
29905 +echo "${ECHO_T}yes" >&6
29906 + else
29907 + echo "$as_me:$LINENO: result: no" >&5
29908 +echo "${ECHO_T}no" >&6
29909 +fi
29910 + ;;
29911 + *)
29912 + echo "$as_me:$LINENO: result: no" >&5
29913 +echo "${ECHO_T}no" >&6
29914 + ;;
29915 + esac
29916 +fi
29918 +if test "x$enable_dlopen" != xyes; then
29919 + enable_dlopen=unknown
29920 + enable_dlopen_self=unknown
29921 + enable_dlopen_self_static=unknown
29922 +else
29923 + lt_cv_dlopen=no
29924 + lt_cv_dlopen_libs=
29926 + case $host_os in
29927 + beos*)
29928 + lt_cv_dlopen="load_add_on"
29929 + lt_cv_dlopen_libs=
29930 + lt_cv_dlopen_self=yes
29931 + ;;
29933 + mingw* | pw32*)
29934 + lt_cv_dlopen="LoadLibrary"
29935 + lt_cv_dlopen_libs=
29936 + ;;
29938 + cygwin*)
29939 + lt_cv_dlopen="dlopen"
29940 + lt_cv_dlopen_libs=
29941 + ;;
29943 + darwin*)
29944 + # if libdl is installed we need to link against it
29945 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
29946 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
29947 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
29948 + echo $ECHO_N "(cached) $ECHO_C" >&6
29949 +else
29950 + ac_check_lib_save_LIBS=$LIBS
29951 +LIBS="-ldl $LIBS"
29952 +cat >conftest.$ac_ext <<_ACEOF
29953 +/* confdefs.h. */
29954 +_ACEOF
29955 +cat confdefs.h >>conftest.$ac_ext
29956 +cat >>conftest.$ac_ext <<_ACEOF
29957 +/* end confdefs.h. */
29959 +/* Override any gcc2 internal prototype to avoid an error. */
29960 +#ifdef __cplusplus
29961 +extern "C"
29962 +#endif
29963 +/* We use char because int might match the return type of a gcc2
29964 + builtin and then its argument prototype would still apply. */
29965 +char dlopen ();
29966 +int
29967 +main ()
29968 +{
29969 +dlopen ();
29970 + ;
29971 + return 0;
29972 +}
29973 +_ACEOF
29974 +rm -f conftest.$ac_objext conftest$ac_exeext
29975 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29976 + (eval $ac_link) 2>conftest.er1
29977 + ac_status=$?
29978 + grep -v '^ *+' conftest.er1 >conftest.err
29979 + rm -f conftest.er1
29980 + cat conftest.err >&5
29981 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 + (exit $ac_status); } &&
29983 + { ac_try='test -z "$ac_c_werror_flag"
29984 + || test ! -s conftest.err'
29985 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29986 + (eval $ac_try) 2>&5
29987 + ac_status=$?
29988 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29989 + (exit $ac_status); }; } &&
29990 + { ac_try='test -s conftest$ac_exeext'
29991 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29992 + (eval $ac_try) 2>&5
29993 + ac_status=$?
29994 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995 + (exit $ac_status); }; }; then
29996 + ac_cv_lib_dl_dlopen=yes
29997 +else
29998 + echo "$as_me: failed program was:" >&5
29999 +sed 's/^/| /' conftest.$ac_ext >&5
30001 +ac_cv_lib_dl_dlopen=no
30002 +fi
30003 +rm -f conftest.err conftest.$ac_objext \
30004 + conftest$ac_exeext conftest.$ac_ext
30005 +LIBS=$ac_check_lib_save_LIBS
30006 +fi
30007 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
30008 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
30009 +if test $ac_cv_lib_dl_dlopen = yes; then
30010 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
30011 +else
30013 + lt_cv_dlopen="dyld"
30014 + lt_cv_dlopen_libs=
30015 + lt_cv_dlopen_self=yes
30017 +fi
30019 + ;;
30021 + *)
30022 + echo "$as_me:$LINENO: checking for shl_load" >&5
30023 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
30024 +if test "${ac_cv_func_shl_load+set}" = set; then
30025 + echo $ECHO_N "(cached) $ECHO_C" >&6
30026 +else
30027 + cat >conftest.$ac_ext <<_ACEOF
30028 +/* confdefs.h. */
30029 +_ACEOF
30030 +cat confdefs.h >>conftest.$ac_ext
30031 +cat >>conftest.$ac_ext <<_ACEOF
30032 +/* end confdefs.h. */
30033 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
30034 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
30035 +#define shl_load innocuous_shl_load
30037 +/* System header to define __stub macros and hopefully few prototypes,
30038 + which can conflict with char shl_load (); below.
30039 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30040 + <limits.h> exists even on freestanding compilers. */
30042 +#ifdef __STDC__
30043 +# include <limits.h>
30044 +#else
30045 +# include <assert.h>
30046 +#endif
30048 +#undef shl_load
30050 +/* Override any gcc2 internal prototype to avoid an error. */
30051 +#ifdef __cplusplus
30052 +extern "C"
30053 +{
30054 +#endif
30055 +/* We use char because int might match the return type of a gcc2
30056 + builtin and then its argument prototype would still apply. */
30057 +char shl_load ();
30058 +/* The GNU C library defines this for functions which it implements
30059 + to always fail with ENOSYS. Some functions are actually named
30060 + something starting with __ and the normal name is an alias. */
30061 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
30062 +choke me
30063 +#else
30064 +char (*f) () = shl_load;
30065 +#endif
30066 +#ifdef __cplusplus
30067 +}
30068 +#endif
30070 +int
30071 +main ()
30072 +{
30073 +return f != shl_load;
30074 + ;
30075 + return 0;
30076 +}
30077 +_ACEOF
30078 +rm -f conftest.$ac_objext conftest$ac_exeext
30079 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30080 + (eval $ac_link) 2>conftest.er1
30081 + ac_status=$?
30082 + grep -v '^ *+' conftest.er1 >conftest.err
30083 + rm -f conftest.er1
30084 + cat conftest.err >&5
30085 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30086 + (exit $ac_status); } &&
30087 + { ac_try='test -z "$ac_c_werror_flag"
30088 + || test ! -s conftest.err'
30089 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30090 + (eval $ac_try) 2>&5
30091 + ac_status=$?
30092 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30093 + (exit $ac_status); }; } &&
30094 + { ac_try='test -s conftest$ac_exeext'
30095 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30096 + (eval $ac_try) 2>&5
30097 + ac_status=$?
30098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30099 + (exit $ac_status); }; }; then
30100 + ac_cv_func_shl_load=yes
30101 +else
30102 + echo "$as_me: failed program was:" >&5
30103 +sed 's/^/| /' conftest.$ac_ext >&5
30105 +ac_cv_func_shl_load=no
30106 +fi
30107 +rm -f conftest.err conftest.$ac_objext \
30108 + conftest$ac_exeext conftest.$ac_ext
30109 +fi
30110 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
30111 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
30112 +if test $ac_cv_func_shl_load = yes; then
30113 + lt_cv_dlopen="shl_load"
30114 +else
30115 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
30116 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
30117 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
30118 + echo $ECHO_N "(cached) $ECHO_C" >&6
30119 +else
30120 + ac_check_lib_save_LIBS=$LIBS
30121 +LIBS="-ldld $LIBS"
30122 +cat >conftest.$ac_ext <<_ACEOF
30123 +/* confdefs.h. */
30124 +_ACEOF
30125 +cat confdefs.h >>conftest.$ac_ext
30126 +cat >>conftest.$ac_ext <<_ACEOF
30127 +/* end confdefs.h. */
30129 +/* Override any gcc2 internal prototype to avoid an error. */
30130 +#ifdef __cplusplus
30131 +extern "C"
30132 +#endif
30133 +/* We use char because int might match the return type of a gcc2
30134 + builtin and then its argument prototype would still apply. */
30135 +char shl_load ();
30136 +int
30137 +main ()
30138 +{
30139 +shl_load ();
30140 + ;
30141 + return 0;
30142 +}
30143 +_ACEOF
30144 +rm -f conftest.$ac_objext conftest$ac_exeext
30145 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30146 + (eval $ac_link) 2>conftest.er1
30147 + ac_status=$?
30148 + grep -v '^ *+' conftest.er1 >conftest.err
30149 + rm -f conftest.er1
30150 + cat conftest.err >&5
30151 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 + (exit $ac_status); } &&
30153 + { ac_try='test -z "$ac_c_werror_flag"
30154 + || test ! -s conftest.err'
30155 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30156 + (eval $ac_try) 2>&5
30157 + ac_status=$?
30158 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 + (exit $ac_status); }; } &&
30160 + { ac_try='test -s conftest$ac_exeext'
30161 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30162 + (eval $ac_try) 2>&5
30163 + ac_status=$?
30164 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30165 + (exit $ac_status); }; }; then
30166 + ac_cv_lib_dld_shl_load=yes
30167 +else
30168 + echo "$as_me: failed program was:" >&5
30169 +sed 's/^/| /' conftest.$ac_ext >&5
30171 +ac_cv_lib_dld_shl_load=no
30172 +fi
30173 +rm -f conftest.err conftest.$ac_objext \
30174 + conftest$ac_exeext conftest.$ac_ext
30175 +LIBS=$ac_check_lib_save_LIBS
30176 +fi
30177 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
30178 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
30179 +if test $ac_cv_lib_dld_shl_load = yes; then
30180 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
30181 +else
30182 + echo "$as_me:$LINENO: checking for dlopen" >&5
30183 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
30184 +if test "${ac_cv_func_dlopen+set}" = set; then
30185 + echo $ECHO_N "(cached) $ECHO_C" >&6
30186 +else
30187 + cat >conftest.$ac_ext <<_ACEOF
30188 +/* confdefs.h. */
30189 +_ACEOF
30190 +cat confdefs.h >>conftest.$ac_ext
30191 +cat >>conftest.$ac_ext <<_ACEOF
30192 +/* end confdefs.h. */
30193 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
30194 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
30195 +#define dlopen innocuous_dlopen
30197 +/* System header to define __stub macros and hopefully few prototypes,
30198 + which can conflict with char dlopen (); below.
30199 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30200 + <limits.h> exists even on freestanding compilers. */
30202 +#ifdef __STDC__
30203 +# include <limits.h>
30204 +#else
30205 +# include <assert.h>
30206 +#endif
30208 +#undef dlopen
30210 +/* Override any gcc2 internal prototype to avoid an error. */
30211 +#ifdef __cplusplus
30212 +extern "C"
30213 +{
30214 +#endif
30215 +/* We use char because int might match the return type of a gcc2
30216 + builtin and then its argument prototype would still apply. */
30217 +char dlopen ();
30218 +/* The GNU C library defines this for functions which it implements
30219 + to always fail with ENOSYS. Some functions are actually named
30220 + something starting with __ and the normal name is an alias. */
30221 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
30222 +choke me
30223 +#else
30224 +char (*f) () = dlopen;
30225 +#endif
30226 +#ifdef __cplusplus
30227 +}
30228 +#endif
30230 +int
30231 +main ()
30232 +{
30233 +return f != dlopen;
30234 + ;
30235 + return 0;
30236 +}
30237 +_ACEOF
30238 +rm -f conftest.$ac_objext conftest$ac_exeext
30239 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30240 + (eval $ac_link) 2>conftest.er1
30241 + ac_status=$?
30242 + grep -v '^ *+' conftest.er1 >conftest.err
30243 + rm -f conftest.er1
30244 + cat conftest.err >&5
30245 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30246 + (exit $ac_status); } &&
30247 + { ac_try='test -z "$ac_c_werror_flag"
30248 + || test ! -s conftest.err'
30249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30250 + (eval $ac_try) 2>&5
30251 + ac_status=$?
30252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 + (exit $ac_status); }; } &&
30254 + { ac_try='test -s conftest$ac_exeext'
30255 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30256 + (eval $ac_try) 2>&5
30257 + ac_status=$?
30258 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30259 + (exit $ac_status); }; }; then
30260 + ac_cv_func_dlopen=yes
30261 +else
30262 + echo "$as_me: failed program was:" >&5
30263 +sed 's/^/| /' conftest.$ac_ext >&5
30265 +ac_cv_func_dlopen=no
30266 +fi
30267 +rm -f conftest.err conftest.$ac_objext \
30268 + conftest$ac_exeext conftest.$ac_ext
30269 +fi
30270 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
30271 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
30272 +if test $ac_cv_func_dlopen = yes; then
30273 + lt_cv_dlopen="dlopen"
30274 +else
30275 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
30276 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
30277 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
30278 + echo $ECHO_N "(cached) $ECHO_C" >&6
30279 +else
30280 + ac_check_lib_save_LIBS=$LIBS
30281 +LIBS="-ldl $LIBS"
30282 +cat >conftest.$ac_ext <<_ACEOF
30283 +/* confdefs.h. */
30284 +_ACEOF
30285 +cat confdefs.h >>conftest.$ac_ext
30286 +cat >>conftest.$ac_ext <<_ACEOF
30287 +/* end confdefs.h. */
30289 +/* Override any gcc2 internal prototype to avoid an error. */
30290 +#ifdef __cplusplus
30291 +extern "C"
30292 +#endif
30293 +/* We use char because int might match the return type of a gcc2
30294 + builtin and then its argument prototype would still apply. */
30295 +char dlopen ();
30296 +int
30297 +main ()
30298 +{
30299 +dlopen ();
30300 + ;
30301 + return 0;
30302 +}
30303 +_ACEOF
30304 +rm -f conftest.$ac_objext conftest$ac_exeext
30305 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30306 + (eval $ac_link) 2>conftest.er1
30307 + ac_status=$?
30308 + grep -v '^ *+' conftest.er1 >conftest.err
30309 + rm -f conftest.er1
30310 + cat conftest.err >&5
30311 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30312 + (exit $ac_status); } &&
30313 + { ac_try='test -z "$ac_c_werror_flag"
30314 + || test ! -s conftest.err'
30315 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30316 + (eval $ac_try) 2>&5
30317 + ac_status=$?
30318 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30319 + (exit $ac_status); }; } &&
30320 + { ac_try='test -s conftest$ac_exeext'
30321 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30322 + (eval $ac_try) 2>&5
30323 + ac_status=$?
30324 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30325 + (exit $ac_status); }; }; then
30326 + ac_cv_lib_dl_dlopen=yes
30327 +else
30328 + echo "$as_me: failed program was:" >&5
30329 +sed 's/^/| /' conftest.$ac_ext >&5
30331 +ac_cv_lib_dl_dlopen=no
30332 +fi
30333 +rm -f conftest.err conftest.$ac_objext \
30334 + conftest$ac_exeext conftest.$ac_ext
30335 +LIBS=$ac_check_lib_save_LIBS
30336 +fi
30337 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
30338 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
30339 +if test $ac_cv_lib_dl_dlopen = yes; then
30340 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
30341 +else
30342 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
30343 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
30344 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
30345 + echo $ECHO_N "(cached) $ECHO_C" >&6
30346 +else
30347 + ac_check_lib_save_LIBS=$LIBS
30348 +LIBS="-lsvld $LIBS"
30349 +cat >conftest.$ac_ext <<_ACEOF
30350 +/* confdefs.h. */
30351 +_ACEOF
30352 +cat confdefs.h >>conftest.$ac_ext
30353 +cat >>conftest.$ac_ext <<_ACEOF
30354 +/* end confdefs.h. */
30356 +/* Override any gcc2 internal prototype to avoid an error. */
30357 +#ifdef __cplusplus
30358 +extern "C"
30359 +#endif
30360 +/* We use char because int might match the return type of a gcc2
30361 + builtin and then its argument prototype would still apply. */
30362 +char dlopen ();
30363 +int
30364 +main ()
30365 +{
30366 +dlopen ();
30367 + ;
30368 + return 0;
30369 +}
30370 +_ACEOF
30371 +rm -f conftest.$ac_objext conftest$ac_exeext
30372 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30373 + (eval $ac_link) 2>conftest.er1
30374 + ac_status=$?
30375 + grep -v '^ *+' conftest.er1 >conftest.err
30376 + rm -f conftest.er1
30377 + cat conftest.err >&5
30378 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30379 + (exit $ac_status); } &&
30380 + { ac_try='test -z "$ac_c_werror_flag"
30381 + || test ! -s conftest.err'
30382 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30383 + (eval $ac_try) 2>&5
30384 + ac_status=$?
30385 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386 + (exit $ac_status); }; } &&
30387 + { ac_try='test -s conftest$ac_exeext'
30388 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30389 + (eval $ac_try) 2>&5
30390 + ac_status=$?
30391 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30392 + (exit $ac_status); }; }; then
30393 + ac_cv_lib_svld_dlopen=yes
30394 +else
30395 + echo "$as_me: failed program was:" >&5
30396 +sed 's/^/| /' conftest.$ac_ext >&5
30398 +ac_cv_lib_svld_dlopen=no
30399 +fi
30400 +rm -f conftest.err conftest.$ac_objext \
30401 + conftest$ac_exeext conftest.$ac_ext
30402 +LIBS=$ac_check_lib_save_LIBS
30403 +fi
30404 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
30405 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
30406 +if test $ac_cv_lib_svld_dlopen = yes; then
30407 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
30408 +else
30409 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
30410 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
30411 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
30412 + echo $ECHO_N "(cached) $ECHO_C" >&6
30413 +else
30414 + ac_check_lib_save_LIBS=$LIBS
30415 +LIBS="-ldld $LIBS"
30416 +cat >conftest.$ac_ext <<_ACEOF
30417 +/* confdefs.h. */
30418 +_ACEOF
30419 +cat confdefs.h >>conftest.$ac_ext
30420 +cat >>conftest.$ac_ext <<_ACEOF
30421 +/* end confdefs.h. */
30423 +/* Override any gcc2 internal prototype to avoid an error. */
30424 +#ifdef __cplusplus
30425 +extern "C"
30426 +#endif
30427 +/* We use char because int might match the return type of a gcc2
30428 + builtin and then its argument prototype would still apply. */
30429 +char dld_link ();
30430 +int
30431 +main ()
30432 +{
30433 +dld_link ();
30434 + ;
30435 + return 0;
30436 +}
30437 +_ACEOF
30438 +rm -f conftest.$ac_objext conftest$ac_exeext
30439 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30440 + (eval $ac_link) 2>conftest.er1
30441 + ac_status=$?
30442 + grep -v '^ *+' conftest.er1 >conftest.err
30443 + rm -f conftest.er1
30444 + cat conftest.err >&5
30445 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30446 + (exit $ac_status); } &&
30447 + { ac_try='test -z "$ac_c_werror_flag"
30448 + || test ! -s conftest.err'
30449 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30450 + (eval $ac_try) 2>&5
30451 + ac_status=$?
30452 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 + (exit $ac_status); }; } &&
30454 + { ac_try='test -s conftest$ac_exeext'
30455 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30456 + (eval $ac_try) 2>&5
30457 + ac_status=$?
30458 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30459 + (exit $ac_status); }; }; then
30460 + ac_cv_lib_dld_dld_link=yes
30461 +else
30462 + echo "$as_me: failed program was:" >&5
30463 +sed 's/^/| /' conftest.$ac_ext >&5
30465 +ac_cv_lib_dld_dld_link=no
30466 +fi
30467 +rm -f conftest.err conftest.$ac_objext \
30468 + conftest$ac_exeext conftest.$ac_ext
30469 +LIBS=$ac_check_lib_save_LIBS
30470 +fi
30471 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
30472 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
30473 +if test $ac_cv_lib_dld_dld_link = yes; then
30474 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
30475 +fi
30478 +fi
30481 +fi
30484 +fi
30487 +fi
30490 +fi
30492 + ;;
30493 + esac
30495 + if test "x$lt_cv_dlopen" != xno; then
30496 + enable_dlopen=yes
30497 + else
30498 + enable_dlopen=no
30499 + fi
30501 + case $lt_cv_dlopen in
30502 + dlopen)
30503 + save_CPPFLAGS="$CPPFLAGS"
30504 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
30506 + save_LDFLAGS="$LDFLAGS"
30507 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
30509 + save_LIBS="$LIBS"
30510 + LIBS="$lt_cv_dlopen_libs $LIBS"
30512 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
30513 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
30514 +if test "${lt_cv_dlopen_self+set}" = set; then
30515 + echo $ECHO_N "(cached) $ECHO_C" >&6
30516 +else
30517 + if test "$cross_compiling" = yes; then :
30518 + lt_cv_dlopen_self=cross
30519 +else
30520 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30521 + lt_status=$lt_dlunknown
30522 + cat > conftest.$ac_ext <<EOF
30523 +#line 17928 "configure"
30524 +#include "confdefs.h"
30526 +#if HAVE_DLFCN_H
30527 +#include <dlfcn.h>
30528 +#endif
30530 +#include <stdio.h>
30532 +#ifdef RTLD_GLOBAL
30533 +# define LT_DLGLOBAL RTLD_GLOBAL
30534 +#else
30535 +# ifdef DL_GLOBAL
30536 +# define LT_DLGLOBAL DL_GLOBAL
30537 +# else
30538 +# define LT_DLGLOBAL 0
30539 +# endif
30540 +#endif
30542 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30543 + find out it does not work in some platform. */
30544 +#ifndef LT_DLLAZY_OR_NOW
30545 +# ifdef RTLD_LAZY
30546 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
30547 +# else
30548 +# ifdef DL_LAZY
30549 +# define LT_DLLAZY_OR_NOW DL_LAZY
30550 +# else
30551 +# ifdef RTLD_NOW
30552 +# define LT_DLLAZY_OR_NOW RTLD_NOW
30553 +# else
30554 +# ifdef DL_NOW
30555 +# define LT_DLLAZY_OR_NOW DL_NOW
30556 +# else
30557 +# define LT_DLLAZY_OR_NOW 0
30558 +# endif
30559 +# endif
30560 +# endif
30561 +# endif
30562 +#endif
30564 +#ifdef __cplusplus
30565 +extern "C" void exit (int);
30566 +#endif
30568 +void fnord() { int i=42;}
30569 +int main ()
30570 +{
30571 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30572 + int status = $lt_dlunknown;
30574 + if (self)
30575 + {
30576 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
30577 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
30578 + /* dlclose (self); */
30579 + }
30581 + exit (status);
30582 +}
30583 +EOF
30584 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30585 + (eval $ac_link) 2>&5
30586 + ac_status=$?
30587 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30588 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
30589 + (./conftest; exit; ) 2>/dev/null
30590 + lt_status=$?
30591 + case x$lt_status in
30592 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
30593 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
30594 + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
30595 + esac
30596 + else :
30597 + # compilation failed
30598 + lt_cv_dlopen_self=no
30599 + fi
30600 +fi
30601 +rm -fr conftest*
30604 +fi
30605 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
30606 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
30608 + if test "x$lt_cv_dlopen_self" = xyes; then
30609 + LDFLAGS="$LDFLAGS $link_static_flag"
30610 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
30611 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
30612 +if test "${lt_cv_dlopen_self_static+set}" = set; then
30613 + echo $ECHO_N "(cached) $ECHO_C" >&6
30614 +else
30615 + if test "$cross_compiling" = yes; then :
30616 + lt_cv_dlopen_self_static=cross
30617 +else
30618 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
30619 + lt_status=$lt_dlunknown
30620 + cat > conftest.$ac_ext <<EOF
30621 +#line 18026 "configure"
30622 +#include "confdefs.h"
30624 +#if HAVE_DLFCN_H
30625 +#include <dlfcn.h>
30626 +#endif
30628 +#include <stdio.h>
30630 +#ifdef RTLD_GLOBAL
30631 +# define LT_DLGLOBAL RTLD_GLOBAL
30632 +#else
30633 +# ifdef DL_GLOBAL
30634 +# define LT_DLGLOBAL DL_GLOBAL
30635 +# else
30636 +# define LT_DLGLOBAL 0
30637 +# endif
30638 +#endif
30640 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
30641 + find out it does not work in some platform. */
30642 +#ifndef LT_DLLAZY_OR_NOW
30643 +# ifdef RTLD_LAZY
30644 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
30645 +# else
30646 +# ifdef DL_LAZY
30647 +# define LT_DLLAZY_OR_NOW DL_LAZY
30648 +# else
30649 +# ifdef RTLD_NOW
30650 +# define LT_DLLAZY_OR_NOW RTLD_NOW
30651 +# else
30652 +# ifdef DL_NOW
30653 +# define LT_DLLAZY_OR_NOW DL_NOW
30654 +# else
30655 +# define LT_DLLAZY_OR_NOW 0
30656 +# endif
30657 +# endif
30658 +# endif
30659 +# endif
30660 +#endif
30662 +#ifdef __cplusplus
30663 +extern "C" void exit (int);
30664 +#endif
30666 +void fnord() { int i=42;}
30667 +int main ()
30668 +{
30669 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
30670 + int status = $lt_dlunknown;
30672 + if (self)
30673 + {
30674 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
30675 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
30676 + /* dlclose (self); */
30677 + }
30679 + exit (status);
30680 +}
30681 +EOF
30682 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30683 + (eval $ac_link) 2>&5
30684 + ac_status=$?
30685 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
30686 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
30687 + (./conftest; exit; ) 2>/dev/null
30688 + lt_status=$?
30689 + case x$lt_status in
30690 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
30691 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
30692 + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
30693 + esac
30694 + else :
30695 + # compilation failed
30696 + lt_cv_dlopen_self_static=no
30697 + fi
30698 +fi
30699 +rm -fr conftest*
30702 +fi
30703 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
30704 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
30705 + fi
30707 + CPPFLAGS="$save_CPPFLAGS"
30708 + LDFLAGS="$save_LDFLAGS"
30709 + LIBS="$save_LIBS"
30710 + ;;
30711 + esac
30713 + case $lt_cv_dlopen_self in
30714 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
30715 + *) enable_dlopen_self=unknown ;;
30716 + esac
30718 + case $lt_cv_dlopen_self_static in
30719 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
30720 + *) enable_dlopen_self_static=unknown ;;
30721 + esac
30722 +fi
30725 +# The else clause should only fire when bootstrapping the
30726 +# libtool distribution, otherwise you forgot to ship ltmain.sh
30727 +# with your package, and you will get complaints that there are
30728 +# no rules to generate ltmain.sh.
30729 +if test -f "$ltmain"; then
30730 + # See if we are running on zsh, and set the options which allow our commands through
30731 + # without removal of \ escapes.
30732 + if test -n "${ZSH_VERSION+set}" ; then
30733 + setopt NO_GLOB_SUBST
30734 + fi
30735 + # Now quote all the things that may contain metacharacters while being
30736 + # careful not to overquote the AC_SUBSTed values. We take copies of the
30737 + # variables and quote the copies for generation of the libtool script.
30738 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
30739 + SED SHELL STRIP \
30740 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
30741 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
30742 + deplibs_check_method reload_flag reload_cmds need_locks \
30743 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
30744 + lt_cv_sys_global_symbol_to_c_name_address \
30745 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
30746 + old_postinstall_cmds old_postuninstall_cmds \
30747 + compiler_GCJ \
30748 + CC_GCJ \
30749 + LD_GCJ \
30750 + lt_prog_compiler_wl_GCJ \
30751 + lt_prog_compiler_pic_GCJ \
30752 + lt_prog_compiler_static_GCJ \
30753 + lt_prog_compiler_no_builtin_flag_GCJ \
30754 + export_dynamic_flag_spec_GCJ \
30755 + thread_safe_flag_spec_GCJ \
30756 + whole_archive_flag_spec_GCJ \
30757 + enable_shared_with_static_runtimes_GCJ \
30758 + old_archive_cmds_GCJ \
30759 + old_archive_from_new_cmds_GCJ \
30760 + predep_objects_GCJ \
30761 + postdep_objects_GCJ \
30762 + predeps_GCJ \
30763 + postdeps_GCJ \
30764 + compiler_lib_search_path_GCJ \
30765 + archive_cmds_GCJ \
30766 + archive_expsym_cmds_GCJ \
30767 + postinstall_cmds_GCJ \
30768 + postuninstall_cmds_GCJ \
30769 + old_archive_from_expsyms_cmds_GCJ \
30770 + allow_undefined_flag_GCJ \
30771 + no_undefined_flag_GCJ \
30772 + export_symbols_cmds_GCJ \
30773 + hardcode_libdir_flag_spec_GCJ \
30774 + hardcode_libdir_flag_spec_ld_GCJ \
30775 + hardcode_libdir_separator_GCJ \
30776 + hardcode_automatic_GCJ \
30777 + module_cmds_GCJ \
30778 + module_expsym_cmds_GCJ \
30779 + lt_cv_prog_compiler_c_o_GCJ \
30780 + exclude_expsyms_GCJ \
30781 + include_expsyms_GCJ; do
30783 + case $var in
30784 + old_archive_cmds_GCJ | \
30785 + old_archive_from_new_cmds_GCJ | \
30786 + archive_cmds_GCJ | \
30787 + archive_expsym_cmds_GCJ | \
30788 + module_cmds_GCJ | \
30789 + module_expsym_cmds_GCJ | \
30790 + old_archive_from_expsyms_cmds_GCJ | \
30791 + export_symbols_cmds_GCJ | \
30792 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
30793 + postinstall_cmds | postuninstall_cmds | \
30794 + old_postinstall_cmds | old_postuninstall_cmds | \
30795 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
30796 + # Double-quote double-evaled strings.
30797 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
30798 + ;;
30799 + *)
30800 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
30801 + ;;
30802 + esac
30803 + done
30805 + case $lt_echo in
30806 + *'\$0 --fallback-echo"')
30807 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
30808 + ;;
30809 + esac
30811 +cfgfile="$ofile"
30813 + cat <<__EOF__ >> "$cfgfile"
30814 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
30816 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30818 +# Shell to use when invoking shell scripts.
30819 +SHELL=$lt_SHELL
30821 +# Whether or not to build shared libraries.
30822 +build_libtool_libs=$enable_shared
30824 +# Whether or not to build static libraries.
30825 +build_old_libs=$enable_static
30827 +# Whether or not to add -lc for building shared libraries.
30828 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
30830 +# Whether or not to disallow shared libs when runtime libs are static
30831 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
30833 +# Whether or not to optimize for fast installation.
30834 +fast_install=$enable_fast_install
30836 +# The host system.
30837 +host_alias=$host_alias
30838 +host=$host
30840 +# An echo program that does not interpret backslashes.
30841 +echo=$lt_echo
30843 +# The archiver.
30844 +AR=$lt_AR
30845 +AR_FLAGS=$lt_AR_FLAGS
30847 +# A C compiler.
30848 +LTCC=$lt_LTCC
30850 +# A language-specific compiler.
30851 +CC=$lt_compiler_GCJ
30853 +# Is the compiler the GNU C compiler?
30854 +with_gcc=$GCC_GCJ
30856 +# An ERE matcher.
30857 +EGREP=$lt_EGREP
30859 +# The linker used to build libraries.
30860 +LD=$lt_LD_GCJ
30862 +# Whether we need hard or soft links.
30863 +LN_S=$lt_LN_S
30865 +# A BSD-compatible nm program.
30866 +NM=$lt_NM
30868 +# A symbol stripping program
30869 +STRIP=$lt_STRIP
30871 +# Used to examine libraries when file_magic_cmd begins "file"
30872 +MAGIC_CMD=$MAGIC_CMD
30874 +# Used on cygwin: DLL creation program.
30875 +DLLTOOL="$DLLTOOL"
30877 +# Used on cygwin: object dumper.
30878 +OBJDUMP="$OBJDUMP"
30880 +# Used on cygwin: assembler.
30881 +AS="$AS"
30883 +# The name of the directory that contains temporary libtool files.
30884 +objdir=$objdir
30886 +# How to create reloadable object files.
30887 +reload_flag=$lt_reload_flag
30888 +reload_cmds=$lt_reload_cmds
30890 +# How to pass a linker flag through the compiler.
30891 +wl=$lt_lt_prog_compiler_wl_GCJ
30893 +# Object file suffix (normally "o").
30894 +objext="$ac_objext"
30896 +# Old archive suffix (normally "a").
30897 +libext="$libext"
30899 +# Shared library suffix (normally ".so").
30900 +shrext='$shrext'
30902 +# Executable file suffix (normally "").
30903 +exeext="$exeext"
30905 +# Additional compiler flags for building library objects.
30906 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
30907 +pic_mode=$pic_mode
30909 +# What is the maximum length of a command?
30910 +max_cmd_len=$lt_cv_sys_max_cmd_len
30912 +# Does compiler simultaneously support -c and -o options?
30913 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
30915 +# Must we lock files when doing compilation ?
30916 +need_locks=$lt_need_locks
30918 +# Do we need the lib prefix for modules?
30919 +need_lib_prefix=$need_lib_prefix
30921 +# Do we need a version for libraries?
30922 +need_version=$need_version
30924 +# Whether dlopen is supported.
30925 +dlopen_support=$enable_dlopen
30927 +# Whether dlopen of programs is supported.
30928 +dlopen_self=$enable_dlopen_self
30930 +# Whether dlopen of statically linked programs is supported.
30931 +dlopen_self_static=$enable_dlopen_self_static
30933 +# Compiler flag to prevent dynamic linking.
30934 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
30936 +# Compiler flag to turn off builtin functions.
30937 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
30939 +# Compiler flag to allow reflexive dlopens.
30940 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
30942 +# Compiler flag to generate shared objects directly from archives.
30943 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
30945 +# Compiler flag to generate thread-safe objects.
30946 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
30948 +# Library versioning type.
30949 +version_type=$version_type
30951 +# Format of library name prefix.
30952 +libname_spec=$lt_libname_spec
30954 +# List of archive names. First name is the real one, the rest are links.
30955 +# The last name is the one that the linker finds with -lNAME.
30956 +library_names_spec=$lt_library_names_spec
30958 +# The coded name of the library, if different from the real name.
30959 +soname_spec=$lt_soname_spec
30961 +# Commands used to build and install an old-style archive.
30962 +RANLIB=$lt_RANLIB
30963 +old_archive_cmds=$lt_old_archive_cmds_GCJ
30964 +old_postinstall_cmds=$lt_old_postinstall_cmds
30965 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
30967 +# Create an old-style archive from a shared archive.
30968 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
30970 +# Create a temporary old-style archive to link instead of a shared archive.
30971 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
30973 +# Commands used to build and install a shared archive.
30974 +archive_cmds=$lt_archive_cmds_GCJ
30975 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
30976 +postinstall_cmds=$lt_postinstall_cmds
30977 +postuninstall_cmds=$lt_postuninstall_cmds
30979 +# Commands used to build a loadable module (assumed same as above if empty)
30980 +module_cmds=$lt_module_cmds_GCJ
30981 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
30983 +# Commands to strip libraries.
30984 +old_striplib=$lt_old_striplib
30985 +striplib=$lt_striplib
30987 +# Dependencies to place before the objects being linked to create a
30988 +# shared library.
30989 +predep_objects=$lt_predep_objects_GCJ
30991 +# Dependencies to place after the objects being linked to create a
30992 +# shared library.
30993 +postdep_objects=$lt_postdep_objects_GCJ
30995 +# Dependencies to place before the objects being linked to create a
30996 +# shared library.
30997 +predeps=$lt_predeps_GCJ
30999 +# Dependencies to place after the objects being linked to create a
31000 +# shared library.
31001 +postdeps=$lt_postdeps_GCJ
31003 +# The library search path used internally by the compiler when linking
31004 +# a shared library.
31005 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
31007 +# Method to check whether dependent libraries are shared objects.
31008 +deplibs_check_method=$lt_deplibs_check_method
31010 +# Command to use when deplibs_check_method == file_magic.
31011 +file_magic_cmd=$lt_file_magic_cmd
31013 +# Flag that allows shared libraries with undefined symbols to be built.
31014 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
31016 +# Flag that forces no undefined symbols.
31017 +no_undefined_flag=$lt_no_undefined_flag_GCJ
31019 +# Commands used to finish a libtool library installation in a directory.
31020 +finish_cmds=$lt_finish_cmds
31022 +# Same as above, but a single script fragment to be evaled but not shown.
31023 +finish_eval=$lt_finish_eval
31025 +# Take the output of nm and produce a listing of raw symbols and C names.
31026 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31028 +# Transform the output of nm in a proper C declaration
31029 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31031 +# Transform the output of nm in a C name address pair
31032 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31034 +# This is the shared library runtime path variable.
31035 +runpath_var=$runpath_var
31037 +# This is the shared library path variable.
31038 +shlibpath_var=$shlibpath_var
31040 +# Is shlibpath searched before the hard-coded library search path?
31041 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31043 +# How to hardcode a shared library path into an executable.
31044 +hardcode_action=$hardcode_action_GCJ
31046 +# Whether we should hardcode library paths into libraries.
31047 +hardcode_into_libs=$hardcode_into_libs
31049 +# Flag to hardcode \$libdir into a binary during linking.
31050 +# This must work even if \$libdir does not exist.
31051 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
31053 +# If ld is used when linking, flag to hardcode \$libdir into
31054 +# a binary during linking. This must work even if \$libdir does
31055 +# not exist.
31056 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
31058 +# Whether we need a single -rpath flag with a separated argument.
31059 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
31061 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
31062 +# resulting binary.
31063 +hardcode_direct=$hardcode_direct_GCJ
31065 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
31066 +# resulting binary.
31067 +hardcode_minus_L=$hardcode_minus_L_GCJ
31069 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
31070 +# the resulting binary.
31071 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
31073 +# Set to yes if building a shared library automatically hardcodes DIR into the library
31074 +# and all subsequent libraries and executables linked against it.
31075 +hardcode_automatic=$hardcode_automatic_GCJ
31077 +# Variables whose values should be saved in libtool wrapper scripts and
31078 +# restored at relink time.
31079 +variables_saved_for_relink="$variables_saved_for_relink"
31081 +# Whether libtool must link a program against all its dependency libraries.
31082 +link_all_deplibs=$link_all_deplibs_GCJ
31084 +# Compile-time system search path for libraries
31085 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31087 +# Run-time system search path for libraries
31088 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31090 +# Fix the shell variable \$srcfile for the compiler.
31091 +fix_srcfile_path="$fix_srcfile_path_GCJ"
31093 +# Set to yes if exported symbols are required.
31094 +always_export_symbols=$always_export_symbols_GCJ
31096 +# The commands to list exported symbols.
31097 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
31099 +# The commands to extract the exported symbol list from a shared archive.
31100 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
31102 +# Symbols that should not be listed in the preloaded symbols.
31103 +exclude_expsyms=$lt_exclude_expsyms_GCJ
31105 +# Symbols that must always be exported.
31106 +include_expsyms=$lt_include_expsyms_GCJ
31108 +# ### END LIBTOOL TAG CONFIG: $tagname
31110 +__EOF__
31113 +else
31114 + # If there is no Makefile yet, we rely on a make rule to execute
31115 + # `config.status --recheck' to rerun these tests and create the
31116 + # libtool script then.
31117 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
31118 + if test -f "$ltmain_in"; then
31119 + test -f Makefile && make "$ltmain"
31120 + fi
31121 +fi
31124 +ac_ext=c
31125 +ac_cpp='$CPP $CPPFLAGS'
31126 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31127 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31128 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31130 +CC="$lt_save_CC"
31132 + else
31133 + tagname=""
31134 + fi
31135 + ;;
31137 + RC)
31141 +# Source file extension for RC test sources.
31142 +ac_ext=rc
31144 +# Object file extension for compiled RC test sources.
31145 +objext=o
31146 +objext_RC=$objext
31148 +# Code to be used in simple compile tests
31149 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
31151 +# Code to be used in simple link tests
31152 +lt_simple_link_test_code="$lt_simple_compile_test_code"
31154 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
31156 +# If no C compiler was specified, use CC.
31157 +LTCC=${LTCC-"$CC"}
31159 +# Allow CC to be a program name with arguments.
31160 +compiler=$CC
31163 +# Allow CC to be a program name with arguments.
31164 +lt_save_CC="$CC"
31165 +CC=${RC-"windres"}
31166 +compiler=$CC
31167 +compiler_RC=$CC
31168 +lt_cv_prog_compiler_c_o_RC=yes
31170 +# The else clause should only fire when bootstrapping the
31171 +# libtool distribution, otherwise you forgot to ship ltmain.sh
31172 +# with your package, and you will get complaints that there are
31173 +# no rules to generate ltmain.sh.
31174 +if test -f "$ltmain"; then
31175 + # See if we are running on zsh, and set the options which allow our commands through
31176 + # without removal of \ escapes.
31177 + if test -n "${ZSH_VERSION+set}" ; then
31178 + setopt NO_GLOB_SUBST
31179 + fi
31180 + # Now quote all the things that may contain metacharacters while being
31181 + # careful not to overquote the AC_SUBSTed values. We take copies of the
31182 + # variables and quote the copies for generation of the libtool script.
31183 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
31184 + SED SHELL STRIP \
31185 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
31186 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
31187 + deplibs_check_method reload_flag reload_cmds need_locks \
31188 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
31189 + lt_cv_sys_global_symbol_to_c_name_address \
31190 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
31191 + old_postinstall_cmds old_postuninstall_cmds \
31192 + compiler_RC \
31193 + CC_RC \
31194 + LD_RC \
31195 + lt_prog_compiler_wl_RC \
31196 + lt_prog_compiler_pic_RC \
31197 + lt_prog_compiler_static_RC \
31198 + lt_prog_compiler_no_builtin_flag_RC \
31199 + export_dynamic_flag_spec_RC \
31200 + thread_safe_flag_spec_RC \
31201 + whole_archive_flag_spec_RC \
31202 + enable_shared_with_static_runtimes_RC \
31203 + old_archive_cmds_RC \
31204 + old_archive_from_new_cmds_RC \
31205 + predep_objects_RC \
31206 + postdep_objects_RC \
31207 + predeps_RC \
31208 + postdeps_RC \
31209 + compiler_lib_search_path_RC \
31210 + archive_cmds_RC \
31211 + archive_expsym_cmds_RC \
31212 + postinstall_cmds_RC \
31213 + postuninstall_cmds_RC \
31214 + old_archive_from_expsyms_cmds_RC \
31215 + allow_undefined_flag_RC \
31216 + no_undefined_flag_RC \
31217 + export_symbols_cmds_RC \
31218 + hardcode_libdir_flag_spec_RC \
31219 + hardcode_libdir_flag_spec_ld_RC \
31220 + hardcode_libdir_separator_RC \
31221 + hardcode_automatic_RC \
31222 + module_cmds_RC \
31223 + module_expsym_cmds_RC \
31224 + lt_cv_prog_compiler_c_o_RC \
31225 + exclude_expsyms_RC \
31226 + include_expsyms_RC; do
31228 + case $var in
31229 + old_archive_cmds_RC | \
31230 + old_archive_from_new_cmds_RC | \
31231 + archive_cmds_RC | \
31232 + archive_expsym_cmds_RC | \
31233 + module_cmds_RC | \
31234 + module_expsym_cmds_RC | \
31235 + old_archive_from_expsyms_cmds_RC | \
31236 + export_symbols_cmds_RC | \
31237 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
31238 + postinstall_cmds | postuninstall_cmds | \
31239 + old_postinstall_cmds | old_postuninstall_cmds | \
31240 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
31241 + # Double-quote double-evaled strings.
31242 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
31243 + ;;
31244 + *)
31245 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
31246 + ;;
31247 + esac
31248 + done
31250 + case $lt_echo in
31251 + *'\$0 --fallback-echo"')
31252 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
31253 + ;;
31254 + esac
31256 +cfgfile="$ofile"
31258 + cat <<__EOF__ >> "$cfgfile"
31259 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
31261 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31263 +# Shell to use when invoking shell scripts.
31264 +SHELL=$lt_SHELL
31266 +# Whether or not to build shared libraries.
31267 +build_libtool_libs=$enable_shared
31269 +# Whether or not to build static libraries.
31270 +build_old_libs=$enable_static
31272 +# Whether or not to add -lc for building shared libraries.
31273 +build_libtool_need_lc=$archive_cmds_need_lc_RC
31275 +# Whether or not to disallow shared libs when runtime libs are static
31276 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
31278 +# Whether or not to optimize for fast installation.
31279 +fast_install=$enable_fast_install
31281 +# The host system.
31282 +host_alias=$host_alias
31283 +host=$host
31285 +# An echo program that does not interpret backslashes.
31286 +echo=$lt_echo
31288 +# The archiver.
31289 +AR=$lt_AR
31290 +AR_FLAGS=$lt_AR_FLAGS
31292 +# A C compiler.
31293 +LTCC=$lt_LTCC
31295 +# A language-specific compiler.
31296 +CC=$lt_compiler_RC
31298 +# Is the compiler the GNU C compiler?
31299 +with_gcc=$GCC_RC
31301 +# An ERE matcher.
31302 +EGREP=$lt_EGREP
31304 +# The linker used to build libraries.
31305 +LD=$lt_LD_RC
31307 +# Whether we need hard or soft links.
31308 +LN_S=$lt_LN_S
31310 +# A BSD-compatible nm program.
31311 +NM=$lt_NM
31313 +# A symbol stripping program
31314 +STRIP=$lt_STRIP
31316 +# Used to examine libraries when file_magic_cmd begins "file"
31317 +MAGIC_CMD=$MAGIC_CMD
31319 +# Used on cygwin: DLL creation program.
31320 +DLLTOOL="$DLLTOOL"
31322 +# Used on cygwin: object dumper.
31323 +OBJDUMP="$OBJDUMP"
31325 +# Used on cygwin: assembler.
31326 +AS="$AS"
31328 +# The name of the directory that contains temporary libtool files.
31329 +objdir=$objdir
31331 +# How to create reloadable object files.
31332 +reload_flag=$lt_reload_flag
31333 +reload_cmds=$lt_reload_cmds
31335 +# How to pass a linker flag through the compiler.
31336 +wl=$lt_lt_prog_compiler_wl_RC
31338 +# Object file suffix (normally "o").
31339 +objext="$ac_objext"
31341 +# Old archive suffix (normally "a").
31342 +libext="$libext"
31344 +# Shared library suffix (normally ".so").
31345 +shrext='$shrext'
31347 +# Executable file suffix (normally "").
31348 +exeext="$exeext"
31350 +# Additional compiler flags for building library objects.
31351 +pic_flag=$lt_lt_prog_compiler_pic_RC
31352 +pic_mode=$pic_mode
31354 +# What is the maximum length of a command?
31355 +max_cmd_len=$lt_cv_sys_max_cmd_len
31357 +# Does compiler simultaneously support -c and -o options?
31358 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
31360 +# Must we lock files when doing compilation ?
31361 +need_locks=$lt_need_locks
31363 +# Do we need the lib prefix for modules?
31364 +need_lib_prefix=$need_lib_prefix
31366 +# Do we need a version for libraries?
31367 +need_version=$need_version
31369 +# Whether dlopen is supported.
31370 +dlopen_support=$enable_dlopen
31372 +# Whether dlopen of programs is supported.
31373 +dlopen_self=$enable_dlopen_self
31375 +# Whether dlopen of statically linked programs is supported.
31376 +dlopen_self_static=$enable_dlopen_self_static
31378 +# Compiler flag to prevent dynamic linking.
31379 +link_static_flag=$lt_lt_prog_compiler_static_RC
31381 +# Compiler flag to turn off builtin functions.
31382 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
31384 +# Compiler flag to allow reflexive dlopens.
31385 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
31387 +# Compiler flag to generate shared objects directly from archives.
31388 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
31390 +# Compiler flag to generate thread-safe objects.
31391 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
31393 +# Library versioning type.
31394 +version_type=$version_type
31396 +# Format of library name prefix.
31397 +libname_spec=$lt_libname_spec
31399 +# List of archive names. First name is the real one, the rest are links.
31400 +# The last name is the one that the linker finds with -lNAME.
31401 +library_names_spec=$lt_library_names_spec
31403 +# The coded name of the library, if different from the real name.
31404 +soname_spec=$lt_soname_spec
31406 +# Commands used to build and install an old-style archive.
31407 +RANLIB=$lt_RANLIB
31408 +old_archive_cmds=$lt_old_archive_cmds_RC
31409 +old_postinstall_cmds=$lt_old_postinstall_cmds
31410 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
31412 +# Create an old-style archive from a shared archive.
31413 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
31415 +# Create a temporary old-style archive to link instead of a shared archive.
31416 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
31418 +# Commands used to build and install a shared archive.
31419 +archive_cmds=$lt_archive_cmds_RC
31420 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
31421 +postinstall_cmds=$lt_postinstall_cmds
31422 +postuninstall_cmds=$lt_postuninstall_cmds
31424 +# Commands used to build a loadable module (assumed same as above if empty)
31425 +module_cmds=$lt_module_cmds_RC
31426 +module_expsym_cmds=$lt_module_expsym_cmds_RC
31428 +# Commands to strip libraries.
31429 +old_striplib=$lt_old_striplib
31430 +striplib=$lt_striplib
31432 +# Dependencies to place before the objects being linked to create a
31433 +# shared library.
31434 +predep_objects=$lt_predep_objects_RC
31436 +# Dependencies to place after the objects being linked to create a
31437 +# shared library.
31438 +postdep_objects=$lt_postdep_objects_RC
31440 +# Dependencies to place before the objects being linked to create a
31441 +# shared library.
31442 +predeps=$lt_predeps_RC
31444 +# Dependencies to place after the objects being linked to create a
31445 +# shared library.
31446 +postdeps=$lt_postdeps_RC
31448 +# The library search path used internally by the compiler when linking
31449 +# a shared library.
31450 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
31452 +# Method to check whether dependent libraries are shared objects.
31453 +deplibs_check_method=$lt_deplibs_check_method
31455 +# Command to use when deplibs_check_method == file_magic.
31456 +file_magic_cmd=$lt_file_magic_cmd
31458 +# Flag that allows shared libraries with undefined symbols to be built.
31459 +allow_undefined_flag=$lt_allow_undefined_flag_RC
31461 +# Flag that forces no undefined symbols.
31462 +no_undefined_flag=$lt_no_undefined_flag_RC
31464 +# Commands used to finish a libtool library installation in a directory.
31465 +finish_cmds=$lt_finish_cmds
31467 +# Same as above, but a single script fragment to be evaled but not shown.
31468 +finish_eval=$lt_finish_eval
31470 +# Take the output of nm and produce a listing of raw symbols and C names.
31471 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31473 +# Transform the output of nm in a proper C declaration
31474 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31476 +# Transform the output of nm in a C name address pair
31477 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31479 +# This is the shared library runtime path variable.
31480 +runpath_var=$runpath_var
31482 +# This is the shared library path variable.
31483 +shlibpath_var=$shlibpath_var
31485 +# Is shlibpath searched before the hard-coded library search path?
31486 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31488 +# How to hardcode a shared library path into an executable.
31489 +hardcode_action=$hardcode_action_RC
31491 +# Whether we should hardcode library paths into libraries.
31492 +hardcode_into_libs=$hardcode_into_libs
31494 +# Flag to hardcode \$libdir into a binary during linking.
31495 +# This must work even if \$libdir does not exist.
31496 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
31498 +# If ld is used when linking, flag to hardcode \$libdir into
31499 +# a binary during linking. This must work even if \$libdir does
31500 +# not exist.
31501 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
31503 +# Whether we need a single -rpath flag with a separated argument.
31504 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
31506 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
31507 +# resulting binary.
31508 +hardcode_direct=$hardcode_direct_RC
31510 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
31511 +# resulting binary.
31512 +hardcode_minus_L=$hardcode_minus_L_RC
31514 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
31515 +# the resulting binary.
31516 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
31518 +# Set to yes if building a shared library automatically hardcodes DIR into the library
31519 +# and all subsequent libraries and executables linked against it.
31520 +hardcode_automatic=$hardcode_automatic_RC
31522 +# Variables whose values should be saved in libtool wrapper scripts and
31523 +# restored at relink time.
31524 +variables_saved_for_relink="$variables_saved_for_relink"
31526 +# Whether libtool must link a program against all its dependency libraries.
31527 +link_all_deplibs=$link_all_deplibs_RC
31529 +# Compile-time system search path for libraries
31530 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31532 +# Run-time system search path for libraries
31533 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31535 +# Fix the shell variable \$srcfile for the compiler.
31536 +fix_srcfile_path="$fix_srcfile_path_RC"
31538 +# Set to yes if exported symbols are required.
31539 +always_export_symbols=$always_export_symbols_RC
31541 +# The commands to list exported symbols.
31542 +export_symbols_cmds=$lt_export_symbols_cmds_RC
31544 +# The commands to extract the exported symbol list from a shared archive.
31545 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
31547 +# Symbols that should not be listed in the preloaded symbols.
31548 +exclude_expsyms=$lt_exclude_expsyms_RC
31550 +# Symbols that must always be exported.
31551 +include_expsyms=$lt_include_expsyms_RC
31553 +# ### END LIBTOOL TAG CONFIG: $tagname
31555 +__EOF__
31558 +else
31559 + # If there is no Makefile yet, we rely on a make rule to execute
31560 + # `config.status --recheck' to rerun these tests and create the
31561 + # libtool script then.
31562 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
31563 + if test -f "$ltmain_in"; then
31564 + test -f Makefile && make "$ltmain"
31565 + fi
31566 +fi
31569 +ac_ext=c
31570 +ac_cpp='$CPP $CPPFLAGS'
31571 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31572 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31573 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31575 +CC="$lt_save_CC"
31577 + ;;
31579 -if test -z "$ac_cv_prog_AS"; then
31580 -if test -n "$ac_tool_prefix"; then
31581 - # Extract the first word of "as", so it can be a program name with args.
31582 -set dummy as; ac_word=$2
31583 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
31584 -echo "configure:1752: checking for $ac_word" >&5
31585 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
31586 - echo $ac_n "(cached) $ac_c" 1>&6
31587 -else
31588 - if test -n "$AS"; then
31589 - ac_cv_prog_AS="$AS" # Let the user override the test.
31590 -else
31591 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
31592 - ac_dummy="$PATH"
31593 - for ac_dir in $ac_dummy; do
31594 - test -z "$ac_dir" && ac_dir=.
31595 - if test -f $ac_dir/$ac_word; then
31596 - ac_cv_prog_AS="as"
31597 - break
31598 + *)
31599 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
31600 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
31601 + { (exit 1); exit 1; }; }
31602 + ;;
31603 + esac
31605 + # Append the new tag name to the list of available tags.
31606 + if test -n "$tagname" ; then
31607 + available_tags="$available_tags $tagname"
31608 + fi
31609 fi
31610 done
31611 - IFS="$ac_save_ifs"
31612 - test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
31613 -fi
31614 -fi
31615 -AS="$ac_cv_prog_AS"
31616 -if test -n "$AS"; then
31617 - echo "$ac_t""$AS" 1>&6
31618 -else
31619 - echo "$ac_t""no" 1>&6
31620 -fi
31621 + IFS="$lt_save_ifs"
31623 -else
31624 - AS="false"
31625 -fi
31626 + # Now substitute the updated list of available tags.
31627 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
31628 + mv "${ofile}T" "$ofile"
31629 + chmod +x "$ofile"
31630 + else
31631 + rm -f "${ofile}T"
31632 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
31633 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
31634 + { (exit 1); exit 1; }; }
31635 + fi
31636 fi
31639 - ;;
31641 -esac
31642 +# This can be used to rebuild libtool when needed
31643 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
31645 +# Always use our own libtool.
31646 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
31648 +# Prevent multiple expansion
31650 -# enable the --disable-libtool-lock switch
31652 -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
31653 -if test "${enable_libtool_lock+set}" = set; then
31654 - enableval="$enable_libtool_lock"
31655 - need_locks=$enableval
31656 -else
31657 - need_locks=yes
31658 -fi
31661 -if test x"$need_locks" = xno; then
31662 - libtool_flags="$libtool_flags --disable-lock"
31663 -fi
31666 -# Actually configure libtool. ac_aux_dir is where install-sh is found.
31667 -CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
31668 -LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
31669 -DLLTOOL="$DLLTOOL" AS="$AS" \
31670 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
31671 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
31672 -|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
31674 -# Redirect the config.log output again, so that the ltconfig log is not
31675 -# clobbered by the next message.
31676 -exec 5>>./config.log
31679 -echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
31680 -echo "configure:1819: checking whether to enable maintainer-specific portions of Makefiles" >&5
31693 +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
31694 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
31695 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
31696 if test "${enable_maintainer_mode+set}" = set; then
31697 enableval="$enable_maintainer_mode"
31698 USE_MAINTAINER_MODE=$enableval
31699 else
31700 USE_MAINTAINER_MODE=no
31701 -fi
31702 +fi;
31703 + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
31704 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
31706 - echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
31709 if test $USE_MAINTAINER_MODE = yes; then
31710 MAINTAINER_MODE_TRUE=
31711 @@ -1834,218 +19064,463 @@ else
31712 MAINTAINER_MODE_TRUE='#'
31713 MAINTAINER_MODE_FALSE=
31714 fi
31716 MAINT=$MAINTAINER_MODE_TRUE
31720 -# Extract the first word of "gcc", so it can be a program name with args.
31722 +ac_ext=c
31723 +ac_cpp='$CPP $CPPFLAGS'
31724 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31725 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31726 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
31727 +if test -n "$ac_tool_prefix"; then
31728 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
31729 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
31730 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31731 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31732 +if test "${ac_cv_prog_CC+set}" = set; then
31733 + echo $ECHO_N "(cached) $ECHO_C" >&6
31734 +else
31735 + if test -n "$CC"; then
31736 + ac_cv_prog_CC="$CC" # Let the user override the test.
31737 +else
31738 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31739 +for as_dir in $PATH
31740 +do
31741 + IFS=$as_save_IFS
31742 + test -z "$as_dir" && as_dir=.
31743 + for ac_exec_ext in '' $ac_executable_extensions; do
31744 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31745 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
31746 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31747 + break 2
31748 + fi
31749 +done
31750 +done
31752 +fi
31753 +fi
31754 +CC=$ac_cv_prog_CC
31755 +if test -n "$CC"; then
31756 + echo "$as_me:$LINENO: result: $CC" >&5
31757 +echo "${ECHO_T}$CC" >&6
31758 +else
31759 + echo "$as_me:$LINENO: result: no" >&5
31760 +echo "${ECHO_T}no" >&6
31761 +fi
31763 +fi
31764 +if test -z "$ac_cv_prog_CC"; then
31765 + ac_ct_CC=$CC
31766 + # Extract the first word of "gcc", so it can be a program name with args.
31767 set dummy gcc; ac_word=$2
31768 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
31769 -echo "configure:1845: checking for $ac_word" >&5
31770 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
31771 - echo $ac_n "(cached) $ac_c" 1>&6
31772 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31773 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31774 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31775 + echo $ECHO_N "(cached) $ECHO_C" >&6
31776 +else
31777 + if test -n "$ac_ct_CC"; then
31778 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31779 +else
31780 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31781 +for as_dir in $PATH
31782 +do
31783 + IFS=$as_save_IFS
31784 + test -z "$as_dir" && as_dir=.
31785 + for ac_exec_ext in '' $ac_executable_extensions; do
31786 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31787 + ac_cv_prog_ac_ct_CC="gcc"
31788 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31789 + break 2
31790 + fi
31791 +done
31792 +done
31794 +fi
31795 +fi
31796 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31797 +if test -n "$ac_ct_CC"; then
31798 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31799 +echo "${ECHO_T}$ac_ct_CC" >&6
31800 +else
31801 + echo "$as_me:$LINENO: result: no" >&5
31802 +echo "${ECHO_T}no" >&6
31803 +fi
31805 + CC=$ac_ct_CC
31806 +else
31807 + CC="$ac_cv_prog_CC"
31808 +fi
31810 +if test -z "$CC"; then
31811 + if test -n "$ac_tool_prefix"; then
31812 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
31813 +set dummy ${ac_tool_prefix}cc; ac_word=$2
31814 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31815 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31816 +if test "${ac_cv_prog_CC+set}" = set; then
31817 + echo $ECHO_N "(cached) $ECHO_C" >&6
31818 else
31819 if test -n "$CC"; then
31820 ac_cv_prog_CC="$CC" # Let the user override the test.
31821 else
31822 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
31823 - ac_dummy="$PATH"
31824 - for ac_dir in $ac_dummy; do
31825 - test -z "$ac_dir" && ac_dir=.
31826 - if test -f $ac_dir/$ac_word; then
31827 - ac_cv_prog_CC="gcc"
31828 - break
31829 - fi
31830 - done
31831 - IFS="$ac_save_ifs"
31832 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31833 +for as_dir in $PATH
31834 +do
31835 + IFS=$as_save_IFS
31836 + test -z "$as_dir" && as_dir=.
31837 + for ac_exec_ext in '' $ac_executable_extensions; do
31838 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31839 + ac_cv_prog_CC="${ac_tool_prefix}cc"
31840 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31841 + break 2
31842 + fi
31843 +done
31844 +done
31846 fi
31847 fi
31848 -CC="$ac_cv_prog_CC"
31849 +CC=$ac_cv_prog_CC
31850 if test -n "$CC"; then
31851 - echo "$ac_t""$CC" 1>&6
31852 + echo "$as_me:$LINENO: result: $CC" >&5
31853 +echo "${ECHO_T}$CC" >&6
31854 +else
31855 + echo "$as_me:$LINENO: result: no" >&5
31856 +echo "${ECHO_T}no" >&6
31857 +fi
31859 +fi
31860 +if test -z "$ac_cv_prog_CC"; then
31861 + ac_ct_CC=$CC
31862 + # Extract the first word of "cc", so it can be a program name with args.
31863 +set dummy cc; ac_word=$2
31864 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31865 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31866 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
31867 + echo $ECHO_N "(cached) $ECHO_C" >&6
31868 +else
31869 + if test -n "$ac_ct_CC"; then
31870 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31871 +else
31872 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873 +for as_dir in $PATH
31874 +do
31875 + IFS=$as_save_IFS
31876 + test -z "$as_dir" && as_dir=.
31877 + for ac_exec_ext in '' $ac_executable_extensions; do
31878 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31879 + ac_cv_prog_ac_ct_CC="cc"
31880 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31881 + break 2
31882 + fi
31883 +done
31884 +done
31886 +fi
31887 +fi
31888 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
31889 +if test -n "$ac_ct_CC"; then
31890 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
31891 +echo "${ECHO_T}$ac_ct_CC" >&6
31892 +else
31893 + echo "$as_me:$LINENO: result: no" >&5
31894 +echo "${ECHO_T}no" >&6
31895 +fi
31897 + CC=$ac_ct_CC
31898 else
31899 - echo "$ac_t""no" 1>&6
31900 + CC="$ac_cv_prog_CC"
31901 fi
31903 +fi
31904 if test -z "$CC"; then
31905 # Extract the first word of "cc", so it can be a program name with args.
31906 set dummy cc; ac_word=$2
31907 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
31908 -echo "configure:1875: checking for $ac_word" >&5
31909 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
31910 - echo $ac_n "(cached) $ac_c" 1>&6
31911 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31912 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31913 +if test "${ac_cv_prog_CC+set}" = set; then
31914 + echo $ECHO_N "(cached) $ECHO_C" >&6
31915 else
31916 if test -n "$CC"; then
31917 ac_cv_prog_CC="$CC" # Let the user override the test.
31918 else
31919 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
31920 ac_prog_rejected=no
31921 - ac_dummy="$PATH"
31922 - for ac_dir in $ac_dummy; do
31923 - test -z "$ac_dir" && ac_dir=.
31924 - if test -f $ac_dir/$ac_word; then
31925 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
31926 - ac_prog_rejected=yes
31927 - continue
31928 - fi
31929 - ac_cv_prog_CC="cc"
31930 - break
31931 - fi
31932 - done
31933 - IFS="$ac_save_ifs"
31934 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31935 +for as_dir in $PATH
31936 +do
31937 + IFS=$as_save_IFS
31938 + test -z "$as_dir" && as_dir=.
31939 + for ac_exec_ext in '' $ac_executable_extensions; do
31940 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31941 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31942 + ac_prog_rejected=yes
31943 + continue
31944 + fi
31945 + ac_cv_prog_CC="cc"
31946 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31947 + break 2
31948 + fi
31949 +done
31950 +done
31952 if test $ac_prog_rejected = yes; then
31953 # We found a bogon in the path, so make sure we never use it.
31954 set dummy $ac_cv_prog_CC
31955 shift
31956 - if test $# -gt 0; then
31957 + if test $# != 0; then
31958 # We chose a different compiler from the bogus one.
31959 # However, it has the same basename, so the bogon will be chosen
31960 # first if we set CC to just the basename; use the full file name.
31961 shift
31962 - set dummy "$ac_dir/$ac_word" "$@"
31963 - shift
31964 - ac_cv_prog_CC="$@"
31965 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
31966 fi
31967 fi
31968 fi
31969 fi
31970 -CC="$ac_cv_prog_CC"
31971 +CC=$ac_cv_prog_CC
31972 if test -n "$CC"; then
31973 - echo "$ac_t""$CC" 1>&6
31974 + echo "$as_me:$LINENO: result: $CC" >&5
31975 +echo "${ECHO_T}$CC" >&6
31976 else
31977 - echo "$ac_t""no" 1>&6
31978 + echo "$as_me:$LINENO: result: no" >&5
31979 +echo "${ECHO_T}no" >&6
31980 fi
31982 - if test -z "$CC"; then
31983 - case "`uname -s`" in
31984 - *win32* | *WIN32*)
31985 - # Extract the first word of "cl", so it can be a program name with args.
31986 -set dummy cl; ac_word=$2
31987 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
31988 -echo "configure:1926: checking for $ac_word" >&5
31989 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
31990 - echo $ac_n "(cached) $ac_c" 1>&6
31991 +fi
31992 +if test -z "$CC"; then
31993 + if test -n "$ac_tool_prefix"; then
31994 + for ac_prog in cl
31995 + do
31996 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31997 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31998 +echo "$as_me:$LINENO: checking for $ac_word" >&5
31999 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32000 +if test "${ac_cv_prog_CC+set}" = set; then
32001 + echo $ECHO_N "(cached) $ECHO_C" >&6
32002 else
32003 if test -n "$CC"; then
32004 ac_cv_prog_CC="$CC" # Let the user override the test.
32005 else
32006 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
32007 - ac_dummy="$PATH"
32008 - for ac_dir in $ac_dummy; do
32009 - test -z "$ac_dir" && ac_dir=.
32010 - if test -f $ac_dir/$ac_word; then
32011 - ac_cv_prog_CC="cl"
32012 - break
32013 - fi
32014 - done
32015 - IFS="$ac_save_ifs"
32016 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32017 +for as_dir in $PATH
32018 +do
32019 + IFS=$as_save_IFS
32020 + test -z "$as_dir" && as_dir=.
32021 + for ac_exec_ext in '' $ac_executable_extensions; do
32022 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32023 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
32024 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32025 + break 2
32026 + fi
32027 +done
32028 +done
32030 fi
32031 fi
32032 -CC="$ac_cv_prog_CC"
32033 +CC=$ac_cv_prog_CC
32034 if test -n "$CC"; then
32035 - echo "$ac_t""$CC" 1>&6
32036 + echo "$as_me:$LINENO: result: $CC" >&5
32037 +echo "${ECHO_T}$CC" >&6
32038 else
32039 - echo "$ac_t""no" 1>&6
32040 -fi
32041 - ;;
32042 - esac
32043 - fi
32044 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
32045 + echo "$as_me:$LINENO: result: no" >&5
32046 +echo "${ECHO_T}no" >&6
32047 fi
32049 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
32050 -echo "configure:1958: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
32052 -ac_ext=c
32053 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
32054 -ac_cpp='$CPP $CPPFLAGS'
32055 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
32056 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32057 -cross_compiling=$ac_cv_prog_cc_cross
32058 + test -n "$CC" && break
32059 + done
32060 +fi
32061 +if test -z "$CC"; then
32062 + ac_ct_CC=$CC
32063 + for ac_prog in cl
32064 +do
32065 + # Extract the first word of "$ac_prog", so it can be a program name with args.
32066 +set dummy $ac_prog; ac_word=$2
32067 +echo "$as_me:$LINENO: checking for $ac_word" >&5
32068 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32069 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
32070 + echo $ECHO_N "(cached) $ECHO_C" >&6
32071 +else
32072 + if test -n "$ac_ct_CC"; then
32073 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
32074 +else
32075 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32076 +for as_dir in $PATH
32077 +do
32078 + IFS=$as_save_IFS
32079 + test -z "$as_dir" && as_dir=.
32080 + for ac_exec_ext in '' $ac_executable_extensions; do
32081 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32082 + ac_cv_prog_ac_ct_CC="$ac_prog"
32083 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32084 + break 2
32085 + fi
32086 +done
32087 +done
32089 -cat > conftest.$ac_ext << EOF
32090 +fi
32091 +fi
32092 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
32093 +if test -n "$ac_ct_CC"; then
32094 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
32095 +echo "${ECHO_T}$ac_ct_CC" >&6
32096 +else
32097 + echo "$as_me:$LINENO: result: no" >&5
32098 +echo "${ECHO_T}no" >&6
32099 +fi
32101 -#line 1969 "configure"
32102 -#include "confdefs.h"
32103 + test -n "$ac_ct_CC" && break
32104 +done
32106 -main(){return(0);}
32107 -EOF
32108 -if { (eval echo configure:1974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
32109 - ac_cv_prog_cc_works=yes
32110 - # If we can't run a trivial program, we are probably using a cross compiler.
32111 - if (./conftest; exit) 2>/dev/null; then
32112 - ac_cv_prog_cc_cross=no
32113 - else
32114 - ac_cv_prog_cc_cross=yes
32115 - fi
32116 -else
32117 - echo "configure: failed program was:" >&5
32118 - cat conftest.$ac_ext >&5
32119 - ac_cv_prog_cc_works=no
32120 + CC=$ac_ct_CC
32121 fi
32122 -rm -fr conftest*
32123 -ac_ext=c
32124 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
32125 -ac_cpp='$CPP $CPPFLAGS'
32126 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
32127 -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32128 -cross_compiling=$ac_cv_prog_cc_cross
32130 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
32131 -if test $ac_cv_prog_cc_works = no; then
32132 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
32133 fi
32134 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
32135 -echo "configure:2000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
32136 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
32137 -cross_compiling=$ac_cv_prog_cc_cross
32139 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
32140 -echo "configure:2005: checking whether we are using GNU C" >&5
32141 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
32142 - echo $ac_n "(cached) $ac_c" 1>&6
32143 -else
32144 - cat > conftest.c <<EOF
32145 -#ifdef __GNUC__
32146 - yes;
32148 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
32149 +See \`config.log' for more details." >&5
32150 +echo "$as_me: error: no acceptable C compiler found in \$PATH
32151 +See \`config.log' for more details." >&2;}
32152 + { (exit 1); exit 1; }; }
32154 +# Provide some information about the compiler.
32155 +echo "$as_me:$LINENO:" \
32156 + "checking for C compiler version" >&5
32157 +ac_compiler=`set X $ac_compile; echo $2`
32158 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
32159 + (eval $ac_compiler --version </dev/null >&5) 2>&5
32160 + ac_status=$?
32161 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162 + (exit $ac_status); }
32163 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
32164 + (eval $ac_compiler -v </dev/null >&5) 2>&5
32165 + ac_status=$?
32166 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32167 + (exit $ac_status); }
32168 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
32169 + (eval $ac_compiler -V </dev/null >&5) 2>&5
32170 + ac_status=$?
32171 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 + (exit $ac_status); }
32174 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
32175 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
32176 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
32177 + echo $ECHO_N "(cached) $ECHO_C" >&6
32178 +else
32179 + cat >conftest.$ac_ext <<_ACEOF
32180 +/* confdefs.h. */
32181 +_ACEOF
32182 +cat confdefs.h >>conftest.$ac_ext
32183 +cat >>conftest.$ac_ext <<_ACEOF
32184 +/* end confdefs.h. */
32186 +int
32187 +main ()
32188 +{
32189 +#ifndef __GNUC__
32190 + choke me
32191 #endif
32192 -EOF
32193 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2014: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
32194 - ac_cv_prog_gcc=yes
32195 -else
32196 - ac_cv_prog_gcc=no
32197 -fi
32198 -fi
32200 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
32201 + ;
32202 + return 0;
32203 +}
32204 +_ACEOF
32205 +rm -f conftest.$ac_objext
32206 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32207 + (eval $ac_compile) 2>conftest.er1
32208 + ac_status=$?
32209 + grep -v '^ *+' conftest.er1 >conftest.err
32210 + rm -f conftest.er1
32211 + cat conftest.err >&5
32212 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 + (exit $ac_status); } &&
32214 + { ac_try='test -z "$ac_c_werror_flag"
32215 + || test ! -s conftest.err'
32216 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32217 + (eval $ac_try) 2>&5
32218 + ac_status=$?
32219 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220 + (exit $ac_status); }; } &&
32221 + { ac_try='test -s conftest.$ac_objext'
32222 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32223 + (eval $ac_try) 2>&5
32224 + ac_status=$?
32225 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32226 + (exit $ac_status); }; }; then
32227 + ac_compiler_gnu=yes
32228 +else
32229 + echo "$as_me: failed program was:" >&5
32230 +sed 's/^/| /' conftest.$ac_ext >&5
32232 +ac_compiler_gnu=no
32233 +fi
32234 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32235 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
32237 +fi
32238 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
32239 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
32240 +GCC=`test $ac_compiler_gnu = yes && echo yes`
32241 +ac_test_CFLAGS=${CFLAGS+set}
32242 +ac_save_CFLAGS=$CFLAGS
32243 +CFLAGS="-g"
32244 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
32245 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
32246 +if test "${ac_cv_prog_cc_g+set}" = set; then
32247 + echo $ECHO_N "(cached) $ECHO_C" >&6
32248 +else
32249 + cat >conftest.$ac_ext <<_ACEOF
32250 +/* confdefs.h. */
32251 +_ACEOF
32252 +cat confdefs.h >>conftest.$ac_ext
32253 +cat >>conftest.$ac_ext <<_ACEOF
32254 +/* end confdefs.h. */
32256 -if test $ac_cv_prog_gcc = yes; then
32257 - GCC=yes
32258 -else
32259 - GCC=
32260 -fi
32261 +int
32262 +main ()
32263 +{
32265 -ac_test_CFLAGS="${CFLAGS+set}"
32266 -ac_save_CFLAGS="$CFLAGS"
32267 -CFLAGS=
32268 -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
32269 -echo "configure:2033: checking whether ${CC-cc} accepts -g" >&5
32270 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
32271 - echo $ac_n "(cached) $ac_c" 1>&6
32272 -else
32273 - echo 'void f(){}' > conftest.c
32274 -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
32275 + ;
32276 + return 0;
32277 +}
32278 +_ACEOF
32279 +rm -f conftest.$ac_objext
32280 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32281 + (eval $ac_compile) 2>conftest.er1
32282 + ac_status=$?
32283 + grep -v '^ *+' conftest.er1 >conftest.err
32284 + rm -f conftest.er1
32285 + cat conftest.err >&5
32286 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32287 + (exit $ac_status); } &&
32288 + { ac_try='test -z "$ac_c_werror_flag"
32289 + || test ! -s conftest.err'
32290 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 + (eval $ac_try) 2>&5
32292 + ac_status=$?
32293 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 + (exit $ac_status); }; } &&
32295 + { ac_try='test -s conftest.$ac_objext'
32296 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 + (eval $ac_try) 2>&5
32298 + ac_status=$?
32299 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 + (exit $ac_status); }; }; then
32301 ac_cv_prog_cc_g=yes
32302 else
32303 - ac_cv_prog_cc_g=no
32304 -fi
32305 -rm -f conftest*
32306 + echo "$as_me: failed program was:" >&5
32307 +sed 's/^/| /' conftest.$ac_ext >&5
32309 +ac_cv_prog_cc_g=no
32310 fi
32312 -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
32313 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32314 +fi
32315 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
32316 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
32317 if test "$ac_test_CFLAGS" = set; then
32318 - CFLAGS="$ac_save_CFLAGS"
32319 + CFLAGS=$ac_save_CFLAGS
32320 elif test $ac_cv_prog_cc_g = yes; then
32321 if test "$GCC" = yes; then
32322 CFLAGS="-g -O2"
32323 @@ -2059,31 +19534,398 @@ else
32324 CFLAGS=
32325 fi
32326 fi
32327 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
32328 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
32329 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
32330 + echo $ECHO_N "(cached) $ECHO_C" >&6
32331 +else
32332 + ac_cv_prog_cc_stdc=no
32333 +ac_save_CC=$CC
32334 +cat >conftest.$ac_ext <<_ACEOF
32335 +/* confdefs.h. */
32336 +_ACEOF
32337 +cat confdefs.h >>conftest.$ac_ext
32338 +cat >>conftest.$ac_ext <<_ACEOF
32339 +/* end confdefs.h. */
32340 +#include <stdarg.h>
32341 +#include <stdio.h>
32342 +#include <sys/types.h>
32343 +#include <sys/stat.h>
32344 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
32345 +struct buf { int x; };
32346 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
32347 +static char *e (p, i)
32348 + char **p;
32349 + int i;
32350 +{
32351 + return p[i];
32352 +}
32353 +static char *f (char * (*g) (char **, int), char **p, ...)
32354 +{
32355 + char *s;
32356 + va_list v;
32357 + va_start (v,p);
32358 + s = g (p, va_arg (v,int));
32359 + va_end (v);
32360 + return s;
32361 +}
32363 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
32364 + function prototypes and stuff, but not '\xHH' hex character constants.
32365 + These don't provoke an error unfortunately, instead are silently treated
32366 + as 'x'. The following induces an error, until -std1 is added to get
32367 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
32368 + array size at least. It's necessary to write '\x00'==0 to get something
32369 + that's true only with -std1. */
32370 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
32372 +int test (int i, double x);
32373 +struct s1 {int (*f) (int a);};
32374 +struct s2 {int (*f) (double a);};
32375 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
32376 +int argc;
32377 +char **argv;
32378 +int
32379 +main ()
32380 +{
32381 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
32382 + ;
32383 + return 0;
32384 +}
32385 +_ACEOF
32386 +# Don't try gcc -ansi; that turns off useful extensions and
32387 +# breaks some systems' header files.
32388 +# AIX -qlanglvl=ansi
32389 +# Ultrix and OSF/1 -std1
32390 +# HP-UX 10.20 and later -Ae
32391 +# HP-UX older versions -Aa -D_HPUX_SOURCE
32392 +# SVR4 -Xc -D__EXTENSIONS__
32393 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
32394 +do
32395 + CC="$ac_save_CC $ac_arg"
32396 + rm -f conftest.$ac_objext
32397 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32398 + (eval $ac_compile) 2>conftest.er1
32399 + ac_status=$?
32400 + grep -v '^ *+' conftest.er1 >conftest.err
32401 + rm -f conftest.er1
32402 + cat conftest.err >&5
32403 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32404 + (exit $ac_status); } &&
32405 + { ac_try='test -z "$ac_c_werror_flag"
32406 + || test ! -s conftest.err'
32407 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32408 + (eval $ac_try) 2>&5
32409 + ac_status=$?
32410 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 + (exit $ac_status); }; } &&
32412 + { ac_try='test -s conftest.$ac_objext'
32413 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32414 + (eval $ac_try) 2>&5
32415 + ac_status=$?
32416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32417 + (exit $ac_status); }; }; then
32418 + ac_cv_prog_cc_stdc=$ac_arg
32419 +break
32420 +else
32421 + echo "$as_me: failed program was:" >&5
32422 +sed 's/^/| /' conftest.$ac_ext >&5
32424 +fi
32425 +rm -f conftest.err conftest.$ac_objext
32426 +done
32427 +rm -f conftest.$ac_ext conftest.$ac_objext
32428 +CC=$ac_save_CC
32430 +fi
32432 +case "x$ac_cv_prog_cc_stdc" in
32433 + x|xno)
32434 + echo "$as_me:$LINENO: result: none needed" >&5
32435 +echo "${ECHO_T}none needed" >&6 ;;
32436 + *)
32437 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
32438 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
32439 + CC="$CC $ac_cv_prog_cc_stdc" ;;
32440 +esac
32442 +# Some people use a C++ compiler to compile C. Since we use `exit',
32443 +# in C++ we need to declare it. In case someone uses the same compiler
32444 +# for both compiling C and C++ we need to have the C++ compiler decide
32445 +# the declaration of exit, since it's the most demanding environment.
32446 +cat >conftest.$ac_ext <<_ACEOF
32447 +#ifndef __cplusplus
32448 + choke me
32449 +#endif
32450 +_ACEOF
32451 +rm -f conftest.$ac_objext
32452 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32453 + (eval $ac_compile) 2>conftest.er1
32454 + ac_status=$?
32455 + grep -v '^ *+' conftest.er1 >conftest.err
32456 + rm -f conftest.er1
32457 + cat conftest.err >&5
32458 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32459 + (exit $ac_status); } &&
32460 + { ac_try='test -z "$ac_c_werror_flag"
32461 + || test ! -s conftest.err'
32462 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32463 + (eval $ac_try) 2>&5
32464 + ac_status=$?
32465 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466 + (exit $ac_status); }; } &&
32467 + { ac_try='test -s conftest.$ac_objext'
32468 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32469 + (eval $ac_try) 2>&5
32470 + ac_status=$?
32471 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32472 + (exit $ac_status); }; }; then
32473 + for ac_declaration in \
32474 + '' \
32475 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
32476 + 'extern "C" void std::exit (int); using std::exit;' \
32477 + 'extern "C" void exit (int) throw ();' \
32478 + 'extern "C" void exit (int);' \
32479 + 'void exit (int);'
32480 +do
32481 + cat >conftest.$ac_ext <<_ACEOF
32482 +/* confdefs.h. */
32483 +_ACEOF
32484 +cat confdefs.h >>conftest.$ac_ext
32485 +cat >>conftest.$ac_ext <<_ACEOF
32486 +/* end confdefs.h. */
32487 +$ac_declaration
32488 +#include <stdlib.h>
32489 +int
32490 +main ()
32491 +{
32492 +exit (42);
32493 + ;
32494 + return 0;
32495 +}
32496 +_ACEOF
32497 +rm -f conftest.$ac_objext
32498 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32499 + (eval $ac_compile) 2>conftest.er1
32500 + ac_status=$?
32501 + grep -v '^ *+' conftest.er1 >conftest.err
32502 + rm -f conftest.er1
32503 + cat conftest.err >&5
32504 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32505 + (exit $ac_status); } &&
32506 + { ac_try='test -z "$ac_c_werror_flag"
32507 + || test ! -s conftest.err'
32508 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32509 + (eval $ac_try) 2>&5
32510 + ac_status=$?
32511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 + (exit $ac_status); }; } &&
32513 + { ac_try='test -s conftest.$ac_objext'
32514 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32515 + (eval $ac_try) 2>&5
32516 + ac_status=$?
32517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32518 + (exit $ac_status); }; }; then
32519 + :
32520 +else
32521 + echo "$as_me: failed program was:" >&5
32522 +sed 's/^/| /' conftest.$ac_ext >&5
32524 +continue
32525 +fi
32526 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32527 + cat >conftest.$ac_ext <<_ACEOF
32528 +/* confdefs.h. */
32529 +_ACEOF
32530 +cat confdefs.h >>conftest.$ac_ext
32531 +cat >>conftest.$ac_ext <<_ACEOF
32532 +/* end confdefs.h. */
32533 +$ac_declaration
32534 +int
32535 +main ()
32536 +{
32537 +exit (42);
32538 + ;
32539 + return 0;
32540 +}
32541 +_ACEOF
32542 +rm -f conftest.$ac_objext
32543 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32544 + (eval $ac_compile) 2>conftest.er1
32545 + ac_status=$?
32546 + grep -v '^ *+' conftest.er1 >conftest.err
32547 + rm -f conftest.er1
32548 + cat conftest.err >&5
32549 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32550 + (exit $ac_status); } &&
32551 + { ac_try='test -z "$ac_c_werror_flag"
32552 + || test ! -s conftest.err'
32553 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32554 + (eval $ac_try) 2>&5
32555 + ac_status=$?
32556 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 + (exit $ac_status); }; } &&
32558 + { ac_try='test -s conftest.$ac_objext'
32559 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32560 + (eval $ac_try) 2>&5
32561 + ac_status=$?
32562 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32563 + (exit $ac_status); }; }; then
32564 + break
32565 +else
32566 + echo "$as_me: failed program was:" >&5
32567 +sed 's/^/| /' conftest.$ac_ext >&5
32569 +fi
32570 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32571 +done
32572 +rm -f conftest*
32573 +if test -n "$ac_declaration"; then
32574 + echo '#ifdef __cplusplus' >>confdefs.h
32575 + echo $ac_declaration >>confdefs.h
32576 + echo '#endif' >>confdefs.h
32577 +fi
32579 +else
32580 + echo "$as_me: failed program was:" >&5
32581 +sed 's/^/| /' conftest.$ac_ext >&5
32583 +fi
32584 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32585 +ac_ext=c
32586 +ac_cpp='$CPP $CPPFLAGS'
32587 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32588 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32589 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
32591 +depcc="$CC" am_compiler_list=
32593 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32594 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
32595 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
32596 + echo $ECHO_N "(cached) $ECHO_C" >&6
32597 +else
32598 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32599 + # We make a subdir and do the tests there. Otherwise we can end up
32600 + # making bogus files that we don't know about and never remove. For
32601 + # instance it was reported that on HP-UX the gcc test will end up
32602 + # making a dummy file named `D' -- because `-MD' means `put the output
32603 + # in D'.
32604 + mkdir conftest.dir
32605 + # Copy depcomp to subdir because otherwise we won't find it if we're
32606 + # using a relative directory.
32607 + cp "$am_depcomp" conftest.dir
32608 + cd conftest.dir
32609 + # We will build objects and dependencies in a subdirectory because
32610 + # it helps to detect inapplicable dependency modes. For instance
32611 + # both Tru64's cc and ICC support -MD to output dependencies as a
32612 + # side effect of compilation, but ICC will put the dependencies in
32613 + # the current directory while Tru64 will put them in the object
32614 + # directory.
32615 + mkdir sub
32617 + am_cv_CC_dependencies_compiler_type=none
32618 + if test "$am_compiler_list" = ""; then
32619 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32620 + fi
32621 + for depmode in $am_compiler_list; do
32622 + # Setup a source with many dependencies, because some compilers
32623 + # like to wrap large dependency lists on column 80 (with \), and
32624 + # we should not choose a depcomp mode which is confused by this.
32625 + #
32626 + # We need to recreate these files for each test, as the compiler may
32627 + # overwrite some of them when testing with obscure command lines.
32628 + # This happens at least with the AIX C compiler.
32629 + : > sub/conftest.c
32630 + for i in 1 2 3 4 5 6; do
32631 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
32632 + : > sub/conftst$i.h
32633 + done
32634 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32636 + case $depmode in
32637 + nosideeffect)
32638 + # after this tag, mechanisms are not by side-effect, so they'll
32639 + # only be used when explicitly requested
32640 + if test "x$enable_dependency_tracking" = xyes; then
32641 + continue
32642 + else
32643 + break
32644 + fi
32645 + ;;
32646 + none) break ;;
32647 + esac
32648 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
32649 + # mode. It turns out that the SunPro C++ compiler does not properly
32650 + # handle `-M -o', and we need to detect this.
32651 + if depmode=$depmode \
32652 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
32653 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32654 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
32655 + >/dev/null 2>conftest.err &&
32656 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32657 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
32658 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32659 + # icc doesn't choke on unknown options, it will just issue warnings
32660 + # (even with -Werror). So we grep stderr for any message
32661 + # that says an option was ignored.
32662 + if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
32663 + am_cv_CC_dependencies_compiler_type=$depmode
32664 + break
32665 + fi
32666 + fi
32667 + done
32669 + cd ..
32670 + rm -rf conftest.dir
32671 +else
32672 + am_cv_CC_dependencies_compiler_type=none
32673 +fi
32675 +fi
32676 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
32677 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
32678 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
32682 +if
32683 + test "x$enable_dependency_tracking" != xno \
32684 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
32685 + am__fastdepCC_TRUE=
32686 + am__fastdepCC_FALSE='#'
32687 +else
32688 + am__fastdepCC_TRUE='#'
32689 + am__fastdepCC_FALSE=
32690 +fi
32693 -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
32694 -echo "configure:2065: checking whether ${MAKE-make} sets \${MAKE}" >&5
32695 -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
32696 -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
32697 - echo $ac_n "(cached) $ac_c" 1>&6
32698 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
32699 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
32700 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
32701 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
32702 + echo $ECHO_N "(cached) $ECHO_C" >&6
32703 else
32704 - cat > conftestmake <<\EOF
32705 + cat >conftest.make <<\_ACEOF
32706 all:
32707 - @echo 'ac_maketemp="${MAKE}"'
32708 -EOF
32709 + @echo 'ac_maketemp="$(MAKE)"'
32710 +_ACEOF
32711 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32712 -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
32713 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
32714 if test -n "$ac_maketemp"; then
32715 eval ac_cv_prog_make_${ac_make}_set=yes
32716 else
32717 eval ac_cv_prog_make_${ac_make}_set=no
32718 fi
32719 -rm -f conftestmake
32720 +rm -f conftest.make
32721 fi
32722 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
32723 - echo "$ac_t""yes" 1>&6
32724 + echo "$as_me:$LINENO: result: yes" >&5
32725 +echo "${ECHO_T}yes" >&6
32726 SET_MAKE=
32727 else
32728 - echo "$ac_t""no" 1>&6
32729 + echo "$as_me:$LINENO: result: no" >&5
32730 +echo "${ECHO_T}no" >&6
32731 SET_MAKE="MAKE=${MAKE-make}"
32732 fi
32734 @@ -2091,99 +19933,15 @@ fi
32735 saved_cflags="$CFLAGS"
32736 saved_ldflags="$LDFLAGS"
32738 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
32739 -echo "configure:2096: checking how to run the C preprocessor" >&5
32740 -# On Suns, sometimes $CPP names a directory.
32741 -if test -n "$CPP" && test -d "$CPP"; then
32742 - CPP=
32743 -fi
32744 -if test -z "$CPP"; then
32745 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
32746 - echo $ac_n "(cached) $ac_c" 1>&6
32747 -else
32748 - # This must be in double quotes, not single quotes, because CPP may get
32749 - # substituted into the Makefile and "${CC-cc}" will confuse make.
32750 - CPP="${CC-cc} -E"
32751 - # On the NeXT, cc -E runs the code through the compiler's parser,
32752 - # not just through cpp.
32753 - cat > conftest.$ac_ext <<EOF
32754 -#line 2111 "configure"
32755 -#include "confdefs.h"
32756 -#include <assert.h>
32757 -Syntax Error
32758 -EOF
32759 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32760 -{ (eval echo configure:2117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
32761 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
32762 -if test -z "$ac_err"; then
32763 - :
32764 -else
32765 - echo "$ac_err" >&5
32766 - echo "configure: failed program was:" >&5
32767 - cat conftest.$ac_ext >&5
32768 - rm -rf conftest*
32769 - CPP="${CC-cc} -E -traditional-cpp"
32770 - cat > conftest.$ac_ext <<EOF
32771 -#line 2128 "configure"
32772 -#include "confdefs.h"
32773 -#include <assert.h>
32774 -Syntax Error
32775 -EOF
32776 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32777 -{ (eval echo configure:2134: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
32778 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
32779 -if test -z "$ac_err"; then
32780 - :
32781 -else
32782 - echo "$ac_err" >&5
32783 - echo "configure: failed program was:" >&5
32784 - cat conftest.$ac_ext >&5
32785 - rm -rf conftest*
32786 - CPP="${CC-cc} -nologo -E"
32787 - cat > conftest.$ac_ext <<EOF
32788 -#line 2145 "configure"
32789 -#include "confdefs.h"
32790 -#include <assert.h>
32791 -Syntax Error
32792 -EOF
32793 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32794 -{ (eval echo configure:2151: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
32795 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
32796 -if test -z "$ac_err"; then
32797 - :
32798 -else
32799 - echo "$ac_err" >&5
32800 - echo "configure: failed program was:" >&5
32801 - cat conftest.$ac_ext >&5
32802 - rm -rf conftest*
32803 - CPP=/lib/cpp
32804 -fi
32805 -rm -f conftest*
32806 -fi
32807 -rm -f conftest*
32808 -fi
32809 -rm -f conftest*
32810 - ac_cv_prog_CPP="$CPP"
32811 -fi
32812 - CPP="$ac_cv_prog_CPP"
32813 -else
32814 - ac_cv_prog_CPP="$CPP"
32815 -fi
32816 -echo "$ac_t""$CPP" 1>&6
32817 +echo "$as_me:$LINENO: checking for X" >&5
32818 +echo $ECHO_N "checking for X... $ECHO_C" >&6
32820 -# If we find X, set shell vars x_includes and x_libraries to the
32821 -# paths, otherwise set no_x=yes.
32822 -# Uses ac_ vars as temps to allow command line to override cache and checks.
32823 -# --without-x overrides everything else, but does not touch the cache.
32824 -echo $ac_n "checking for X""... $ac_c" 1>&6
32825 -echo "configure:2180: checking for X" >&5
32827 # Check whether --with-x or --without-x was given.
32828 if test "${with_x+set}" = set; then
32829 withval="$with_x"
32830 - :
32831 -fi
32833 +fi;
32834 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32835 if test "x$with_x" = xno; then
32836 # The user explicitly disabled X.
32837 @@ -2193,207 +19951,210 @@ else
32838 # Both variables are already set.
32839 have_x=yes
32840 else
32841 -if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
32842 - echo $ac_n "(cached) $ac_c" 1>&6
32843 + if test "${ac_cv_have_x+set}" = set; then
32844 + echo $ECHO_N "(cached) $ECHO_C" >&6
32845 else
32846 # One or both of the vars are not set, and there is no cached value.
32847 -ac_x_includes=NO ac_x_libraries=NO
32848 -rm -fr conftestdir
32849 -if mkdir conftestdir; then
32850 - cd conftestdir
32851 +ac_x_includes=no ac_x_libraries=no
32852 +rm -fr conftest.dir
32853 +if mkdir conftest.dir; then
32854 + cd conftest.dir
32855 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
32856 - cat > Imakefile <<'EOF'
32857 + cat >Imakefile <<'_ACEOF'
32858 acfindx:
32859 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
32860 -EOF
32861 +_ACEOF
32862 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
32863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32864 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
32865 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32866 for ac_extension in a so sl; do
32867 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
32868 - test -f $ac_im_libdir/libX11.$ac_extension; then
32869 - ac_im_usrlibdir=$ac_im_libdir; break
32870 + test -f $ac_im_libdir/libX11.$ac_extension; then
32871 + ac_im_usrlibdir=$ac_im_libdir; break
32872 fi
32873 done
32874 # Screen out bogus values from the imake configuration. They are
32875 # bogus both because they are the default anyway, and because
32876 # using them would break gcc on systems where it needs fixed includes.
32877 - case "$ac_im_incroot" in
32878 + case $ac_im_incroot in
32879 /usr/include) ;;
32880 - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
32881 + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32882 esac
32883 - case "$ac_im_usrlibdir" in
32884 + case $ac_im_usrlibdir in
32885 /usr/lib | /lib) ;;
32886 - *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
32887 + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32888 esac
32889 fi
32890 cd ..
32891 - rm -fr conftestdir
32892 + rm -fr conftest.dir
32893 fi
32895 -if test "$ac_x_includes" = NO; then
32896 - # Guess where to find include files, by looking for this one X11 .h file.
32897 - test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
32898 +# Standard set of common directories for X headers.
32899 +# Check X11 before X11Rn because it is often a symlink to the current release.
32900 +ac_x_header_dirs='
32901 +/usr/X11/include
32902 +/usr/X11R6/include
32903 +/usr/X11R5/include
32904 +/usr/X11R4/include
32906 +/usr/include/X11
32907 +/usr/include/X11R6
32908 +/usr/include/X11R5
32909 +/usr/include/X11R4
32911 +/usr/local/X11/include
32912 +/usr/local/X11R6/include
32913 +/usr/local/X11R5/include
32914 +/usr/local/X11R4/include
32916 +/usr/local/include/X11
32917 +/usr/local/include/X11R6
32918 +/usr/local/include/X11R5
32919 +/usr/local/include/X11R4
32921 +/usr/X386/include
32922 +/usr/x386/include
32923 +/usr/XFree86/include/X11
32925 +/usr/include
32926 +/usr/local/include
32927 +/usr/unsupported/include
32928 +/usr/athena/include
32929 +/usr/local/x11r5/include
32930 +/usr/lpp/Xamples/include
32932 +/usr/openwin/include
32933 +/usr/openwin/share/include'
32935 +if test "$ac_x_includes" = no; then
32936 + # Guess where to find include files, by looking for Intrinsic.h.
32937 # First, try using that file with no special directory specified.
32938 -cat > conftest.$ac_ext <<EOF
32939 -#line 2242 "configure"
32940 -#include "confdefs.h"
32941 -#include <$x_direct_test_include>
32942 -EOF
32943 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
32944 -{ (eval echo configure:2247: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
32945 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
32946 -if test -z "$ac_err"; then
32947 - rm -rf conftest*
32948 + cat >conftest.$ac_ext <<_ACEOF
32949 +/* confdefs.h. */
32950 +_ACEOF
32951 +cat confdefs.h >>conftest.$ac_ext
32952 +cat >>conftest.$ac_ext <<_ACEOF
32953 +/* end confdefs.h. */
32954 +#include <X11/Intrinsic.h>
32955 +_ACEOF
32956 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32957 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32958 + ac_status=$?
32959 + grep -v '^ *+' conftest.er1 >conftest.err
32960 + rm -f conftest.er1
32961 + cat conftest.err >&5
32962 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 + (exit $ac_status); } >/dev/null; then
32964 + if test -s conftest.err; then
32965 + ac_cpp_err=$ac_c_preproc_warn_flag
32966 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32967 + else
32968 + ac_cpp_err=
32969 + fi
32970 +else
32971 + ac_cpp_err=yes
32972 +fi
32973 +if test -z "$ac_cpp_err"; then
32974 # We can compile using X headers with no special include directory.
32975 ac_x_includes=
32976 else
32977 - echo "$ac_err" >&5
32978 - echo "configure: failed program was:" >&5
32979 - cat conftest.$ac_ext >&5
32980 - rm -rf conftest*
32981 - # Look for the header file in a standard set of common directories.
32982 -# Check X11 before X11Rn because it is often a symlink to the current release.
32983 - for ac_dir in \
32984 - /usr/X11/include \
32985 - /usr/X11R6/include \
32986 - /usr/X11R5/include \
32987 - /usr/X11R4/include \
32988 - \
32989 - /usr/include/X11 \
32990 - /usr/include/X11R6 \
32991 - /usr/include/X11R5 \
32992 - /usr/include/X11R4 \
32993 - \
32994 - /usr/local/X11/include \
32995 - /usr/local/X11R6/include \
32996 - /usr/local/X11R5/include \
32997 - /usr/local/X11R4/include \
32998 - \
32999 - /usr/local/include/X11 \
33000 - /usr/local/include/X11R6 \
33001 - /usr/local/include/X11R5 \
33002 - /usr/local/include/X11R4 \
33003 - \
33004 - /usr/X386/include \
33005 - /usr/x386/include \
33006 - /usr/XFree86/include/X11 \
33007 - \
33008 - /usr/include \
33009 - /usr/local/include \
33010 - /usr/unsupported/include \
33011 - /usr/athena/include \
33012 - /usr/local/x11r5/include \
33013 - /usr/lpp/Xamples/include \
33014 - \
33015 - /usr/openwin/include \
33016 - /usr/openwin/share/include \
33017 - ; \
33018 - do
33019 - if test -r "$ac_dir/$x_direct_test_include"; then
33020 - ac_x_includes=$ac_dir
33021 - break
33022 - fi
33023 - done
33024 + echo "$as_me: failed program was:" >&5
33025 +sed 's/^/| /' conftest.$ac_ext >&5
33027 + for ac_dir in $ac_x_header_dirs; do
33028 + if test -r "$ac_dir/X11/Intrinsic.h"; then
33029 + ac_x_includes=$ac_dir
33030 + break
33031 + fi
33032 +done
33033 fi
33034 -rm -f conftest*
33035 -fi # $ac_x_includes = NO
33036 +rm -f conftest.err conftest.$ac_ext
33037 +fi # $ac_x_includes = no
33039 -if test "$ac_x_libraries" = NO; then
33040 +if test "$ac_x_libraries" = no; then
33041 # Check for the libraries.
33043 - test -z "$x_direct_test_library" && x_direct_test_library=Xt
33044 - test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
33046 # See if we find them without any special options.
33047 # Don't add to $LIBS permanently.
33048 - ac_save_LIBS="$LIBS"
33049 - LIBS="-l$x_direct_test_library $LIBS"
33050 -cat > conftest.$ac_ext <<EOF
33051 -#line 2316 "configure"
33052 -#include "confdefs.h"
33054 -int main() {
33055 -${x_direct_test_function}()
33056 -; return 0; }
33057 -EOF
33058 -if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33059 - rm -rf conftest*
33060 - LIBS="$ac_save_LIBS"
33061 + ac_save_LIBS=$LIBS
33062 + LIBS="-lXt $LIBS"
33063 + cat >conftest.$ac_ext <<_ACEOF
33064 +/* confdefs.h. */
33065 +_ACEOF
33066 +cat confdefs.h >>conftest.$ac_ext
33067 +cat >>conftest.$ac_ext <<_ACEOF
33068 +/* end confdefs.h. */
33069 +#include <X11/Intrinsic.h>
33070 +int
33071 +main ()
33072 +{
33073 +XtMalloc (0)
33074 + ;
33075 + return 0;
33076 +}
33077 +_ACEOF
33078 +rm -f conftest.$ac_objext conftest$ac_exeext
33079 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33080 + (eval $ac_link) 2>conftest.er1
33081 + ac_status=$?
33082 + grep -v '^ *+' conftest.er1 >conftest.err
33083 + rm -f conftest.er1
33084 + cat conftest.err >&5
33085 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33086 + (exit $ac_status); } &&
33087 + { ac_try='test -z "$ac_c_werror_flag"
33088 + || test ! -s conftest.err'
33089 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33090 + (eval $ac_try) 2>&5
33091 + ac_status=$?
33092 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33093 + (exit $ac_status); }; } &&
33094 + { ac_try='test -s conftest$ac_exeext'
33095 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33096 + (eval $ac_try) 2>&5
33097 + ac_status=$?
33098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33099 + (exit $ac_status); }; }; then
33100 + LIBS=$ac_save_LIBS
33101 # We can link X programs with no special library path.
33102 ac_x_libraries=
33103 else
33104 - echo "configure: failed program was:" >&5
33105 - cat conftest.$ac_ext >&5
33106 - rm -rf conftest*
33107 - LIBS="$ac_save_LIBS"
33108 -# First see if replacing the include by lib works.
33109 -# Check X11 before X11Rn because it is often a symlink to the current release.
33110 -for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
33111 - /usr/X11/lib \
33112 - /usr/X11R6/lib \
33113 - /usr/X11R5/lib \
33114 - /usr/X11R4/lib \
33115 - \
33116 - /usr/lib/X11 \
33117 - /usr/lib/X11R6 \
33118 - /usr/lib/X11R5 \
33119 - /usr/lib/X11R4 \
33120 - \
33121 - /usr/local/X11/lib \
33122 - /usr/local/X11R6/lib \
33123 - /usr/local/X11R5/lib \
33124 - /usr/local/X11R4/lib \
33125 - \
33126 - /usr/local/lib/X11 \
33127 - /usr/local/lib/X11R6 \
33128 - /usr/local/lib/X11R5 \
33129 - /usr/local/lib/X11R4 \
33130 - \
33131 - /usr/X386/lib \
33132 - /usr/x386/lib \
33133 - /usr/XFree86/lib/X11 \
33134 - \
33135 - /usr/lib \
33136 - /usr/local/lib \
33137 - /usr/unsupported/lib \
33138 - /usr/athena/lib \
33139 - /usr/local/x11r5/lib \
33140 - /usr/lpp/Xamples/lib \
33141 - /lib/usr/lib/X11 \
33142 - \
33143 - /usr/openwin/lib \
33144 - /usr/openwin/share/lib \
33145 - ; \
33146 + echo "$as_me: failed program was:" >&5
33147 +sed 's/^/| /' conftest.$ac_ext >&5
33149 +LIBS=$ac_save_LIBS
33150 +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33151 do
33152 + # Don't even attempt the hair of trying to link an X program!
33153 for ac_extension in a so sl; do
33154 - if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
33155 + if test -r $ac_dir/libXt.$ac_extension; then
33156 ac_x_libraries=$ac_dir
33157 break 2
33158 fi
33159 done
33160 done
33161 fi
33162 -rm -f conftest*
33163 -fi # $ac_x_libraries = NO
33164 +rm -f conftest.err conftest.$ac_objext \
33165 + conftest$ac_exeext conftest.$ac_ext
33166 +fi # $ac_x_libraries = no
33168 -if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
33169 +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
33170 # Didn't find X anywhere. Cache the known absence of X.
33171 ac_cv_have_x="have_x=no"
33172 else
33173 # Record where we found X for the cache.
33174 ac_cv_have_x="have_x=yes \
33175 - ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
33176 + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
33177 fi
33178 fi
33180 fi
33181 eval "$ac_cv_have_x"
33182 fi # $with_x != no
33184 if test "$have_x" != yes; then
33185 - echo "$ac_t""$have_x" 1>&6
33186 + echo "$as_me:$LINENO: result: $have_x" >&5
33187 +echo "${ECHO_T}$have_x" >&6
33188 no_x=yes
33189 else
33190 # If each of the values was on the command line, it overrides each guess.
33191 @@ -2402,14 +20163,16 @@ else
33192 # Update the cache value to reflect the command line values.
33193 ac_cv_have_x="have_x=yes \
33194 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
33195 - echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
33196 + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33197 +echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
33198 fi
33200 if test "$no_x" = yes; then
33201 # Not all programs may use this symbol, but it does not hurt to define it.
33202 - cat >> confdefs.h <<\EOF
33204 +cat >>confdefs.h <<\_ACEOF
33205 #define X_DISPLAY_MISSING 1
33206 -EOF
33207 +_ACEOF
33209 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33210 else
33211 @@ -2422,60 +20185,119 @@ else
33212 X_LIBS="$X_LIBS -L$x_libraries"
33213 # For Solaris; some versions of Sun CC require a space after -R and
33214 # others require no space. Words are not sufficient . . . .
33215 - case "`(uname -sr) 2>/dev/null`" in
33216 + case `(uname -sr) 2>/dev/null` in
33217 "SunOS 5"*)
33218 - echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
33219 -echo "configure:2429: checking whether -R must be followed by a space" >&5
33220 - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
33221 - cat > conftest.$ac_ext <<EOF
33222 -#line 2432 "configure"
33223 -#include "confdefs.h"
33224 + echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33225 +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
33226 + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33227 + cat >conftest.$ac_ext <<_ACEOF
33228 +/* confdefs.h. */
33229 +_ACEOF
33230 +cat confdefs.h >>conftest.$ac_ext
33231 +cat >>conftest.$ac_ext <<_ACEOF
33232 +/* end confdefs.h. */
33234 -int main() {
33235 +int
33236 +main ()
33237 +{
33239 -; return 0; }
33240 -EOF
33241 -if { (eval echo configure:2439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33242 - rm -rf conftest*
33243 + ;
33244 + return 0;
33245 +}
33246 +_ACEOF
33247 +rm -f conftest.$ac_objext conftest$ac_exeext
33248 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33249 + (eval $ac_link) 2>conftest.er1
33250 + ac_status=$?
33251 + grep -v '^ *+' conftest.er1 >conftest.err
33252 + rm -f conftest.er1
33253 + cat conftest.err >&5
33254 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33255 + (exit $ac_status); } &&
33256 + { ac_try='test -z "$ac_c_werror_flag"
33257 + || test ! -s conftest.err'
33258 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33259 + (eval $ac_try) 2>&5
33260 + ac_status=$?
33261 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 + (exit $ac_status); }; } &&
33263 + { ac_try='test -s conftest$ac_exeext'
33264 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265 + (eval $ac_try) 2>&5
33266 + ac_status=$?
33267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 + (exit $ac_status); }; }; then
33269 ac_R_nospace=yes
33270 else
33271 - echo "configure: failed program was:" >&5
33272 - cat conftest.$ac_ext >&5
33273 - rm -rf conftest*
33274 - ac_R_nospace=no
33275 + echo "$as_me: failed program was:" >&5
33276 +sed 's/^/| /' conftest.$ac_ext >&5
33278 +ac_R_nospace=no
33279 fi
33280 -rm -f conftest*
33281 +rm -f conftest.err conftest.$ac_objext \
33282 + conftest$ac_exeext conftest.$ac_ext
33283 if test $ac_R_nospace = yes; then
33284 - echo "$ac_t""no" 1>&6
33285 + echo "$as_me:$LINENO: result: no" >&5
33286 +echo "${ECHO_T}no" >&6
33287 X_LIBS="$X_LIBS -R$x_libraries"
33288 else
33289 LIBS="$ac_xsave_LIBS -R $x_libraries"
33290 - cat > conftest.$ac_ext <<EOF
33291 -#line 2455 "configure"
33292 -#include "confdefs.h"
33293 + cat >conftest.$ac_ext <<_ACEOF
33294 +/* confdefs.h. */
33295 +_ACEOF
33296 +cat confdefs.h >>conftest.$ac_ext
33297 +cat >>conftest.$ac_ext <<_ACEOF
33298 +/* end confdefs.h. */
33300 -int main() {
33301 +int
33302 +main ()
33303 +{
33305 -; return 0; }
33306 -EOF
33307 -if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33308 - rm -rf conftest*
33309 + ;
33310 + return 0;
33311 +}
33312 +_ACEOF
33313 +rm -f conftest.$ac_objext conftest$ac_exeext
33314 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33315 + (eval $ac_link) 2>conftest.er1
33316 + ac_status=$?
33317 + grep -v '^ *+' conftest.er1 >conftest.err
33318 + rm -f conftest.er1
33319 + cat conftest.err >&5
33320 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 + (exit $ac_status); } &&
33322 + { ac_try='test -z "$ac_c_werror_flag"
33323 + || test ! -s conftest.err'
33324 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33325 + (eval $ac_try) 2>&5
33326 + ac_status=$?
33327 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33328 + (exit $ac_status); }; } &&
33329 + { ac_try='test -s conftest$ac_exeext'
33330 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33331 + (eval $ac_try) 2>&5
33332 + ac_status=$?
33333 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33334 + (exit $ac_status); }; }; then
33335 ac_R_space=yes
33336 else
33337 - echo "configure: failed program was:" >&5
33338 - cat conftest.$ac_ext >&5
33339 - rm -rf conftest*
33340 - ac_R_space=no
33341 + echo "$as_me: failed program was:" >&5
33342 +sed 's/^/| /' conftest.$ac_ext >&5
33344 +ac_R_space=no
33345 fi
33346 -rm -f conftest*
33347 +rm -f conftest.err conftest.$ac_objext \
33348 + conftest$ac_exeext conftest.$ac_ext
33349 if test $ac_R_space = yes; then
33350 - echo "$ac_t""yes" 1>&6
33351 + echo "$as_me:$LINENO: result: yes" >&5
33352 +echo "${ECHO_T}yes" >&6
33353 X_LIBS="$X_LIBS -R $x_libraries"
33354 else
33355 - echo "$ac_t""neither works" 1>&6
33356 + echo "$as_me:$LINENO: result: neither works" >&5
33357 +echo "${ECHO_T}neither works" >&6
33358 fi
33359 fi
33360 - LIBS="$ac_xsave_LIBS"
33361 + LIBS=$ac_xsave_LIBS
33362 esac
33363 fi
33365 @@ -2486,522 +20308,1016 @@ rm -f conftest*
33366 if test "$ISC" = yes; then
33367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
33368 else
33369 - # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
33370 - # libraries were built with DECnet support. And karl@cs.umb.edu says
33371 + # Martyn Johnson says this is needed for Ultrix, if the X
33372 + # libraries were built with DECnet support. And Karl Berry says
33373 # the Alpha needs dnet_stub (dnet does not exist).
33374 - echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
33375 -echo "configure:2494: checking for dnet_ntoa in -ldnet" >&5
33376 -ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
33377 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
33378 - echo $ac_n "(cached) $ac_c" 1>&6
33379 -else
33380 - ac_save_LIBS="$LIBS"
33381 -LIBS="-ldnet $LIBS"
33382 -cat > conftest.$ac_ext <<EOF
33383 -#line 2502 "configure"
33384 -#include "confdefs.h"
33385 + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
33386 + cat >conftest.$ac_ext <<_ACEOF
33387 +/* confdefs.h. */
33388 +_ACEOF
33389 +cat confdefs.h >>conftest.$ac_ext
33390 +cat >>conftest.$ac_ext <<_ACEOF
33391 +/* end confdefs.h. */
33393 /* Override any gcc2 internal prototype to avoid an error. */
33394 +#ifdef __cplusplus
33395 +extern "C"
33396 +#endif
33397 /* We use char because int might match the return type of a gcc2
33398 - builtin and then its argument prototype would still apply. */
33399 -char dnet_ntoa();
33400 + builtin and then its argument prototype would still apply. */
33401 +char XOpenDisplay ();
33402 +int
33403 +main ()
33404 +{
33405 +XOpenDisplay ();
33406 + ;
33407 + return 0;
33408 +}
33409 +_ACEOF
33410 +rm -f conftest.$ac_objext conftest$ac_exeext
33411 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33412 + (eval $ac_link) 2>conftest.er1
33413 + ac_status=$?
33414 + grep -v '^ *+' conftest.er1 >conftest.err
33415 + rm -f conftest.er1
33416 + cat conftest.err >&5
33417 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 + (exit $ac_status); } &&
33419 + { ac_try='test -z "$ac_c_werror_flag"
33420 + || test ! -s conftest.err'
33421 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33422 + (eval $ac_try) 2>&5
33423 + ac_status=$?
33424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33425 + (exit $ac_status); }; } &&
33426 + { ac_try='test -s conftest$ac_exeext'
33427 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33428 + (eval $ac_try) 2>&5
33429 + ac_status=$?
33430 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431 + (exit $ac_status); }; }; then
33432 + :
33433 +else
33434 + echo "$as_me: failed program was:" >&5
33435 +sed 's/^/| /' conftest.$ac_ext >&5
33437 -int main() {
33438 -dnet_ntoa()
33439 -; return 0; }
33440 -EOF
33441 -if { (eval echo configure:2513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33442 - rm -rf conftest*
33443 - eval "ac_cv_lib_$ac_lib_var=yes"
33444 +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
33445 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
33446 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
33447 + echo $ECHO_N "(cached) $ECHO_C" >&6
33448 else
33449 - echo "configure: failed program was:" >&5
33450 - cat conftest.$ac_ext >&5
33451 - rm -rf conftest*
33452 - eval "ac_cv_lib_$ac_lib_var=no"
33453 -fi
33454 -rm -f conftest*
33455 -LIBS="$ac_save_LIBS"
33456 + ac_check_lib_save_LIBS=$LIBS
33457 +LIBS="-ldnet $LIBS"
33458 +cat >conftest.$ac_ext <<_ACEOF
33459 +/* confdefs.h. */
33460 +_ACEOF
33461 +cat confdefs.h >>conftest.$ac_ext
33462 +cat >>conftest.$ac_ext <<_ACEOF
33463 +/* end confdefs.h. */
33465 -fi
33466 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
33467 - echo "$ac_t""yes" 1>&6
33468 +/* Override any gcc2 internal prototype to avoid an error. */
33469 +#ifdef __cplusplus
33470 +extern "C"
33471 +#endif
33472 +/* We use char because int might match the return type of a gcc2
33473 + builtin and then its argument prototype would still apply. */
33474 +char dnet_ntoa ();
33475 +int
33476 +main ()
33477 +{
33478 +dnet_ntoa ();
33479 + ;
33480 + return 0;
33481 +}
33482 +_ACEOF
33483 +rm -f conftest.$ac_objext conftest$ac_exeext
33484 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33485 + (eval $ac_link) 2>conftest.er1
33486 + ac_status=$?
33487 + grep -v '^ *+' conftest.er1 >conftest.err
33488 + rm -f conftest.er1
33489 + cat conftest.err >&5
33490 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33491 + (exit $ac_status); } &&
33492 + { ac_try='test -z "$ac_c_werror_flag"
33493 + || test ! -s conftest.err'
33494 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33495 + (eval $ac_try) 2>&5
33496 + ac_status=$?
33497 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33498 + (exit $ac_status); }; } &&
33499 + { ac_try='test -s conftest$ac_exeext'
33500 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33501 + (eval $ac_try) 2>&5
33502 + ac_status=$?
33503 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33504 + (exit $ac_status); }; }; then
33505 + ac_cv_lib_dnet_dnet_ntoa=yes
33506 +else
33507 + echo "$as_me: failed program was:" >&5
33508 +sed 's/^/| /' conftest.$ac_ext >&5
33510 +ac_cv_lib_dnet_dnet_ntoa=no
33511 +fi
33512 +rm -f conftest.err conftest.$ac_objext \
33513 + conftest$ac_exeext conftest.$ac_ext
33514 +LIBS=$ac_check_lib_save_LIBS
33515 +fi
33516 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33517 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
33518 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33519 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33520 -else
33521 - echo "$ac_t""no" 1>&6
33522 fi
33524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33525 - echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
33526 -echo "configure:2535: checking for dnet_ntoa in -ldnet_stub" >&5
33527 -ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
33528 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
33529 - echo $ac_n "(cached) $ac_c" 1>&6
33530 + echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33531 +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
33532 +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33533 + echo $ECHO_N "(cached) $ECHO_C" >&6
33534 else
33535 - ac_save_LIBS="$LIBS"
33536 + ac_check_lib_save_LIBS=$LIBS
33537 LIBS="-ldnet_stub $LIBS"
33538 -cat > conftest.$ac_ext <<EOF
33539 -#line 2543 "configure"
33540 -#include "confdefs.h"
33541 +cat >conftest.$ac_ext <<_ACEOF
33542 +/* confdefs.h. */
33543 +_ACEOF
33544 +cat confdefs.h >>conftest.$ac_ext
33545 +cat >>conftest.$ac_ext <<_ACEOF
33546 +/* end confdefs.h. */
33548 /* Override any gcc2 internal prototype to avoid an error. */
33549 +#ifdef __cplusplus
33550 +extern "C"
33551 +#endif
33552 /* We use char because int might match the return type of a gcc2
33553 - builtin and then its argument prototype would still apply. */
33554 -char dnet_ntoa();
33556 -int main() {
33557 -dnet_ntoa()
33558 -; return 0; }
33559 -EOF
33560 -if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33561 - rm -rf conftest*
33562 - eval "ac_cv_lib_$ac_lib_var=yes"
33563 -else
33564 - echo "configure: failed program was:" >&5
33565 - cat conftest.$ac_ext >&5
33566 - rm -rf conftest*
33567 - eval "ac_cv_lib_$ac_lib_var=no"
33568 -fi
33569 -rm -f conftest*
33570 -LIBS="$ac_save_LIBS"
33572 -fi
33573 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
33574 - echo "$ac_t""yes" 1>&6
33575 + builtin and then its argument prototype would still apply. */
33576 +char dnet_ntoa ();
33577 +int
33578 +main ()
33579 +{
33580 +dnet_ntoa ();
33581 + ;
33582 + return 0;
33583 +}
33584 +_ACEOF
33585 +rm -f conftest.$ac_objext conftest$ac_exeext
33586 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33587 + (eval $ac_link) 2>conftest.er1
33588 + ac_status=$?
33589 + grep -v '^ *+' conftest.er1 >conftest.err
33590 + rm -f conftest.er1
33591 + cat conftest.err >&5
33592 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33593 + (exit $ac_status); } &&
33594 + { ac_try='test -z "$ac_c_werror_flag"
33595 + || test ! -s conftest.err'
33596 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33597 + (eval $ac_try) 2>&5
33598 + ac_status=$?
33599 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 + (exit $ac_status); }; } &&
33601 + { ac_try='test -s conftest$ac_exeext'
33602 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33603 + (eval $ac_try) 2>&5
33604 + ac_status=$?
33605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33606 + (exit $ac_status); }; }; then
33607 + ac_cv_lib_dnet_stub_dnet_ntoa=yes
33608 +else
33609 + echo "$as_me: failed program was:" >&5
33610 +sed 's/^/| /' conftest.$ac_ext >&5
33612 +ac_cv_lib_dnet_stub_dnet_ntoa=no
33613 +fi
33614 +rm -f conftest.err conftest.$ac_objext \
33615 + conftest$ac_exeext conftest.$ac_ext
33616 +LIBS=$ac_check_lib_save_LIBS
33617 +fi
33618 +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
33619 +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
33620 +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33621 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33622 -else
33623 - echo "$ac_t""no" 1>&6
33624 fi
33626 fi
33627 +fi
33628 +rm -f conftest.err conftest.$ac_objext \
33629 + conftest$ac_exeext conftest.$ac_ext
33630 + LIBS="$ac_xsave_LIBS"
33632 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33633 # to get the SysV transport functions.
33634 - # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
33635 + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33636 # needs -lnsl.
33637 # The nsl library prevents programs from opening the X display
33638 - # on Irix 5.2, according to dickey@clark.net.
33639 - echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
33640 -echo "configure:2583: checking for gethostbyname" >&5
33641 -if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
33642 - echo $ac_n "(cached) $ac_c" 1>&6
33643 -else
33644 - cat > conftest.$ac_ext <<EOF
33645 -#line 2588 "configure"
33646 -#include "confdefs.h"
33647 + # on Irix 5.2, according to T.E. Dickey.
33648 + # The functions gethostbyname, getservbyname, and inet_addr are
33649 + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33650 + echo "$as_me:$LINENO: checking for gethostbyname" >&5
33651 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
33652 +if test "${ac_cv_func_gethostbyname+set}" = set; then
33653 + echo $ECHO_N "(cached) $ECHO_C" >&6
33654 +else
33655 + cat >conftest.$ac_ext <<_ACEOF
33656 +/* confdefs.h. */
33657 +_ACEOF
33658 +cat confdefs.h >>conftest.$ac_ext
33659 +cat >>conftest.$ac_ext <<_ACEOF
33660 +/* end confdefs.h. */
33661 +/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33662 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
33663 +#define gethostbyname innocuous_gethostbyname
33665 /* System header to define __stub macros and hopefully few prototypes,
33666 - which can conflict with char gethostbyname(); below. */
33667 -#include <assert.h>
33668 -/* Override any gcc2 internal prototype to avoid an error. */
33669 -/* We use char because int might match the return type of a gcc2
33670 - builtin and then its argument prototype would still apply. */
33671 -char gethostbyname();
33672 + which can conflict with char gethostbyname (); below.
33673 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33674 + <limits.h> exists even on freestanding compilers. */
33676 -int main() {
33677 +#ifdef __STDC__
33678 +# include <limits.h>
33679 +#else
33680 +# include <assert.h>
33681 +#endif
33683 +#undef gethostbyname
33685 +/* Override any gcc2 internal prototype to avoid an error. */
33686 +#ifdef __cplusplus
33687 +extern "C"
33688 +{
33689 +#endif
33690 +/* We use char because int might match the return type of a gcc2
33691 + builtin and then its argument prototype would still apply. */
33692 +char gethostbyname ();
33693 /* The GNU C library defines this for functions which it implements
33694 to always fail with ENOSYS. Some functions are actually named
33695 something starting with __ and the normal name is an alias. */
33696 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
33697 choke me
33698 #else
33699 -gethostbyname();
33700 +char (*f) () = gethostbyname;
33701 +#endif
33702 +#ifdef __cplusplus
33703 +}
33704 #endif
33706 -; return 0; }
33707 -EOF
33708 -if { (eval echo configure:2611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33709 - rm -rf conftest*
33710 - eval "ac_cv_func_gethostbyname=yes"
33711 -else
33712 - echo "configure: failed program was:" >&5
33713 - cat conftest.$ac_ext >&5
33714 - rm -rf conftest*
33715 - eval "ac_cv_func_gethostbyname=no"
33716 -fi
33717 -rm -f conftest*
33718 -fi
33719 +int
33720 +main ()
33721 +{
33722 +return f != gethostbyname;
33723 + ;
33724 + return 0;
33725 +}
33726 +_ACEOF
33727 +rm -f conftest.$ac_objext conftest$ac_exeext
33728 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33729 + (eval $ac_link) 2>conftest.er1
33730 + ac_status=$?
33731 + grep -v '^ *+' conftest.er1 >conftest.err
33732 + rm -f conftest.er1
33733 + cat conftest.err >&5
33734 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 + (exit $ac_status); } &&
33736 + { ac_try='test -z "$ac_c_werror_flag"
33737 + || test ! -s conftest.err'
33738 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33739 + (eval $ac_try) 2>&5
33740 + ac_status=$?
33741 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 + (exit $ac_status); }; } &&
33743 + { ac_try='test -s conftest$ac_exeext'
33744 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 + (eval $ac_try) 2>&5
33746 + ac_status=$?
33747 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 + (exit $ac_status); }; }; then
33749 + ac_cv_func_gethostbyname=yes
33750 +else
33751 + echo "$as_me: failed program was:" >&5
33752 +sed 's/^/| /' conftest.$ac_ext >&5
33754 -if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
33755 - echo "$ac_t""yes" 1>&6
33756 - :
33757 -else
33758 - echo "$ac_t""no" 1>&6
33759 +ac_cv_func_gethostbyname=no
33760 +fi
33761 +rm -f conftest.err conftest.$ac_objext \
33762 + conftest$ac_exeext conftest.$ac_ext
33763 fi
33764 +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33765 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
33767 if test $ac_cv_func_gethostbyname = no; then
33768 - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
33769 -echo "configure:2632: checking for gethostbyname in -lnsl" >&5
33770 -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
33771 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
33772 - echo $ac_n "(cached) $ac_c" 1>&6
33773 + echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33774 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
33775 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33776 + echo $ECHO_N "(cached) $ECHO_C" >&6
33777 else
33778 - ac_save_LIBS="$LIBS"
33779 + ac_check_lib_save_LIBS=$LIBS
33780 LIBS="-lnsl $LIBS"
33781 -cat > conftest.$ac_ext <<EOF
33782 -#line 2640 "configure"
33783 -#include "confdefs.h"
33784 +cat >conftest.$ac_ext <<_ACEOF
33785 +/* confdefs.h. */
33786 +_ACEOF
33787 +cat confdefs.h >>conftest.$ac_ext
33788 +cat >>conftest.$ac_ext <<_ACEOF
33789 +/* end confdefs.h. */
33791 /* Override any gcc2 internal prototype to avoid an error. */
33792 +#ifdef __cplusplus
33793 +extern "C"
33794 +#endif
33795 /* We use char because int might match the return type of a gcc2
33796 - builtin and then its argument prototype would still apply. */
33797 -char gethostbyname();
33799 -int main() {
33800 -gethostbyname()
33801 -; return 0; }
33802 -EOF
33803 -if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
33804 - rm -rf conftest*
33805 - eval "ac_cv_lib_$ac_lib_var=yes"
33806 -else
33807 - echo "configure: failed program was:" >&5
33808 - cat conftest.$ac_ext >&5
33809 - rm -rf conftest*
33810 - eval "ac_cv_lib_$ac_lib_var=no"
33811 + builtin and then its argument prototype would still apply. */
33812 +char gethostbyname ();
33813 +int
33814 +main ()
33815 +{
33816 +gethostbyname ();
33817 + ;
33818 + return 0;
33819 +}
33820 +_ACEOF
33821 +rm -f conftest.$ac_objext conftest$ac_exeext
33822 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33823 + (eval $ac_link) 2>conftest.er1
33824 + ac_status=$?
33825 + grep -v '^ *+' conftest.er1 >conftest.err
33826 + rm -f conftest.er1
33827 + cat conftest.err >&5
33828 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33829 + (exit $ac_status); } &&
33830 + { ac_try='test -z "$ac_c_werror_flag"
33831 + || test ! -s conftest.err'
33832 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33833 + (eval $ac_try) 2>&5
33834 + ac_status=$?
33835 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 + (exit $ac_status); }; } &&
33837 + { ac_try='test -s conftest$ac_exeext'
33838 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33839 + (eval $ac_try) 2>&5
33840 + ac_status=$?
33841 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842 + (exit $ac_status); }; }; then
33843 + ac_cv_lib_nsl_gethostbyname=yes
33844 +else
33845 + echo "$as_me: failed program was:" >&5
33846 +sed 's/^/| /' conftest.$ac_ext >&5
33848 +ac_cv_lib_nsl_gethostbyname=no
33849 +fi
33850 +rm -f conftest.err conftest.$ac_objext \
33851 + conftest$ac_exeext conftest.$ac_ext
33852 +LIBS=$ac_check_lib_save_LIBS
33853 +fi
33854 +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33855 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
33856 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
33857 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33858 fi
33859 -rm -f conftest*
33860 -LIBS="$ac_save_LIBS"
33862 -fi
33863 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
33864 - echo "$ac_t""yes" 1>&6
33865 - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33866 -else
33867 - echo "$ac_t""no" 1>&6
33868 + if test $ac_cv_lib_nsl_gethostbyname = no; then
33869 + echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33870 +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
33871 +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33872 + echo $ECHO_N "(cached) $ECHO_C" >&6
33873 +else
33874 + ac_check_lib_save_LIBS=$LIBS
33875 +LIBS="-lbsd $LIBS"
33876 +cat >conftest.$ac_ext <<_ACEOF
33877 +/* confdefs.h. */
33878 +_ACEOF
33879 +cat confdefs.h >>conftest.$ac_ext
33880 +cat >>conftest.$ac_ext <<_ACEOF
33881 +/* end confdefs.h. */
33883 +/* Override any gcc2 internal prototype to avoid an error. */
33884 +#ifdef __cplusplus
33885 +extern "C"
33886 +#endif
33887 +/* We use char because int might match the return type of a gcc2
33888 + builtin and then its argument prototype would still apply. */
33889 +char gethostbyname ();
33890 +int
33891 +main ()
33892 +{
33893 +gethostbyname ();
33894 + ;
33895 + return 0;
33896 +}
33897 +_ACEOF
33898 +rm -f conftest.$ac_objext conftest$ac_exeext
33899 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33900 + (eval $ac_link) 2>conftest.er1
33901 + ac_status=$?
33902 + grep -v '^ *+' conftest.er1 >conftest.err
33903 + rm -f conftest.er1
33904 + cat conftest.err >&5
33905 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33906 + (exit $ac_status); } &&
33907 + { ac_try='test -z "$ac_c_werror_flag"
33908 + || test ! -s conftest.err'
33909 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33910 + (eval $ac_try) 2>&5
33911 + ac_status=$?
33912 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33913 + (exit $ac_status); }; } &&
33914 + { ac_try='test -s conftest$ac_exeext'
33915 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33916 + (eval $ac_try) 2>&5
33917 + ac_status=$?
33918 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33919 + (exit $ac_status); }; }; then
33920 + ac_cv_lib_bsd_gethostbyname=yes
33921 +else
33922 + echo "$as_me: failed program was:" >&5
33923 +sed 's/^/| /' conftest.$ac_ext >&5
33925 +ac_cv_lib_bsd_gethostbyname=no
33926 +fi
33927 +rm -f conftest.err conftest.$ac_objext \
33928 + conftest$ac_exeext conftest.$ac_ext
33929 +LIBS=$ac_check_lib_save_LIBS
33930 +fi
33931 +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33932 +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
33933 +if test $ac_cv_lib_bsd_gethostbyname = yes; then
33934 + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33935 fi
33937 + fi
33938 fi
33940 # lieder@skyler.mavd.honeywell.com says without -lsocket,
33941 # socket/setsockopt and other routines are undefined under SCO ODT
33942 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
33943 - # on later versions), says simon@lia.di.epfl.ch: it contains
33944 - # gethostby* variants that don't use the nameserver (or something).
33945 - # -lsocket must be given before -lnsl if both are needed.
33946 - # We assume that if connect needs -lnsl, so does gethostbyname.
33947 - echo $ac_n "checking for connect""... $ac_c" 1>&6
33948 -echo "configure:2681: checking for connect" >&5
33949 -if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
33950 - echo $ac_n "(cached) $ac_c" 1>&6
33951 -else
33952 - cat > conftest.$ac_ext <<EOF
33953 -#line 2686 "configure"
33954 -#include "confdefs.h"
33955 + # on later versions), says Simon Leinen: it contains gethostby*
33956 + # variants that don't use the name server (or something). -lsocket
33957 + # must be given before -lnsl if both are needed. We assume that
33958 + # if connect needs -lnsl, so does gethostbyname.
33959 + echo "$as_me:$LINENO: checking for connect" >&5
33960 +echo $ECHO_N "checking for connect... $ECHO_C" >&6
33961 +if test "${ac_cv_func_connect+set}" = set; then
33962 + echo $ECHO_N "(cached) $ECHO_C" >&6
33963 +else
33964 + cat >conftest.$ac_ext <<_ACEOF
33965 +/* confdefs.h. */
33966 +_ACEOF
33967 +cat confdefs.h >>conftest.$ac_ext
33968 +cat >>conftest.$ac_ext <<_ACEOF
33969 +/* end confdefs.h. */
33970 +/* Define connect to an innocuous variant, in case <limits.h> declares connect.
33971 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
33972 +#define connect innocuous_connect
33974 /* System header to define __stub macros and hopefully few prototypes,
33975 - which can conflict with char connect(); below. */
33976 -#include <assert.h>
33977 -/* Override any gcc2 internal prototype to avoid an error. */
33978 -/* We use char because int might match the return type of a gcc2
33979 - builtin and then its argument prototype would still apply. */
33980 -char connect();
33981 + which can conflict with char connect (); below.
33982 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33983 + <limits.h> exists even on freestanding compilers. */
33985 +#ifdef __STDC__
33986 +# include <limits.h>
33987 +#else
33988 +# include <assert.h>
33989 +#endif
33991 -int main() {
33992 +#undef connect
33994 +/* Override any gcc2 internal prototype to avoid an error. */
33995 +#ifdef __cplusplus
33996 +extern "C"
33997 +{
33998 +#endif
33999 +/* We use char because int might match the return type of a gcc2
34000 + builtin and then its argument prototype would still apply. */
34001 +char connect ();
34002 /* The GNU C library defines this for functions which it implements
34003 to always fail with ENOSYS. Some functions are actually named
34004 something starting with __ and the normal name is an alias. */
34005 #if defined (__stub_connect) || defined (__stub___connect)
34006 choke me
34007 #else
34008 -connect();
34009 +char (*f) () = connect;
34010 +#endif
34011 +#ifdef __cplusplus
34012 +}
34013 #endif
34015 -; return 0; }
34016 -EOF
34017 -if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34018 - rm -rf conftest*
34019 - eval "ac_cv_func_connect=yes"
34020 -else
34021 - echo "configure: failed program was:" >&5
34022 - cat conftest.$ac_ext >&5
34023 - rm -rf conftest*
34024 - eval "ac_cv_func_connect=no"
34025 -fi
34026 -rm -f conftest*
34027 -fi
34028 +int
34029 +main ()
34030 +{
34031 +return f != connect;
34032 + ;
34033 + return 0;
34034 +}
34035 +_ACEOF
34036 +rm -f conftest.$ac_objext conftest$ac_exeext
34037 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34038 + (eval $ac_link) 2>conftest.er1
34039 + ac_status=$?
34040 + grep -v '^ *+' conftest.er1 >conftest.err
34041 + rm -f conftest.er1
34042 + cat conftest.err >&5
34043 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34044 + (exit $ac_status); } &&
34045 + { ac_try='test -z "$ac_c_werror_flag"
34046 + || test ! -s conftest.err'
34047 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34048 + (eval $ac_try) 2>&5
34049 + ac_status=$?
34050 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34051 + (exit $ac_status); }; } &&
34052 + { ac_try='test -s conftest$ac_exeext'
34053 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34054 + (eval $ac_try) 2>&5
34055 + ac_status=$?
34056 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057 + (exit $ac_status); }; }; then
34058 + ac_cv_func_connect=yes
34059 +else
34060 + echo "$as_me: failed program was:" >&5
34061 +sed 's/^/| /' conftest.$ac_ext >&5
34063 -if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
34064 - echo "$ac_t""yes" 1>&6
34065 - :
34066 -else
34067 - echo "$ac_t""no" 1>&6
34068 +ac_cv_func_connect=no
34069 fi
34070 +rm -f conftest.err conftest.$ac_objext \
34071 + conftest$ac_exeext conftest.$ac_ext
34072 +fi
34073 +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34074 +echo "${ECHO_T}$ac_cv_func_connect" >&6
34076 if test $ac_cv_func_connect = no; then
34077 - echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
34078 -echo "configure:2730: checking for connect in -lsocket" >&5
34079 -ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
34080 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34081 - echo $ac_n "(cached) $ac_c" 1>&6
34082 + echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34083 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
34084 +if test "${ac_cv_lib_socket_connect+set}" = set; then
34085 + echo $ECHO_N "(cached) $ECHO_C" >&6
34086 else
34087 - ac_save_LIBS="$LIBS"
34088 + ac_check_lib_save_LIBS=$LIBS
34089 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34090 -cat > conftest.$ac_ext <<EOF
34091 -#line 2738 "configure"
34092 -#include "confdefs.h"
34093 +cat >conftest.$ac_ext <<_ACEOF
34094 +/* confdefs.h. */
34095 +_ACEOF
34096 +cat confdefs.h >>conftest.$ac_ext
34097 +cat >>conftest.$ac_ext <<_ACEOF
34098 +/* end confdefs.h. */
34100 /* Override any gcc2 internal prototype to avoid an error. */
34101 +#ifdef __cplusplus
34102 +extern "C"
34103 +#endif
34104 /* We use char because int might match the return type of a gcc2
34105 - builtin and then its argument prototype would still apply. */
34106 -char connect();
34108 -int main() {
34109 -connect()
34110 -; return 0; }
34111 -EOF
34112 -if { (eval echo configure:2749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34113 - rm -rf conftest*
34114 - eval "ac_cv_lib_$ac_lib_var=yes"
34115 -else
34116 - echo "configure: failed program was:" >&5
34117 - cat conftest.$ac_ext >&5
34118 - rm -rf conftest*
34119 - eval "ac_cv_lib_$ac_lib_var=no"
34120 -fi
34121 -rm -f conftest*
34122 -LIBS="$ac_save_LIBS"
34124 -fi
34125 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34126 - echo "$ac_t""yes" 1>&6
34127 + builtin and then its argument prototype would still apply. */
34128 +char connect ();
34129 +int
34130 +main ()
34131 +{
34132 +connect ();
34133 + ;
34134 + return 0;
34135 +}
34136 +_ACEOF
34137 +rm -f conftest.$ac_objext conftest$ac_exeext
34138 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34139 + (eval $ac_link) 2>conftest.er1
34140 + ac_status=$?
34141 + grep -v '^ *+' conftest.er1 >conftest.err
34142 + rm -f conftest.er1
34143 + cat conftest.err >&5
34144 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 + (exit $ac_status); } &&
34146 + { ac_try='test -z "$ac_c_werror_flag"
34147 + || test ! -s conftest.err'
34148 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34149 + (eval $ac_try) 2>&5
34150 + ac_status=$?
34151 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34152 + (exit $ac_status); }; } &&
34153 + { ac_try='test -s conftest$ac_exeext'
34154 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34155 + (eval $ac_try) 2>&5
34156 + ac_status=$?
34157 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34158 + (exit $ac_status); }; }; then
34159 + ac_cv_lib_socket_connect=yes
34160 +else
34161 + echo "$as_me: failed program was:" >&5
34162 +sed 's/^/| /' conftest.$ac_ext >&5
34164 +ac_cv_lib_socket_connect=no
34165 +fi
34166 +rm -f conftest.err conftest.$ac_objext \
34167 + conftest$ac_exeext conftest.$ac_ext
34168 +LIBS=$ac_check_lib_save_LIBS
34169 +fi
34170 +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
34171 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
34172 +if test $ac_cv_lib_socket_connect = yes; then
34173 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
34174 -else
34175 - echo "$ac_t""no" 1>&6
34176 fi
34178 fi
34180 - # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
34181 - echo $ac_n "checking for remove""... $ac_c" 1>&6
34182 -echo "configure:2773: checking for remove" >&5
34183 -if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
34184 - echo $ac_n "(cached) $ac_c" 1>&6
34185 -else
34186 - cat > conftest.$ac_ext <<EOF
34187 -#line 2778 "configure"
34188 -#include "confdefs.h"
34189 + # Guillermo Gomez says -lposix is necessary on A/UX.
34190 + echo "$as_me:$LINENO: checking for remove" >&5
34191 +echo $ECHO_N "checking for remove... $ECHO_C" >&6
34192 +if test "${ac_cv_func_remove+set}" = set; then
34193 + echo $ECHO_N "(cached) $ECHO_C" >&6
34194 +else
34195 + cat >conftest.$ac_ext <<_ACEOF
34196 +/* confdefs.h. */
34197 +_ACEOF
34198 +cat confdefs.h >>conftest.$ac_ext
34199 +cat >>conftest.$ac_ext <<_ACEOF
34200 +/* end confdefs.h. */
34201 +/* Define remove to an innocuous variant, in case <limits.h> declares remove.
34202 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
34203 +#define remove innocuous_remove
34205 /* System header to define __stub macros and hopefully few prototypes,
34206 - which can conflict with char remove(); below. */
34207 -#include <assert.h>
34208 -/* Override any gcc2 internal prototype to avoid an error. */
34209 -/* We use char because int might match the return type of a gcc2
34210 - builtin and then its argument prototype would still apply. */
34211 -char remove();
34212 + which can conflict with char remove (); below.
34213 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34214 + <limits.h> exists even on freestanding compilers. */
34216 +#ifdef __STDC__
34217 +# include <limits.h>
34218 +#else
34219 +# include <assert.h>
34220 +#endif
34222 -int main() {
34223 +#undef remove
34225 +/* Override any gcc2 internal prototype to avoid an error. */
34226 +#ifdef __cplusplus
34227 +extern "C"
34228 +{
34229 +#endif
34230 +/* We use char because int might match the return type of a gcc2
34231 + builtin and then its argument prototype would still apply. */
34232 +char remove ();
34233 /* The GNU C library defines this for functions which it implements
34234 to always fail with ENOSYS. Some functions are actually named
34235 something starting with __ and the normal name is an alias. */
34236 #if defined (__stub_remove) || defined (__stub___remove)
34237 choke me
34238 #else
34239 -remove();
34240 +char (*f) () = remove;
34241 +#endif
34242 +#ifdef __cplusplus
34243 +}
34244 #endif
34246 -; return 0; }
34247 -EOF
34248 -if { (eval echo configure:2801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34249 - rm -rf conftest*
34250 - eval "ac_cv_func_remove=yes"
34251 -else
34252 - echo "configure: failed program was:" >&5
34253 - cat conftest.$ac_ext >&5
34254 - rm -rf conftest*
34255 - eval "ac_cv_func_remove=no"
34256 -fi
34257 -rm -f conftest*
34258 -fi
34259 +int
34260 +main ()
34261 +{
34262 +return f != remove;
34263 + ;
34264 + return 0;
34265 +}
34266 +_ACEOF
34267 +rm -f conftest.$ac_objext conftest$ac_exeext
34268 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34269 + (eval $ac_link) 2>conftest.er1
34270 + ac_status=$?
34271 + grep -v '^ *+' conftest.er1 >conftest.err
34272 + rm -f conftest.er1
34273 + cat conftest.err >&5
34274 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34275 + (exit $ac_status); } &&
34276 + { ac_try='test -z "$ac_c_werror_flag"
34277 + || test ! -s conftest.err'
34278 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34279 + (eval $ac_try) 2>&5
34280 + ac_status=$?
34281 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34282 + (exit $ac_status); }; } &&
34283 + { ac_try='test -s conftest$ac_exeext'
34284 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34285 + (eval $ac_try) 2>&5
34286 + ac_status=$?
34287 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34288 + (exit $ac_status); }; }; then
34289 + ac_cv_func_remove=yes
34290 +else
34291 + echo "$as_me: failed program was:" >&5
34292 +sed 's/^/| /' conftest.$ac_ext >&5
34294 -if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
34295 - echo "$ac_t""yes" 1>&6
34296 - :
34297 -else
34298 - echo "$ac_t""no" 1>&6
34299 +ac_cv_func_remove=no
34300 fi
34301 +rm -f conftest.err conftest.$ac_objext \
34302 + conftest$ac_exeext conftest.$ac_ext
34303 +fi
34304 +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34305 +echo "${ECHO_T}$ac_cv_func_remove" >&6
34307 if test $ac_cv_func_remove = no; then
34308 - echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
34309 -echo "configure:2822: checking for remove in -lposix" >&5
34310 -ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
34311 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34312 - echo $ac_n "(cached) $ac_c" 1>&6
34313 + echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34314 +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
34315 +if test "${ac_cv_lib_posix_remove+set}" = set; then
34316 + echo $ECHO_N "(cached) $ECHO_C" >&6
34317 else
34318 - ac_save_LIBS="$LIBS"
34319 + ac_check_lib_save_LIBS=$LIBS
34320 LIBS="-lposix $LIBS"
34321 -cat > conftest.$ac_ext <<EOF
34322 -#line 2830 "configure"
34323 -#include "confdefs.h"
34324 +cat >conftest.$ac_ext <<_ACEOF
34325 +/* confdefs.h. */
34326 +_ACEOF
34327 +cat confdefs.h >>conftest.$ac_ext
34328 +cat >>conftest.$ac_ext <<_ACEOF
34329 +/* end confdefs.h. */
34331 /* Override any gcc2 internal prototype to avoid an error. */
34332 +#ifdef __cplusplus
34333 +extern "C"
34334 +#endif
34335 /* We use char because int might match the return type of a gcc2
34336 - builtin and then its argument prototype would still apply. */
34337 -char remove();
34339 -int main() {
34340 -remove()
34341 -; return 0; }
34342 -EOF
34343 -if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34344 - rm -rf conftest*
34345 - eval "ac_cv_lib_$ac_lib_var=yes"
34346 -else
34347 - echo "configure: failed program was:" >&5
34348 - cat conftest.$ac_ext >&5
34349 - rm -rf conftest*
34350 - eval "ac_cv_lib_$ac_lib_var=no"
34351 -fi
34352 -rm -f conftest*
34353 -LIBS="$ac_save_LIBS"
34355 -fi
34356 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34357 - echo "$ac_t""yes" 1>&6
34358 + builtin and then its argument prototype would still apply. */
34359 +char remove ();
34360 +int
34361 +main ()
34362 +{
34363 +remove ();
34364 + ;
34365 + return 0;
34366 +}
34367 +_ACEOF
34368 +rm -f conftest.$ac_objext conftest$ac_exeext
34369 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34370 + (eval $ac_link) 2>conftest.er1
34371 + ac_status=$?
34372 + grep -v '^ *+' conftest.er1 >conftest.err
34373 + rm -f conftest.er1
34374 + cat conftest.err >&5
34375 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34376 + (exit $ac_status); } &&
34377 + { ac_try='test -z "$ac_c_werror_flag"
34378 + || test ! -s conftest.err'
34379 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34380 + (eval $ac_try) 2>&5
34381 + ac_status=$?
34382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34383 + (exit $ac_status); }; } &&
34384 + { ac_try='test -s conftest$ac_exeext'
34385 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34386 + (eval $ac_try) 2>&5
34387 + ac_status=$?
34388 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 + (exit $ac_status); }; }; then
34390 + ac_cv_lib_posix_remove=yes
34391 +else
34392 + echo "$as_me: failed program was:" >&5
34393 +sed 's/^/| /' conftest.$ac_ext >&5
34395 +ac_cv_lib_posix_remove=no
34396 +fi
34397 +rm -f conftest.err conftest.$ac_objext \
34398 + conftest$ac_exeext conftest.$ac_ext
34399 +LIBS=$ac_check_lib_save_LIBS
34400 +fi
34401 +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
34402 +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
34403 +if test $ac_cv_lib_posix_remove = yes; then
34404 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34405 -else
34406 - echo "$ac_t""no" 1>&6
34407 fi
34409 fi
34411 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34412 - echo $ac_n "checking for shmat""... $ac_c" 1>&6
34413 -echo "configure:2865: checking for shmat" >&5
34414 -if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
34415 - echo $ac_n "(cached) $ac_c" 1>&6
34416 -else
34417 - cat > conftest.$ac_ext <<EOF
34418 -#line 2870 "configure"
34419 -#include "confdefs.h"
34420 + echo "$as_me:$LINENO: checking for shmat" >&5
34421 +echo $ECHO_N "checking for shmat... $ECHO_C" >&6
34422 +if test "${ac_cv_func_shmat+set}" = set; then
34423 + echo $ECHO_N "(cached) $ECHO_C" >&6
34424 +else
34425 + cat >conftest.$ac_ext <<_ACEOF
34426 +/* confdefs.h. */
34427 +_ACEOF
34428 +cat confdefs.h >>conftest.$ac_ext
34429 +cat >>conftest.$ac_ext <<_ACEOF
34430 +/* end confdefs.h. */
34431 +/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
34432 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
34433 +#define shmat innocuous_shmat
34435 /* System header to define __stub macros and hopefully few prototypes,
34436 - which can conflict with char shmat(); below. */
34437 -#include <assert.h>
34438 -/* Override any gcc2 internal prototype to avoid an error. */
34439 -/* We use char because int might match the return type of a gcc2
34440 - builtin and then its argument prototype would still apply. */
34441 -char shmat();
34442 + which can conflict with char shmat (); below.
34443 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34444 + <limits.h> exists even on freestanding compilers. */
34446 +#ifdef __STDC__
34447 +# include <limits.h>
34448 +#else
34449 +# include <assert.h>
34450 +#endif
34452 -int main() {
34453 +#undef shmat
34455 +/* Override any gcc2 internal prototype to avoid an error. */
34456 +#ifdef __cplusplus
34457 +extern "C"
34458 +{
34459 +#endif
34460 +/* We use char because int might match the return type of a gcc2
34461 + builtin and then its argument prototype would still apply. */
34462 +char shmat ();
34463 /* The GNU C library defines this for functions which it implements
34464 to always fail with ENOSYS. Some functions are actually named
34465 something starting with __ and the normal name is an alias. */
34466 #if defined (__stub_shmat) || defined (__stub___shmat)
34467 choke me
34468 #else
34469 -shmat();
34470 +char (*f) () = shmat;
34471 +#endif
34472 +#ifdef __cplusplus
34473 +}
34474 #endif
34476 -; return 0; }
34477 -EOF
34478 -if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34479 - rm -rf conftest*
34480 - eval "ac_cv_func_shmat=yes"
34481 -else
34482 - echo "configure: failed program was:" >&5
34483 - cat conftest.$ac_ext >&5
34484 - rm -rf conftest*
34485 - eval "ac_cv_func_shmat=no"
34486 -fi
34487 -rm -f conftest*
34488 -fi
34489 +int
34490 +main ()
34491 +{
34492 +return f != shmat;
34493 + ;
34494 + return 0;
34495 +}
34496 +_ACEOF
34497 +rm -f conftest.$ac_objext conftest$ac_exeext
34498 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34499 + (eval $ac_link) 2>conftest.er1
34500 + ac_status=$?
34501 + grep -v '^ *+' conftest.er1 >conftest.err
34502 + rm -f conftest.er1
34503 + cat conftest.err >&5
34504 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 + (exit $ac_status); } &&
34506 + { ac_try='test -z "$ac_c_werror_flag"
34507 + || test ! -s conftest.err'
34508 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34509 + (eval $ac_try) 2>&5
34510 + ac_status=$?
34511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 + (exit $ac_status); }; } &&
34513 + { ac_try='test -s conftest$ac_exeext'
34514 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34515 + (eval $ac_try) 2>&5
34516 + ac_status=$?
34517 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518 + (exit $ac_status); }; }; then
34519 + ac_cv_func_shmat=yes
34520 +else
34521 + echo "$as_me: failed program was:" >&5
34522 +sed 's/^/| /' conftest.$ac_ext >&5
34524 -if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
34525 - echo "$ac_t""yes" 1>&6
34526 - :
34527 -else
34528 - echo "$ac_t""no" 1>&6
34529 +ac_cv_func_shmat=no
34530 fi
34531 +rm -f conftest.err conftest.$ac_objext \
34532 + conftest$ac_exeext conftest.$ac_ext
34533 +fi
34534 +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
34535 +echo "${ECHO_T}$ac_cv_func_shmat" >&6
34537 if test $ac_cv_func_shmat = no; then
34538 - echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
34539 -echo "configure:2914: checking for shmat in -lipc" >&5
34540 -ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
34541 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34542 - echo $ac_n "(cached) $ac_c" 1>&6
34543 + echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
34544 +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
34545 +if test "${ac_cv_lib_ipc_shmat+set}" = set; then
34546 + echo $ECHO_N "(cached) $ECHO_C" >&6
34547 else
34548 - ac_save_LIBS="$LIBS"
34549 + ac_check_lib_save_LIBS=$LIBS
34550 LIBS="-lipc $LIBS"
34551 -cat > conftest.$ac_ext <<EOF
34552 -#line 2922 "configure"
34553 -#include "confdefs.h"
34554 +cat >conftest.$ac_ext <<_ACEOF
34555 +/* confdefs.h. */
34556 +_ACEOF
34557 +cat confdefs.h >>conftest.$ac_ext
34558 +cat >>conftest.$ac_ext <<_ACEOF
34559 +/* end confdefs.h. */
34561 /* Override any gcc2 internal prototype to avoid an error. */
34562 +#ifdef __cplusplus
34563 +extern "C"
34564 +#endif
34565 /* We use char because int might match the return type of a gcc2
34566 - builtin and then its argument prototype would still apply. */
34567 -char shmat();
34569 -int main() {
34570 -shmat()
34571 -; return 0; }
34572 -EOF
34573 -if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34574 - rm -rf conftest*
34575 - eval "ac_cv_lib_$ac_lib_var=yes"
34576 -else
34577 - echo "configure: failed program was:" >&5
34578 - cat conftest.$ac_ext >&5
34579 - rm -rf conftest*
34580 - eval "ac_cv_lib_$ac_lib_var=no"
34581 -fi
34582 -rm -f conftest*
34583 -LIBS="$ac_save_LIBS"
34585 -fi
34586 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34587 - echo "$ac_t""yes" 1>&6
34588 + builtin and then its argument prototype would still apply. */
34589 +char shmat ();
34590 +int
34591 +main ()
34592 +{
34593 +shmat ();
34594 + ;
34595 + return 0;
34596 +}
34597 +_ACEOF
34598 +rm -f conftest.$ac_objext conftest$ac_exeext
34599 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34600 + (eval $ac_link) 2>conftest.er1
34601 + ac_status=$?
34602 + grep -v '^ *+' conftest.er1 >conftest.err
34603 + rm -f conftest.er1
34604 + cat conftest.err >&5
34605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 + (exit $ac_status); } &&
34607 + { ac_try='test -z "$ac_c_werror_flag"
34608 + || test ! -s conftest.err'
34609 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34610 + (eval $ac_try) 2>&5
34611 + ac_status=$?
34612 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34613 + (exit $ac_status); }; } &&
34614 + { ac_try='test -s conftest$ac_exeext'
34615 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34616 + (eval $ac_try) 2>&5
34617 + ac_status=$?
34618 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34619 + (exit $ac_status); }; }; then
34620 + ac_cv_lib_ipc_shmat=yes
34621 +else
34622 + echo "$as_me: failed program was:" >&5
34623 +sed 's/^/| /' conftest.$ac_ext >&5
34625 +ac_cv_lib_ipc_shmat=no
34626 +fi
34627 +rm -f conftest.err conftest.$ac_objext \
34628 + conftest$ac_exeext conftest.$ac_ext
34629 +LIBS=$ac_check_lib_save_LIBS
34630 +fi
34631 +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
34632 +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
34633 +if test $ac_cv_lib_ipc_shmat = yes; then
34634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
34635 -else
34636 - echo "$ac_t""no" 1>&6
34637 fi
34639 fi
34640 fi
34642 # Check for libraries that X11R6 Xt/Xaw programs need.
34643 - ac_save_LDFLAGS="$LDFLAGS"
34644 + ac_save_LDFLAGS=$LDFLAGS
34645 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
34646 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
34647 # check for ICE first), but we must link in the order -lSM -lICE or
34648 # we get undefined symbols. So assume we have SM if we have ICE.
34649 # These have to be linked with before -lX11, unlike the other
34650 # libraries we check for below, so use a different variable.
34651 - # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
34652 - echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
34653 -echo "configure:2966: checking for IceConnectionNumber in -lICE" >&5
34654 -ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
34655 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34656 - echo $ac_n "(cached) $ac_c" 1>&6
34657 + # John Interrante, Karl Berry
34658 + echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
34659 +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
34660 +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
34661 + echo $ECHO_N "(cached) $ECHO_C" >&6
34662 else
34663 - ac_save_LIBS="$LIBS"
34664 + ac_check_lib_save_LIBS=$LIBS
34665 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
34666 -cat > conftest.$ac_ext <<EOF
34667 -#line 2974 "configure"
34668 -#include "confdefs.h"
34669 +cat >conftest.$ac_ext <<_ACEOF
34670 +/* confdefs.h. */
34671 +_ACEOF
34672 +cat confdefs.h >>conftest.$ac_ext
34673 +cat >>conftest.$ac_ext <<_ACEOF
34674 +/* end confdefs.h. */
34676 /* Override any gcc2 internal prototype to avoid an error. */
34677 +#ifdef __cplusplus
34678 +extern "C"
34679 +#endif
34680 /* We use char because int might match the return type of a gcc2
34681 - builtin and then its argument prototype would still apply. */
34682 -char IceConnectionNumber();
34684 -int main() {
34685 -IceConnectionNumber()
34686 -; return 0; }
34687 -EOF
34688 -if { (eval echo configure:2985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34689 - rm -rf conftest*
34690 - eval "ac_cv_lib_$ac_lib_var=yes"
34691 -else
34692 - echo "configure: failed program was:" >&5
34693 - cat conftest.$ac_ext >&5
34694 - rm -rf conftest*
34695 - eval "ac_cv_lib_$ac_lib_var=no"
34696 -fi
34697 -rm -f conftest*
34698 -LIBS="$ac_save_LIBS"
34700 -fi
34701 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34702 - echo "$ac_t""yes" 1>&6
34703 + builtin and then its argument prototype would still apply. */
34704 +char IceConnectionNumber ();
34705 +int
34706 +main ()
34707 +{
34708 +IceConnectionNumber ();
34709 + ;
34710 + return 0;
34711 +}
34712 +_ACEOF
34713 +rm -f conftest.$ac_objext conftest$ac_exeext
34714 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34715 + (eval $ac_link) 2>conftest.er1
34716 + ac_status=$?
34717 + grep -v '^ *+' conftest.er1 >conftest.err
34718 + rm -f conftest.er1
34719 + cat conftest.err >&5
34720 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34721 + (exit $ac_status); } &&
34722 + { ac_try='test -z "$ac_c_werror_flag"
34723 + || test ! -s conftest.err'
34724 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34725 + (eval $ac_try) 2>&5
34726 + ac_status=$?
34727 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34728 + (exit $ac_status); }; } &&
34729 + { ac_try='test -s conftest$ac_exeext'
34730 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34731 + (eval $ac_try) 2>&5
34732 + ac_status=$?
34733 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34734 + (exit $ac_status); }; }; then
34735 + ac_cv_lib_ICE_IceConnectionNumber=yes
34736 +else
34737 + echo "$as_me: failed program was:" >&5
34738 +sed 's/^/| /' conftest.$ac_ext >&5
34740 +ac_cv_lib_ICE_IceConnectionNumber=no
34741 +fi
34742 +rm -f conftest.err conftest.$ac_objext \
34743 + conftest$ac_exeext conftest.$ac_ext
34744 +LIBS=$ac_check_lib_save_LIBS
34745 +fi
34746 +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
34747 +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
34748 +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
34749 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
34750 -else
34751 - echo "$ac_t""no" 1>&6
34752 fi
34754 - LDFLAGS="$ac_save_LDFLAGS"
34755 + LDFLAGS=$ac_save_LDFLAGS
34757 fi
34759 @@ -3010,97 +21326,155 @@ CFLAGS="$X_CFLAGS $CFLAGS"
34760 LDFLAGS="$X_LDFLAGS $X_LIBS $LDFLAGS"
34761 X_EXTRA_LIBS="$X_EXTRA_LIBS -lX11 -lm"
34763 -echo $ac_n "checking for XOpenDisplay in -lX11""... $ac_c" 1>&6
34764 -echo "configure:3015: checking for XOpenDisplay in -lX11" >&5
34765 -ac_lib_var=`echo X11'_'XOpenDisplay | sed 'y%./+-%__p_%'`
34766 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34767 - echo $ac_n "(cached) $ac_c" 1>&6
34768 +echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
34769 +echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
34770 +if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
34771 + echo $ECHO_N "(cached) $ECHO_C" >&6
34772 else
34773 - ac_save_LIBS="$LIBS"
34774 + ac_check_lib_save_LIBS=$LIBS
34775 LIBS="-lX11 $X_EXTRA_LIBS $LIBS"
34776 -cat > conftest.$ac_ext <<EOF
34777 -#line 3023 "configure"
34778 -#include "confdefs.h"
34779 +cat >conftest.$ac_ext <<_ACEOF
34780 +/* confdefs.h. */
34781 +_ACEOF
34782 +cat confdefs.h >>conftest.$ac_ext
34783 +cat >>conftest.$ac_ext <<_ACEOF
34784 +/* end confdefs.h. */
34786 /* Override any gcc2 internal prototype to avoid an error. */
34787 +#ifdef __cplusplus
34788 +extern "C"
34789 +#endif
34790 /* We use char because int might match the return type of a gcc2
34791 - builtin and then its argument prototype would still apply. */
34792 -char XOpenDisplay();
34794 -int main() {
34795 -XOpenDisplay()
34796 -; return 0; }
34797 -EOF
34798 -if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34799 - rm -rf conftest*
34800 - eval "ac_cv_lib_$ac_lib_var=yes"
34801 -else
34802 - echo "configure: failed program was:" >&5
34803 - cat conftest.$ac_ext >&5
34804 - rm -rf conftest*
34805 - eval "ac_cv_lib_$ac_lib_var=no"
34806 -fi
34807 -rm -f conftest*
34808 -LIBS="$ac_save_LIBS"
34810 -fi
34811 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34812 - echo "$ac_t""yes" 1>&6
34813 + builtin and then its argument prototype would still apply. */
34814 +char XOpenDisplay ();
34815 +int
34816 +main ()
34817 +{
34818 +XOpenDisplay ();
34819 + ;
34820 + return 0;
34821 +}
34822 +_ACEOF
34823 +rm -f conftest.$ac_objext conftest$ac_exeext
34824 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34825 + (eval $ac_link) 2>conftest.er1
34826 + ac_status=$?
34827 + grep -v '^ *+' conftest.er1 >conftest.err
34828 + rm -f conftest.er1
34829 + cat conftest.err >&5
34830 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34831 + (exit $ac_status); } &&
34832 + { ac_try='test -z "$ac_c_werror_flag"
34833 + || test ! -s conftest.err'
34834 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34835 + (eval $ac_try) 2>&5
34836 + ac_status=$?
34837 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34838 + (exit $ac_status); }; } &&
34839 + { ac_try='test -s conftest$ac_exeext'
34840 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34841 + (eval $ac_try) 2>&5
34842 + ac_status=$?
34843 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34844 + (exit $ac_status); }; }; then
34845 + ac_cv_lib_X11_XOpenDisplay=yes
34846 +else
34847 + echo "$as_me: failed program was:" >&5
34848 +sed 's/^/| /' conftest.$ac_ext >&5
34850 +ac_cv_lib_X11_XOpenDisplay=no
34851 +fi
34852 +rm -f conftest.err conftest.$ac_objext \
34853 + conftest$ac_exeext conftest.$ac_ext
34854 +LIBS=$ac_check_lib_save_LIBS
34855 +fi
34856 +echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
34857 +echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
34858 +if test $ac_cv_lib_X11_XOpenDisplay = yes; then
34859 X11LIB="-lX11"
34860 else
34861 - echo "$ac_t""no" 1>&6
34862 -X11LIB=no
34863 + X11LIB=no
34864 fi
34867 if test "$X11LIB" = no; then
34868 - { echo "configure: error: Cannot find -lX11 library" 1>&2; exit 1; }
34869 + { { echo "$as_me:$LINENO: error: Cannot find -lX11 library" >&5
34870 +echo "$as_me: error: Cannot find -lX11 library" >&2;}
34871 + { (exit 1); exit 1; }; }
34872 fi
34874 -echo $ac_n "checking for fabs in -lm""... $ac_c" 1>&6
34875 -echo "configure:3061: checking for fabs in -lm" >&5
34876 -ac_lib_var=`echo m'_'fabs | sed 'y%./+-%__p_%'`
34877 -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
34878 - echo $ac_n "(cached) $ac_c" 1>&6
34880 +echo "$as_me:$LINENO: checking for fabs in -lm" >&5
34881 +echo $ECHO_N "checking for fabs in -lm... $ECHO_C" >&6
34882 +if test "${ac_cv_lib_m_fabs+set}" = set; then
34883 + echo $ECHO_N "(cached) $ECHO_C" >&6
34884 else
34885 - ac_save_LIBS="$LIBS"
34886 + ac_check_lib_save_LIBS=$LIBS
34887 LIBS="-lm $LIBS"
34888 -cat > conftest.$ac_ext <<EOF
34889 -#line 3069 "configure"
34890 -#include "confdefs.h"
34891 +cat >conftest.$ac_ext <<_ACEOF
34892 +/* confdefs.h. */
34893 +_ACEOF
34894 +cat confdefs.h >>conftest.$ac_ext
34895 +cat >>conftest.$ac_ext <<_ACEOF
34896 +/* end confdefs.h. */
34898 /* Override any gcc2 internal prototype to avoid an error. */
34899 +#ifdef __cplusplus
34900 +extern "C"
34901 +#endif
34902 /* We use char because int might match the return type of a gcc2
34903 - builtin and then its argument prototype would still apply. */
34904 -char fabs();
34906 -int main() {
34907 -fabs()
34908 -; return 0; }
34909 -EOF
34910 -if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
34911 - rm -rf conftest*
34912 - eval "ac_cv_lib_$ac_lib_var=yes"
34913 -else
34914 - echo "configure: failed program was:" >&5
34915 - cat conftest.$ac_ext >&5
34916 - rm -rf conftest*
34917 - eval "ac_cv_lib_$ac_lib_var=no"
34918 -fi
34919 -rm -f conftest*
34920 -LIBS="$ac_save_LIBS"
34922 -fi
34923 -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
34924 - echo "$ac_t""yes" 1>&6
34925 - ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
34926 - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
34927 - cat >> confdefs.h <<EOF
34928 -#define $ac_tr_lib 1
34929 -EOF
34930 + builtin and then its argument prototype would still apply. */
34931 +char fabs ();
34932 +int
34933 +main ()
34934 +{
34935 +fabs ();
34936 + ;
34937 + return 0;
34938 +}
34939 +_ACEOF
34940 +rm -f conftest.$ac_objext conftest$ac_exeext
34941 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34942 + (eval $ac_link) 2>conftest.er1
34943 + ac_status=$?
34944 + grep -v '^ *+' conftest.er1 >conftest.err
34945 + rm -f conftest.er1
34946 + cat conftest.err >&5
34947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 + (exit $ac_status); } &&
34949 + { ac_try='test -z "$ac_c_werror_flag"
34950 + || test ! -s conftest.err'
34951 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34952 + (eval $ac_try) 2>&5
34953 + ac_status=$?
34954 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 + (exit $ac_status); }; } &&
34956 + { ac_try='test -s conftest$ac_exeext'
34957 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958 + (eval $ac_try) 2>&5
34959 + ac_status=$?
34960 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 + (exit $ac_status); }; }; then
34962 + ac_cv_lib_m_fabs=yes
34963 +else
34964 + echo "$as_me: failed program was:" >&5
34965 +sed 's/^/| /' conftest.$ac_ext >&5
34967 +ac_cv_lib_m_fabs=no
34968 +fi
34969 +rm -f conftest.err conftest.$ac_objext \
34970 + conftest$ac_exeext conftest.$ac_ext
34971 +LIBS=$ac_check_lib_save_LIBS
34972 +fi
34973 +echo "$as_me:$LINENO: result: $ac_cv_lib_m_fabs" >&5
34974 +echo "${ECHO_T}$ac_cv_lib_m_fabs" >&6
34975 +if test $ac_cv_lib_m_fabs = yes; then
34976 + cat >>confdefs.h <<_ACEOF
34977 +#define HAVE_LIBM 1
34978 +_ACEOF
34980 LIBS="-lm $LIBS"
34982 -else
34983 - echo "$ac_t""no" 1>&6
34984 fi
34987 @@ -3110,12 +21484,13 @@ if test "${enable_use_tcl+set}" = set; t
34988 case "${enableval}" in
34989 yes) use_tcl=true ;;
34990 no) use_tcl=false ;;
34991 - *) { echo "configure: error: bad value ${enableval} for --enable-tcl" 1>&2; exit 1; } ;;
34992 + *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-tcl" >&5
34993 +echo "$as_me: error: bad value ${enableval} for --enable-tcl" >&2;}
34994 + { (exit 1); exit 1; }; } ;;
34995 esac
34996 else
34997 use_tcl=false
34998 -fi
35000 +fi;
35003 if test x$use_tcl = xtrue; then
35004 @@ -3128,52 +21503,83 @@ fi
35009 X_LDFLAGS="${X_LIBS} ${X11LIB}"
35012 CFLAGS=$saved_cflags
35013 LDFLAGS=$saved_ldflags
35015 -echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
35016 -echo "configure:3139: checking for ANSI C header files" >&5
35017 -if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
35018 - echo $ac_n "(cached) $ac_c" 1>&6
35019 -else
35020 - cat > conftest.$ac_ext <<EOF
35021 -#line 3144 "configure"
35022 -#include "confdefs.h"
35023 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
35024 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
35025 +if test "${ac_cv_header_stdc+set}" = set; then
35026 + echo $ECHO_N "(cached) $ECHO_C" >&6
35027 +else
35028 + cat >conftest.$ac_ext <<_ACEOF
35029 +/* confdefs.h. */
35030 +_ACEOF
35031 +cat confdefs.h >>conftest.$ac_ext
35032 +cat >>conftest.$ac_ext <<_ACEOF
35033 +/* end confdefs.h. */
35034 #include <stdlib.h>
35035 #include <stdarg.h>
35036 #include <string.h>
35037 #include <float.h>
35038 -EOF
35039 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35040 -{ (eval echo configure:3152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
35041 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
35042 -if test -z "$ac_err"; then
35043 - rm -rf conftest*
35045 +int
35046 +main ()
35047 +{
35049 + ;
35050 + return 0;
35051 +}
35052 +_ACEOF
35053 +rm -f conftest.$ac_objext
35054 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35055 + (eval $ac_compile) 2>conftest.er1
35056 + ac_status=$?
35057 + grep -v '^ *+' conftest.er1 >conftest.err
35058 + rm -f conftest.er1
35059 + cat conftest.err >&5
35060 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 + (exit $ac_status); } &&
35062 + { ac_try='test -z "$ac_c_werror_flag"
35063 + || test ! -s conftest.err'
35064 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065 + (eval $ac_try) 2>&5
35066 + ac_status=$?
35067 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 + (exit $ac_status); }; } &&
35069 + { ac_try='test -s conftest.$ac_objext'
35070 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35071 + (eval $ac_try) 2>&5
35072 + ac_status=$?
35073 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 + (exit $ac_status); }; }; then
35075 ac_cv_header_stdc=yes
35076 else
35077 - echo "$ac_err" >&5
35078 - echo "configure: failed program was:" >&5
35079 - cat conftest.$ac_ext >&5
35080 - rm -rf conftest*
35081 - ac_cv_header_stdc=no
35082 + echo "$as_me: failed program was:" >&5
35083 +sed 's/^/| /' conftest.$ac_ext >&5
35085 +ac_cv_header_stdc=no
35086 fi
35087 -rm -f conftest*
35088 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35090 if test $ac_cv_header_stdc = yes; then
35091 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
35092 -cat > conftest.$ac_ext <<EOF
35093 -#line 3169 "configure"
35094 -#include "confdefs.h"
35095 + cat >conftest.$ac_ext <<_ACEOF
35096 +/* confdefs.h. */
35097 +_ACEOF
35098 +cat confdefs.h >>conftest.$ac_ext
35099 +cat >>conftest.$ac_ext <<_ACEOF
35100 +/* end confdefs.h. */
35101 #include <string.h>
35102 -EOF
35104 +_ACEOF
35105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35106 - egrep "memchr" >/dev/null 2>&1; then
35107 + $EGREP "memchr" >/dev/null 2>&1; then
35109 else
35110 - rm -rf conftest*
35111 ac_cv_header_stdc=no
35112 fi
35113 rm -f conftest*
35114 @@ -3182,16 +21588,19 @@ fi
35116 if test $ac_cv_header_stdc = yes; then
35117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
35118 -cat > conftest.$ac_ext <<EOF
35119 -#line 3187 "configure"
35120 -#include "confdefs.h"
35121 + cat >conftest.$ac_ext <<_ACEOF
35122 +/* confdefs.h. */
35123 +_ACEOF
35124 +cat confdefs.h >>conftest.$ac_ext
35125 +cat >>conftest.$ac_ext <<_ACEOF
35126 +/* end confdefs.h. */
35127 #include <stdlib.h>
35128 -EOF
35130 +_ACEOF
35131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35132 - egrep "free" >/dev/null 2>&1; then
35133 + $EGREP "free" >/dev/null 2>&1; then
35135 else
35136 - rm -rf conftest*
35137 ac_cv_header_stdc=no
35138 fi
35139 rm -f conftest*
35140 @@ -3200,104 +21609,244 @@ fi
35142 if test $ac_cv_header_stdc = yes; then
35143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
35144 -if test "$cross_compiling" = yes; then
35145 + if test "$cross_compiling" = yes; then
35147 else
35148 - cat > conftest.$ac_ext <<EOF
35149 -#line 3208 "configure"
35150 -#include "confdefs.h"
35151 + cat >conftest.$ac_ext <<_ACEOF
35152 +/* confdefs.h. */
35153 +_ACEOF
35154 +cat confdefs.h >>conftest.$ac_ext
35155 +cat >>conftest.$ac_ext <<_ACEOF
35156 +/* end confdefs.h. */
35157 #include <ctype.h>
35158 -#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
35159 -#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
35160 -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
35161 -int main () { int i; for (i = 0; i < 256; i++)
35162 -if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
35163 -exit (0); }
35164 +#if ((' ' & 0x0FF) == 0x020)
35165 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
35166 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
35167 +#else
35168 +# define ISLOWER(c) \
35169 + (('a' <= (c) && (c) <= 'i') \
35170 + || ('j' <= (c) && (c) <= 'r') \
35171 + || ('s' <= (c) && (c) <= 'z'))
35172 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
35173 +#endif
35175 -EOF
35176 -if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
35177 -then
35178 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
35179 +int
35180 +main ()
35181 +{
35182 + int i;
35183 + for (i = 0; i < 256; i++)
35184 + if (XOR (islower (i), ISLOWER (i))
35185 + || toupper (i) != TOUPPER (i))
35186 + exit(2);
35187 + exit (0);
35188 +}
35189 +_ACEOF
35190 +rm -f conftest$ac_exeext
35191 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35192 + (eval $ac_link) 2>&5
35193 + ac_status=$?
35194 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35195 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35196 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35197 + (eval $ac_try) 2>&5
35198 + ac_status=$?
35199 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200 + (exit $ac_status); }; }; then
35202 else
35203 - echo "configure: failed program was:" >&5
35204 - cat conftest.$ac_ext >&5
35205 - rm -fr conftest*
35206 - ac_cv_header_stdc=no
35207 + echo "$as_me: program exited with status $ac_status" >&5
35208 +echo "$as_me: failed program was:" >&5
35209 +sed 's/^/| /' conftest.$ac_ext >&5
35211 +( exit $ac_status )
35212 +ac_cv_header_stdc=no
35213 fi
35214 -rm -fr conftest*
35215 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35216 fi
35218 fi
35219 fi
35221 -echo "$ac_t""$ac_cv_header_stdc" 1>&6
35222 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
35223 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
35224 if test $ac_cv_header_stdc = yes; then
35225 - cat >> confdefs.h <<\EOF
35227 +cat >>confdefs.h <<\_ACEOF
35228 #define STDC_HEADERS 1
35229 -EOF
35230 +_ACEOF
35232 fi
35234 -for ac_hdr in unistd.h
35236 +for ac_header in unistd.h
35237 do
35238 -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
35239 -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
35240 -echo "configure:3246: checking for $ac_hdr" >&5
35241 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
35242 - echo $ac_n "(cached) $ac_c" 1>&6
35243 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35244 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35245 + echo "$as_me:$LINENO: checking for $ac_header" >&5
35246 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35247 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35248 + echo $ECHO_N "(cached) $ECHO_C" >&6
35249 +fi
35250 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35251 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35252 +else
35253 + # Is the header compilable?
35254 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
35255 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35256 +cat >conftest.$ac_ext <<_ACEOF
35257 +/* confdefs.h. */
35258 +_ACEOF
35259 +cat confdefs.h >>conftest.$ac_ext
35260 +cat >>conftest.$ac_ext <<_ACEOF
35261 +/* end confdefs.h. */
35262 +$ac_includes_default
35263 +#include <$ac_header>
35264 +_ACEOF
35265 +rm -f conftest.$ac_objext
35266 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35267 + (eval $ac_compile) 2>conftest.er1
35268 + ac_status=$?
35269 + grep -v '^ *+' conftest.er1 >conftest.err
35270 + rm -f conftest.er1
35271 + cat conftest.err >&5
35272 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35273 + (exit $ac_status); } &&
35274 + { ac_try='test -z "$ac_c_werror_flag"
35275 + || test ! -s conftest.err'
35276 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277 + (eval $ac_try) 2>&5
35278 + ac_status=$?
35279 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 + (exit $ac_status); }; } &&
35281 + { ac_try='test -s conftest.$ac_objext'
35282 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35283 + (eval $ac_try) 2>&5
35284 + ac_status=$?
35285 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35286 + (exit $ac_status); }; }; then
35287 + ac_header_compiler=yes
35288 +else
35289 + echo "$as_me: failed program was:" >&5
35290 +sed 's/^/| /' conftest.$ac_ext >&5
35292 +ac_header_compiler=no
35293 +fi
35294 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35295 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35296 +echo "${ECHO_T}$ac_header_compiler" >&6
35298 +# Is the header present?
35299 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
35300 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35301 +cat >conftest.$ac_ext <<_ACEOF
35302 +/* confdefs.h. */
35303 +_ACEOF
35304 +cat confdefs.h >>conftest.$ac_ext
35305 +cat >>conftest.$ac_ext <<_ACEOF
35306 +/* end confdefs.h. */
35307 +#include <$ac_header>
35308 +_ACEOF
35309 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35310 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35311 + ac_status=$?
35312 + grep -v '^ *+' conftest.er1 >conftest.err
35313 + rm -f conftest.er1
35314 + cat conftest.err >&5
35315 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35316 + (exit $ac_status); } >/dev/null; then
35317 + if test -s conftest.err; then
35318 + ac_cpp_err=$ac_c_preproc_warn_flag
35319 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35320 + else
35321 + ac_cpp_err=
35322 + fi
35323 else
35324 - cat > conftest.$ac_ext <<EOF
35325 -#line 3251 "configure"
35326 -#include "confdefs.h"
35327 -#include <$ac_hdr>
35328 -EOF
35329 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
35330 -{ (eval echo configure:3256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
35331 -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
35332 -if test -z "$ac_err"; then
35333 - rm -rf conftest*
35334 - eval "ac_cv_header_$ac_safe=yes"
35335 + ac_cpp_err=yes
35336 +fi
35337 +if test -z "$ac_cpp_err"; then
35338 + ac_header_preproc=yes
35339 else
35340 - echo "$ac_err" >&5
35341 - echo "configure: failed program was:" >&5
35342 - cat conftest.$ac_ext >&5
35343 - rm -rf conftest*
35344 - eval "ac_cv_header_$ac_safe=no"
35345 + echo "$as_me: failed program was:" >&5
35346 +sed 's/^/| /' conftest.$ac_ext >&5
35348 + ac_header_preproc=no
35349 +fi
35350 +rm -f conftest.err conftest.$ac_ext
35351 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35352 +echo "${ECHO_T}$ac_header_preproc" >&6
35354 +# So? What about this header?
35355 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35356 + yes:no: )
35357 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35358 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35359 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35360 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35361 + ac_header_preproc=yes
35362 + ;;
35363 + no:yes:* )
35364 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35365 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35366 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35367 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35368 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35369 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35370 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35371 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35372 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35373 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35374 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35375 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35376 + (
35377 + cat <<\_ASBOX
35378 +## ------------------------------------------ ##
35379 +## Report this to the AC_PACKAGE_NAME lists. ##
35380 +## ------------------------------------------ ##
35381 +_ASBOX
35382 + ) |
35383 + sed "s/^/$as_me: WARNING: /" >&2
35384 + ;;
35385 +esac
35386 +echo "$as_me:$LINENO: checking for $ac_header" >&5
35387 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35388 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
35389 + echo $ECHO_N "(cached) $ECHO_C" >&6
35390 +else
35391 + eval "$as_ac_Header=\$ac_header_preproc"
35392 fi
35393 -rm -f conftest*
35394 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35395 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35397 fi
35398 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
35399 - echo "$ac_t""yes" 1>&6
35400 - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
35401 - cat >> confdefs.h <<EOF
35402 -#define $ac_tr_hdr 1
35403 -EOF
35405 -else
35406 - echo "$ac_t""no" 1>&6
35407 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
35408 + cat >>confdefs.h <<_ACEOF
35409 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35410 +_ACEOF
35412 fi
35414 done
35418 # Check whether --with-mouse-footprints or --without-mouse-footprints was given.
35419 if test "${with_mouse_footprints+set}" = set; then
35420 withval="$with_mouse_footprints"
35421 - cat >> confdefs.h <<\EOF
35422 + cat >>confdefs.h <<\_ACEOF
35423 #define STROKE_MOUSE_FOOTPRINTS 1
35424 -EOF
35425 +_ACEOF
35427 -fi
35428 +fi;
35430 +echo "$as_me:$LINENO: checking gtk+ library" >&5
35431 +echo $ECHO_N "checking gtk+ library... $ECHO_C" >&6
35433 -echo $ac_n "checking gtk+ library""... $ac_c" 1>&6
35434 -echo "configure:3294: checking gtk+ library" >&5
35435 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
35436 if test "${with_gtk_prefix+set}" = set; then
35437 withval="$with_gtk_prefix"
35438 gtk_config_prefix="$withval"
35439 else
35440 gtk_config_prefix=""
35441 -fi
35442 +fi;
35444 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
35445 if test "${with_gtk_exec_prefix+set}" = set; then
35446 @@ -3305,21 +21854,19 @@ if test "${with_gtk_exec_prefix+set}" =
35447 gtk_config_exec_prefix="$withval"
35448 else
35449 gtk_config_exec_prefix=""
35450 -fi
35452 +fi;
35453 # Check whether --enable-gtktest or --disable-gtktest was given.
35454 if test "${enable_gtktest+set}" = set; then
35455 enableval="$enable_gtktest"
35456 - :
35458 else
35459 enable_gtktest=yes
35460 -fi
35461 +fi;
35464 - for module in .
35465 + for module in .
35466 do
35467 case "$module" in
35468 - gthread)
35469 + gthread)
35470 gtk_config_args="$gtk_config_args gthread"
35471 ;;
35472 esac
35473 @@ -3340,43 +21887,47 @@ fi
35475 # Extract the first word of "gtk-config", so it can be a program name with args.
35476 set dummy gtk-config; ac_word=$2
35477 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
35478 -echo "configure:3345: checking for $ac_word" >&5
35479 -if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
35480 - echo $ac_n "(cached) $ac_c" 1>&6
35481 +echo "$as_me:$LINENO: checking for $ac_word" >&5
35482 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35483 +if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
35484 + echo $ECHO_N "(cached) $ECHO_C" >&6
35485 else
35486 - case "$GTK_CONFIG" in
35487 - /*)
35488 + case $GTK_CONFIG in
35489 + [\\/]* | ?:[\\/]*)
35490 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
35491 ;;
35492 - ?:/*)
35493 - ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
35494 - ;;
35495 *)
35496 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
35497 - ac_dummy="$PATH"
35498 - for ac_dir in $ac_dummy; do
35499 - test -z "$ac_dir" && ac_dir=.
35500 - if test -f $ac_dir/$ac_word; then
35501 - ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
35502 - break
35503 - fi
35504 - done
35505 - IFS="$ac_save_ifs"
35506 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35507 +for as_dir in $PATH
35508 +do
35509 + IFS=$as_save_IFS
35510 + test -z "$as_dir" && as_dir=.
35511 + for ac_exec_ext in '' $ac_executable_extensions; do
35512 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35513 + ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
35514 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35515 + break 2
35516 + fi
35517 +done
35518 +done
35520 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
35521 ;;
35522 esac
35523 fi
35524 -GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
35525 +GTK_CONFIG=$ac_cv_path_GTK_CONFIG
35527 if test -n "$GTK_CONFIG"; then
35528 - echo "$ac_t""$GTK_CONFIG" 1>&6
35529 + echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
35530 +echo "${ECHO_T}$GTK_CONFIG" >&6
35531 else
35532 - echo "$ac_t""no" 1>&6
35533 + echo "$as_me:$LINENO: result: no" >&5
35534 +echo "${ECHO_T}no" >&6
35535 fi
35537 min_gtk_version=1.2.7
35538 - echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
35539 -echo "configure:3380: checking for GTK - version >= $min_gtk_version" >&5
35540 + echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
35541 +echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
35542 no_gtk=""
35543 if test "$GTK_CONFIG" = "no" ; then
35544 no_gtk=yes
35545 @@ -3398,15 +21949,18 @@ echo "configure:3380: checking for GTK -
35546 if test "$cross_compiling" = yes; then
35547 echo $ac_n "cross compiling; assumed OK... $ac_c"
35548 else
35549 - cat > conftest.$ac_ext <<EOF
35550 -#line 3403 "configure"
35551 -#include "confdefs.h"
35552 + cat >conftest.$ac_ext <<_ACEOF
35553 +/* confdefs.h. */
35554 +_ACEOF
35555 +cat confdefs.h >>conftest.$ac_ext
35556 +cat >>conftest.$ac_ext <<_ACEOF
35557 +/* end confdefs.h. */
35559 #include <gtk/gtk.h>
35560 #include <stdio.h>
35561 #include <stdlib.h>
35563 -int
35564 +int
35565 main ()
35567 int major, minor, micro;
35568 @@ -3425,7 +21979,7 @@ main ()
35569 (gtk_minor_version != $gtk_config_minor_version) ||
35570 (gtk_micro_version != $gtk_config_micro_version))
35572 - printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
35573 + printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
35574 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
35575 gtk_major_version, gtk_minor_version, gtk_micro_version);
35576 printf ("*** was found! If gtk-config was correct, then it is best\n");
35577 @@ -3436,7 +21990,7 @@ main ()
35578 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
35579 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
35580 printf("*** before re-running configure\n");
35581 - }
35582 + }
35583 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
35584 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
35585 (gtk_minor_version != GTK_MINOR_VERSION) ||
35586 @@ -3476,32 +22030,45 @@ main ()
35587 return 1;
35590 -EOF
35591 -if { (eval echo configure:3481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
35592 -then
35593 +_ACEOF
35594 +rm -f conftest$ac_exeext
35595 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35596 + (eval $ac_link) 2>&5
35597 + ac_status=$?
35598 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35599 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35600 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35601 + (eval $ac_try) 2>&5
35602 + ac_status=$?
35603 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35604 + (exit $ac_status); }; }; then
35606 else
35607 - echo "configure: failed program was:" >&5
35608 - cat conftest.$ac_ext >&5
35609 - rm -fr conftest*
35610 - no_gtk=yes
35611 + echo "$as_me: program exited with status $ac_status" >&5
35612 +echo "$as_me: failed program was:" >&5
35613 +sed 's/^/| /' conftest.$ac_ext >&5
35615 +( exit $ac_status )
35616 +no_gtk=yes
35617 fi
35618 -rm -fr conftest*
35619 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35620 fi
35622 CFLAGS="$ac_save_CFLAGS"
35623 LIBS="$ac_save_LIBS"
35624 fi
35625 fi
35626 if test "x$no_gtk" = x ; then
35627 - echo "$ac_t""yes" 1>&6
35628 + echo "$as_me:$LINENO: result: yes" >&5
35629 +echo "${ECHO_T}yes" >&6
35630 HAVE_LIBGTK=yes
35631 - cat >> confdefs.h <<\EOF
35633 +cat >>confdefs.h <<\_ACEOF
35634 #define HAVE_LIBGTK 1
35635 -EOF
35637 +_ACEOF
35639 else
35640 - echo "$ac_t""no" 1>&6
35641 + echo "$as_me:$LINENO: result: no" >&5
35642 +echo "${ECHO_T}no" >&6
35643 if test "$GTK_CONFIG" = "no" ; then
35644 echo "*** The gtk-config script installed by GTK could not be found"
35645 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
35646 @@ -3514,19 +22081,46 @@ EOF
35647 echo "*** Could not run GTK test program, checking why..."
35648 CFLAGS="$CFLAGS $GTK_CFLAGS"
35649 LIBS="$LIBS $GTK_LIBS"
35650 - cat > conftest.$ac_ext <<EOF
35651 -#line 3519 "configure"
35652 -#include "confdefs.h"
35653 + cat >conftest.$ac_ext <<_ACEOF
35654 +/* confdefs.h. */
35655 +_ACEOF
35656 +cat confdefs.h >>conftest.$ac_ext
35657 +cat >>conftest.$ac_ext <<_ACEOF
35658 +/* end confdefs.h. */
35660 #include <gtk/gtk.h>
35661 #include <stdio.h>
35663 -int main() {
35664 - return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
35665 -; return 0; }
35666 -EOF
35667 -if { (eval echo configure:3529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
35668 - rm -rf conftest*
35669 +int
35670 +main ()
35671 +{
35672 + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
35673 + ;
35674 + return 0;
35675 +}
35676 +_ACEOF
35677 +rm -f conftest.$ac_objext conftest$ac_exeext
35678 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35679 + (eval $ac_link) 2>conftest.er1
35680 + ac_status=$?
35681 + grep -v '^ *+' conftest.er1 >conftest.err
35682 + rm -f conftest.er1
35683 + cat conftest.err >&5
35684 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35685 + (exit $ac_status); } &&
35686 + { ac_try='test -z "$ac_c_werror_flag"
35687 + || test ! -s conftest.err'
35688 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35689 + (eval $ac_try) 2>&5
35690 + ac_status=$?
35691 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35692 + (exit $ac_status); }; } &&
35693 + { ac_try='test -s conftest$ac_exeext'
35694 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 + (eval $ac_try) 2>&5
35696 + ac_status=$?
35697 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 + (exit $ac_status); }; }; then
35699 echo "*** The test program compiled, but did not run. This usually means"
35700 echo "*** that the run-time linker is not finding GTK or finding the wrong"
35701 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
35702 @@ -3540,29 +22134,32 @@ if { (eval echo configure:3529: \"$ac_li
35703 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
35704 echo "*** came with the system with the command"
35705 echo "***"
35706 - echo "*** rpm --erase --nodeps gtk gtk-devel"
35707 + echo "*** rpm --erase --nodeps gtk gtk-devel"
35708 else
35709 - echo "configure: failed program was:" >&5
35710 - cat conftest.$ac_ext >&5
35711 - rm -rf conftest*
35712 - echo "*** The test program failed to compile or link. See the file config.log for the"
35713 + echo "$as_me: failed program was:" >&5
35714 +sed 's/^/| /' conftest.$ac_ext >&5
35716 + echo "*** The test program failed to compile or link. See the file config.log for the"
35717 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
35718 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
35719 - echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
35720 + echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
35721 fi
35722 -rm -f conftest*
35723 +rm -f conftest.err conftest.$ac_objext \
35724 + conftest$ac_exeext conftest.$ac_ext
35725 CFLAGS="$ac_save_CFLAGS"
35726 LIBS="$ac_save_LIBS"
35727 fi
35728 fi
35729 GTK_CFLAGS=""
35730 GTK_LIBS=""
35731 - echo "configure: warning: ***** NOTE: The GNOME stroke support won't be built
35732 -" 1>&2
35733 + { echo "$as_me:$LINENO: WARNING: ***** NOTE: The GNOME stroke support won't be built
35734 +" >&5
35735 +echo "$as_me: WARNING: ***** NOTE: The GNOME stroke support won't be built
35736 +" >&2;}
35737 HAVE_LIBGTK=no
35738 fi
35743 rm -f conf.gtktest
35746 @@ -3576,78 +22173,111 @@ else
35747 fi
35750 -echo $ac_n "checking for working const""... $ac_c" 1>&6
35751 -echo "configure:3581: checking for working const" >&5
35752 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
35753 - echo $ac_n "(cached) $ac_c" 1>&6
35754 -else
35755 - cat > conftest.$ac_ext <<EOF
35756 -#line 3586 "configure"
35757 -#include "confdefs.h"
35759 -int main() {
35760 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
35761 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
35762 +if test "${ac_cv_c_const+set}" = set; then
35763 + echo $ECHO_N "(cached) $ECHO_C" >&6
35764 +else
35765 + cat >conftest.$ac_ext <<_ACEOF
35766 +/* confdefs.h. */
35767 +_ACEOF
35768 +cat confdefs.h >>conftest.$ac_ext
35769 +cat >>conftest.$ac_ext <<_ACEOF
35770 +/* end confdefs.h. */
35772 +int
35773 +main ()
35774 +{
35775 +/* FIXME: Include the comments suggested by Paul. */
35776 +#ifndef __cplusplus
35777 + /* Ultrix mips cc rejects this. */
35778 + typedef int charset[2];
35779 + const charset x;
35780 + /* SunOS 4.1.1 cc rejects this. */
35781 + char const *const *ccp;
35782 + char **p;
35783 + /* NEC SVR4.0.2 mips cc rejects this. */
35784 + struct point {int x, y;};
35785 + static struct point const zero = {0,0};
35786 + /* AIX XL C 1.02.0.0 rejects this.
35787 + It does not let you subtract one const X* pointer from another in
35788 + an arm of an if-expression whose if-part is not a constant
35789 + expression */
35790 + const char *g = "string";
35791 + ccp = &g + (g ? g-g : 0);
35792 + /* HPUX 7.0 cc rejects these. */
35793 + ++ccp;
35794 + p = (char**) ccp;
35795 + ccp = (char const *const *) p;
35796 + { /* SCO 3.2v4 cc rejects this. */
35797 + char *t;
35798 + char const *s = 0 ? (char *) 0 : (char const *) 0;
35800 + *t++ = 0;
35801 + }
35802 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35803 + int x[] = {25, 17};
35804 + const int *foo = &x[0];
35805 + ++foo;
35806 + }
35807 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35808 + typedef const int *iptr;
35809 + iptr p = 0;
35810 + ++p;
35811 + }
35812 + { /* AIX XL C 1.02.0.0 rejects this saying
35813 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35814 + struct s { int j; const int *ap[3]; };
35815 + struct s *b; b->j = 5;
35816 + }
35817 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35818 + const int foo = 10;
35819 + }
35820 +#endif
35822 -/* Ultrix mips cc rejects this. */
35823 -typedef int charset[2]; const charset x;
35824 -/* SunOS 4.1.1 cc rejects this. */
35825 -char const *const *ccp;
35826 -char **p;
35827 -/* NEC SVR4.0.2 mips cc rejects this. */
35828 -struct point {int x, y;};
35829 -static struct point const zero = {0,0};
35830 -/* AIX XL C 1.02.0.0 rejects this.
35831 - It does not let you subtract one const X* pointer from another in an arm
35832 - of an if-expression whose if-part is not a constant expression */
35833 -const char *g = "string";
35834 -ccp = &g + (g ? g-g : 0);
35835 -/* HPUX 7.0 cc rejects these. */
35836 -++ccp;
35837 -p = (char**) ccp;
35838 -ccp = (char const *const *) p;
35839 -{ /* SCO 3.2v4 cc rejects this. */
35840 - char *t;
35841 - char const *s = 0 ? (char *) 0 : (char const *) 0;
35843 - *t++ = 0;
35844 -}
35845 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
35846 - int x[] = {25, 17};
35847 - const int *foo = &x[0];
35848 - ++foo;
35849 -}
35850 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
35851 - typedef const int *iptr;
35852 - iptr p = 0;
35853 - ++p;
35854 -}
35855 -{ /* AIX XL C 1.02.0.0 rejects this saying
35856 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
35857 - struct s { int j; const int *ap[3]; };
35858 - struct s *b; b->j = 5;
35859 -}
35860 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
35861 - const int foo = 10;
35862 + ;
35863 + return 0;
35866 -; return 0; }
35867 -EOF
35868 -if { (eval echo configure:3635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
35869 - rm -rf conftest*
35870 +_ACEOF
35871 +rm -f conftest.$ac_objext
35872 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35873 + (eval $ac_compile) 2>conftest.er1
35874 + ac_status=$?
35875 + grep -v '^ *+' conftest.er1 >conftest.err
35876 + rm -f conftest.er1
35877 + cat conftest.err >&5
35878 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 + (exit $ac_status); } &&
35880 + { ac_try='test -z "$ac_c_werror_flag"
35881 + || test ! -s conftest.err'
35882 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35883 + (eval $ac_try) 2>&5
35884 + ac_status=$?
35885 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35886 + (exit $ac_status); }; } &&
35887 + { ac_try='test -s conftest.$ac_objext'
35888 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 + (eval $ac_try) 2>&5
35890 + ac_status=$?
35891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 + (exit $ac_status); }; }; then
35893 ac_cv_c_const=yes
35894 else
35895 - echo "configure: failed program was:" >&5
35896 - cat conftest.$ac_ext >&5
35897 - rm -rf conftest*
35898 - ac_cv_c_const=no
35899 + echo "$as_me: failed program was:" >&5
35900 +sed 's/^/| /' conftest.$ac_ext >&5
35902 +ac_cv_c_const=no
35903 fi
35904 -rm -f conftest*
35905 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35906 fi
35908 -echo "$ac_t""$ac_cv_c_const" 1>&6
35909 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
35910 +echo "${ECHO_T}$ac_cv_c_const" >&6
35911 if test $ac_cv_c_const = no; then
35912 - cat >> confdefs.h <<\EOF
35913 -#define const
35914 -EOF
35916 +cat >>confdefs.h <<\_ACEOF
35917 +#define const
35918 +_ACEOF
35920 fi
35922 @@ -3656,413 +22286,1475 @@ fi
35926 -trap '' 1 2 15
35927 -cat > confcache <<\EOF
35928 + ac_config_files="$ac_config_files Makefile libstroke/Makefile libgstroke/Makefile doc/Makefile javastroke/Makefile tests/Makefile"
35929 +cat >confcache <<\_ACEOF
35930 # This file is a shell script that caches the results of configure
35931 # tests run on this system so they can be shared between configure
35932 -# scripts and configure runs. It is not useful on other systems.
35933 -# If it contains results you don't want to keep, you may remove or edit it.
35934 +# scripts and configure runs, see configure's option --config-cache.
35935 +# It is not useful on other systems. If it contains results you don't
35936 +# want to keep, you may remove or edit it.
35938 -# By default, configure uses ./config.cache as the cache file,
35939 -# creating it if it does not exist already. You can give configure
35940 -# the --cache-file=FILE option to use a different cache file; that is
35941 -# what configure does when it calls configure scripts in
35942 -# subdirectories, so they share the cache.
35943 -# Giving --cache-file=/dev/null disables caching, for debugging configure.
35944 -# config.status only pays attention to the cache file if you give it the
35945 -# --recheck option to rerun configure.
35946 +# config.status only pays attention to the cache file if you give it
35947 +# the --recheck option to rerun configure.
35949 -EOF
35950 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
35951 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
35952 +# following values.
35954 +_ACEOF
35956 # The following way of writing the cache mishandles newlines in values,
35957 # but we know of no workaround that is simple, portable, and efficient.
35958 # So, don't put newlines in cache variables' values.
35959 # Ultrix sh set writes to stderr and can't be redirected directly,
35960 # and sets the high bit in the cache file unless we assign to the vars.
35961 -(set) 2>&1 |
35962 - case `(ac_space=' '; set | grep ac_space) 2>&1` in
35963 - *ac_space=\ *)
35964 - # `set' does not quote correctly, so add quotes (double-quote substitution
35965 - # turns \\\\ into \\, and sed turns \\ into \).
35966 - sed -n \
35967 - -e "s/'/'\\\\''/g" \
35968 - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
35969 - ;;
35970 - *)
35971 - # `set' quotes correctly as required by POSIX, so do not add quotes.
35972 - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
35973 - ;;
35974 - esac >> confcache
35975 -if cmp -s $cache_file confcache; then
35976 - :
35977 -else
35978 +{
35979 + (set) 2>&1 |
35980 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
35981 + *ac_space=\ *)
35982 + # `set' does not quote correctly, so add quotes (double-quote
35983 + # substitution turns \\\\ into \\, and sed turns \\ into \).
35984 + sed -n \
35985 + "s/'/'\\\\''/g;
35986 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35987 + ;;
35988 + *)
35989 + # `set' quotes correctly as required by POSIX, so do not add quotes.
35990 + sed -n \
35991 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
35992 + ;;
35993 + esac;
35994 +} |
35995 + sed '
35996 + t clear
35997 + : clear
35998 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35999 + t end
36000 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36001 + : end' >>confcache
36002 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
36003 if test -w $cache_file; then
36004 - echo "updating cache $cache_file"
36005 - cat confcache > $cache_file
36006 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
36007 + cat confcache >$cache_file
36008 else
36009 echo "not updating unwritable cache $cache_file"
36010 fi
36011 fi
36012 rm -f confcache
36014 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
36016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36017 # Let make expand exec_prefix.
36018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36020 -# Any assignment to VPATH causes Sun make to only execute
36021 -# the first set of double-colon rules, so remove it if not needed.
36022 -# If there is a colon in the path, we need to keep it.
36023 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
36024 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
36025 +# trailing colons and then remove the whole line if VPATH becomes empty
36026 +# (actually we leave an empty line to preserve line numbers).
36027 if test "x$srcdir" = x.; then
36028 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
36029 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
36030 +s/:*\$(srcdir):*/:/;
36031 +s/:*\${srcdir}:*/:/;
36032 +s/:*@srcdir@:*/:/;
36033 +s/^\([^=]*=[ ]*\):*/\1/;
36034 +s/:*$//;
36035 +s/^[^=]*=[ ]*$//;
36036 +}'
36037 fi
36039 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
36041 DEFS=-DHAVE_CONFIG_H
36043 -# Without the "./", some shells look in PATH for config.status.
36044 -: ${CONFIG_STATUS=./config.status}
36045 +ac_libobjs=
36046 +ac_ltlibobjs=
36047 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36048 + # 1. Remove the extension, and $U if already installed.
36049 + ac_i=`echo "$ac_i" |
36050 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
36051 + # 2. Add them.
36052 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
36053 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
36054 +done
36055 +LIBOBJS=$ac_libobjs
36057 -echo creating $CONFIG_STATUS
36058 -rm -f $CONFIG_STATUS
36059 -cat > $CONFIG_STATUS <<EOF
36060 -#! /bin/sh
36061 -# Generated automatically by configure.
36062 +LTLIBOBJS=$ac_ltlibobjs
36065 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36066 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
36067 +Usually this means the macro was only invoked conditionally." >&5
36068 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
36069 +Usually this means the macro was only invoked conditionally." >&2;}
36070 + { (exit 1); exit 1; }; }
36071 +fi
36072 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36073 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
36074 +Usually this means the macro was only invoked conditionally." >&5
36075 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
36076 +Usually this means the macro was only invoked conditionally." >&2;}
36077 + { (exit 1); exit 1; }; }
36078 +fi
36079 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
36080 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
36081 +Usually this means the macro was only invoked conditionally." >&5
36082 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
36083 +Usually this means the macro was only invoked conditionally." >&2;}
36084 + { (exit 1); exit 1; }; }
36085 +fi
36086 +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36087 + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
36088 +Usually this means the macro was only invoked conditionally." >&5
36089 +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
36090 +Usually this means the macro was only invoked conditionally." >&2;}
36091 + { (exit 1); exit 1; }; }
36092 +fi
36093 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36094 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
36095 +Usually this means the macro was only invoked conditionally." >&5
36096 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
36097 +Usually this means the macro was only invoked conditionally." >&2;}
36098 + { (exit 1); exit 1; }; }
36099 +fi
36100 +if test -z "${ENABLE_TCL_TRUE}" && test -z "${ENABLE_TCL_FALSE}"; then
36101 + { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TCL\" was never defined.
36102 +Usually this means the macro was only invoked conditionally." >&5
36103 +echo "$as_me: error: conditional \"ENABLE_TCL\" was never defined.
36104 +Usually this means the macro was only invoked conditionally." >&2;}
36105 + { (exit 1); exit 1; }; }
36106 +fi
36107 +if test -z "${HAVE_LIBGTK_TRUE}" && test -z "${HAVE_LIBGTK_FALSE}"; then
36108 + { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGTK\" was never defined.
36109 +Usually this means the macro was only invoked conditionally." >&5
36110 +echo "$as_me: error: conditional \"HAVE_LIBGTK\" was never defined.
36111 +Usually this means the macro was only invoked conditionally." >&2;}
36112 + { (exit 1); exit 1; }; }
36113 +fi
36115 +: ${CONFIG_STATUS=./config.status}
36116 +ac_clean_files_save=$ac_clean_files
36117 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
36118 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
36119 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
36120 +cat >$CONFIG_STATUS <<_ACEOF
36121 +#! $SHELL
36122 +# Generated by $as_me.
36123 # Run this file to recreate the current configuration.
36124 -# This directory was configured as follows,
36125 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36126 -#
36127 -# $0 $ac_configure_args
36128 -#
36129 # Compiler output produced by configure, useful for debugging
36130 -# configure, is in ./config.log if it exists.
36131 +# configure, is in config.log if it exists.
36133 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
36134 -for ac_option
36135 +debug=false
36136 +ac_cs_recheck=false
36137 +ac_cs_silent=false
36138 +SHELL=\${CONFIG_SHELL-$SHELL}
36139 +_ACEOF
36141 +cat >>$CONFIG_STATUS <<\_ACEOF
36142 +## --------------------- ##
36143 +## M4sh Initialization. ##
36144 +## --------------------- ##
36146 +# Be Bourne compatible
36147 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
36148 + emulate sh
36149 + NULLCMD=:
36150 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
36151 + # is contrary to our usage. Disable this feature.
36152 + alias -g '${1+"$@"}'='"$@"'
36153 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
36154 + set -o posix
36155 +fi
36156 +DUALCASE=1; export DUALCASE # for MKS sh
36158 +# Support unset when possible.
36159 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
36160 + as_unset=unset
36161 +else
36162 + as_unset=false
36163 +fi
36166 +# Work around bugs in pre-3.0 UWIN ksh.
36167 +$as_unset ENV MAIL MAILPATH
36168 +PS1='$ '
36169 +PS2='> '
36170 +PS4='+ '
36172 +# NLS nuisances.
36173 +for as_var in \
36174 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
36175 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
36176 + LC_TELEPHONE LC_TIME
36177 do
36178 - case "\$ac_option" in
36179 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36180 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
36181 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
36182 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
36183 - echo "$CONFIG_STATUS generated by autoconf version 2.13"
36184 - exit 0 ;;
36185 - -help | --help | --hel | --he | --h)
36186 - echo "\$ac_cs_usage"; exit 0 ;;
36187 - *) echo "\$ac_cs_usage"; exit 1 ;;
36188 - esac
36189 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
36190 + eval $as_var=C; export $as_var
36191 + else
36192 + $as_unset $as_var
36193 + fi
36194 done
36196 -ac_given_srcdir=$srcdir
36197 -ac_given_INSTALL="$INSTALL"
36199 -trap 'rm -fr `echo "Makefile
36200 - libstroke/Makefile \
36201 - libgstroke/Makefile \
36202 - doc/Makefile \
36203 - javastroke/Makefile \
36204 - tests/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
36205 -EOF
36206 -cat >> $CONFIG_STATUS <<EOF
36208 -# Protect against being on the right side of a sed subst in config.status.
36209 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
36210 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
36211 -$ac_vpsub
36212 -$extrasub
36213 -s%@SHELL@%$SHELL%g
36214 -s%@CFLAGS@%$CFLAGS%g
36215 -s%@CPPFLAGS@%$CPPFLAGS%g
36216 -s%@CXXFLAGS@%$CXXFLAGS%g
36217 -s%@FFLAGS@%$FFLAGS%g
36218 -s%@DEFS@%$DEFS%g
36219 -s%@LDFLAGS@%$LDFLAGS%g
36220 -s%@LIBS@%$LIBS%g
36221 -s%@exec_prefix@%$exec_prefix%g
36222 -s%@prefix@%$prefix%g
36223 -s%@program_transform_name@%$program_transform_name%g
36224 -s%@bindir@%$bindir%g
36225 -s%@sbindir@%$sbindir%g
36226 -s%@libexecdir@%$libexecdir%g
36227 -s%@datadir@%$datadir%g
36228 -s%@sysconfdir@%$sysconfdir%g
36229 -s%@sharedstatedir@%$sharedstatedir%g
36230 -s%@localstatedir@%$localstatedir%g
36231 -s%@libdir@%$libdir%g
36232 -s%@includedir@%$includedir%g
36233 -s%@oldincludedir@%$oldincludedir%g
36234 -s%@infodir@%$infodir%g
36235 -s%@mandir@%$mandir%g
36236 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
36237 -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
36238 -s%@INSTALL_DATA@%$INSTALL_DATA%g
36239 -s%@PACKAGE@%$PACKAGE%g
36240 -s%@VERSION@%$VERSION%g
36241 -s%@ACLOCAL@%$ACLOCAL%g
36242 -s%@AUTOCONF@%$AUTOCONF%g
36243 -s%@AUTOMAKE@%$AUTOMAKE%g
36244 -s%@AUTOHEADER@%$AUTOHEADER%g
36245 -s%@MAKEINFO@%$MAKEINFO%g
36246 -s%@SET_MAKE@%$SET_MAKE%g
36247 -s%@host@%$host%g
36248 -s%@host_alias@%$host_alias%g
36249 -s%@host_cpu@%$host_cpu%g
36250 -s%@host_vendor@%$host_vendor%g
36251 -s%@host_os@%$host_os%g
36252 -s%@build@%$build%g
36253 -s%@build_alias@%$build_alias%g
36254 -s%@build_cpu@%$build_cpu%g
36255 -s%@build_vendor@%$build_vendor%g
36256 -s%@build_os@%$build_os%g
36257 -s%@RANLIB@%$RANLIB%g
36258 -s%@CC@%$CC%g
36259 -s%@LD@%$LD%g
36260 -s%@NM@%$NM%g
36261 -s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
36262 -s%@LN_S@%$LN_S%g
36263 -s%@LIBTOOL@%$LIBTOOL%g
36264 -s%@DLLTOOL@%$DLLTOOL%g
36265 -s%@AS@%$AS%g
36266 -s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
36267 -s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
36268 -s%@MAINT@%$MAINT%g
36269 -s%@CPP@%$CPP%g
36270 -s%@X_CFLAGS@%$X_CFLAGS%g
36271 -s%@X_PRE_LIBS@%$X_PRE_LIBS%g
36272 -s%@X_LIBS@%$X_LIBS%g
36273 -s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
36274 -s%@ENABLE_TCL_TRUE@%$ENABLE_TCL_TRUE%g
36275 -s%@ENABLE_TCL_FALSE@%$ENABLE_TCL_FALSE%g
36276 -s%@GTK_CONFIG@%$GTK_CONFIG%g
36277 -s%@GTK_CFLAGS@%$GTK_CFLAGS%g
36278 -s%@GTK_LIBS@%$GTK_LIBS%g
36279 -s%@HAVE_LIBGTK_TRUE@%$HAVE_LIBGTK_TRUE%g
36280 -s%@HAVE_LIBGTK_FALSE@%$HAVE_LIBGTK_FALSE%g
36281 -s%@X_LDFLAGS@%$X_LDFLAGS%g
36283 -CEOF
36284 -EOF
36285 +# Required to use basename.
36286 +if expr a : '\(a\)' >/dev/null 2>&1; then
36287 + as_expr=expr
36288 +else
36289 + as_expr=false
36290 +fi
36292 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
36293 + as_basename=basename
36294 +else
36295 + as_basename=false
36296 +fi
36298 -cat >> $CONFIG_STATUS <<\EOF
36300 -# Split the substitutions into bite-sized pieces for seds with
36301 -# small command number limits, like on Digital OSF/1 and HP-UX.
36302 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
36303 -ac_file=1 # Number of current file.
36304 -ac_beg=1 # First line for current file.
36305 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
36306 -ac_more_lines=:
36307 -ac_sed_cmds=""
36308 -while $ac_more_lines; do
36309 - if test $ac_beg -gt 1; then
36310 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
36311 +# Name of the executable.
36312 +as_me=`$as_basename "$0" ||
36313 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36314 + X"$0" : 'X\(//\)$' \| \
36315 + X"$0" : 'X\(/\)$' \| \
36316 + . : '\(.\)' 2>/dev/null ||
36317 +echo X/"$0" |
36318 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
36319 + /^X\/\(\/\/\)$/{ s//\1/; q; }
36320 + /^X\/\(\/\).*/{ s//\1/; q; }
36321 + s/.*/./; q'`
36324 +# PATH needs CR, and LINENO needs CR and PATH.
36325 +# Avoid depending upon Character Ranges.
36326 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36327 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36328 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36329 +as_cr_digits='0123456789'
36330 +as_cr_alnum=$as_cr_Letters$as_cr_digits
36332 +# The user is always right.
36333 +if test "${PATH_SEPARATOR+set}" != set; then
36334 + echo "#! /bin/sh" >conf$$.sh
36335 + echo "exit 0" >>conf$$.sh
36336 + chmod +x conf$$.sh
36337 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
36338 + PATH_SEPARATOR=';'
36339 else
36340 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
36341 + PATH_SEPARATOR=:
36342 + fi
36343 + rm -f conf$$.sh
36344 +fi
36347 + as_lineno_1=$LINENO
36348 + as_lineno_2=$LINENO
36349 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36350 + test "x$as_lineno_1" != "x$as_lineno_2" &&
36351 + test "x$as_lineno_3" = "x$as_lineno_2" || {
36352 + # Find who we are. Look in the path if we contain no path at all
36353 + # relative or not.
36354 + case $0 in
36355 + *[\\/]* ) as_myself=$0 ;;
36356 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36357 +for as_dir in $PATH
36358 +do
36359 + IFS=$as_save_IFS
36360 + test -z "$as_dir" && as_dir=.
36361 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36362 +done
36364 + ;;
36365 + esac
36366 + # We did not find ourselves, most probably we were run as `sh COMMAND'
36367 + # in which case we are not to be found in the path.
36368 + if test "x$as_myself" = x; then
36369 + as_myself=$0
36370 fi
36371 - if test ! -s conftest.s$ac_file; then
36372 - ac_more_lines=false
36373 - rm -f conftest.s$ac_file
36374 + if test ! -f "$as_myself"; then
36375 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
36376 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
36377 + { (exit 1); exit 1; }; }
36378 + fi
36379 + case $CONFIG_SHELL in
36380 + '')
36381 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36382 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
36383 +do
36384 + IFS=$as_save_IFS
36385 + test -z "$as_dir" && as_dir=.
36386 + for as_base in sh bash ksh sh5; do
36387 + case $as_dir in
36388 + /*)
36389 + if ("$as_dir/$as_base" -c '
36390 + as_lineno_1=$LINENO
36391 + as_lineno_2=$LINENO
36392 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
36393 + test "x$as_lineno_1" != "x$as_lineno_2" &&
36394 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
36395 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
36396 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
36397 + CONFIG_SHELL=$as_dir/$as_base
36398 + export CONFIG_SHELL
36399 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
36400 + fi;;
36401 + esac
36402 + done
36403 +done
36404 +;;
36405 + esac
36407 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
36408 + # uniformly replaced by the line number. The first 'sed' inserts a
36409 + # line-number line before each line; the second 'sed' does the real
36410 + # work. The second script uses 'N' to pair each line-number line
36411 + # with the numbered line, and appends trailing '-' during
36412 + # substitution so that $LINENO is not a special case at line end.
36413 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
36414 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
36415 + sed '=' <$as_myself |
36416 + sed '
36417 + N
36418 + s,$,-,
36419 + : loop
36420 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
36421 + t loop
36422 + s,-$,,
36423 + s,^['$as_cr_digits']*\n,,
36424 + ' >$as_me.lineno &&
36425 + chmod +x $as_me.lineno ||
36426 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
36427 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
36428 + { (exit 1); exit 1; }; }
36430 + # Don't try to exec as it changes $[0], causing all sort of problems
36431 + # (the dirname of $[0] is not the place where we might find the
36432 + # original and so on. Autoconf is especially sensible to this).
36433 + . ./$as_me.lineno
36434 + # Exit status is that of the last command.
36435 + exit
36436 +}
36439 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
36440 + *c*,-n*) ECHO_N= ECHO_C='
36441 +' ECHO_T=' ' ;;
36442 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
36443 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
36444 +esac
36446 +if expr a : '\(a\)' >/dev/null 2>&1; then
36447 + as_expr=expr
36448 +else
36449 + as_expr=false
36450 +fi
36452 +rm -f conf$$ conf$$.exe conf$$.file
36453 +echo >conf$$.file
36454 +if ln -s conf$$.file conf$$ 2>/dev/null; then
36455 + # We could just check for DJGPP; but this test a) works b) is more generic
36456 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
36457 + if test -f conf$$.exe; then
36458 + # Don't use ln at all; we don't have any links
36459 + as_ln_s='cp -p'
36460 else
36461 - if test -z "$ac_sed_cmds"; then
36462 - ac_sed_cmds="sed -f conftest.s$ac_file"
36463 - else
36464 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
36465 - fi
36466 - ac_file=`expr $ac_file + 1`
36467 - ac_beg=$ac_end
36468 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
36469 + as_ln_s='ln -s'
36470 fi
36471 +elif ln conf$$.file conf$$ 2>/dev/null; then
36472 + as_ln_s=ln
36473 +else
36474 + as_ln_s='cp -p'
36475 +fi
36476 +rm -f conf$$ conf$$.exe conf$$.file
36478 +if mkdir -p . 2>/dev/null; then
36479 + as_mkdir_p=:
36480 +else
36481 + test -d ./-p && rmdir ./-p
36482 + as_mkdir_p=false
36483 +fi
36485 +as_executable_p="test -f"
36487 +# Sed expression to map a string onto a valid CPP name.
36488 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36490 +# Sed expression to map a string onto a valid variable name.
36491 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36494 +# IFS
36495 +# We need space, tab and new line, in precisely that order.
36496 +as_nl='
36497 +'
36498 +IFS=" $as_nl"
36500 +# CDPATH.
36501 +$as_unset CDPATH
36503 +exec 6>&1
36505 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
36506 +# report actual input values of CONFIG_FILES etc. instead of their
36507 +# values after options handling. Logging --version etc. is OK.
36508 +exec 5>>config.log
36509 +{
36510 + echo
36511 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36512 +## Running $as_me. ##
36513 +_ASBOX
36514 +} >&5
36515 +cat >&5 <<_CSEOF
36517 +This file was extended by $as_me, which was
36518 +generated by GNU Autoconf 2.58. Invocation command line was
36520 + CONFIG_FILES = $CONFIG_FILES
36521 + CONFIG_HEADERS = $CONFIG_HEADERS
36522 + CONFIG_LINKS = $CONFIG_LINKS
36523 + CONFIG_COMMANDS = $CONFIG_COMMANDS
36524 + $ $0 $@
36526 +_CSEOF
36527 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
36528 +echo >&5
36529 +_ACEOF
36531 +# Files that config.status was made for.
36532 +if test -n "$ac_config_files"; then
36533 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
36534 +fi
36536 +if test -n "$ac_config_headers"; then
36537 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
36538 +fi
36540 +if test -n "$ac_config_links"; then
36541 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
36542 +fi
36544 +if test -n "$ac_config_commands"; then
36545 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
36546 +fi
36548 +cat >>$CONFIG_STATUS <<\_ACEOF
36550 +ac_cs_usage="\
36551 +\`$as_me' instantiates files from templates according to the
36552 +current configuration.
36554 +Usage: $0 [OPTIONS] [FILE]...
36556 + -h, --help print this help, then exit
36557 + -V, --version print version number, then exit
36558 + -q, --quiet do not print progress messages
36559 + -d, --debug don't remove temporary files
36560 + --recheck update $as_me by reconfiguring in the same conditions
36561 + --file=FILE[:TEMPLATE]
36562 + instantiate the configuration file FILE
36563 + --header=FILE[:TEMPLATE]
36564 + instantiate the configuration header FILE
36566 +Configuration files:
36567 +$config_files
36569 +Configuration headers:
36570 +$config_headers
36572 +Configuration commands:
36573 +$config_commands
36575 +Report bugs to <bug-autoconf@gnu.org>."
36576 +_ACEOF
36578 +cat >>$CONFIG_STATUS <<_ACEOF
36579 +ac_cs_version="\\
36580 +config.status
36581 +configured by $0, generated by GNU Autoconf 2.58,
36582 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
36584 +Copyright (C) 2003 Free Software Foundation, Inc.
36585 +This config.status script is free software; the Free Software Foundation
36586 +gives unlimited permission to copy, distribute and modify it."
36587 +srcdir=$srcdir
36588 +INSTALL="$INSTALL"
36589 +_ACEOF
36591 +cat >>$CONFIG_STATUS <<\_ACEOF
36592 +# If no file are specified by the user, then we need to provide default
36593 +# value. By we need to know if files were specified by the user.
36594 +ac_need_defaults=:
36595 +while test $# != 0
36596 +do
36597 + case $1 in
36598 + --*=*)
36599 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
36600 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
36601 + ac_shift=:
36602 + ;;
36603 + -*)
36604 + ac_option=$1
36605 + ac_optarg=$2
36606 + ac_shift=shift
36607 + ;;
36608 + *) # This is not an option, so the user has probably given explicit
36609 + # arguments.
36610 + ac_option=$1
36611 + ac_need_defaults=false;;
36612 + esac
36614 + case $ac_option in
36615 + # Handling of the options.
36616 +_ACEOF
36617 +cat >>$CONFIG_STATUS <<\_ACEOF
36618 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36619 + ac_cs_recheck=: ;;
36620 + --version | --vers* | -V )
36621 + echo "$ac_cs_version"; exit 0 ;;
36622 + --he | --h)
36623 + # Conflict between --help and --header
36624 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
36625 +Try \`$0 --help' for more information." >&5
36626 +echo "$as_me: error: ambiguous option: $1
36627 +Try \`$0 --help' for more information." >&2;}
36628 + { (exit 1); exit 1; }; };;
36629 + --help | --hel | -h )
36630 + echo "$ac_cs_usage"; exit 0 ;;
36631 + --debug | --d* | -d )
36632 + debug=: ;;
36633 + --file | --fil | --fi | --f )
36634 + $ac_shift
36635 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
36636 + ac_need_defaults=false;;
36637 + --header | --heade | --head | --hea )
36638 + $ac_shift
36639 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
36640 + ac_need_defaults=false;;
36641 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36642 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
36643 + ac_cs_silent=: ;;
36645 + # This is an error.
36646 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
36647 +Try \`$0 --help' for more information." >&5
36648 +echo "$as_me: error: unrecognized option: $1
36649 +Try \`$0 --help' for more information." >&2;}
36650 + { (exit 1); exit 1; }; } ;;
36652 + *) ac_config_targets="$ac_config_targets $1" ;;
36654 + esac
36655 + shift
36656 done
36657 -if test -z "$ac_sed_cmds"; then
36658 - ac_sed_cmds=cat
36660 +ac_configure_extra_args=
36662 +if $ac_cs_silent; then
36663 + exec 6>/dev/null
36664 + ac_configure_extra_args="$ac_configure_extra_args --silent"
36665 +fi
36667 +_ACEOF
36668 +cat >>$CONFIG_STATUS <<_ACEOF
36669 +if \$ac_cs_recheck; then
36670 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
36671 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36672 fi
36673 -EOF
36675 -cat >> $CONFIG_STATUS <<EOF
36676 +_ACEOF
36678 -CONFIG_FILES=\${CONFIG_FILES-"Makefile
36679 - libstroke/Makefile \
36680 - libgstroke/Makefile \
36681 - doc/Makefile \
36682 - javastroke/Makefile \
36683 - tests/Makefile "}
36684 -EOF
36685 -cat >> $CONFIG_STATUS <<\EOF
36686 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
36687 +cat >>$CONFIG_STATUS <<_ACEOF
36688 +#
36689 +# INIT-COMMANDS section.
36690 +#
36692 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36694 +_ACEOF
36698 +cat >>$CONFIG_STATUS <<\_ACEOF
36699 +for ac_config_target in $ac_config_targets
36700 +do
36701 + case "$ac_config_target" in
36702 + # Handling of arguments.
36703 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36704 + "libstroke/Makefile" ) CONFIG_FILES="$CONFIG_FILES libstroke/Makefile" ;;
36705 + "libgstroke/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgstroke/Makefile" ;;
36706 + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
36707 + "javastroke/Makefile" ) CONFIG_FILES="$CONFIG_FILES javastroke/Makefile" ;;
36708 + "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
36709 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36710 + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
36711 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
36712 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
36713 + { (exit 1); exit 1; }; };;
36714 + esac
36715 +done
36717 +# If the user did not use the arguments to specify the items to instantiate,
36718 +# then the envvar interface is used. Set only those that are not.
36719 +# We use the long form for the default assignment because of an extremely
36720 +# bizarre bug on SunOS 4.1.3.
36721 +if $ac_need_defaults; then
36722 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36723 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36724 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36725 +fi
36727 +# Have a temporary directory for convenience. Make it in the build tree
36728 +# simply because there is no reason to put it here, and in addition,
36729 +# creating and moving files from /tmp can sometimes cause problems.
36730 +# Create a temporary directory, and hook for its removal unless debugging.
36731 +$debug ||
36732 +{
36733 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
36734 + trap '{ (exit 1); exit 1; }' 1 2 13 15
36735 +}
36737 +# Create a (secure) tmp directory for tmp files.
36739 +{
36740 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
36741 + test -n "$tmp" && test -d "$tmp"
36742 +} ||
36743 +{
36744 + tmp=./confstat$$-$RANDOM
36745 + (umask 077 && mkdir $tmp)
36746 +} ||
36747 +{
36748 + echo "$me: cannot create a temporary directory in ." >&2
36749 + { (exit 1); exit 1; }
36750 +}
36752 +_ACEOF
36754 +cat >>$CONFIG_STATUS <<_ACEOF
36756 +#
36757 +# CONFIG_FILES section.
36758 +#
36760 +# No need to generate the scripts if there are no CONFIG_FILES.
36761 +# This happens for instance when ./config.status config.h
36762 +if test -n "\$CONFIG_FILES"; then
36763 + # Protect against being on the right side of a sed subst in config.status.
36764 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
36765 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
36766 +s,@SHELL@,$SHELL,;t t
36767 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
36768 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
36769 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
36770 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
36771 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
36772 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
36773 +s,@exec_prefix@,$exec_prefix,;t t
36774 +s,@prefix@,$prefix,;t t
36775 +s,@program_transform_name@,$program_transform_name,;t t
36776 +s,@bindir@,$bindir,;t t
36777 +s,@sbindir@,$sbindir,;t t
36778 +s,@libexecdir@,$libexecdir,;t t
36779 +s,@datadir@,$datadir,;t t
36780 +s,@sysconfdir@,$sysconfdir,;t t
36781 +s,@sharedstatedir@,$sharedstatedir,;t t
36782 +s,@localstatedir@,$localstatedir,;t t
36783 +s,@libdir@,$libdir,;t t
36784 +s,@includedir@,$includedir,;t t
36785 +s,@oldincludedir@,$oldincludedir,;t t
36786 +s,@infodir@,$infodir,;t t
36787 +s,@mandir@,$mandir,;t t
36788 +s,@build_alias@,$build_alias,;t t
36789 +s,@host_alias@,$host_alias,;t t
36790 +s,@target_alias@,$target_alias,;t t
36791 +s,@DEFS@,$DEFS,;t t
36792 +s,@ECHO_C@,$ECHO_C,;t t
36793 +s,@ECHO_N@,$ECHO_N,;t t
36794 +s,@ECHO_T@,$ECHO_T,;t t
36795 +s,@LIBS@,$LIBS,;t t
36796 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
36797 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
36798 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
36799 +s,@CYGPATH_W@,$CYGPATH_W,;t t
36800 +s,@PACKAGE@,$PACKAGE,;t t
36801 +s,@VERSION@,$VERSION,;t t
36802 +s,@ACLOCAL@,$ACLOCAL,;t t
36803 +s,@AUTOCONF@,$AUTOCONF,;t t
36804 +s,@AUTOMAKE@,$AUTOMAKE,;t t
36805 +s,@AUTOHEADER@,$AUTOHEADER,;t t
36806 +s,@MAKEINFO@,$MAKEINFO,;t t
36807 +s,@AMTAR@,$AMTAR,;t t
36808 +s,@install_sh@,$install_sh,;t t
36809 +s,@STRIP@,$STRIP,;t t
36810 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
36811 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
36812 +s,@AWK@,$AWK,;t t
36813 +s,@SET_MAKE@,$SET_MAKE,;t t
36814 +s,@am__leading_dot@,$am__leading_dot,;t t
36815 +s,@build@,$build,;t t
36816 +s,@build_cpu@,$build_cpu,;t t
36817 +s,@build_vendor@,$build_vendor,;t t
36818 +s,@build_os@,$build_os,;t t
36819 +s,@host@,$host,;t t
36820 +s,@host_cpu@,$host_cpu,;t t
36821 +s,@host_vendor@,$host_vendor,;t t
36822 +s,@host_os@,$host_os,;t t
36823 +s,@CC@,$CC,;t t
36824 +s,@CFLAGS@,$CFLAGS,;t t
36825 +s,@LDFLAGS@,$LDFLAGS,;t t
36826 +s,@CPPFLAGS@,$CPPFLAGS,;t t
36827 +s,@ac_ct_CC@,$ac_ct_CC,;t t
36828 +s,@EXEEXT@,$EXEEXT,;t t
36829 +s,@OBJEXT@,$OBJEXT,;t t
36830 +s,@DEPDIR@,$DEPDIR,;t t
36831 +s,@am__include@,$am__include,;t t
36832 +s,@am__quote@,$am__quote,;t t
36833 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
36834 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
36835 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
36836 +s,@CCDEPMODE@,$CCDEPMODE,;t t
36837 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
36838 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
36839 +s,@EGREP@,$EGREP,;t t
36840 +s,@LN_S@,$LN_S,;t t
36841 +s,@ECHO@,$ECHO,;t t
36842 +s,@AR@,$AR,;t t
36843 +s,@ac_ct_AR@,$ac_ct_AR,;t t
36844 +s,@RANLIB@,$RANLIB,;t t
36845 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
36846 +s,@CPP@,$CPP,;t t
36847 +s,@CXX@,$CXX,;t t
36848 +s,@CXXFLAGS@,$CXXFLAGS,;t t
36849 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
36850 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
36851 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
36852 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
36853 +s,@CXXCPP@,$CXXCPP,;t t
36854 +s,@F77@,$F77,;t t
36855 +s,@FFLAGS@,$FFLAGS,;t t
36856 +s,@ac_ct_F77@,$ac_ct_F77,;t t
36857 +s,@LIBTOOL@,$LIBTOOL,;t t
36858 +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
36859 +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
36860 +s,@MAINT@,$MAINT,;t t
36861 +s,@X_CFLAGS@,$X_CFLAGS,;t t
36862 +s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
36863 +s,@X_LIBS@,$X_LIBS,;t t
36864 +s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
36865 +s,@ENABLE_TCL_TRUE@,$ENABLE_TCL_TRUE,;t t
36866 +s,@ENABLE_TCL_FALSE@,$ENABLE_TCL_FALSE,;t t
36867 +s,@GTK_CONFIG@,$GTK_CONFIG,;t t
36868 +s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
36869 +s,@GTK_LIBS@,$GTK_LIBS,;t t
36870 +s,@HAVE_LIBGTK_TRUE@,$HAVE_LIBGTK_TRUE,;t t
36871 +s,@HAVE_LIBGTK_FALSE@,$HAVE_LIBGTK_FALSE,;t t
36872 +s,@X_LDFLAGS@,$X_LDFLAGS,;t t
36873 +s,@LIBOBJS@,$LIBOBJS,;t t
36874 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
36875 +CEOF
36877 +_ACEOF
36879 + cat >>$CONFIG_STATUS <<\_ACEOF
36880 + # Split the substitutions into bite-sized pieces for seds with
36881 + # small command number limits, like on Digital OSF/1 and HP-UX.
36882 + ac_max_sed_lines=48
36883 + ac_sed_frag=1 # Number of current file.
36884 + ac_beg=1 # First line for current file.
36885 + ac_end=$ac_max_sed_lines # Line after last line for current file.
36886 + ac_more_lines=:
36887 + ac_sed_cmds=
36888 + while $ac_more_lines; do
36889 + if test $ac_beg -gt 1; then
36890 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36891 + else
36892 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
36893 + fi
36894 + if test ! -s $tmp/subs.frag; then
36895 + ac_more_lines=false
36896 + else
36897 + # The purpose of the label and of the branching condition is to
36898 + # speed up the sed processing (if there are no `@' at all, there
36899 + # is no need to browse any of the substitutions).
36900 + # These are the two extra sed commands mentioned above.
36901 + (echo ':t
36902 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
36903 + if test -z "$ac_sed_cmds"; then
36904 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
36905 + else
36906 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
36907 + fi
36908 + ac_sed_frag=`expr $ac_sed_frag + 1`
36909 + ac_beg=$ac_end
36910 + ac_end=`expr $ac_end + $ac_max_sed_lines`
36911 + fi
36912 + done
36913 + if test -z "$ac_sed_cmds"; then
36914 + ac_sed_cmds=cat
36915 + fi
36916 +fi # test -n "$CONFIG_FILES"
36918 +_ACEOF
36919 +cat >>$CONFIG_STATUS <<\_ACEOF
36920 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
36921 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
36922 - case "$ac_file" in
36923 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
36924 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
36925 - *) ac_file_in="${ac_file}.in" ;;
36926 - esac
36928 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
36930 - # Remove last slash and all that follows it. Not all systems have dirname.
36931 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
36932 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
36933 - # The file is in a subdirectory.
36934 - test ! -d "$ac_dir" && mkdir "$ac_dir"
36935 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
36936 - # A "../" for each directory in $ac_dir_suffix.
36937 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
36938 - else
36939 - ac_dir_suffix= ac_dots=
36940 - fi
36942 - case "$ac_given_srcdir" in
36943 - .) srcdir=.
36944 - if test -z "$ac_dots"; then top_srcdir=.
36945 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
36946 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
36947 + case $ac_file in
36948 + - | *:- | *:-:* ) # input from stdin
36949 + cat >$tmp/stdin
36950 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36951 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36952 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
36953 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
36954 + * ) ac_file_in=$ac_file.in ;;
36955 + esac
36957 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
36958 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
36959 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36960 + X"$ac_file" : 'X\(//\)[^/]' \| \
36961 + X"$ac_file" : 'X\(//\)$' \| \
36962 + X"$ac_file" : 'X\(/\)' \| \
36963 + . : '\(.\)' 2>/dev/null ||
36964 +echo X"$ac_file" |
36965 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36966 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36967 + /^X\(\/\/\)$/{ s//\1/; q; }
36968 + /^X\(\/\).*/{ s//\1/; q; }
36969 + s/.*/./; q'`
36970 + { if $as_mkdir_p; then
36971 + mkdir -p "$ac_dir"
36972 + else
36973 + as_dir="$ac_dir"
36974 + as_dirs=
36975 + while test ! -d "$as_dir"; do
36976 + as_dirs="$as_dir $as_dirs"
36977 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
36978 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36979 + X"$as_dir" : 'X\(//\)[^/]' \| \
36980 + X"$as_dir" : 'X\(//\)$' \| \
36981 + X"$as_dir" : 'X\(/\)' \| \
36982 + . : '\(.\)' 2>/dev/null ||
36983 +echo X"$as_dir" |
36984 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
36985 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
36986 + /^X\(\/\/\)$/{ s//\1/; q; }
36987 + /^X\(\/\).*/{ s//\1/; q; }
36988 + s/.*/./; q'`
36989 + done
36990 + test ! -n "$as_dirs" || mkdir $as_dirs
36991 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
36992 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
36993 + { (exit 1); exit 1; }; }; }
36995 + ac_builddir=.
36997 +if test "$ac_dir" != .; then
36998 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
36999 + # A "../" for each directory in $ac_dir_suffix.
37000 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37001 +else
37002 + ac_dir_suffix= ac_top_builddir=
37003 +fi
37005 +case $srcdir in
37006 + .) # No --srcdir option. We are building in place.
37007 + ac_srcdir=.
37008 + if test -z "$ac_top_builddir"; then
37009 + ac_top_srcdir=.
37010 + else
37011 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37012 + fi ;;
37013 + [\\/]* | ?:[\\/]* ) # Absolute path.
37014 + ac_srcdir=$srcdir$ac_dir_suffix;
37015 + ac_top_srcdir=$srcdir ;;
37016 *) # Relative path.
37017 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
37018 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
37019 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37020 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
37021 +esac
37022 +case "$ac_dir" in
37023 +.) ac_abs_builddir=$ac_builddir;;
37024 +*)
37025 + case $ac_builddir in
37026 + .) ac_abs_builddir="$ac_dir";;
37027 + [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
37028 + *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
37029 + esac;;
37030 +esac
37031 +case "$ac_dir" in
37032 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
37033 +*)
37034 + case ${ac_top_builddir}. in
37035 + .) ac_abs_top_builddir="$ac_dir";;
37036 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
37037 + *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
37038 + esac;;
37039 +esac
37040 +case "$ac_dir" in
37041 +.) ac_abs_srcdir=$ac_srcdir;;
37042 +*)
37043 + case $ac_srcdir in
37044 + .) ac_abs_srcdir="$ac_dir";;
37045 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
37046 + *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
37047 + esac;;
37048 +esac
37049 +case "$ac_dir" in
37050 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
37051 +*)
37052 + case $ac_top_srcdir in
37053 + .) ac_abs_top_srcdir="$ac_dir";;
37054 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
37055 + *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
37056 + esac;;
37057 +esac
37060 + case $INSTALL in
37061 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37062 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
37063 esac
37065 - case "$ac_given_INSTALL" in
37066 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
37067 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
37068 - esac
37070 - echo creating "$ac_file"
37071 - rm -f "$ac_file"
37072 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
37073 - case "$ac_file" in
37074 - *Makefile*) ac_comsub="1i\\
37075 -# $configure_input" ;;
37076 - *) ac_comsub= ;;
37077 - esac
37079 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
37080 - sed -e "$ac_comsub
37081 -s%@configure_input@%$configure_input%g
37082 -s%@srcdir@%$srcdir%g
37083 -s%@top_srcdir@%$top_srcdir%g
37084 -s%@INSTALL@%$INSTALL%g
37085 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
37086 -fi; done
37087 -rm -f conftest.s*
37088 + if test x"$ac_file" != x-; then
37089 + { echo "$as_me:$LINENO: creating $ac_file" >&5
37090 +echo "$as_me: creating $ac_file" >&6;}
37091 + rm -f "$ac_file"
37092 + fi
37093 + # Let's still pretend it is `configure' which instantiates (i.e., don't
37094 + # use $as_me), people would be surprised to read:
37095 + # /* config.h. Generated by config.status. */
37096 + if test x"$ac_file" = x-; then
37097 + configure_input=
37098 + else
37099 + configure_input="$ac_file. "
37100 + fi
37101 + configure_input=$configure_input"Generated from `echo $ac_file_in |
37102 + sed 's,.*/,,'` by configure."
37104 + # First look for the input files in the build tree, otherwise in the
37105 + # src tree.
37106 + ac_file_inputs=`IFS=:
37107 + for f in $ac_file_in; do
37108 + case $f in
37109 + -) echo $tmp/stdin ;;
37110 + [\\/$]*)
37111 + # Absolute (can't be DOS-style, as IFS=:)
37112 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37113 +echo "$as_me: error: cannot find input file: $f" >&2;}
37114 + { (exit 1); exit 1; }; }
37115 + echo "$f";;
37116 + *) # Relative
37117 + if test -f "$f"; then
37118 + # Build tree
37119 + echo "$f"
37120 + elif test -f "$srcdir/$f"; then
37121 + # Source tree
37122 + echo "$srcdir/$f"
37123 + else
37124 + # /dev/null tree
37125 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37126 +echo "$as_me: error: cannot find input file: $f" >&2;}
37127 + { (exit 1); exit 1; }; }
37128 + fi;;
37129 + esac
37130 + done` || { (exit 1); exit 1; }
37131 +_ACEOF
37132 +cat >>$CONFIG_STATUS <<_ACEOF
37133 + sed "$ac_vpsub
37134 +$extrasub
37135 +_ACEOF
37136 +cat >>$CONFIG_STATUS <<\_ACEOF
37137 +:t
37138 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37139 +s,@configure_input@,$configure_input,;t t
37140 +s,@srcdir@,$ac_srcdir,;t t
37141 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
37142 +s,@top_srcdir@,$ac_top_srcdir,;t t
37143 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
37144 +s,@builddir@,$ac_builddir,;t t
37145 +s,@abs_builddir@,$ac_abs_builddir,;t t
37146 +s,@top_builddir@,$ac_top_builddir,;t t
37147 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
37148 +s,@INSTALL@,$ac_INSTALL,;t t
37149 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
37150 + rm -f $tmp/stdin
37151 + if test x"$ac_file" != x-; then
37152 + mv $tmp/out $ac_file
37153 + else
37154 + cat $tmp/out
37155 + rm -f $tmp/out
37156 + fi
37158 +done
37159 +_ACEOF
37160 +cat >>$CONFIG_STATUS <<\_ACEOF
37162 +#
37163 +# CONFIG_HEADER section.
37164 +#
37166 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
37167 # NAME is the cpp macro being defined and VALUE is the value it is being given.
37169 # ac_d sets the value in "#define NAME VALUE" lines.
37170 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37171 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
37172 -ac_dC='\3'
37173 -ac_dD='%g'
37174 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
37175 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
37176 -ac_uB='\([ ]\)%\1#\2define\3'
37177 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
37178 +ac_dB='[ ].*$,\1#\2'
37179 +ac_dC=' '
37180 +ac_dD=',;t'
37181 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
37182 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
37183 +ac_uB='$,\1#\2define\3'
37184 ac_uC=' '
37185 -ac_uD='\4%g'
37186 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
37187 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
37188 -ac_eB='$%\1#\2define\3'
37189 -ac_eC=' '
37190 -ac_eD='%g'
37191 +ac_uD=',;t'
37193 -if test "${CONFIG_HEADERS+set}" != set; then
37194 -EOF
37195 -cat >> $CONFIG_STATUS <<EOF
37196 - CONFIG_HEADERS="config.h"
37197 -EOF
37198 -cat >> $CONFIG_STATUS <<\EOF
37199 -fi
37200 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
37201 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
37202 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
37203 - case "$ac_file" in
37204 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
37205 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
37206 - *) ac_file_in="${ac_file}.in" ;;
37207 - esac
37209 - echo creating $ac_file
37211 - rm -f conftest.frag conftest.in conftest.out
37212 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
37213 - cat $ac_file_inputs > conftest.in
37214 + case $ac_file in
37215 + - | *:- | *:-:* ) # input from stdin
37216 + cat >$tmp/stdin
37217 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37218 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37219 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
37220 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
37221 + * ) ac_file_in=$ac_file.in ;;
37222 + esac
37224 -EOF
37225 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
37226 +echo "$as_me: creating $ac_file" >&6;}
37228 -# Transform confdefs.h into a sed script conftest.vals that substitutes
37229 -# the proper values into config.h.in to produce config.h. And first:
37230 -# Protect against being on the right side of a sed subst in config.status.
37231 -# Protect against being in an unquoted here document in config.status.
37232 -rm -f conftest.vals
37233 -cat > conftest.hdr <<\EOF
37234 -s/[\\&%]/\\&/g
37235 -s%[\\$`]%\\&%g
37236 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
37237 -s%ac_d%ac_u%gp
37238 -s%ac_u%ac_e%gp
37239 -EOF
37240 -sed -n -f conftest.hdr confdefs.h > conftest.vals
37241 -rm -f conftest.hdr
37242 + # First look for the input files in the build tree, otherwise in the
37243 + # src tree.
37244 + ac_file_inputs=`IFS=:
37245 + for f in $ac_file_in; do
37246 + case $f in
37247 + -) echo $tmp/stdin ;;
37248 + [\\/$]*)
37249 + # Absolute (can't be DOS-style, as IFS=:)
37250 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37251 +echo "$as_me: error: cannot find input file: $f" >&2;}
37252 + { (exit 1); exit 1; }; }
37253 + # Do quote $f, to prevent DOS paths from being IFS'd.
37254 + echo "$f";;
37255 + *) # Relative
37256 + if test -f "$f"; then
37257 + # Build tree
37258 + echo "$f"
37259 + elif test -f "$srcdir/$f"; then
37260 + # Source tree
37261 + echo "$srcdir/$f"
37262 + else
37263 + # /dev/null tree
37264 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
37265 +echo "$as_me: error: cannot find input file: $f" >&2;}
37266 + { (exit 1); exit 1; }; }
37267 + fi;;
37268 + esac
37269 + done` || { (exit 1); exit 1; }
37270 + # Remove the trailing spaces.
37271 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
37273 +_ACEOF
37275 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
37276 +# `conftest.undefs', that substitutes the proper values into
37277 +# config.h.in to produce config.h. The first handles `#define'
37278 +# templates, and the second `#undef' templates.
37279 +# And first: Protect against being on the right side of a sed subst in
37280 +# config.status. Protect against being in an unquoted here document
37281 +# in config.status.
37282 +rm -f conftest.defines conftest.undefs
37283 +# Using a here document instead of a string reduces the quoting nightmare.
37284 +# Putting comments in sed scripts is not portable.
37285 +#
37286 +# `end' is used to avoid that the second main sed command (meant for
37287 +# 0-ary CPP macros) applies to n-ary macro definitions.
37288 +# See the Autoconf documentation for `clear'.
37289 +cat >confdef2sed.sed <<\_ACEOF
37290 +s/[\\&,]/\\&/g
37291 +s,[\\$`],\\&,g
37292 +t clear
37293 +: clear
37294 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
37295 +t end
37296 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
37297 +: end
37298 +_ACEOF
37299 +# If some macros were called several times there might be several times
37300 +# the same #defines, which is useless. Nevertheless, we may not want to
37301 +# sort them, since we want the *last* AC-DEFINE to be honored.
37302 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
37303 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
37304 +rm -f confdef2sed.sed
37306 # This sed command replaces #undef with comments. This is necessary, for
37307 # example, in the case of _POSIX_SOURCE, which is predefined and required
37308 # on some systems where configure will not decide to define it.
37309 -cat >> conftest.vals <<\EOF
37310 -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
37311 -EOF
37313 -# Break up conftest.vals because some shells have a limit on
37314 -# the size of here documents, and old seds have small limits too.
37316 +cat >>conftest.undefs <<\_ACEOF
37317 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
37318 +_ACEOF
37320 +# Break up conftest.defines because some shells have a limit on the size
37321 +# of here documents, and old seds have small limits too (100 cmds).
37322 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
37323 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
37324 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
37325 +echo ' :' >>$CONFIG_STATUS
37326 rm -f conftest.tail
37327 -while :
37328 +while grep . conftest.defines >/dev/null
37329 do
37330 - ac_lines=`grep -c . conftest.vals`
37331 - # grep -c gives empty output for an empty file on some AIX systems.
37332 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
37333 - # Write a limited-size here document to conftest.frag.
37334 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
37335 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
37336 + # Write a limited-size here document to $tmp/defines.sed.
37337 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
37338 + # Speed up: don't consider the non `#define' lines.
37339 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
37340 + # Work around the forget-to-reset-the-flag bug.
37341 + echo 't clr' >>$CONFIG_STATUS
37342 + echo ': clr' >>$CONFIG_STATUS
37343 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
37344 echo 'CEOF
37345 - sed -f conftest.frag conftest.in > conftest.out
37346 - rm -f conftest.in
37347 - mv conftest.out conftest.in
37348 -' >> $CONFIG_STATUS
37349 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
37350 - rm -f conftest.vals
37351 - mv conftest.tail conftest.vals
37352 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
37353 + rm -f $tmp/in
37354 + mv $tmp/out $tmp/in
37355 +' >>$CONFIG_STATUS
37356 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
37357 + rm -f conftest.defines
37358 + mv conftest.tail conftest.defines
37359 done
37360 -rm -f conftest.vals
37361 +rm -f conftest.defines
37362 +echo ' fi # grep' >>$CONFIG_STATUS
37363 +echo >>$CONFIG_STATUS
37365 +# Break up conftest.undefs because some shells have a limit on the size
37366 +# of here documents, and old seds have small limits too (100 cmds).
37367 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
37368 +rm -f conftest.tail
37369 +while grep . conftest.undefs >/dev/null
37370 +do
37371 + # Write a limited-size here document to $tmp/undefs.sed.
37372 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
37373 + # Speed up: don't consider the non `#undef'
37374 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
37375 + # Work around the forget-to-reset-the-flag bug.
37376 + echo 't clr' >>$CONFIG_STATUS
37377 + echo ': clr' >>$CONFIG_STATUS
37378 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
37379 + echo 'CEOF
37380 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
37381 + rm -f $tmp/in
37382 + mv $tmp/out $tmp/in
37383 +' >>$CONFIG_STATUS
37384 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
37385 + rm -f conftest.undefs
37386 + mv conftest.tail conftest.undefs
37387 +done
37388 +rm -f conftest.undefs
37390 -cat >> $CONFIG_STATUS <<\EOF
37391 - rm -f conftest.frag conftest.h
37392 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
37393 - cat conftest.in >> conftest.h
37394 - rm -f conftest.in
37395 - if cmp -s $ac_file conftest.h 2>/dev/null; then
37396 - echo "$ac_file is unchanged"
37397 - rm -f conftest.h
37398 +cat >>$CONFIG_STATUS <<\_ACEOF
37399 + # Let's still pretend it is `configure' which instantiates (i.e., don't
37400 + # use $as_me), people would be surprised to read:
37401 + # /* config.h. Generated by config.status. */
37402 + if test x"$ac_file" = x-; then
37403 + echo "/* Generated by configure. */" >$tmp/config.h
37404 else
37405 - # Remove last slash and all that follows it. Not all systems have dirname.
37406 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
37407 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
37408 - # The file is in a subdirectory.
37409 - test ! -d "$ac_dir" && mkdir "$ac_dir"
37410 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
37411 + fi
37412 + cat $tmp/in >>$tmp/config.h
37413 + rm -f $tmp/in
37414 + if test x"$ac_file" != x-; then
37415 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
37416 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
37417 +echo "$as_me: $ac_file is unchanged" >&6;}
37418 + else
37419 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
37420 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37421 + X"$ac_file" : 'X\(//\)[^/]' \| \
37422 + X"$ac_file" : 'X\(//\)$' \| \
37423 + X"$ac_file" : 'X\(/\)' \| \
37424 + . : '\(.\)' 2>/dev/null ||
37425 +echo X"$ac_file" |
37426 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37427 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37428 + /^X\(\/\/\)$/{ s//\1/; q; }
37429 + /^X\(\/\).*/{ s//\1/; q; }
37430 + s/.*/./; q'`
37431 + { if $as_mkdir_p; then
37432 + mkdir -p "$ac_dir"
37433 + else
37434 + as_dir="$ac_dir"
37435 + as_dirs=
37436 + while test ! -d "$as_dir"; do
37437 + as_dirs="$as_dir $as_dirs"
37438 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
37439 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37440 + X"$as_dir" : 'X\(//\)[^/]' \| \
37441 + X"$as_dir" : 'X\(//\)$' \| \
37442 + X"$as_dir" : 'X\(/\)' \| \
37443 + . : '\(.\)' 2>/dev/null ||
37444 +echo X"$as_dir" |
37445 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37446 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37447 + /^X\(\/\/\)$/{ s//\1/; q; }
37448 + /^X\(\/\).*/{ s//\1/; q; }
37449 + s/.*/./; q'`
37450 + done
37451 + test ! -n "$as_dirs" || mkdir $as_dirs
37452 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37453 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37454 + { (exit 1); exit 1; }; }; }
37456 + rm -f $ac_file
37457 + mv $tmp/config.h $ac_file
37458 fi
37459 - rm -f $ac_file
37460 - mv conftest.h $ac_file
37461 + else
37462 + cat $tmp/config.h
37463 + rm -f $tmp/config.h
37464 fi
37465 -fi; done
37466 +# Compute $ac_file's index in $config_headers.
37467 +_am_stamp_count=1
37468 +for _am_header in $config_headers :; do
37469 + case $_am_header in
37470 + $ac_file | $ac_file:* )
37471 + break ;;
37472 + * )
37473 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37474 + esac
37475 +done
37476 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
37477 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37478 + X$ac_file : 'X\(//\)[^/]' \| \
37479 + X$ac_file : 'X\(//\)$' \| \
37480 + X$ac_file : 'X\(/\)' \| \
37481 + . : '\(.\)' 2>/dev/null ||
37482 +echo X$ac_file |
37483 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37484 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37485 + /^X\(\/\/\)$/{ s//\1/; q; }
37486 + /^X\(\/\).*/{ s//\1/; q; }
37487 + s/.*/./; q'`/stamp-h$_am_stamp_count
37488 +done
37489 +_ACEOF
37490 +cat >>$CONFIG_STATUS <<\_ACEOF
37492 -EOF
37493 -cat >> $CONFIG_STATUS <<EOF
37494 +#
37495 +# CONFIG_COMMANDS section.
37496 +#
37497 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
37498 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
37499 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
37500 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
37501 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37502 + X"$ac_dest" : 'X\(//\)[^/]' \| \
37503 + X"$ac_dest" : 'X\(//\)$' \| \
37504 + X"$ac_dest" : 'X\(/\)' \| \
37505 + . : '\(.\)' 2>/dev/null ||
37506 +echo X"$ac_dest" |
37507 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37508 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37509 + /^X\(\/\/\)$/{ s//\1/; q; }
37510 + /^X\(\/\).*/{ s//\1/; q; }
37511 + s/.*/./; q'`
37512 + { if $as_mkdir_p; then
37513 + mkdir -p "$ac_dir"
37514 + else
37515 + as_dir="$ac_dir"
37516 + as_dirs=
37517 + while test ! -d "$as_dir"; do
37518 + as_dirs="$as_dir $as_dirs"
37519 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
37520 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37521 + X"$as_dir" : 'X\(//\)[^/]' \| \
37522 + X"$as_dir" : 'X\(//\)$' \| \
37523 + X"$as_dir" : 'X\(/\)' \| \
37524 + . : '\(.\)' 2>/dev/null ||
37525 +echo X"$as_dir" |
37526 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37527 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37528 + /^X\(\/\/\)$/{ s//\1/; q; }
37529 + /^X\(\/\).*/{ s//\1/; q; }
37530 + s/.*/./; q'`
37531 + done
37532 + test ! -n "$as_dirs" || mkdir $as_dirs
37533 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
37534 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
37535 + { (exit 1); exit 1; }; }; }
37537 + ac_builddir=.
37539 +if test "$ac_dir" != .; then
37540 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
37541 + # A "../" for each directory in $ac_dir_suffix.
37542 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
37543 +else
37544 + ac_dir_suffix= ac_top_builddir=
37545 +fi
37547 +case $srcdir in
37548 + .) # No --srcdir option. We are building in place.
37549 + ac_srcdir=.
37550 + if test -z "$ac_top_builddir"; then
37551 + ac_top_srcdir=.
37552 + else
37553 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
37554 + fi ;;
37555 + [\\/]* | ?:[\\/]* ) # Absolute path.
37556 + ac_srcdir=$srcdir$ac_dir_suffix;
37557 + ac_top_srcdir=$srcdir ;;
37558 + *) # Relative path.
37559 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
37560 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
37561 +esac
37562 +case "$ac_dir" in
37563 +.) ac_abs_builddir=$ac_builddir;;
37564 +*)
37565 + case $ac_builddir in
37566 + .) ac_abs_builddir="$ac_dir";;
37567 + [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
37568 + *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
37569 + esac;;
37570 +esac
37571 +case "$ac_dir" in
37572 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
37573 +*)
37574 + case ${ac_top_builddir}. in
37575 + .) ac_abs_top_builddir="$ac_dir";;
37576 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
37577 + *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
37578 + esac;;
37579 +esac
37580 +case "$ac_dir" in
37581 +.) ac_abs_srcdir=$ac_srcdir;;
37582 +*)
37583 + case $ac_srcdir in
37584 + .) ac_abs_srcdir="$ac_dir";;
37585 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
37586 + *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
37587 + esac;;
37588 +esac
37589 +case "$ac_dir" in
37590 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
37591 +*)
37592 + case $ac_top_srcdir in
37593 + .) ac_abs_top_srcdir="$ac_dir";;
37594 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
37595 + *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
37596 + esac;;
37597 +esac
37600 -EOF
37601 -cat >> $CONFIG_STATUS <<\EOF
37602 -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
37603 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
37604 +echo "$as_me: executing $ac_dest commands" >&6;}
37605 + case $ac_dest in
37606 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
37607 + # Strip MF so we end up with the name of the file.
37608 + mf=`echo "$mf" | sed -e 's/:.*$//'`
37609 + # Check whether this is an Automake generated Makefile or not.
37610 + # We used to match only the files named `Makefile.in', but
37611 + # some people rename them; so instead we look at the file content.
37612 + # Grep'ing the first line is not enough: some people post-process
37613 + # each Makefile.in and add a new line on top of each file to say so.
37614 + # So let's grep whole file.
37615 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
37616 + dirpart=`(dirname "$mf") 2>/dev/null ||
37617 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37618 + X"$mf" : 'X\(//\)[^/]' \| \
37619 + X"$mf" : 'X\(//\)$' \| \
37620 + X"$mf" : 'X\(/\)' \| \
37621 + . : '\(.\)' 2>/dev/null ||
37622 +echo X"$mf" |
37623 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37624 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37625 + /^X\(\/\/\)$/{ s//\1/; q; }
37626 + /^X\(\/\).*/{ s//\1/; q; }
37627 + s/.*/./; q'`
37628 + else
37629 + continue
37630 + fi
37631 + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
37632 + # Extract the definition of DEP_FILES from the Makefile without
37633 + # running `make'.
37634 + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
37635 + test -z "$DEPDIR" && continue
37636 + # When using ansi2knr, U may be empty or an underscore; expand it
37637 + U=`sed -n -e '/^U = / s///p' < "$mf"`
37638 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
37639 + # We invoke sed twice because it is the simplest approach to
37640 + # changing $(DEPDIR) to its actual value in the expansion.
37641 + for file in `sed -n -e '
37642 + /^DEP_FILES = .*\\\\$/ {
37643 + s/^DEP_FILES = //
37644 + :loop
37645 + s/\\\\$//
37646 + p
37647 + n
37648 + /\\\\$/ b loop
37649 + p
37650 + }
37651 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
37652 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37653 + # Make sure the directory exists.
37654 + test -f "$dirpart/$file" && continue
37655 + fdir=`(dirname "$file") 2>/dev/null ||
37656 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37657 + X"$file" : 'X\(//\)[^/]' \| \
37658 + X"$file" : 'X\(//\)$' \| \
37659 + X"$file" : 'X\(/\)' \| \
37660 + . : '\(.\)' 2>/dev/null ||
37661 +echo X"$file" |
37662 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37663 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37664 + /^X\(\/\/\)$/{ s//\1/; q; }
37665 + /^X\(\/\).*/{ s//\1/; q; }
37666 + s/.*/./; q'`
37667 + { if $as_mkdir_p; then
37668 + mkdir -p $dirpart/$fdir
37669 + else
37670 + as_dir=$dirpart/$fdir
37671 + as_dirs=
37672 + while test ! -d "$as_dir"; do
37673 + as_dirs="$as_dir $as_dirs"
37674 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
37675 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37676 + X"$as_dir" : 'X\(//\)[^/]' \| \
37677 + X"$as_dir" : 'X\(//\)$' \| \
37678 + X"$as_dir" : 'X\(/\)' \| \
37679 + . : '\(.\)' 2>/dev/null ||
37680 +echo X"$as_dir" |
37681 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
37682 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
37683 + /^X\(\/\/\)$/{ s//\1/; q; }
37684 + /^X\(\/\).*/{ s//\1/; q; }
37685 + s/.*/./; q'`
37686 + done
37687 + test ! -n "$as_dirs" || mkdir $as_dirs
37688 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
37689 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
37690 + { (exit 1); exit 1; }; }; }
37692 -exit 0
37693 -EOF
37694 + # echo "creating $dirpart/$file"
37695 + echo '# dummy' > "$dirpart/$file"
37696 + done
37697 +done
37698 + ;;
37699 + esac
37700 +done
37701 +_ACEOF
37703 +cat >>$CONFIG_STATUS <<\_ACEOF
37705 +{ (exit 0); exit 0; }
37706 +_ACEOF
37707 chmod +x $CONFIG_STATUS
37708 -rm -fr confdefs* $ac_clean_files
37709 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
37710 +ac_clean_files=$ac_clean_files_save
37713 +# configure is writing to config.log, and then calls config.status.
37714 +# config.status does its own redirection, appending to config.log.
37715 +# Unfortunately, on DOS this fails, as config.log is still kept open
37716 +# by configure, so config.status won't be able to write to it; its
37717 +# output is simply discarded. So we exec the FD to /dev/null,
37718 +# effectively closing config.log, so it can be properly (re)opened and
37719 +# appended to by config.status. When coming back to configure, we
37720 +# need to make the FD available again.
37721 +if test "$no_create" != yes; then
37722 + ac_cs_success=:
37723 + ac_config_status_args=
37724 + test "$silent" = yes &&
37725 + ac_config_status_args="$ac_config_status_args --quiet"
37726 + exec 5>/dev/null
37727 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37728 + exec 5>>config.log
37729 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37730 + # would make configure fail if this is the last instruction.
37731 + $ac_cs_success || { (exit 1); exit 1; }
37732 +fi
37734 --- /dev/null
37735 +++ libstroke-0.5.1/depcomp
37736 @@ -0,0 +1,479 @@
37737 +#! /bin/sh
37739 +# depcomp - compile a program generating dependencies as side-effects
37740 +# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
37742 +# This program is free software; you can redistribute it and/or modify
37743 +# it under the terms of the GNU General Public License as published by
37744 +# the Free Software Foundation; either version 2, or (at your option)
37745 +# any later version.
37747 +# This program is distributed in the hope that it will be useful,
37748 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
37749 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37750 +# GNU General Public License for more details.
37752 +# You should have received a copy of the GNU General Public License
37753 +# along with this program; if not, write to the Free Software
37754 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
37755 +# 02111-1307, USA.
37757 +# As a special exception to the GNU General Public License, if you
37758 +# distribute this file as part of a program that contains a
37759 +# configuration script generated by Autoconf, you may include it under
37760 +# the same distribution terms that you use for the rest of that program.
37762 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
37764 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
37765 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
37766 + exit 1
37767 +fi
37768 +# `libtool' can also be set to `yes' or `no'.
37770 +if test -z "$depfile"; then
37771 + base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
37772 + dir=`echo "$object" | sed 's,/.*$,/,'`
37773 + if test "$dir" = "$object"; then
37774 + dir=
37775 + fi
37776 + # FIXME: should be _deps on DOS.
37777 + depfile="$dir.deps/$base"
37778 +fi
37780 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
37782 +rm -f "$tmpdepfile"
37784 +# Some modes work just like other modes, but use different flags. We
37785 +# parameterize here, but still list the modes in the big case below,
37786 +# to make depend.m4 easier to write. Note that we *cannot* use a case
37787 +# here, because this file can only contain one case statement.
37788 +if test "$depmode" = hp; then
37789 + # HP compiler uses -M and no extra arg.
37790 + gccflag=-M
37791 + depmode=gcc
37792 +fi
37794 +if test "$depmode" = dashXmstdout; then
37795 + # This is just like dashmstdout with a different argument.
37796 + dashmflag=-xM
37797 + depmode=dashmstdout
37798 +fi
37800 +case "$depmode" in
37801 +gcc3)
37802 +## gcc 3 implements dependency tracking that does exactly what
37803 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
37804 +## it if -MD -MP comes after the -MF stuff. Hmm.
37805 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
37806 + stat=$?
37807 + if test $stat -eq 0; then :
37808 + else
37809 + rm -f "$tmpdepfile"
37810 + exit $stat
37811 + fi
37812 + mv "$tmpdepfile" "$depfile"
37813 + ;;
37815 +gcc)
37816 +## There are various ways to get dependency output from gcc. Here's
37817 +## why we pick this rather obscure method:
37818 +## - Don't want to use -MD because we'd like the dependencies to end
37819 +## up in a subdir. Having to rename by hand is ugly.
37820 +## (We might end up doing this anyway to support other compilers.)
37821 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
37822 +## -MM, not -M (despite what the docs say).
37823 +## - Using -M directly means running the compiler twice (even worse
37824 +## than renaming).
37825 + if test -z "$gccflag"; then
37826 + gccflag=-MD,
37827 + fi
37828 + "$@" -Wp,"$gccflag$tmpdepfile"
37829 + stat=$?
37830 + if test $stat -eq 0; then :
37831 + else
37832 + rm -f "$tmpdepfile"
37833 + exit $stat
37834 + fi
37835 + rm -f "$depfile"
37836 + echo "$object : \\" > "$depfile"
37837 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
37838 +## The second -e expression handles DOS-style file names with drive letters.
37839 + sed -e 's/^[^:]*: / /' \
37840 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
37841 +## This next piece of magic avoids the `deleted header file' problem.
37842 +## The problem is that when a header file which appears in a .P file
37843 +## is deleted, the dependency causes make to die (because there is
37844 +## typically no way to rebuild the header). We avoid this by adding
37845 +## dummy dependencies for each header file. Too bad gcc doesn't do
37846 +## this for us directly.
37847 + tr ' ' '
37848 +' < "$tmpdepfile" |
37849 +## Some versions of gcc put a space before the `:'. On the theory
37850 +## that the space means something, we add a space to the output as
37851 +## well.
37852 +## Some versions of the HPUX 10.20 sed can't process this invocation
37853 +## correctly. Breaking it into two sed invocations is a workaround.
37854 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
37855 + rm -f "$tmpdepfile"
37856 + ;;
37858 +hp)
37859 + # This case exists only to let depend.m4 do its work. It works by
37860 + # looking at the text of this script. This case will never be run,
37861 + # since it is checked for above.
37862 + exit 1
37863 + ;;
37865 +sgi)
37866 + if test "$libtool" = yes; then
37867 + "$@" "-Wp,-MDupdate,$tmpdepfile"
37868 + else
37869 + "$@" -MDupdate "$tmpdepfile"
37870 + fi
37871 + stat=$?
37872 + if test $stat -eq 0; then :
37873 + else
37874 + rm -f "$tmpdepfile"
37875 + exit $stat
37876 + fi
37877 + rm -f "$depfile"
37879 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
37880 + echo "$object : \\" > "$depfile"
37882 + # Clip off the initial element (the dependent). Don't try to be
37883 + # clever and replace this with sed code, as IRIX sed won't handle
37884 + # lines with more than a fixed number of characters (4096 in
37885 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
37886 + # the IRIX cc adds comments like `#:fec' to the end of the
37887 + # dependency line.
37888 + tr ' ' '
37889 +' < "$tmpdepfile" \
37890 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
37891 + tr '
37892 +' ' ' >> $depfile
37893 + echo >> $depfile
37895 + # The second pass generates a dummy entry for each header file.
37896 + tr ' ' '
37897 +' < "$tmpdepfile" \
37898 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
37899 + >> $depfile
37900 + else
37901 + # The sourcefile does not contain any dependencies, so just
37902 + # store a dummy comment line, to avoid errors with the Makefile
37903 + # "include basename.Plo" scheme.
37904 + echo "#dummy" > "$depfile"
37905 + fi
37906 + rm -f "$tmpdepfile"
37907 + ;;
37909 +aix)
37910 + # The C for AIX Compiler uses -M and outputs the dependencies
37911 + # in a .u file. In older versions, this file always lives in the
37912 + # current directory. Also, the AIX compiler puts `$object:' at the
37913 + # start of each line; $object doesn't have directory information.
37914 + # Version 6 uses the directory in both cases.
37915 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
37916 + tmpdepfile="$stripped.u"
37917 + if test "$libtool" = yes; then
37918 + "$@" -Wc,-M
37919 + else
37920 + "$@" -M
37921 + fi
37922 + stat=$?
37924 + if test -f "$tmpdepfile"; then :
37925 + else
37926 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
37927 + tmpdepfile="$stripped.u"
37928 + fi
37930 + if test $stat -eq 0; then :
37931 + else
37932 + rm -f "$tmpdepfile"
37933 + exit $stat
37934 + fi
37936 + if test -f "$tmpdepfile"; then
37937 + outname="$stripped.o"
37938 + # Each line is of the form `foo.o: dependent.h'.
37939 + # Do two passes, one to just change these to
37940 + # `$object: dependent.h' and one to simply `dependent.h:'.
37941 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
37942 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
37943 + else
37944 + # The sourcefile does not contain any dependencies, so just
37945 + # store a dummy comment line, to avoid errors with the Makefile
37946 + # "include basename.Plo" scheme.
37947 + echo "#dummy" > "$depfile"
37948 + fi
37949 + rm -f "$tmpdepfile"
37950 + ;;
37952 +icc)
37953 + # Intel's C compiler understands `-MD -MF file'. However on
37954 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
37955 + # ICC 7.0 will fill foo.d with something like
37956 + # foo.o: sub/foo.c
37957 + # foo.o: sub/foo.h
37958 + # which is wrong. We want:
37959 + # sub/foo.o: sub/foo.c
37960 + # sub/foo.o: sub/foo.h
37961 + # sub/foo.c:
37962 + # sub/foo.h:
37963 + # ICC 7.1 will output
37964 + # foo.o: sub/foo.c sub/foo.h
37965 + # and will wrap long lines using \ :
37966 + # foo.o: sub/foo.c ... \
37967 + # sub/foo.h ... \
37968 + # ...
37970 + "$@" -MD -MF "$tmpdepfile"
37971 + stat=$?
37972 + if test $stat -eq 0; then :
37973 + else
37974 + rm -f "$tmpdepfile"
37975 + exit $stat
37976 + fi
37977 + rm -f "$depfile"
37978 + # Each line is of the form `foo.o: dependent.h',
37979 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
37980 + # Do two passes, one to just change these to
37981 + # `$object: dependent.h' and one to simply `dependent.h:'.
37982 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
37983 + # Some versions of the HPUX 10.20 sed can't process this invocation
37984 + # correctly. Breaking it into two sed invocations is a workaround.
37985 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
37986 + sed -e 's/$/ :/' >> "$depfile"
37987 + rm -f "$tmpdepfile"
37988 + ;;
37990 +tru64)
37991 + # The Tru64 compiler uses -MD to generate dependencies as a side
37992 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
37993 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
37994 + # dependencies in `foo.d' instead, so we check for that too.
37995 + # Subdirectories are respected.
37996 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
37997 + test "x$dir" = "x$object" && dir=
37998 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
38000 + if test "$libtool" = yes; then
38001 + tmpdepfile1="$dir.libs/$base.lo.d"
38002 + tmpdepfile2="$dir.libs/$base.d"
38003 + "$@" -Wc,-MD
38004 + else
38005 + tmpdepfile1="$dir$base.o.d"
38006 + tmpdepfile2="$dir$base.d"
38007 + "$@" -MD
38008 + fi
38010 + stat=$?
38011 + if test $stat -eq 0; then :
38012 + else
38013 + rm -f "$tmpdepfile1" "$tmpdepfile2"
38014 + exit $stat
38015 + fi
38017 + if test -f "$tmpdepfile1"; then
38018 + tmpdepfile="$tmpdepfile1"
38019 + else
38020 + tmpdepfile="$tmpdepfile2"
38021 + fi
38022 + if test -f "$tmpdepfile"; then
38023 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
38024 + # That's a tab and a space in the [].
38025 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
38026 + else
38027 + echo "#dummy" > "$depfile"
38028 + fi
38029 + rm -f "$tmpdepfile"
38030 + ;;
38032 +#nosideeffect)
38033 + # This comment above is used by automake to tell side-effect
38034 + # dependency tracking mechanisms from slower ones.
38036 +dashmstdout)
38037 + # Important note: in order to support this mode, a compiler *must*
38038 + # always write the preprocessed file to stdout, regardless of -o.
38039 + "$@" || exit $?
38041 + # Remove the call to Libtool.
38042 + if test "$libtool" = yes; then
38043 + while test $1 != '--mode=compile'; do
38044 + shift
38045 + done
38046 + shift
38047 + fi
38049 + # Remove `-o $object'.
38050 + IFS=" "
38051 + for arg
38052 + do
38053 + case $arg in
38054 + -o)
38055 + shift
38056 + ;;
38057 + $object)
38058 + shift
38059 + ;;
38060 + *)
38061 + set fnord "$@" "$arg"
38062 + shift # fnord
38063 + shift # $arg
38064 + ;;
38065 + esac
38066 + done
38068 + test -z "$dashmflag" && dashmflag=-M
38069 + # Require at least two characters before searching for `:'
38070 + # in the target name. This is to cope with DOS-style filenames:
38071 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
38072 + "$@" $dashmflag |
38073 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
38074 + rm -f "$depfile"
38075 + cat < "$tmpdepfile" > "$depfile"
38076 + tr ' ' '
38077 +' < "$tmpdepfile" | \
38078 +## Some versions of the HPUX 10.20 sed can't process this invocation
38079 +## correctly. Breaking it into two sed invocations is a workaround.
38080 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
38081 + rm -f "$tmpdepfile"
38082 + ;;
38084 +dashXmstdout)
38085 + # This case only exists to satisfy depend.m4. It is never actually
38086 + # run, as this mode is specially recognized in the preamble.
38087 + exit 1
38088 + ;;
38090 +makedepend)
38091 + "$@" || exit $?
38092 + # Remove any Libtool call
38093 + if test "$libtool" = yes; then
38094 + while test $1 != '--mode=compile'; do
38095 + shift
38096 + done
38097 + shift
38098 + fi
38099 + # X makedepend
38100 + shift
38101 + cleared=no
38102 + for arg in "$@"; do
38103 + case $cleared in
38104 + no)
38105 + set ""; shift
38106 + cleared=yes ;;
38107 + esac
38108 + case "$arg" in
38109 + -D*|-I*)
38110 + set fnord "$@" "$arg"; shift ;;
38111 + # Strip any option that makedepend may not understand. Remove
38112 + # the object too, otherwise makedepend will parse it as a source file.
38113 + -*|$object)
38114 + ;;
38115 + *)
38116 + set fnord "$@" "$arg"; shift ;;
38117 + esac
38118 + done
38119 + obj_suffix="`echo $object | sed 's/^.*\././'`"
38120 + touch "$tmpdepfile"
38121 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
38122 + rm -f "$depfile"
38123 + cat < "$tmpdepfile" > "$depfile"
38124 + sed '1,2d' "$tmpdepfile" | tr ' ' '
38125 +' | \
38126 +## Some versions of the HPUX 10.20 sed can't process this invocation
38127 +## correctly. Breaking it into two sed invocations is a workaround.
38128 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
38129 + rm -f "$tmpdepfile" "$tmpdepfile".bak
38130 + ;;
38132 +cpp)
38133 + # Important note: in order to support this mode, a compiler *must*
38134 + # always write the preprocessed file to stdout.
38135 + "$@" || exit $?
38137 + # Remove the call to Libtool.
38138 + if test "$libtool" = yes; then
38139 + while test $1 != '--mode=compile'; do
38140 + shift
38141 + done
38142 + shift
38143 + fi
38145 + # Remove `-o $object'.
38146 + IFS=" "
38147 + for arg
38148 + do
38149 + case $arg in
38150 + -o)
38151 + shift
38152 + ;;
38153 + $object)
38154 + shift
38155 + ;;
38156 + *)
38157 + set fnord "$@" "$arg"
38158 + shift # fnord
38159 + shift # $arg
38160 + ;;
38161 + esac
38162 + done
38164 + "$@" -E |
38165 + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
38166 + sed '$ s: \\$::' > "$tmpdepfile"
38167 + rm -f "$depfile"
38168 + echo "$object : \\" > "$depfile"
38169 + cat < "$tmpdepfile" >> "$depfile"
38170 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
38171 + rm -f "$tmpdepfile"
38172 + ;;
38174 +msvisualcpp)
38175 + # Important note: in order to support this mode, a compiler *must*
38176 + # always write the preprocessed file to stdout, regardless of -o,
38177 + # because we must use -o when running libtool.
38178 + "$@" || exit $?
38179 + IFS=" "
38180 + for arg
38181 + do
38182 + case "$arg" in
38183 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
38184 + set fnord "$@"
38185 + shift
38186 + shift
38187 + ;;
38188 + *)
38189 + set fnord "$@" "$arg"
38190 + shift
38191 + shift
38192 + ;;
38193 + esac
38194 + done
38195 + "$@" -E |
38196 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
38197 + rm -f "$depfile"
38198 + echo "$object : \\" > "$depfile"
38199 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
38200 + echo " " >> "$depfile"
38201 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
38202 + rm -f "$tmpdepfile"
38203 + ;;
38205 +none)
38206 + exec "$@"
38207 + ;;
38209 +*)
38210 + echo "Unknown depmode $depmode" 1>&2
38211 + exit 1
38212 + ;;
38213 +esac
38215 +exit 0
38216 --- libstroke-0.5.1.orig/doc/Makefile.in
38217 +++ libstroke-0.5.1/doc/Makefile.in
38218 @@ -1,6 +1,8 @@
38219 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
38220 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
38221 +# @configure_input@
38223 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
38224 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
38225 +# Free Software Foundation, Inc.
38226 # This Makefile.in is free software; the Free Software Foundation
38227 # gives unlimited permission to copy and/or distribute it,
38228 # with or without modifications, as long as this notice is preserved.
38229 @@ -10,179 +12,288 @@
38230 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
38231 # PARTICULAR PURPOSE.
38234 -SHELL = @SHELL@
38235 +@SET_MAKE@
38237 srcdir = @srcdir@
38238 top_srcdir = @top_srcdir@
38239 VPATH = @srcdir@
38240 -prefix = @prefix@
38241 -exec_prefix = @exec_prefix@
38243 -bindir = @bindir@
38244 -sbindir = @sbindir@
38245 -libexecdir = @libexecdir@
38246 -datadir = @datadir@
38247 -sysconfdir = @sysconfdir@
38248 -sharedstatedir = @sharedstatedir@
38249 -localstatedir = @localstatedir@
38250 -libdir = @libdir@
38251 -infodir = @infodir@
38252 -mandir = @mandir@
38253 -includedir = @includedir@
38254 -oldincludedir = /usr/include
38256 -DESTDIR =
38258 pkgdatadir = $(datadir)/@PACKAGE@
38259 pkglibdir = $(libdir)/@PACKAGE@
38260 pkgincludedir = $(includedir)/@PACKAGE@
38262 top_builddir = ..
38264 -ACLOCAL = @ACLOCAL@
38265 -AUTOCONF = @AUTOCONF@
38266 -AUTOMAKE = @AUTOMAKE@
38267 -AUTOHEADER = @AUTOHEADER@
38269 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38270 INSTALL = @INSTALL@
38271 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
38272 -INSTALL_DATA = @INSTALL_DATA@
38273 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
38274 -transform = @program_transform_name@
38276 +install_sh_DATA = $(install_sh) -c -m 644
38277 +install_sh_PROGRAM = $(install_sh) -c
38278 +install_sh_SCRIPT = $(install_sh) -c
38279 +INSTALL_HEADER = $(INSTALL_DATA)
38280 +transform = $(program_transform_name)
38281 NORMAL_INSTALL = :
38282 PRE_INSTALL = :
38283 POST_INSTALL = :
38284 NORMAL_UNINSTALL = :
38285 PRE_UNINSTALL = :
38286 POST_UNINSTALL = :
38287 -host_alias = @host_alias@
38288 host_triplet = @host@
38289 -AS = @AS@
38290 +ACLOCAL = @ACLOCAL@
38291 +AMDEP_FALSE = @AMDEP_FALSE@
38292 +AMDEP_TRUE = @AMDEP_TRUE@
38293 +AMTAR = @AMTAR@
38294 +AR = @AR@
38295 +AUTOCONF = @AUTOCONF@
38296 +AUTOHEADER = @AUTOHEADER@
38297 +AUTOMAKE = @AUTOMAKE@
38298 +AWK = @AWK@
38299 CC = @CC@
38300 -DLLTOOL = @DLLTOOL@
38301 +CCDEPMODE = @CCDEPMODE@
38302 +CFLAGS = @CFLAGS@
38303 +CPP = @CPP@
38304 +CPPFLAGS = @CPPFLAGS@
38305 +CXX = @CXX@
38306 +CXXCPP = @CXXCPP@
38307 +CXXDEPMODE = @CXXDEPMODE@
38308 +CXXFLAGS = @CXXFLAGS@
38309 +CYGPATH_W = @CYGPATH_W@
38310 +DEFS = @DEFS@
38311 +DEPDIR = @DEPDIR@
38312 +ECHO = @ECHO@
38313 +ECHO_C = @ECHO_C@
38314 +ECHO_N = @ECHO_N@
38315 +ECHO_T = @ECHO_T@
38316 +EGREP = @EGREP@
38317 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
38318 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
38319 +EXEEXT = @EXEEXT@
38320 +F77 = @F77@
38321 +FFLAGS = @FFLAGS@
38322 GTK_CFLAGS = @GTK_CFLAGS@
38323 GTK_CONFIG = @GTK_CONFIG@
38324 GTK_LIBS = @GTK_LIBS@
38325 -LD = @LD@
38326 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
38327 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
38328 +INSTALL_DATA = @INSTALL_DATA@
38329 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
38330 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
38331 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38332 +LDFLAGS = @LDFLAGS@
38333 +LIBOBJS = @LIBOBJS@
38334 +LIBS = @LIBS@
38335 LIBTOOL = @LIBTOOL@
38336 LN_S = @LN_S@
38337 +LTLIBOBJS = @LTLIBOBJS@
38338 MAINT = @MAINT@
38339 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
38340 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
38341 MAKEINFO = @MAKEINFO@
38342 -NM = @NM@
38343 +OBJEXT = @OBJEXT@
38344 PACKAGE = @PACKAGE@
38345 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38346 +PACKAGE_NAME = @PACKAGE_NAME@
38347 +PACKAGE_STRING = @PACKAGE_STRING@
38348 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
38349 +PACKAGE_VERSION = @PACKAGE_VERSION@
38350 +PATH_SEPARATOR = @PATH_SEPARATOR@
38351 RANLIB = @RANLIB@
38352 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
38353 +SET_MAKE = @SET_MAKE@
38354 +SHELL = @SHELL@
38355 +STRIP = @STRIP@
38356 VERSION = @VERSION@
38357 X_CFLAGS = @X_CFLAGS@
38358 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
38359 X_LDFLAGS = @X_LDFLAGS@
38360 +X_LIBS = @X_LIBS@
38361 +X_PRE_LIBS = @X_PRE_LIBS@
38362 +ac_ct_AR = @ac_ct_AR@
38363 +ac_ct_CC = @ac_ct_CC@
38364 +ac_ct_CXX = @ac_ct_CXX@
38365 +ac_ct_F77 = @ac_ct_F77@
38366 +ac_ct_RANLIB = @ac_ct_RANLIB@
38367 +ac_ct_STRIP = @ac_ct_STRIP@
38368 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
38369 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
38370 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
38371 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
38372 +am__include = @am__include@
38373 +am__leading_dot = @am__leading_dot@
38374 +am__quote = @am__quote@
38375 +bindir = @bindir@
38376 +build = @build@
38377 +build_alias = @build_alias@
38378 +build_cpu = @build_cpu@
38379 +build_os = @build_os@
38380 +build_vendor = @build_vendor@
38381 +datadir = @datadir@
38382 +exec_prefix = @exec_prefix@
38383 +host = @host@
38384 +host_alias = @host_alias@
38385 +host_cpu = @host_cpu@
38386 +host_os = @host_os@
38387 +host_vendor = @host_vendor@
38388 +includedir = @includedir@
38389 +infodir = @infodir@
38390 +install_sh = @install_sh@
38391 +libdir = @libdir@
38392 +libexecdir = @libexecdir@
38393 +localstatedir = @localstatedir@
38394 +mandir = @mandir@
38395 +oldincludedir = @oldincludedir@
38396 +prefix = @prefix@
38397 +program_transform_name = @program_transform_name@
38398 +sbindir = @sbindir@
38399 +sharedstatedir = @sharedstatedir@
38400 +sysconfdir = @sysconfdir@
38401 +target_alias = @target_alias@
38403 -EXTRA_DIST = standard_strokes.jpg standard_strokes.txt
38404 +EXTRA_DIST = \
38405 + standard_strokes.jpg \
38406 + standard_strokes.txt
38408 +subdir = doc
38409 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38410 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38411 -CONFIG_HEADER = ../config.h
38412 -CONFIG_CLEAN_FILES =
38413 -DIST_COMMON = Makefile.am Makefile.in
38415 +CONFIG_HEADER = $(top_builddir)/config.h
38416 +CONFIG_CLEAN_FILES =
38417 +DIST_SOURCES =
38418 +DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
38419 +all: all-am
38421 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
38423 -TAR = gtar
38424 -GZIP_ENV = --best
38425 -all: all-redirect
38426 .SUFFIXES:
38427 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38428 - cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
38429 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38430 + cd $(top_srcdir) && \
38431 + $(AUTOMAKE) --gnu doc/Makefile
38432 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
38433 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
38435 +mostlyclean-libtool:
38436 + -rm -f *.lo
38438 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
38439 - cd $(top_builddir) \
38440 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
38441 +clean-libtool:
38442 + -rm -rf .libs _libs
38444 +distclean-libtool:
38445 + -rm -f libtool
38446 +uninstall-info-am:
38447 tags: TAGS
38448 TAGS:
38450 +ctags: CTAGS
38451 +CTAGS:
38453 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
38454 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38456 -subdir = doc
38457 +top_distdir = ..
38458 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
38460 distdir: $(DISTFILES)
38461 - here=`cd $(top_builddir) && pwd`; \
38462 - top_distdir=`cd $(top_distdir) && pwd`; \
38463 - distdir=`cd $(distdir) && pwd`; \
38464 - cd $(top_srcdir) \
38465 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
38466 - @for file in $(DISTFILES); do \
38467 - d=$(srcdir); \
38468 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38469 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38470 + list='$(DISTFILES)'; for file in $$list; do \
38471 + case $$file in \
38472 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38473 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38474 + esac; \
38475 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38476 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38477 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38478 + dir="/$$dir"; \
38479 + $(mkinstalldirs) "$(distdir)$$dir"; \
38480 + else \
38481 + dir=''; \
38482 + fi; \
38483 if test -d $$d/$$file; then \
38484 - cp -pr $$d/$$file $(distdir)/$$file; \
38485 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38486 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38487 + fi; \
38488 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38489 else \
38490 test -f $(distdir)/$$file \
38491 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38492 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38493 + || cp -p $$d/$$file $(distdir)/$$file \
38494 + || exit 1; \
38495 fi; \
38496 done
38497 -info-am:
38498 -info: info-am
38499 -dvi-am:
38500 -dvi: dvi-am
38501 check-am: all-am
38502 check: check-am
38503 -installcheck-am:
38504 -installcheck: installcheck-am
38505 -install-exec-am:
38506 -install-exec: install-exec-am
38507 +all-am: Makefile
38509 -install-data-am:
38510 +installdirs:
38511 +install: install-am
38512 +install-exec: install-exec-am
38513 install-data: install-data-am
38514 +uninstall: uninstall-am
38516 install-am: all-am
38517 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38518 -install: install-am
38519 -uninstall-am:
38520 -uninstall: uninstall-am
38521 -all-am: Makefile
38522 -all-redirect: all-am
38523 -install-strip:
38524 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38525 -installdirs:
38528 +installcheck: installcheck-am
38529 +install-strip:
38530 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38531 + INSTALL_STRIP_FLAG=-s \
38532 + `test -z '$(STRIP)' || \
38533 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38534 mostlyclean-generic:
38536 clean-generic:
38538 distclean-generic:
38539 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38540 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38541 + -rm -f $(CONFIG_CLEAN_FILES)
38543 maintainer-clean-generic:
38544 -mostlyclean-am: mostlyclean-generic
38545 + @echo "This command is intended for maintainers to use"
38546 + @echo "it deletes files that may require special tools to rebuild."
38547 +clean: clean-am
38549 -mostlyclean: mostlyclean-am
38550 +clean-am: clean-generic clean-libtool mostlyclean-am
38552 -clean-am: clean-generic mostlyclean-am
38553 +distclean: distclean-am
38554 + -rm -f Makefile
38555 +distclean-am: clean-am distclean-generic distclean-libtool
38557 -clean: clean-am
38558 +dvi: dvi-am
38560 -distclean-am: distclean-generic clean-am
38561 - -rm -f libtool
38562 +dvi-am:
38564 -distclean: distclean-am
38565 +info: info-am
38567 -maintainer-clean-am: maintainer-clean-generic distclean-am
38568 - @echo "This command is intended for maintainers to use;"
38569 - @echo "it deletes files that may require special tools to rebuild."
38570 +info-am:
38572 +install-data-am:
38574 +install-exec-am:
38576 +install-info: install-info-am
38578 +install-man:
38580 +installcheck-am:
38582 maintainer-clean: maintainer-clean-am
38583 + -rm -f Makefile
38584 +maintainer-clean-am: distclean-am maintainer-clean-generic
38586 +mostlyclean: mostlyclean-am
38588 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
38590 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
38591 -installcheck-am installcheck install-exec-am install-exec \
38592 -install-data-am install-data install-am install uninstall-am uninstall \
38593 -all-redirect all-am all installdirs mostlyclean-generic \
38594 -distclean-generic clean-generic maintainer-clean-generic clean \
38595 -mostlyclean distclean maintainer-clean
38596 +pdf: pdf-am
38598 +pdf-am:
38600 +ps: ps-am
38602 +ps-am:
38604 +uninstall-am: uninstall-info-am
38606 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
38607 + distclean distclean-generic distclean-libtool distdir dvi \
38608 + dvi-am info info-am install install-am install-data \
38609 + install-data-am install-exec install-exec-am install-info \
38610 + install-info-am install-man install-strip installcheck \
38611 + installcheck-am installdirs maintainer-clean \
38612 + maintainer-clean-generic mostlyclean mostlyclean-generic \
38613 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
38614 + uninstall-info-am
38617 .PHONY: files
38618 @@ -191,7 +302,6 @@ files:
38619 @files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
38620 echo $$p; \
38621 done
38623 # Tell versions [3.59,3.63) of GNU make to not export all variables.
38624 # Otherwise a system limit (for SysV at least) may be exceeded.
38625 .NOEXPORT:
38626 --- libstroke-0.5.1.orig/javastroke/Makefile.in
38627 +++ libstroke-0.5.1/javastroke/Makefile.in
38628 @@ -1,6 +1,8 @@
38629 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
38630 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
38631 +# @configure_input@
38633 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
38634 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
38635 +# Free Software Foundation, Inc.
38636 # This Makefile.in is free software; the Free Software Foundation
38637 # gives unlimited permission to copy and/or distribute it,
38638 # with or without modifications, as long as this notice is preserved.
38639 @@ -10,179 +12,290 @@
38640 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
38641 # PARTICULAR PURPOSE.
38644 -SHELL = @SHELL@
38645 +@SET_MAKE@
38647 srcdir = @srcdir@
38648 top_srcdir = @top_srcdir@
38649 VPATH = @srcdir@
38650 -prefix = @prefix@
38651 -exec_prefix = @exec_prefix@
38653 -bindir = @bindir@
38654 -sbindir = @sbindir@
38655 -libexecdir = @libexecdir@
38656 -datadir = @datadir@
38657 -sysconfdir = @sysconfdir@
38658 -sharedstatedir = @sharedstatedir@
38659 -localstatedir = @localstatedir@
38660 -libdir = @libdir@
38661 -infodir = @infodir@
38662 -mandir = @mandir@
38663 -includedir = @includedir@
38664 -oldincludedir = /usr/include
38666 -DESTDIR =
38668 pkgdatadir = $(datadir)/@PACKAGE@
38669 pkglibdir = $(libdir)/@PACKAGE@
38670 pkgincludedir = $(includedir)/@PACKAGE@
38672 top_builddir = ..
38674 -ACLOCAL = @ACLOCAL@
38675 -AUTOCONF = @AUTOCONF@
38676 -AUTOMAKE = @AUTOMAKE@
38677 -AUTOHEADER = @AUTOHEADER@
38679 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
38680 INSTALL = @INSTALL@
38681 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
38682 -INSTALL_DATA = @INSTALL_DATA@
38683 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
38684 -transform = @program_transform_name@
38686 +install_sh_DATA = $(install_sh) -c -m 644
38687 +install_sh_PROGRAM = $(install_sh) -c
38688 +install_sh_SCRIPT = $(install_sh) -c
38689 +INSTALL_HEADER = $(INSTALL_DATA)
38690 +transform = $(program_transform_name)
38691 NORMAL_INSTALL = :
38692 PRE_INSTALL = :
38693 POST_INSTALL = :
38694 NORMAL_UNINSTALL = :
38695 PRE_UNINSTALL = :
38696 POST_UNINSTALL = :
38697 -host_alias = @host_alias@
38698 host_triplet = @host@
38699 -AS = @AS@
38700 +ACLOCAL = @ACLOCAL@
38701 +AMDEP_FALSE = @AMDEP_FALSE@
38702 +AMDEP_TRUE = @AMDEP_TRUE@
38703 +AMTAR = @AMTAR@
38704 +AR = @AR@
38705 +AUTOCONF = @AUTOCONF@
38706 +AUTOHEADER = @AUTOHEADER@
38707 +AUTOMAKE = @AUTOMAKE@
38708 +AWK = @AWK@
38709 CC = @CC@
38710 -DLLTOOL = @DLLTOOL@
38711 +CCDEPMODE = @CCDEPMODE@
38712 +CFLAGS = @CFLAGS@
38713 +CPP = @CPP@
38714 +CPPFLAGS = @CPPFLAGS@
38715 +CXX = @CXX@
38716 +CXXCPP = @CXXCPP@
38717 +CXXDEPMODE = @CXXDEPMODE@
38718 +CXXFLAGS = @CXXFLAGS@
38719 +CYGPATH_W = @CYGPATH_W@
38720 +DEFS = @DEFS@
38721 +DEPDIR = @DEPDIR@
38722 +ECHO = @ECHO@
38723 +ECHO_C = @ECHO_C@
38724 +ECHO_N = @ECHO_N@
38725 +ECHO_T = @ECHO_T@
38726 +EGREP = @EGREP@
38727 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
38728 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
38729 +EXEEXT = @EXEEXT@
38730 +F77 = @F77@
38731 +FFLAGS = @FFLAGS@
38732 GTK_CFLAGS = @GTK_CFLAGS@
38733 GTK_CONFIG = @GTK_CONFIG@
38734 GTK_LIBS = @GTK_LIBS@
38735 -LD = @LD@
38736 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
38737 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
38738 +INSTALL_DATA = @INSTALL_DATA@
38739 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
38740 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
38741 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
38742 +LDFLAGS = @LDFLAGS@
38743 +LIBOBJS = @LIBOBJS@
38744 +LIBS = @LIBS@
38745 LIBTOOL = @LIBTOOL@
38746 LN_S = @LN_S@
38747 +LTLIBOBJS = @LTLIBOBJS@
38748 MAINT = @MAINT@
38749 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
38750 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
38751 MAKEINFO = @MAKEINFO@
38752 -NM = @NM@
38753 +OBJEXT = @OBJEXT@
38754 PACKAGE = @PACKAGE@
38755 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
38756 +PACKAGE_NAME = @PACKAGE_NAME@
38757 +PACKAGE_STRING = @PACKAGE_STRING@
38758 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
38759 +PACKAGE_VERSION = @PACKAGE_VERSION@
38760 +PATH_SEPARATOR = @PATH_SEPARATOR@
38761 RANLIB = @RANLIB@
38762 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
38763 +SET_MAKE = @SET_MAKE@
38764 +SHELL = @SHELL@
38765 +STRIP = @STRIP@
38766 VERSION = @VERSION@
38767 X_CFLAGS = @X_CFLAGS@
38768 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
38769 X_LDFLAGS = @X_LDFLAGS@
38770 +X_LIBS = @X_LIBS@
38771 +X_PRE_LIBS = @X_PRE_LIBS@
38772 +ac_ct_AR = @ac_ct_AR@
38773 +ac_ct_CC = @ac_ct_CC@
38774 +ac_ct_CXX = @ac_ct_CXX@
38775 +ac_ct_F77 = @ac_ct_F77@
38776 +ac_ct_RANLIB = @ac_ct_RANLIB@
38777 +ac_ct_STRIP = @ac_ct_STRIP@
38778 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
38779 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
38780 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
38781 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
38782 +am__include = @am__include@
38783 +am__leading_dot = @am__leading_dot@
38784 +am__quote = @am__quote@
38785 +bindir = @bindir@
38786 +build = @build@
38787 +build_alias = @build_alias@
38788 +build_cpu = @build_cpu@
38789 +build_os = @build_os@
38790 +build_vendor = @build_vendor@
38791 +datadir = @datadir@
38792 +exec_prefix = @exec_prefix@
38793 +host = @host@
38794 +host_alias = @host_alias@
38795 +host_cpu = @host_cpu@
38796 +host_os = @host_os@
38797 +host_vendor = @host_vendor@
38798 +includedir = @includedir@
38799 +infodir = @infodir@
38800 +install_sh = @install_sh@
38801 +libdir = @libdir@
38802 +libexecdir = @libexecdir@
38803 +localstatedir = @localstatedir@
38804 +mandir = @mandir@
38805 +oldincludedir = @oldincludedir@
38806 +prefix = @prefix@
38807 +program_transform_name = @program_transform_name@
38808 +sbindir = @sbindir@
38809 +sharedstatedir = @sharedstatedir@
38810 +sysconfdir = @sysconfdir@
38811 +target_alias = @target_alias@
38813 -EXTRA_DIST = README Makefile.unix Paint.java Stroke.java
38814 +EXTRA_DIST = \
38815 + README \
38816 + Makefile.unix \
38817 + Paint.java \
38818 + Stroke.java
38820 +subdir = javastroke
38821 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
38822 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
38823 -CONFIG_HEADER = ../config.h
38824 -CONFIG_CLEAN_FILES =
38825 -DIST_COMMON = README Makefile.am Makefile.in
38827 +CONFIG_HEADER = $(top_builddir)/config.h
38828 +CONFIG_CLEAN_FILES =
38829 +DIST_SOURCES =
38830 +DIST_COMMON = README $(srcdir)/Makefile.in Makefile.am
38831 +all: all-am
38833 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
38835 -TAR = gtar
38836 -GZIP_ENV = --best
38837 -all: all-redirect
38838 .SUFFIXES:
38839 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38840 - cd $(top_srcdir) && $(AUTOMAKE) --gnu javastroke/Makefile
38841 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
38842 + cd $(top_srcdir) && \
38843 + $(AUTOMAKE) --gnu javastroke/Makefile
38844 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
38845 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
38847 +mostlyclean-libtool:
38848 + -rm -f *.lo
38850 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
38851 - cd $(top_builddir) \
38852 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
38853 +clean-libtool:
38854 + -rm -rf .libs _libs
38856 +distclean-libtool:
38857 + -rm -f libtool
38858 +uninstall-info-am:
38859 tags: TAGS
38860 TAGS:
38862 +ctags: CTAGS
38863 +CTAGS:
38865 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
38866 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
38868 -subdir = javastroke
38869 +top_distdir = ..
38870 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
38872 distdir: $(DISTFILES)
38873 - here=`cd $(top_builddir) && pwd`; \
38874 - top_distdir=`cd $(top_distdir) && pwd`; \
38875 - distdir=`cd $(distdir) && pwd`; \
38876 - cd $(top_srcdir) \
38877 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu javastroke/Makefile
38878 - @for file in $(DISTFILES); do \
38879 - d=$(srcdir); \
38880 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
38881 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
38882 + list='$(DISTFILES)'; for file in $$list; do \
38883 + case $$file in \
38884 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
38885 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
38886 + esac; \
38887 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
38888 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
38889 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
38890 + dir="/$$dir"; \
38891 + $(mkinstalldirs) "$(distdir)$$dir"; \
38892 + else \
38893 + dir=''; \
38894 + fi; \
38895 if test -d $$d/$$file; then \
38896 - cp -pr $$d/$$file $(distdir)/$$file; \
38897 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
38898 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
38899 + fi; \
38900 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
38901 else \
38902 test -f $(distdir)/$$file \
38903 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
38904 - || cp -p $$d/$$file $(distdir)/$$file || :; \
38905 + || cp -p $$d/$$file $(distdir)/$$file \
38906 + || exit 1; \
38907 fi; \
38908 done
38909 -info-am:
38910 -info: info-am
38911 -dvi-am:
38912 -dvi: dvi-am
38913 check-am: all-am
38914 check: check-am
38915 -installcheck-am:
38916 -installcheck: installcheck-am
38917 -install-exec-am:
38918 -install-exec: install-exec-am
38919 +all-am: Makefile
38921 -install-data-am:
38922 +installdirs:
38923 +install: install-am
38924 +install-exec: install-exec-am
38925 install-data: install-data-am
38926 +uninstall: uninstall-am
38928 install-am: all-am
38929 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
38930 -install: install-am
38931 -uninstall-am:
38932 -uninstall: uninstall-am
38933 -all-am: Makefile
38934 -all-redirect: all-am
38935 -install-strip:
38936 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
38937 -installdirs:
38940 +installcheck: installcheck-am
38941 +install-strip:
38942 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
38943 + INSTALL_STRIP_FLAG=-s \
38944 + `test -z '$(STRIP)' || \
38945 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
38946 mostlyclean-generic:
38948 clean-generic:
38950 distclean-generic:
38951 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
38952 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
38953 + -rm -f $(CONFIG_CLEAN_FILES)
38955 maintainer-clean-generic:
38956 -mostlyclean-am: mostlyclean-generic
38957 + @echo "This command is intended for maintainers to use"
38958 + @echo "it deletes files that may require special tools to rebuild."
38959 +clean: clean-am
38961 -mostlyclean: mostlyclean-am
38962 +clean-am: clean-generic clean-libtool mostlyclean-am
38964 -clean-am: clean-generic mostlyclean-am
38965 +distclean: distclean-am
38966 + -rm -f Makefile
38967 +distclean-am: clean-am distclean-generic distclean-libtool
38969 -clean: clean-am
38970 +dvi: dvi-am
38972 -distclean-am: distclean-generic clean-am
38973 - -rm -f libtool
38974 +dvi-am:
38976 -distclean: distclean-am
38977 +info: info-am
38979 -maintainer-clean-am: maintainer-clean-generic distclean-am
38980 - @echo "This command is intended for maintainers to use;"
38981 - @echo "it deletes files that may require special tools to rebuild."
38982 +info-am:
38984 +install-data-am:
38986 +install-exec-am:
38988 +install-info: install-info-am
38990 +install-man:
38992 +installcheck-am:
38994 maintainer-clean: maintainer-clean-am
38995 + -rm -f Makefile
38996 +maintainer-clean-am: distclean-am maintainer-clean-generic
38998 +mostlyclean: mostlyclean-am
39000 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
39002 -.PHONY: tags distdir info-am info dvi-am dvi check check-am \
39003 -installcheck-am installcheck install-exec-am install-exec \
39004 -install-data-am install-data install-am install uninstall-am uninstall \
39005 -all-redirect all-am all installdirs mostlyclean-generic \
39006 -distclean-generic clean-generic maintainer-clean-generic clean \
39007 -mostlyclean distclean maintainer-clean
39008 +pdf: pdf-am
39010 +pdf-am:
39012 +ps: ps-am
39014 +ps-am:
39016 +uninstall-am: uninstall-info-am
39018 +.PHONY: all all-am check check-am clean clean-generic clean-libtool \
39019 + distclean distclean-generic distclean-libtool distdir dvi \
39020 + dvi-am info info-am install install-am install-data \
39021 + install-data-am install-exec install-exec-am install-info \
39022 + install-info-am install-man install-strip installcheck \
39023 + installcheck-am installdirs maintainer-clean \
39024 + maintainer-clean-generic mostlyclean mostlyclean-generic \
39025 + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
39026 + uninstall-info-am
39029 .PHONY: files
39030 @@ -191,7 +304,6 @@ files:
39031 @files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \
39032 echo $$p; \
39033 done
39035 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39036 # Otherwise a system limit (for SysV at least) may be exceeded.
39037 .NOEXPORT:
39038 --- libstroke-0.5.1.orig/libgstroke/Makefile.am
39039 +++ libstroke-0.5.1/libgstroke/Makefile.am
39040 @@ -5,14 +5,12 @@
39041 # level Makefile.
39042 AUTOMAKE_OPTIONS = foreign
39044 -EXTRA_DIST =
39046 #SEL_BIB = libgstroke.la
39048 lib_LTLIBRARIES = libgstroke.la
39049 libgstroke_la_SOURCES = gnome-stroke.c gnome-stroke-draw.c gstroke.h
39051 -libgstroke_la_LDFLAGS = -version-info 0:5:0
39052 +libgstroke_la_LDFLAGS = -version-info 0:5:0 -lgtk
39054 include_HEADERS = gstroke.h
39056 --- libstroke-0.5.1.orig/libgstroke/Makefile.in
39057 +++ libstroke-0.5.1/libgstroke/Makefile.in
39058 @@ -1,6 +1,8 @@
39059 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
39060 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
39061 +# @configure_input@
39063 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
39064 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
39065 +# Free Software Foundation, Inc.
39066 # This Makefile.in is free software; the Free Software Foundation
39067 # gives unlimited permission to copy and/or distribute it,
39068 # with or without modifications, as long as this notice is preserved.
39069 @@ -10,90 +12,152 @@
39070 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39071 # PARTICULAR PURPOSE.
39073 -# A brief demonstration of using Automake with Libtool. -*-Makefile-*-
39074 -#
39075 -# NOTE: Don't forget that in the libtool distribution, files in this
39076 -# directory are distributed by the demo_distfiles variable in the top
39077 -# level Makefile.
39080 -SHELL = @SHELL@
39081 +@SET_MAKE@
39083 srcdir = @srcdir@
39084 top_srcdir = @top_srcdir@
39085 VPATH = @srcdir@
39086 -prefix = @prefix@
39087 -exec_prefix = @exec_prefix@
39089 -bindir = @bindir@
39090 -sbindir = @sbindir@
39091 -libexecdir = @libexecdir@
39092 -datadir = @datadir@
39093 -sysconfdir = @sysconfdir@
39094 -sharedstatedir = @sharedstatedir@
39095 -localstatedir = @localstatedir@
39096 -libdir = @libdir@
39097 -infodir = @infodir@
39098 -mandir = @mandir@
39099 -includedir = @includedir@
39100 -oldincludedir = /usr/include
39102 -DESTDIR =
39104 pkgdatadir = $(datadir)/@PACKAGE@
39105 pkglibdir = $(libdir)/@PACKAGE@
39106 pkgincludedir = $(includedir)/@PACKAGE@
39108 top_builddir = ..
39110 -ACLOCAL = @ACLOCAL@
39111 -AUTOCONF = @AUTOCONF@
39112 -AUTOMAKE = @AUTOMAKE@
39113 -AUTOHEADER = @AUTOHEADER@
39115 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39116 INSTALL = @INSTALL@
39117 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39118 -INSTALL_DATA = @INSTALL_DATA@
39119 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39120 -transform = @program_transform_name@
39122 +install_sh_DATA = $(install_sh) -c -m 644
39123 +install_sh_PROGRAM = $(install_sh) -c
39124 +install_sh_SCRIPT = $(install_sh) -c
39125 +INSTALL_HEADER = $(INSTALL_DATA)
39126 +transform = $(program_transform_name)
39127 NORMAL_INSTALL = :
39128 PRE_INSTALL = :
39129 POST_INSTALL = :
39130 NORMAL_UNINSTALL = :
39131 PRE_UNINSTALL = :
39132 POST_UNINSTALL = :
39133 -host_alias = @host_alias@
39134 host_triplet = @host@
39135 -AS = @AS@
39136 +ACLOCAL = @ACLOCAL@
39137 +AMDEP_FALSE = @AMDEP_FALSE@
39138 +AMDEP_TRUE = @AMDEP_TRUE@
39139 +AMTAR = @AMTAR@
39140 +AR = @AR@
39141 +AUTOCONF = @AUTOCONF@
39142 +AUTOHEADER = @AUTOHEADER@
39143 +AUTOMAKE = @AUTOMAKE@
39144 +AWK = @AWK@
39145 CC = @CC@
39146 -DLLTOOL = @DLLTOOL@
39147 +CCDEPMODE = @CCDEPMODE@
39148 +CFLAGS = @CFLAGS@
39149 +CPP = @CPP@
39150 +CPPFLAGS = @CPPFLAGS@
39151 +CXX = @CXX@
39152 +CXXCPP = @CXXCPP@
39153 +CXXDEPMODE = @CXXDEPMODE@
39154 +CXXFLAGS = @CXXFLAGS@
39155 +CYGPATH_W = @CYGPATH_W@
39156 +DEFS = @DEFS@
39157 +DEPDIR = @DEPDIR@
39158 +ECHO = @ECHO@
39159 +ECHO_C = @ECHO_C@
39160 +ECHO_N = @ECHO_N@
39161 +ECHO_T = @ECHO_T@
39162 +EGREP = @EGREP@
39163 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
39164 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
39165 +EXEEXT = @EXEEXT@
39166 +F77 = @F77@
39167 +FFLAGS = @FFLAGS@
39168 GTK_CFLAGS = @GTK_CFLAGS@
39169 GTK_CONFIG = @GTK_CONFIG@
39170 GTK_LIBS = @GTK_LIBS@
39171 -LD = @LD@
39172 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
39173 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
39174 +INSTALL_DATA = @INSTALL_DATA@
39175 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
39176 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
39177 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
39178 +LDFLAGS = @LDFLAGS@
39179 +LIBOBJS = @LIBOBJS@
39180 +LIBS = @LIBS@
39181 LIBTOOL = @LIBTOOL@
39182 LN_S = @LN_S@
39183 +LTLIBOBJS = @LTLIBOBJS@
39184 MAINT = @MAINT@
39185 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
39186 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
39187 MAKEINFO = @MAKEINFO@
39188 -NM = @NM@
39189 +OBJEXT = @OBJEXT@
39190 PACKAGE = @PACKAGE@
39191 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
39192 +PACKAGE_NAME = @PACKAGE_NAME@
39193 +PACKAGE_STRING = @PACKAGE_STRING@
39194 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
39195 +PACKAGE_VERSION = @PACKAGE_VERSION@
39196 +PATH_SEPARATOR = @PATH_SEPARATOR@
39197 RANLIB = @RANLIB@
39198 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
39199 +SET_MAKE = @SET_MAKE@
39200 +SHELL = @SHELL@
39201 +STRIP = @STRIP@
39202 VERSION = @VERSION@
39203 X_CFLAGS = @X_CFLAGS@
39204 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
39205 X_LDFLAGS = @X_LDFLAGS@
39206 +X_LIBS = @X_LIBS@
39207 +X_PRE_LIBS = @X_PRE_LIBS@
39208 +ac_ct_AR = @ac_ct_AR@
39209 +ac_ct_CC = @ac_ct_CC@
39210 +ac_ct_CXX = @ac_ct_CXX@
39211 +ac_ct_F77 = @ac_ct_F77@
39212 +ac_ct_RANLIB = @ac_ct_RANLIB@
39213 +ac_ct_STRIP = @ac_ct_STRIP@
39214 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39215 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39216 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
39217 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
39218 +am__include = @am__include@
39219 +am__leading_dot = @am__leading_dot@
39220 +am__quote = @am__quote@
39221 +bindir = @bindir@
39222 +build = @build@
39223 +build_alias = @build_alias@
39224 +build_cpu = @build_cpu@
39225 +build_os = @build_os@
39226 +build_vendor = @build_vendor@
39227 +datadir = @datadir@
39228 +exec_prefix = @exec_prefix@
39229 +host = @host@
39230 +host_alias = @host_alias@
39231 +host_cpu = @host_cpu@
39232 +host_os = @host_os@
39233 +host_vendor = @host_vendor@
39234 +includedir = @includedir@
39235 +infodir = @infodir@
39236 +install_sh = @install_sh@
39237 +libdir = @libdir@
39238 +libexecdir = @libexecdir@
39239 +localstatedir = @localstatedir@
39240 +mandir = @mandir@
39241 +oldincludedir = @oldincludedir@
39242 +prefix = @prefix@
39243 +program_transform_name = @program_transform_name@
39244 +sbindir = @sbindir@
39245 +sharedstatedir = @sharedstatedir@
39246 +sysconfdir = @sysconfdir@
39247 +target_alias = @target_alias@
39249 +# A brief demonstration of using Automake with Libtool. -*-Makefile-*-
39250 +#
39251 +# NOTE: Don't forget that in the libtool distribution, files in this
39252 +# directory are distributed by the demo_distfiles variable in the top
39253 +# level Makefile.
39254 AUTOMAKE_OPTIONS = foreign
39256 -EXTRA_DIST =
39258 #SEL_BIB = libgstroke.la
39260 lib_LTLIBRARIES = libgstroke.la
39261 libgstroke_la_SOURCES = gnome-stroke.c gnome-stroke-draw.c gstroke.h
39263 -libgstroke_la_LDFLAGS = -version-info 0:5:0
39264 +libgstroke_la_LDFLAGS = -version-info 0:5:0 -lgtk
39266 include_HEADERS = gstroke.h
39268 @@ -102,6 +166,8 @@ noinst_HEADERS = gstroke-internal.h
39269 INCLUDES = @GTK_CFLAGS@
39270 LDADD = @GTK_LIBS@
39272 +EXTRA_DIST =
39274 MOSTLYCLEANFILES = core *~
39275 CLEANFILES = core *~
39276 DISTCLEANFILES = core *~
39277 @@ -110,96 +176,117 @@ MAINTAINERCLEANFILES = core *~
39278 # Unfortunately, in order to test libtool thoroughly, we need access
39279 # to its private directory.
39280 objdir = `sed -n -e 's/^objdir=\"\(.*\)\"$$/\1/p' ./libtool`
39281 +subdir = libgstroke
39282 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
39283 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
39284 -CONFIG_HEADER = ../config.h
39285 -CONFIG_CLEAN_FILES =
39286 -LTLIBRARIES = $(lib_LTLIBRARIES)
39289 -DEFS = @DEFS@ -I. -I$(srcdir) -I..
39290 -CPPFLAGS = @CPPFLAGS@
39291 -LDFLAGS = @LDFLAGS@
39292 -LIBS = @LIBS@
39293 -X_LIBS = @X_LIBS@
39294 -X_EXTRA_LIBS = @X_EXTRA_LIBS@
39295 -X_PRE_LIBS = @X_PRE_LIBS@
39296 -libgstroke_la_LIBADD =
39297 -libgstroke_la_OBJECTS = gnome-stroke.lo gnome-stroke-draw.lo
39298 -CFLAGS = @CFLAGS@
39299 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39300 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39301 +CONFIG_HEADER = $(top_builddir)/config.h
39302 +CONFIG_CLEAN_FILES =
39303 +LTLIBRARIES = $(lib_LTLIBRARIES)
39305 +libgstroke_la_LIBADD =
39306 +am_libgstroke_la_OBJECTS = gnome-stroke.lo gnome-stroke-draw.lo
39307 +libgstroke_la_OBJECTS = $(am_libgstroke_la_OBJECTS)
39309 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
39310 +depcomp = $(SHELL) $(top_srcdir)/depcomp
39311 +am__depfiles_maybe = depfiles
39312 +@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/gnome-stroke-draw.Plo \
39313 +@AMDEP_TRUE@ ./$(DEPDIR)/gnome-stroke.Plo
39314 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
39315 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39316 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
39317 + $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
39318 CCLD = $(CC)
39319 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
39320 -HEADERS = $(include_HEADERS) $(noinst_HEADERS)
39322 -DIST_COMMON = README ChangeLog Makefile.am Makefile.in TODO
39323 +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
39324 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
39325 +DIST_SOURCES = $(libgstroke_la_SOURCES)
39326 +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
39329 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
39331 -TAR = gtar
39332 -GZIP_ENV = --best
39333 -DEP_FILES = .deps/gnome-stroke-draw.P .deps/gnome-stroke.P
39334 +DIST_COMMON = README $(include_HEADERS) $(noinst_HEADERS) \
39335 + $(srcdir)/Makefile.in ChangeLog Makefile.am TODO
39336 SOURCES = $(libgstroke_la_SOURCES)
39337 -OBJECTS = $(libgstroke_la_OBJECTS)
39339 -all: all-redirect
39340 -.SUFFIXES:
39341 -.SUFFIXES: .S .c .lo .o .s
39342 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
39343 - cd $(top_srcdir) && $(AUTOMAKE) --foreign libgstroke/Makefile
39345 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
39346 - cd $(top_builddir) \
39347 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
39349 +all: all-am
39351 -mostlyclean-libLTLIBRARIES:
39353 -clean-libLTLIBRARIES:
39354 - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
39356 -distclean-libLTLIBRARIES:
39358 -maintainer-clean-libLTLIBRARIES:
39360 +.SUFFIXES:
39361 +.SUFFIXES: .c .lo .o .obj
39362 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
39363 + cd $(top_srcdir) && \
39364 + $(AUTOMAKE) --foreign libgstroke/Makefile
39365 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
39366 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
39367 +libLTLIBRARIES_INSTALL = $(INSTALL)
39368 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
39369 @$(NORMAL_INSTALL)
39370 $(mkinstalldirs) $(DESTDIR)$(libdir)
39371 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
39372 if test -f $$p; then \
39373 - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
39374 - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
39375 + f="`echo $$p | sed -e 's|^.*/||'`"; \
39376 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
39377 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
39378 else :; fi; \
39379 done
39381 uninstall-libLTLIBRARIES:
39382 @$(NORMAL_UNINSTALL)
39383 - list='$(lib_LTLIBRARIES)'; for p in $$list; do \
39384 - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
39385 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
39386 + p="`echo $$p | sed -e 's|^.*/||'`"; \
39387 + echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
39388 + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
39389 done
39391 -.s.o:
39392 - $(COMPILE) -c $<
39394 -.S.o:
39395 - $(COMPILE) -c $<
39396 +clean-libLTLIBRARIES:
39397 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
39398 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
39399 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
39400 + test "$$dir" = "$$p" && dir=.; \
39401 + echo "rm -f \"$${dir}/so_locations\""; \
39402 + rm -f "$${dir}/so_locations"; \
39403 + done
39404 +libgstroke.la: $(libgstroke_la_OBJECTS) $(libgstroke_la_DEPENDENCIES)
39405 + $(LINK) -rpath $(libdir) $(libgstroke_la_LDFLAGS) $(libgstroke_la_OBJECTS) $(libgstroke_la_LIBADD) $(LIBS)
39407 mostlyclean-compile:
39408 - -rm -f *.o core *.core
39410 -clean-compile:
39411 + -rm -f *.$(OBJEXT) core *.core
39413 distclean-compile:
39414 -rm -f *.tab.c
39416 -maintainer-clean-compile:
39418 -.s.lo:
39419 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39420 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gnome-stroke-draw.Plo@am__quote@
39421 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gnome-stroke.Plo@am__quote@
39423 -.S.lo:
39424 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
39425 +.c.o:
39426 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
39427 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
39428 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
39429 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
39430 +@am__fastdepCC_TRUE@ fi
39431 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39432 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
39433 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39434 +@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
39436 +.c.obj:
39437 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
39438 +@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
39439 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
39440 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
39441 +@am__fastdepCC_TRUE@ fi
39442 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
39443 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
39444 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39445 +@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
39447 +.c.lo:
39448 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
39449 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
39450 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
39451 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
39452 +@am__fastdepCC_TRUE@ fi
39453 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
39454 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
39455 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
39456 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
39458 mostlyclean-libtool:
39459 -rm -f *.lo
39460 @@ -208,135 +295,132 @@ clean-libtool:
39461 -rm -rf .libs _libs
39463 distclean-libtool:
39465 -maintainer-clean-libtool:
39467 -libgstroke.la: $(libgstroke_la_OBJECTS) $(libgstroke_la_DEPENDENCIES)
39468 - $(LINK) -rpath $(libdir) $(libgstroke_la_LDFLAGS) $(libgstroke_la_OBJECTS) $(libgstroke_la_LIBADD) $(LIBS)
39470 + -rm -f libtool
39471 +uninstall-info-am:
39472 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
39473 install-includeHEADERS: $(include_HEADERS)
39474 @$(NORMAL_INSTALL)
39475 $(mkinstalldirs) $(DESTDIR)$(includedir)
39476 @list='$(include_HEADERS)'; for p in $$list; do \
39477 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
39478 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
39479 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
39480 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
39481 + f="`echo $$p | sed -e 's|^.*/||'`"; \
39482 + echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
39483 + $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
39484 done
39486 uninstall-includeHEADERS:
39487 @$(NORMAL_UNINSTALL)
39488 - list='$(include_HEADERS)'; for p in $$list; do \
39489 - rm -f $(DESTDIR)$(includedir)/$$p; \
39490 + @list='$(include_HEADERS)'; for p in $$list; do \
39491 + f="`echo $$p | sed -e 's|^.*/||'`"; \
39492 + echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
39493 + rm -f $(DESTDIR)$(includedir)/$$f; \
39494 done
39496 +ETAGS = etags
39497 +ETAGSFLAGS =
39499 +CTAGS = ctags
39500 +CTAGSFLAGS =
39502 tags: TAGS
39504 -ID: $(HEADERS) $(SOURCES) $(LISP)
39505 - list='$(SOURCES) $(HEADERS)'; \
39506 - unique=`for i in $$list; do echo $$i; done | \
39507 - awk ' { files[$$0] = 1; } \
39508 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
39509 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39510 + unique=`for i in $$list; do \
39511 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39512 + done | \
39513 + $(AWK) ' { files[$$0] = 1; } \
39514 END { for (i in files) print i; }'`; \
39515 - here=`pwd` && cd $(srcdir) \
39516 - && mkid -f$$here/ID $$unique $(LISP)
39517 + mkid -fID $$unique
39519 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
39520 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39521 + $(TAGS_FILES) $(LISP)
39522 tags=; \
39523 here=`pwd`; \
39524 - list='$(SOURCES) $(HEADERS)'; \
39525 - unique=`for i in $$list; do echo $$i; done | \
39526 - awk ' { files[$$0] = 1; } \
39527 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39528 + unique=`for i in $$list; do \
39529 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39530 + done | \
39531 + $(AWK) ' { files[$$0] = 1; } \
39532 END { for (i in files) print i; }'`; \
39533 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
39534 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
39536 -mostlyclean-tags:
39538 -clean-tags:
39539 + test -z "$(ETAGS_ARGS)$$tags$$unique" \
39540 + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
39541 + $$tags $$unique
39543 +ctags: CTAGS
39544 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
39545 + $(TAGS_FILES) $(LISP)
39546 + tags=; \
39547 + here=`pwd`; \
39548 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
39549 + unique=`for i in $$list; do \
39550 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
39551 + done | \
39552 + $(AWK) ' { files[$$0] = 1; } \
39553 + END { for (i in files) print i; }'`; \
39554 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
39555 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
39556 + $$tags $$unique
39558 +GTAGS:
39559 + here=`$(am__cd) $(top_builddir) && pwd` \
39560 + && cd $(top_srcdir) \
39561 + && gtags -i $(GTAGS_ARGS) $$here
39563 distclean-tags:
39564 - -rm -f TAGS ID
39566 -maintainer-clean-tags:
39567 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
39568 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
39570 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
39572 -subdir = libgstroke
39573 +top_distdir = ..
39574 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
39576 distdir: $(DISTFILES)
39577 - here=`cd $(top_builddir) && pwd`; \
39578 - top_distdir=`cd $(top_distdir) && pwd`; \
39579 - distdir=`cd $(distdir) && pwd`; \
39580 - cd $(top_srcdir) \
39581 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign libgstroke/Makefile
39582 - @for file in $(DISTFILES); do \
39583 - d=$(srcdir); \
39584 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
39585 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
39586 + list='$(DISTFILES)'; for file in $$list; do \
39587 + case $$file in \
39588 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
39589 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
39590 + esac; \
39591 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
39592 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
39593 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
39594 + dir="/$$dir"; \
39595 + $(mkinstalldirs) "$(distdir)$$dir"; \
39596 + else \
39597 + dir=''; \
39598 + fi; \
39599 if test -d $$d/$$file; then \
39600 - cp -pr $$d/$$file $(distdir)/$$file; \
39601 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
39602 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
39603 + fi; \
39604 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
39605 else \
39606 test -f $(distdir)/$$file \
39607 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
39608 - || cp -p $$d/$$file $(distdir)/$$file || :; \
39609 + || cp -p $$d/$$file $(distdir)/$$file \
39610 + || exit 1; \
39611 fi; \
39612 done
39614 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
39616 --include $(DEP_FILES)
39618 -mostlyclean-depend:
39620 -clean-depend:
39622 -distclean-depend:
39623 - -rm -rf .deps
39625 -maintainer-clean-depend:
39627 -%.o: %.c
39628 - @echo '$(COMPILE) -c $<'; \
39629 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39630 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
39631 - tr ' ' '\012' < .deps/$(*F).pp \
39632 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39633 - >> .deps/$(*F).P; \
39634 - rm .deps/$(*F).pp
39636 -%.lo: %.c
39637 - @echo '$(LTCOMPILE) -c $<'; \
39638 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
39639 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
39640 - < .deps/$(*F).pp > .deps/$(*F).P; \
39641 - tr ' ' '\012' < .deps/$(*F).pp \
39642 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
39643 - >> .deps/$(*F).P; \
39644 - rm -f .deps/$(*F).pp
39645 -info-am:
39646 -info: info-am
39647 -dvi-am:
39648 -dvi: dvi-am
39649 check-am: all-am
39650 check: check-am
39651 -installcheck-am:
39652 -installcheck: installcheck-am
39653 -install-exec-am: install-libLTLIBRARIES
39654 -install-exec: install-exec-am
39655 +all-am: Makefile $(LTLIBRARIES) $(HEADERS)
39657 -install-data-am: install-includeHEADERS
39658 +installdirs:
39659 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
39660 +install: install-am
39661 +install-exec: install-exec-am
39662 install-data: install-data-am
39663 +uninstall: uninstall-am
39665 install-am: all-am
39666 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
39667 -install: install-am
39668 -uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS
39669 -uninstall: uninstall-am
39670 -all-am: Makefile $(LTLIBRARIES) $(HEADERS)
39671 -all-redirect: all-am
39672 -install-strip:
39673 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
39674 -installdirs:
39675 - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
39678 +installcheck: installcheck-am
39679 +install-strip:
39680 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
39681 + INSTALL_STRIP_FLAG=-s \
39682 + `test -z '$(STRIP)' || \
39683 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
39684 mostlyclean-generic:
39685 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
39687 @@ -344,54 +428,76 @@ clean-generic:
39688 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
39690 distclean-generic:
39691 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
39692 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
39693 + -rm -f $(CONFIG_CLEAN_FILES)
39694 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
39696 maintainer-clean-generic:
39697 + @echo "This command is intended for maintainers to use"
39698 + @echo "it deletes files that may require special tools to rebuild."
39699 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
39700 -mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
39701 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
39702 - mostlyclean-generic
39703 +clean: clean-am
39705 -mostlyclean: mostlyclean-am
39706 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
39707 + mostlyclean-am
39709 -clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
39710 - clean-depend clean-generic mostlyclean-am
39711 +distclean: distclean-am
39712 + -rm -rf ./$(DEPDIR)
39713 + -rm -f Makefile
39714 +distclean-am: clean-am distclean-compile distclean-generic \
39715 + distclean-libtool distclean-tags
39717 -clean: clean-am
39718 +dvi: dvi-am
39720 -distclean-am: distclean-libLTLIBRARIES distclean-compile \
39721 - distclean-libtool distclean-tags distclean-depend \
39722 - distclean-generic clean-am
39723 - -rm -f libtool
39724 +dvi-am:
39726 -distclean: distclean-am
39727 +info: info-am
39729 -maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
39730 - maintainer-clean-compile maintainer-clean-libtool \
39731 - maintainer-clean-tags maintainer-clean-depend \
39732 - maintainer-clean-generic distclean-am
39733 - @echo "This command is intended for maintainers to use;"
39734 - @echo "it deletes files that may require special tools to rebuild."
39735 +info-am:
39737 +install-data-am: install-includeHEADERS
39739 +install-exec-am: install-libLTLIBRARIES
39741 +install-info: install-info-am
39743 +install-man:
39745 +installcheck-am:
39747 maintainer-clean: maintainer-clean-am
39748 + -rm -rf ./$(DEPDIR)
39749 + -rm -f Makefile
39750 +maintainer-clean-am: distclean-am maintainer-clean-generic
39752 +mostlyclean: mostlyclean-am
39754 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
39755 + mostlyclean-libtool
39757 +pdf: pdf-am
39759 +pdf-am:
39761 -.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
39762 -clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
39763 -uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
39764 -distclean-compile clean-compile maintainer-clean-compile \
39765 -mostlyclean-libtool distclean-libtool clean-libtool \
39766 -maintainer-clean-libtool uninstall-includeHEADERS \
39767 -install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
39768 -maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
39769 -clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
39770 -check-am installcheck-am installcheck install-exec-am install-exec \
39771 -install-data-am install-data install-am install uninstall-am uninstall \
39772 -all-redirect all-am all installdirs mostlyclean-generic \
39773 -distclean-generic clean-generic maintainer-clean-generic clean \
39774 -mostlyclean distclean maintainer-clean
39775 +ps: ps-am
39777 +ps-am:
39779 +uninstall-am: uninstall-includeHEADERS uninstall-info-am \
39780 + uninstall-libLTLIBRARIES
39782 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
39783 + clean-libLTLIBRARIES clean-libtool ctags distclean \
39784 + distclean-compile distclean-generic distclean-libtool \
39785 + distclean-tags distdir dvi dvi-am info info-am install \
39786 + install-am install-data install-data-am install-exec \
39787 + install-exec-am install-includeHEADERS install-info \
39788 + install-info-am install-libLTLIBRARIES install-man \
39789 + install-strip installcheck installcheck-am installdirs \
39790 + maintainer-clean maintainer-clean-generic mostlyclean \
39791 + mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
39792 + pdf-am ps ps-am tags uninstall uninstall-am \
39793 + uninstall-includeHEADERS uninstall-info-am \
39794 + uninstall-libLTLIBRARIES
39796 # Tell versions [3.59,3.63) of GNU make to not export all variables.
39797 # Otherwise a system limit (for SysV at least) may be exceeded.
39798 --- libstroke-0.5.1.orig/libstroke/Makefile.am
39799 +++ libstroke-0.5.1/libstroke/Makefile.am
39800 @@ -5,10 +5,8 @@
39801 # level Makefile.
39802 AUTOMAKE_OPTIONS = foreign
39804 -EXTRA_DIST =
39806 #tclpath::
39807 - #echo ${ENABLE_TCL}
39808 +# echo ${ENABLE_TCL}
39810 #if ENABLE_TCL
39811 #SEL_BIB = libstroke.la libstroke_tcl.la
39812 --- libstroke-0.5.1.orig/libstroke/Makefile.in
39813 +++ libstroke-0.5.1/libstroke/Makefile.in
39814 @@ -1,6 +1,8 @@
39815 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
39816 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
39817 +# @configure_input@
39819 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
39820 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
39821 +# Free Software Foundation, Inc.
39822 # This Makefile.in is free software; the Free Software Foundation
39823 # gives unlimited permission to copy and/or distribute it,
39824 # with or without modifications, as long as this notice is preserved.
39825 @@ -10,83 +12,149 @@
39826 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
39827 # PARTICULAR PURPOSE.
39829 -# A brief demonstration of using Automake with Libtool. -*-Makefile-*-
39830 -#
39831 -# NOTE: Don't forget that in the libtool distribution, files in this
39832 -# directory are distributed by the demo_distfiles variable in the top
39833 -# level Makefile.
39836 -SHELL = @SHELL@
39837 +@SET_MAKE@
39839 srcdir = @srcdir@
39840 top_srcdir = @top_srcdir@
39841 VPATH = @srcdir@
39842 -prefix = @prefix@
39843 -exec_prefix = @exec_prefix@
39845 -bindir = @bindir@
39846 -sbindir = @sbindir@
39847 -libexecdir = @libexecdir@
39848 -datadir = @datadir@
39849 -sysconfdir = @sysconfdir@
39850 -sharedstatedir = @sharedstatedir@
39851 -localstatedir = @localstatedir@
39852 -libdir = @libdir@
39853 -infodir = @infodir@
39854 -mandir = @mandir@
39855 -includedir = @includedir@
39856 -oldincludedir = /usr/include
39858 -DESTDIR =
39860 pkgdatadir = $(datadir)/@PACKAGE@
39861 pkglibdir = $(libdir)/@PACKAGE@
39862 pkgincludedir = $(includedir)/@PACKAGE@
39864 top_builddir = ..
39866 -ACLOCAL = @ACLOCAL@
39867 -AUTOCONF = @AUTOCONF@
39868 -AUTOMAKE = @AUTOMAKE@
39869 -AUTOHEADER = @AUTOHEADER@
39871 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
39872 INSTALL = @INSTALL@
39873 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
39874 -INSTALL_DATA = @INSTALL_DATA@
39875 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
39876 -transform = @program_transform_name@
39878 +install_sh_DATA = $(install_sh) -c -m 644
39879 +install_sh_PROGRAM = $(install_sh) -c
39880 +install_sh_SCRIPT = $(install_sh) -c
39881 +INSTALL_HEADER = $(INSTALL_DATA)
39882 +transform = $(program_transform_name)
39883 NORMAL_INSTALL = :
39884 PRE_INSTALL = :
39885 POST_INSTALL = :
39886 NORMAL_UNINSTALL = :
39887 PRE_UNINSTALL = :
39888 POST_UNINSTALL = :
39889 -host_alias = @host_alias@
39890 host_triplet = @host@
39891 -AS = @AS@
39892 +ACLOCAL = @ACLOCAL@
39893 +AMDEP_FALSE = @AMDEP_FALSE@
39894 +AMDEP_TRUE = @AMDEP_TRUE@
39895 +AMTAR = @AMTAR@
39896 +AR = @AR@
39897 +AUTOCONF = @AUTOCONF@
39898 +AUTOHEADER = @AUTOHEADER@
39899 +AUTOMAKE = @AUTOMAKE@
39900 +AWK = @AWK@
39901 CC = @CC@
39902 -DLLTOOL = @DLLTOOL@
39903 +CCDEPMODE = @CCDEPMODE@
39904 +CFLAGS = @CFLAGS@
39905 +CPP = @CPP@
39906 +CPPFLAGS = @CPPFLAGS@
39907 +CXX = @CXX@
39908 +CXXCPP = @CXXCPP@
39909 +CXXDEPMODE = @CXXDEPMODE@
39910 +CXXFLAGS = @CXXFLAGS@
39911 +CYGPATH_W = @CYGPATH_W@
39912 +DEFS = @DEFS@
39913 +DEPDIR = @DEPDIR@
39914 +ECHO = @ECHO@
39915 +ECHO_C = @ECHO_C@
39916 +ECHO_N = @ECHO_N@
39917 +ECHO_T = @ECHO_T@
39918 +EGREP = @EGREP@
39919 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
39920 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
39921 +EXEEXT = @EXEEXT@
39922 +F77 = @F77@
39923 +FFLAGS = @FFLAGS@
39924 GTK_CFLAGS = @GTK_CFLAGS@
39925 GTK_CONFIG = @GTK_CONFIG@
39926 GTK_LIBS = @GTK_LIBS@
39927 -LD = @LD@
39928 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
39929 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
39930 +INSTALL_DATA = @INSTALL_DATA@
39931 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
39932 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
39933 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
39934 +LDFLAGS = @LDFLAGS@
39935 +LIBOBJS = @LIBOBJS@
39936 +LIBS = @LIBS@
39937 LIBTOOL = @LIBTOOL@
39938 LN_S = @LN_S@
39939 +LTLIBOBJS = @LTLIBOBJS@
39940 MAINT = @MAINT@
39941 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
39942 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
39943 MAKEINFO = @MAKEINFO@
39944 -NM = @NM@
39945 +OBJEXT = @OBJEXT@
39946 PACKAGE = @PACKAGE@
39947 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
39948 +PACKAGE_NAME = @PACKAGE_NAME@
39949 +PACKAGE_STRING = @PACKAGE_STRING@
39950 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
39951 +PACKAGE_VERSION = @PACKAGE_VERSION@
39952 +PATH_SEPARATOR = @PATH_SEPARATOR@
39953 RANLIB = @RANLIB@
39954 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
39955 +SET_MAKE = @SET_MAKE@
39956 +SHELL = @SHELL@
39957 +STRIP = @STRIP@
39958 VERSION = @VERSION@
39959 X_CFLAGS = @X_CFLAGS@
39960 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
39961 X_LDFLAGS = @X_LDFLAGS@
39962 +X_LIBS = @X_LIBS@
39963 +X_PRE_LIBS = @X_PRE_LIBS@
39964 +ac_ct_AR = @ac_ct_AR@
39965 +ac_ct_CC = @ac_ct_CC@
39966 +ac_ct_CXX = @ac_ct_CXX@
39967 +ac_ct_F77 = @ac_ct_F77@
39968 +ac_ct_RANLIB = @ac_ct_RANLIB@
39969 +ac_ct_STRIP = @ac_ct_STRIP@
39970 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
39971 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
39972 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
39973 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
39974 +am__include = @am__include@
39975 +am__leading_dot = @am__leading_dot@
39976 +am__quote = @am__quote@
39977 +bindir = @bindir@
39978 +build = @build@
39979 +build_alias = @build_alias@
39980 +build_cpu = @build_cpu@
39981 +build_os = @build_os@
39982 +build_vendor = @build_vendor@
39983 +datadir = @datadir@
39984 +exec_prefix = @exec_prefix@
39985 +host = @host@
39986 +host_alias = @host_alias@
39987 +host_cpu = @host_cpu@
39988 +host_os = @host_os@
39989 +host_vendor = @host_vendor@
39990 +includedir = @includedir@
39991 +infodir = @infodir@
39992 +install_sh = @install_sh@
39993 +libdir = @libdir@
39994 +libexecdir = @libexecdir@
39995 +localstatedir = @localstatedir@
39996 +mandir = @mandir@
39997 +oldincludedir = @oldincludedir@
39998 +prefix = @prefix@
39999 +program_transform_name = @program_transform_name@
40000 +sbindir = @sbindir@
40001 +sharedstatedir = @sharedstatedir@
40002 +sysconfdir = @sysconfdir@
40003 +target_alias = @target_alias@
40005 +# A brief demonstration of using Automake with Libtool. -*-Makefile-*-
40006 +#
40007 +# NOTE: Don't forget that in the libtool distribution, files in this
40008 +# directory are distributed by the demo_distfiles variable in the top
40009 +# level Makefile.
40010 AUTOMAKE_OPTIONS = foreign
40012 -EXTRA_DIST =
40014 +#tclpath::
40015 +# echo ${ENABLE_TCL}
40017 #if ENABLE_TCL
40018 #SEL_BIB = libstroke.la libstroke_tcl.la
40019 @@ -102,7 +170,6 @@ EXTRA_DIST =
40020 #SEL_FIB = $(SEL_FIB) libstroke.la
40022 #lib_LTLIBRARIES = $(SEL_FIB)
40024 lib_LTLIBRARIES = libstroke.la
40025 #libstroke_tcl_la_LDFLAGS = -ltcl -version-info 0:5:0
40026 libstroke_la_SOURCES = stroke.c stroke.h
40027 @@ -113,6 +180,8 @@ include_HEADERS = stroke.h
40029 INCLUDES = -I$(top_srcdir)/libstroke @X_CFLAGS@
40031 +EXTRA_DIST =
40033 MOSTLYCLEANFILES = core *~
40034 CLEANFILES = core *~
40035 DISTCLEANFILES = core *~
40036 @@ -121,96 +190,114 @@ MAINTAINERCLEANFILES = core *~
40037 # Unfortunately, in order to test libtool thoroughly, we need access
40038 # to its private directory.
40039 objdir = `sed -n -e 's/^objdir=\"\(.*\)\"$$/\1/p' ./libtool`
40040 +subdir = libstroke
40041 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40042 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
40043 -CONFIG_HEADER = ../config.h
40044 -CONFIG_CLEAN_FILES =
40045 -LTLIBRARIES = $(lib_LTLIBRARIES)
40048 -DEFS = @DEFS@ -I. -I$(srcdir) -I..
40049 -CPPFLAGS = @CPPFLAGS@
40050 -LDFLAGS = @LDFLAGS@
40051 -LIBS = @LIBS@
40052 -X_LIBS = @X_LIBS@
40053 -X_EXTRA_LIBS = @X_EXTRA_LIBS@
40054 -X_PRE_LIBS = @X_PRE_LIBS@
40055 -libstroke_la_LIBADD =
40056 -libstroke_la_OBJECTS = stroke.lo
40057 -CFLAGS = @CFLAGS@
40058 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40059 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40060 +CONFIG_HEADER = $(top_builddir)/config.h
40061 +CONFIG_CLEAN_FILES =
40062 +LTLIBRARIES = $(lib_LTLIBRARIES)
40064 +libstroke_la_LIBADD =
40065 +am_libstroke_la_OBJECTS = stroke.lo
40066 +libstroke_la_OBJECTS = $(am_libstroke_la_OBJECTS)
40068 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
40069 +depcomp = $(SHELL) $(top_srcdir)/depcomp
40070 +am__depfiles_maybe = depfiles
40071 +@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/stroke.Plo
40072 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
40073 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40074 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
40075 + $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
40076 CCLD = $(CC)
40077 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
40078 -HEADERS = $(include_HEADERS)
40079 +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
40080 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
40081 +DIST_SOURCES = $(libstroke_la_SOURCES)
40082 +HEADERS = $(include_HEADERS)
40084 -DIST_COMMON = Makefile.am Makefile.in
40087 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
40089 -TAR = gtar
40090 -GZIP_ENV = --best
40091 -DEP_FILES = .deps/stroke.P
40092 +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.in Makefile.am
40093 SOURCES = $(libstroke_la_SOURCES)
40094 -OBJECTS = $(libstroke_la_OBJECTS)
40096 -all: all-redirect
40097 -.SUFFIXES:
40098 -.SUFFIXES: .S .c .lo .o .s
40099 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40100 - cd $(top_srcdir) && $(AUTOMAKE) --foreign libstroke/Makefile
40102 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
40103 - cd $(top_builddir) \
40104 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
40107 -mostlyclean-libLTLIBRARIES:
40109 -clean-libLTLIBRARIES:
40110 - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40112 -distclean-libLTLIBRARIES:
40114 -maintainer-clean-libLTLIBRARIES:
40115 +all: all-am
40117 +.SUFFIXES:
40118 +.SUFFIXES: .c .lo .o .obj
40119 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
40120 + cd $(top_srcdir) && \
40121 + $(AUTOMAKE) --foreign libstroke/Makefile
40122 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
40123 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
40124 +libLTLIBRARIES_INSTALL = $(INSTALL)
40125 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
40126 @$(NORMAL_INSTALL)
40127 $(mkinstalldirs) $(DESTDIR)$(libdir)
40128 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40129 if test -f $$p; then \
40130 - echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
40131 - $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
40132 + f="`echo $$p | sed -e 's|^.*/||'`"; \
40133 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \
40134 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \
40135 else :; fi; \
40136 done
40138 uninstall-libLTLIBRARIES:
40139 @$(NORMAL_UNINSTALL)
40140 - list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40141 - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
40142 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40143 + p="`echo $$p | sed -e 's|^.*/||'`"; \
40144 + echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \
40145 + $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
40146 done
40148 -.s.o:
40149 - $(COMPILE) -c $<
40151 -.S.o:
40152 - $(COMPILE) -c $<
40153 +clean-libLTLIBRARIES:
40154 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
40155 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
40156 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
40157 + test "$$dir" = "$$p" && dir=.; \
40158 + echo "rm -f \"$${dir}/so_locations\""; \
40159 + rm -f "$${dir}/so_locations"; \
40160 + done
40161 +libstroke.la: $(libstroke_la_OBJECTS) $(libstroke_la_DEPENDENCIES)
40162 + $(LINK) -rpath $(libdir) $(libstroke_la_LDFLAGS) $(libstroke_la_OBJECTS) $(libstroke_la_LIBADD) $(LIBS)
40164 mostlyclean-compile:
40165 - -rm -f *.o core *.core
40167 -clean-compile:
40168 + -rm -f *.$(OBJEXT) core *.core
40170 distclean-compile:
40171 -rm -f *.tab.c
40173 -maintainer-clean-compile:
40175 -.s.lo:
40176 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40177 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stroke.Plo@am__quote@
40179 -.S.lo:
40180 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
40181 +.c.o:
40182 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
40183 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
40184 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
40185 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
40186 +@am__fastdepCC_TRUE@ fi
40187 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40188 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
40189 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40190 +@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
40192 +.c.obj:
40193 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
40194 +@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
40195 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
40196 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
40197 +@am__fastdepCC_TRUE@ fi
40198 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
40199 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
40200 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40201 +@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
40203 +.c.lo:
40204 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
40205 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
40206 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
40207 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
40208 +@am__fastdepCC_TRUE@ fi
40209 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
40210 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
40211 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
40212 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
40214 mostlyclean-libtool:
40215 -rm -f *.lo
40216 @@ -219,135 +306,132 @@ clean-libtool:
40217 -rm -rf .libs _libs
40219 distclean-libtool:
40221 -maintainer-clean-libtool:
40223 -libstroke.la: $(libstroke_la_OBJECTS) $(libstroke_la_DEPENDENCIES)
40224 - $(LINK) -rpath $(libdir) $(libstroke_la_LDFLAGS) $(libstroke_la_OBJECTS) $(libstroke_la_LIBADD) $(LIBS)
40226 + -rm -f libtool
40227 +uninstall-info-am:
40228 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
40229 install-includeHEADERS: $(include_HEADERS)
40230 @$(NORMAL_INSTALL)
40231 $(mkinstalldirs) $(DESTDIR)$(includedir)
40232 @list='$(include_HEADERS)'; for p in $$list; do \
40233 - if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
40234 - echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
40235 - $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
40236 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
40237 + f="`echo $$p | sed -e 's|^.*/||'`"; \
40238 + echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \
40239 + $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \
40240 done
40242 uninstall-includeHEADERS:
40243 @$(NORMAL_UNINSTALL)
40244 - list='$(include_HEADERS)'; for p in $$list; do \
40245 - rm -f $(DESTDIR)$(includedir)/$$p; \
40246 + @list='$(include_HEADERS)'; for p in $$list; do \
40247 + f="`echo $$p | sed -e 's|^.*/||'`"; \
40248 + echo " rm -f $(DESTDIR)$(includedir)/$$f"; \
40249 + rm -f $(DESTDIR)$(includedir)/$$f; \
40250 done
40252 +ETAGS = etags
40253 +ETAGSFLAGS =
40255 +CTAGS = ctags
40256 +CTAGSFLAGS =
40258 tags: TAGS
40260 -ID: $(HEADERS) $(SOURCES) $(LISP)
40261 - list='$(SOURCES) $(HEADERS)'; \
40262 - unique=`for i in $$list; do echo $$i; done | \
40263 - awk ' { files[$$0] = 1; } \
40264 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
40265 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40266 + unique=`for i in $$list; do \
40267 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40268 + done | \
40269 + $(AWK) ' { files[$$0] = 1; } \
40270 END { for (i in files) print i; }'`; \
40271 - here=`pwd` && cd $(srcdir) \
40272 - && mkid -f$$here/ID $$unique $(LISP)
40273 + mkid -fID $$unique
40275 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
40276 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40277 + $(TAGS_FILES) $(LISP)
40278 tags=; \
40279 here=`pwd`; \
40280 - list='$(SOURCES) $(HEADERS)'; \
40281 - unique=`for i in $$list; do echo $$i; done | \
40282 - awk ' { files[$$0] = 1; } \
40283 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40284 + unique=`for i in $$list; do \
40285 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40286 + done | \
40287 + $(AWK) ' { files[$$0] = 1; } \
40288 END { for (i in files) print i; }'`; \
40289 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
40290 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
40292 -mostlyclean-tags:
40294 -clean-tags:
40295 + test -z "$(ETAGS_ARGS)$$tags$$unique" \
40296 + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
40297 + $$tags $$unique
40299 +ctags: CTAGS
40300 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
40301 + $(TAGS_FILES) $(LISP)
40302 + tags=; \
40303 + here=`pwd`; \
40304 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
40305 + unique=`for i in $$list; do \
40306 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
40307 + done | \
40308 + $(AWK) ' { files[$$0] = 1; } \
40309 + END { for (i in files) print i; }'`; \
40310 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
40311 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
40312 + $$tags $$unique
40314 +GTAGS:
40315 + here=`$(am__cd) $(top_builddir) && pwd` \
40316 + && cd $(top_srcdir) \
40317 + && gtags -i $(GTAGS_ARGS) $$here
40319 distclean-tags:
40320 - -rm -f TAGS ID
40322 -maintainer-clean-tags:
40323 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
40324 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
40326 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
40328 -subdir = libstroke
40329 +top_distdir = ..
40330 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
40332 distdir: $(DISTFILES)
40333 - here=`cd $(top_builddir) && pwd`; \
40334 - top_distdir=`cd $(top_distdir) && pwd`; \
40335 - distdir=`cd $(distdir) && pwd`; \
40336 - cd $(top_srcdir) \
40337 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign libstroke/Makefile
40338 - @for file in $(DISTFILES); do \
40339 - d=$(srcdir); \
40340 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
40341 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
40342 + list='$(DISTFILES)'; for file in $$list; do \
40343 + case $$file in \
40344 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
40345 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
40346 + esac; \
40347 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
40348 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
40349 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
40350 + dir="/$$dir"; \
40351 + $(mkinstalldirs) "$(distdir)$$dir"; \
40352 + else \
40353 + dir=''; \
40354 + fi; \
40355 if test -d $$d/$$file; then \
40356 - cp -pr $$d/$$file $(distdir)/$$file; \
40357 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
40358 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
40359 + fi; \
40360 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
40361 else \
40362 test -f $(distdir)/$$file \
40363 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
40364 - || cp -p $$d/$$file $(distdir)/$$file || :; \
40365 + || cp -p $$d/$$file $(distdir)/$$file \
40366 + || exit 1; \
40367 fi; \
40368 done
40370 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
40372 --include $(DEP_FILES)
40374 -mostlyclean-depend:
40376 -clean-depend:
40378 -distclean-depend:
40379 - -rm -rf .deps
40381 -maintainer-clean-depend:
40383 -%.o: %.c
40384 - @echo '$(COMPILE) -c $<'; \
40385 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
40386 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
40387 - tr ' ' '\012' < .deps/$(*F).pp \
40388 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
40389 - >> .deps/$(*F).P; \
40390 - rm .deps/$(*F).pp
40392 -%.lo: %.c
40393 - @echo '$(LTCOMPILE) -c $<'; \
40394 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
40395 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
40396 - < .deps/$(*F).pp > .deps/$(*F).P; \
40397 - tr ' ' '\012' < .deps/$(*F).pp \
40398 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
40399 - >> .deps/$(*F).P; \
40400 - rm -f .deps/$(*F).pp
40401 -info-am:
40402 -info: info-am
40403 -dvi-am:
40404 -dvi: dvi-am
40405 check-am: all-am
40406 check: check-am
40407 -installcheck-am:
40408 -installcheck: installcheck-am
40409 -install-exec-am: install-libLTLIBRARIES
40410 -install-exec: install-exec-am
40411 +all-am: Makefile $(LTLIBRARIES) $(HEADERS)
40413 -install-data-am: install-includeHEADERS
40414 +installdirs:
40415 + $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
40416 +install: install-am
40417 +install-exec: install-exec-am
40418 install-data: install-data-am
40419 +uninstall: uninstall-am
40421 install-am: all-am
40422 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
40423 -install: install-am
40424 -uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS
40425 -uninstall: uninstall-am
40426 -all-am: Makefile $(LTLIBRARIES) $(HEADERS)
40427 -all-redirect: all-am
40428 -install-strip:
40429 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
40430 -installdirs:
40431 - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
40434 +installcheck: installcheck-am
40435 +install-strip:
40436 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
40437 + INSTALL_STRIP_FLAG=-s \
40438 + `test -z '$(STRIP)' || \
40439 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
40440 mostlyclean-generic:
40441 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
40443 @@ -355,57 +439,76 @@ clean-generic:
40444 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
40446 distclean-generic:
40447 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
40448 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
40449 + -rm -f $(CONFIG_CLEAN_FILES)
40450 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
40452 maintainer-clean-generic:
40453 + @echo "This command is intended for maintainers to use"
40454 + @echo "it deletes files that may require special tools to rebuild."
40455 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
40456 -mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
40457 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
40458 - mostlyclean-generic
40459 +clean: clean-am
40461 -mostlyclean: mostlyclean-am
40462 +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
40463 + mostlyclean-am
40465 -clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
40466 - clean-depend clean-generic mostlyclean-am
40467 +distclean: distclean-am
40468 + -rm -rf ./$(DEPDIR)
40469 + -rm -f Makefile
40470 +distclean-am: clean-am distclean-compile distclean-generic \
40471 + distclean-libtool distclean-tags
40473 -clean: clean-am
40474 +dvi: dvi-am
40476 -distclean-am: distclean-libLTLIBRARIES distclean-compile \
40477 - distclean-libtool distclean-tags distclean-depend \
40478 - distclean-generic clean-am
40479 - -rm -f libtool
40480 +dvi-am:
40482 -distclean: distclean-am
40483 +info: info-am
40485 -maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
40486 - maintainer-clean-compile maintainer-clean-libtool \
40487 - maintainer-clean-tags maintainer-clean-depend \
40488 - maintainer-clean-generic distclean-am
40489 - @echo "This command is intended for maintainers to use;"
40490 - @echo "it deletes files that may require special tools to rebuild."
40491 +info-am:
40493 +install-data-am: install-includeHEADERS
40495 +install-exec-am: install-libLTLIBRARIES
40497 +install-info: install-info-am
40499 +install-man:
40501 +installcheck-am:
40503 maintainer-clean: maintainer-clean-am
40504 + -rm -rf ./$(DEPDIR)
40505 + -rm -f Makefile
40506 +maintainer-clean-am: distclean-am maintainer-clean-generic
40508 -.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
40509 -clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
40510 -uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
40511 -distclean-compile clean-compile maintainer-clean-compile \
40512 -mostlyclean-libtool distclean-libtool clean-libtool \
40513 -maintainer-clean-libtool uninstall-includeHEADERS \
40514 -install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
40515 -maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
40516 -clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
40517 -check-am installcheck-am installcheck install-exec-am install-exec \
40518 -install-data-am install-data install-am install uninstall-am uninstall \
40519 -all-redirect all-am all installdirs mostlyclean-generic \
40520 -distclean-generic clean-generic maintainer-clean-generic clean \
40521 -mostlyclean distclean maintainer-clean
40522 +mostlyclean: mostlyclean-am
40524 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
40525 + mostlyclean-libtool
40527 -#tclpath::
40528 - #echo ${ENABLE_TCL}
40529 +pdf: pdf-am
40531 +pdf-am:
40533 +ps: ps-am
40535 +ps-am:
40537 +uninstall-am: uninstall-includeHEADERS uninstall-info-am \
40538 + uninstall-libLTLIBRARIES
40540 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
40541 + clean-libLTLIBRARIES clean-libtool ctags distclean \
40542 + distclean-compile distclean-generic distclean-libtool \
40543 + distclean-tags distdir dvi dvi-am info info-am install \
40544 + install-am install-data install-data-am install-exec \
40545 + install-exec-am install-includeHEADERS install-info \
40546 + install-info-am install-libLTLIBRARIES install-man \
40547 + install-strip installcheck installcheck-am installdirs \
40548 + maintainer-clean maintainer-clean-generic mostlyclean \
40549 + mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \
40550 + pdf-am ps ps-am tags uninstall uninstall-am \
40551 + uninstall-includeHEADERS uninstall-info-am \
40552 + uninstall-libLTLIBRARIES
40554 # Tell versions [3.59,3.63) of GNU make to not export all variables.
40555 # Otherwise a system limit (for SysV at least) may be exceeded.
40556 --- libstroke-0.5.1.orig/ltmain.sh
40557 +++ libstroke-0.5.1/ltmain.sh
40558 @@ -1,8 +1,9 @@
40559 # ltmain.sh - Provide generalized library-building support services.
40560 -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
40561 +# NOTE: Changing this file will not affect anything until you rerun configure.
40563 -# Copyright (C) 1996-1999 Free Software Foundation, Inc.
40564 -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40565 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003
40566 +# Free Software Foundation, Inc.
40567 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
40569 # This program is free software; you can redistribute it and/or modify
40570 # it under the terms of the GNU General Public License as published by
40571 @@ -28,12 +29,8 @@ if test "X$1" = X--no-reexec; then
40572 # Discard the --no-reexec flag, and continue.
40573 shift
40574 elif test "X$1" = X--fallback-echo; then
40575 - # used as fallback echo
40576 - shift
40577 - cat <<EOF
40578 -$*
40579 -EOF
40580 - exit 0
40581 + # Avoid inline document here, it may be left over
40582 + :
40583 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40584 # Yippee, $echo works!
40586 @@ -42,14 +39,24 @@ else
40587 exec $SHELL "$0" --no-reexec ${1+"$@"}
40588 fi
40590 +if test "X$1" = X--fallback-echo; then
40591 + # used as fallback echo
40592 + shift
40593 + cat <<EOF
40594 +$*
40595 +EOF
40596 + exit 0
40597 +fi
40599 # The name of this program.
40600 -progname=`$echo "$0" | sed 's%^.*/%%'`
40601 +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
40602 modename="$progname"
40604 # Constants.
40605 PROGRAM=ltmain.sh
40606 PACKAGE=libtool
40607 -VERSION=1.2e
40608 +VERSION=1.5.0a
40609 +TIMESTAMP=" (1.1220.2.33 2003/09/29 11:43:50) Debian$Rev: 131 $"
40611 default_mode=
40612 help="Try \`$progname --help' for more information."
40613 @@ -60,10 +67,19 @@ rm="rm -f"
40615 # Sed substitution that helps us do robust quoting. It backslashifies
40616 # metacharacters that are still active within double-quoted strings.
40617 -Xsed='sed -e 1s/^X//'
40618 +Xsed="${SED}"' -e 1s/^X//'
40619 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
40620 -SP2NL='tr \040 \012'
40621 -NL2SP='tr \012 \040'
40622 +# test EBCDIC or ASCII
40623 +case `echo A|tr A '\301'` in
40624 + A) # EBCDIC based system
40625 + SP2NL="tr '\100' '\n'"
40626 + NL2SP="tr '\r\n' '\100\100'"
40627 + ;;
40628 + *) # Assume ASCII based system
40629 + SP2NL="tr '\040' '\012'"
40630 + NL2SP="tr '\015\012' '\040\040'"
40631 + ;;
40632 +esac
40634 # NLS nuisances.
40635 # Only set LANG and LC_ALL to C if already set.
40636 @@ -77,15 +93,13 @@ if test "${LANG+set}" = set; then
40637 save_LANG="$LANG"; LANG=C; export LANG
40638 fi
40640 -if test "$LTCONFIG_VERSION" != "$VERSION"; then
40641 - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
40642 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
40643 - exit 1
40644 -fi
40645 +# Make sure IFS has a sensible default
40646 +: ${IFS="
40647 +"}
40649 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
40650 - echo "$modename: not configured to build any kind of library" 1>&2
40651 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
40652 + $echo "$modename: not configured to build any kind of library" 1>&2
40653 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
40654 exit 1
40655 fi
40657 @@ -99,23 +113,95 @@ show="$echo"
40658 show_help=
40659 execute_dlfiles=
40660 lo2o="s/\\.lo\$/.${objext}/"
40661 +o2lo="s/\\.${objext}\$/.lo/"
40663 +#####################################
40664 +# Shell function definitions:
40665 +# This seems to be the best place for them
40667 +# Need a lot of goo to handle *both* DLLs and import libs
40668 +# Has to be a shell function in order to 'eat' the argument
40669 +# that is supplied when $file_magic_command is called.
40670 +win32_libid () {
40671 + win32_libid_type="unknown"
40672 + win32_fileres=`file -L $1 2>/dev/null`
40673 + case $win32_fileres in
40674 + *ar\ archive\ import\ library*) # definitely import
40675 + win32_libid_type="x86 archive import"
40676 + ;;
40677 + *ar\ archive*) # could be an import, or static
40678 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
40679 + grep -E 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
40680 + win32_nmres=`eval $NM -f posix -A $1 | \
40681 + sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
40682 + if test "X$win32_nmres" = "Ximport" ; then
40683 + win32_libid_type="x86 archive import"
40684 + else
40685 + win32_libid_type="x86 archive static"
40686 + fi
40687 + fi
40688 + ;;
40689 + *DLL*)
40690 + win32_libid_type="x86 DLL"
40691 + ;;
40692 + *executable*) # but shell scripts are "executable" too...
40693 + case $win32_fileres in
40694 + *MS\ Windows\ PE\ Intel*)
40695 + win32_libid_type="x86 DLL"
40696 + ;;
40697 + esac
40698 + ;;
40699 + esac
40700 + $echo $win32_libid_type
40701 +}
40703 +# End of Shell function definitions
40704 +#####################################
40706 # Parse our command line options once, thoroughly.
40707 -while test $# -gt 0
40708 +while test "$#" -gt 0
40709 do
40710 arg="$1"
40711 shift
40713 - case "$arg" in
40714 + case $arg in
40715 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
40716 *) optarg= ;;
40717 esac
40719 # If the previous option needs an argument, assign it.
40720 if test -n "$prev"; then
40721 - case "$prev" in
40722 + case $prev in
40723 execute_dlfiles)
40724 - eval "$prev=\"\$$prev \$arg\""
40725 + execute_dlfiles="$execute_dlfiles $arg"
40726 + ;;
40727 + tag)
40728 + tagname="$arg"
40729 + preserve_args="${preserve_args}=$arg"
40731 + # Check whether tagname contains only valid characters
40732 + case $tagname in
40733 + *[!-_A-Za-z0-9,/]*)
40734 + $echo "$progname: invalid tag name: $tagname" 1>&2
40735 + exit 1
40736 + ;;
40737 + esac
40739 + case $tagname in
40740 + CC)
40741 + # Don't test for the "default" C tag, as we know, it's there, but
40742 + # not specially marked.
40743 + ;;
40744 + *)
40745 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$0" > /dev/null; then
40746 + taglist="$taglist $tagname"
40747 + # Evaluate the configuration.
40748 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $0`"
40749 + else
40750 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
40751 + fi
40752 + ;;
40753 + esac
40754 ;;
40755 *)
40756 eval "$prev=\$arg"
40757 @@ -128,24 +214,33 @@ do
40758 fi
40760 # Have we seen a non-optional argument yet?
40761 - case "$arg" in
40762 + case $arg in
40763 --help)
40764 show_help=yes
40765 ;;
40767 --version)
40768 - echo "$PROGRAM (GNU $PACKAGE) $VERSION"
40769 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
40770 + $echo
40771 + $echo "Copyright (C) 2003 Free Software Foundation, Inc."
40772 + $echo "This is free software; see the source for copying conditions. There is NO"
40773 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
40774 exit 0
40775 ;;
40777 --config)
40778 - sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
40779 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
40780 + # Now print the configurations for the tags.
40781 + for tagname in $taglist; do
40782 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$0"
40783 + done
40784 exit 0
40785 ;;
40787 --debug)
40788 - echo "$progname: enabling shell trace mode"
40789 + $echo "$progname: enabling shell trace mode"
40790 set -x
40791 + preserve_args="$preserve_args $arg"
40792 ;;
40794 --dry-run | -n)
40795 @@ -153,16 +248,16 @@ do
40796 ;;
40798 --features)
40799 - echo "host: $host"
40800 + $echo "host: $host"
40801 if test "$build_libtool_libs" = yes; then
40802 - echo "enable shared libraries"
40803 + $echo "enable shared libraries"
40804 else
40805 - echo "disable shared libraries"
40806 + $echo "disable shared libraries"
40807 fi
40808 if test "$build_old_libs" = yes; then
40809 - echo "enable static libraries"
40810 + $echo "enable static libraries"
40811 else
40812 - echo "disable static libraries"
40813 + $echo "disable static libraries"
40814 fi
40815 exit 0
40816 ;;
40817 @@ -172,8 +267,19 @@ do
40818 --mode) prevopt="--mode" prev=mode ;;
40819 --mode=*) mode="$optarg" ;;
40821 + --preserve-dup-deps) duplicate_deps="yes" ;;
40823 --quiet | --silent)
40824 show=:
40825 + preserve_args="$preserve_args $arg"
40826 + ;;
40828 + --tag) prevopt="--tag" prev=tag ;;
40829 + --tag=*)
40830 + set tag "$optarg" ${1+"$@"}
40831 + shift
40832 + prev=tag
40833 + preserve_args="$preserve_args --tag"
40834 ;;
40836 -dlopen)
40837 @@ -200,16 +306,23 @@ if test -n "$prevopt"; then
40838 exit 1
40839 fi
40841 +# If this variable is set in any of the actions, the command in it
40842 +# will be execed at the end. This prevents here-documents from being
40843 +# left over by shells.
40844 +exec_cmd=
40846 if test -z "$show_help"; then
40848 # Infer the operation mode.
40849 if test -z "$mode"; then
40850 - case "$nonopt" in
40851 - *cc | *++ | gcc* | *-gcc*)
40852 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
40853 + $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
40854 + case $nonopt in
40855 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
40856 mode=link
40857 for arg
40858 do
40859 - case "$arg" in
40860 + case $arg in
40861 -c)
40862 mode=compile
40863 break
40864 @@ -254,109 +367,158 @@ if test -z "$show_help"; then
40865 help="Try \`$modename --help --mode=$mode' for more information."
40867 # These modes are in order of execution frequency so that they run quickly.
40868 - case "$mode" in
40869 + case $mode in
40870 # libtool compile mode
40871 compile)
40872 modename="$modename: compile"
40873 # Get the compilation command and the source file.
40874 base_compile=
40875 - lastarg=
40876 - srcfile="$nonopt"
40877 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
40878 + suppress_opt=yes
40879 suppress_output=
40880 + arg_mode=normal
40881 + libobj=
40883 - user_target=no
40884 for arg
40885 do
40886 - # Accept any command-line options.
40887 - case "$arg" in
40888 - -o)
40889 - if test "$user_target" != "no"; then
40890 - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
40891 - exit 1
40892 - fi
40893 - user_target=next
40894 - ;;
40896 - -static)
40897 - build_old_libs=yes
40898 - continue
40899 + case "$arg_mode" in
40900 + arg )
40901 + # do not "continue". Instead, add this to base_compile
40902 + lastarg="$arg"
40903 + arg_mode=normal
40904 ;;
40905 - esac
40907 - case "$user_target" in
40908 - next)
40909 - # The next one is the -o target name
40910 - user_target=yes
40911 - continue
40912 - ;;
40913 - yes)
40914 - # We got the output file
40915 - user_target=set
40916 + target )
40917 libobj="$arg"
40918 + arg_mode=normal
40919 continue
40920 ;;
40921 - esac
40923 - # Accept the current argument as the source file.
40924 - lastarg="$srcfile"
40925 - srcfile="$arg"
40926 + normal )
40927 + # Accept any command-line options.
40928 + case $arg in
40929 + -o)
40930 + if test -n "$libobj" ; then
40931 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
40932 + exit 1
40933 + fi
40934 + arg_mode=target
40935 + continue
40936 + ;;
40938 + -static)
40939 + build_old_libs=yes
40940 + continue
40941 + ;;
40943 + -prefer-pic)
40944 + pic_mode=yes
40945 + continue
40946 + ;;
40948 - # Aesthetically quote the previous argument.
40949 + -prefer-non-pic)
40950 + pic_mode=no
40951 + continue
40952 + ;;
40954 + -no-suppress)
40955 + suppress_opt=no
40956 + continue
40957 + ;;
40959 + -Xcompiler)
40960 + arg_mode=arg # the next one goes into the "base_compile" arg list
40961 + continue # The current "srcfile" will either be retained or
40962 + ;; # replaced later. I would guess that would be a bug.
40964 + -Wc,*)
40965 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
40966 + lastarg=
40967 + save_ifs="$IFS"; IFS=','
40968 + for arg in $args; do
40969 + IFS="$save_ifs"
40971 + # Double-quote args containing other shell metacharacters.
40972 + # Many Bourne shells cannot handle close brackets correctly
40973 + # in scan sets, so we specify it separately.
40974 + case $arg in
40975 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
40976 + arg="\"$arg\""
40977 + ;;
40978 + esac
40979 + lastarg="$lastarg $arg"
40980 + done
40981 + IFS="$save_ifs"
40982 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
40984 + # Add the arguments to base_compile.
40985 + base_compile="$base_compile $lastarg"
40986 + continue
40987 + ;;
40989 + * )
40990 + # Accept the current argument as the source file.
40991 + # The previous "srcfile" becomes the current argument.
40992 + #
40993 + lastarg="$srcfile"
40994 + srcfile="$arg"
40995 + ;;
40996 + esac # case $arg
40997 + ;;
40998 + esac # case $arg_mode
41000 - # Backslashify any backslashes, double quotes, and dollar signs.
41001 - # These are the only characters that are still specially
41002 - # interpreted inside of double-quoted scrings.
41003 + # Aesthetically quote the previous argument.
41004 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
41006 + case $lastarg in
41007 # Double-quote args containing other shell metacharacters.
41008 - # Many Bourne shells cannot handle close brackets correctly in scan
41009 - # sets, so we specify it separately.
41010 - case "$lastarg" in
41011 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
41012 + # Many Bourne shells cannot handle close brackets correctly
41013 + # in scan sets, so we specify it separately.
41014 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
41015 lastarg="\"$lastarg\""
41016 ;;
41017 esac
41019 - # Add the previous argument to base_compile.
41020 - if test -z "$base_compile"; then
41021 - base_compile="$lastarg"
41022 - else
41023 - base_compile="$base_compile $lastarg"
41024 - fi
41025 - done
41026 + base_compile="$base_compile $lastarg"
41027 + done # for arg
41029 - case "$user_target" in
41030 - set)
41031 - ;;
41032 - no)
41033 - # Get the name of the library object.
41034 - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
41035 + case $arg_mode in
41036 + arg)
41037 + $echo "$modename: you must specify an argument for -Xcompile"
41038 + exit 1
41039 ;;
41040 - *)
41041 + target)
41042 $echo "$modename: you must specify a target with \`-o'" 1>&2
41043 exit 1
41044 ;;
41045 + *)
41046 + # Get the name of the library object.
41047 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
41048 + ;;
41049 esac
41051 # Recognize several different file suffixes.
41052 # If the user specifies -o file.o, it is replaced with file.lo
41053 - xform='[cCFSfmso]'
41054 - case "$libobj" in
41055 + xform='[cCFSifmso]'
41056 + case $libobj in
41057 *.ada) xform=ada ;;
41058 *.adb) xform=adb ;;
41059 *.ads) xform=ads ;;
41060 *.asm) xform=asm ;;
41061 *.c++) xform=c++ ;;
41062 *.cc) xform=cc ;;
41063 + *.ii) xform=ii ;;
41064 + *.class) xform=class ;;
41065 *.cpp) xform=cpp ;;
41066 *.cxx) xform=cxx ;;
41067 *.f90) xform=f90 ;;
41068 *.for) xform=for ;;
41069 + *.java) xform=java ;;
41070 esac
41072 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
41074 - case "$libobj" in
41075 + case $libobj in
41076 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
41077 *)
41078 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
41079 @@ -364,6 +526,56 @@ if test -z "$show_help"; then
41080 ;;
41081 esac
41083 + # Infer tagged configuration to use if any are available and
41084 + # if one wasn't chosen via the "--tag" command line option.
41085 + # Only attempt this if the compiler in the base compile
41086 + # command doesn't match the default compiler.
41087 + if test -n "$available_tags" && test -z "$tagname"; then
41088 + case $base_compile in
41089 + # Blanks in the command may have been stripped by the calling shell,
41090 + # but not from the CC environment variable when configure was run.
41091 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "*) ;;
41092 + # Blanks at the start of $base_compile will cause this to fail
41093 + # if we don't check for them as well.
41094 + *)
41095 + for z in $available_tags; do
41096 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
41097 + # Evaluate the configuration.
41098 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
41099 + case "$base_compile " in
41100 + "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
41101 + # The compiler in the base compile command matches
41102 + # the one in the tagged configuration.
41103 + # Assume this is the tagged configuration we want.
41104 + tagname=$z
41105 + break
41106 + ;;
41107 + esac
41108 + fi
41109 + done
41110 + # If $tagname still isn't set, then no tagged configuration
41111 + # was found and let the user know that the "--tag" command
41112 + # line option must be used.
41113 + if test -z "$tagname"; then
41114 + $echo "$modename: unable to infer tagged configuration"
41115 + $echo "$modename: specify a tag with \`--tag'" 1>&2
41116 + exit 1
41117 +# else
41118 +# $echo "$modename: using $tagname tagged configuration"
41119 + fi
41120 + ;;
41121 + esac
41122 + fi
41124 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
41125 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
41126 + if test "X$xdir" = "X$obj"; then
41127 + xdir=
41128 + else
41129 + xdir=$xdir/
41130 + fi
41131 + lobj=${xdir}$objdir/$objname
41133 if test -z "$base_compile"; then
41134 $echo "$modename: you must specify a compilation command" 1>&2
41135 $echo "$help" 1>&2
41136 @@ -372,22 +584,34 @@ if test -z "$show_help"; then
41138 # Delete any leftover library objects.
41139 if test "$build_old_libs" = yes; then
41140 - removelist="$obj $libobj $lockfile"
41141 + removelist="$obj $lobj $libobj ${libobj}T"
41142 else
41143 - removelist="$libobj $lockfile"
41144 + removelist="$lobj $libobj ${libobj}T"
41145 fi
41147 $run $rm $removelist
41148 trap "$run $rm $removelist; exit 1" 1 2 15
41150 + # On Cygwin there's no "real" PIC flag so we must build both object types
41151 + case $host_os in
41152 + cygwin* | mingw* | pw32* | os2*)
41153 + pic_mode=default
41154 + ;;
41155 + esac
41156 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
41157 + # non-PIC code in shared libraries is not supported
41158 + pic_mode=default
41159 + fi
41161 # Calculate the filename of the output object if compiler does
41162 # not support -o with -c
41163 if test "$compiler_c_o" = no; then
41164 - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
41165 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
41166 lockfile="$output_obj.lock"
41167 removelist="$removelist $output_obj $lockfile"
41168 trap "$run $rm $removelist; exit 1" 1 2 15
41169 else
41170 + output_obj=
41171 need_locks=no
41172 lockfile=
41173 fi
41174 @@ -395,13 +619,13 @@ if test -z "$show_help"; then
41175 # Lock this critical section if it is needed
41176 # We use this script file to make the link, it avoids creating a new file
41177 if test "$need_locks" = yes; then
41178 - until ln "$0" "$lockfile" 2>/dev/null; do
41179 + until $run ln "$0" "$lockfile" 2>/dev/null; do
41180 $show "Waiting for $lockfile to be removed"
41181 sleep 2
41182 done
41183 elif test "$need_locks" = warn; then
41184 if test -f "$lockfile"; then
41185 - echo "\
41186 + $echo "\
41187 *** ERROR, $lockfile exists and contains:
41188 `cat $lockfile 2>/dev/null`
41190 @@ -415,28 +639,55 @@ compiler."
41191 $run $rm $removelist
41192 exit 1
41193 fi
41194 - echo $srcfile > "$lockfile"
41195 + $echo $srcfile > "$lockfile"
41196 fi
41198 if test -n "$fix_srcfile_path"; then
41199 eval srcfile=\"$fix_srcfile_path\"
41200 fi
41202 + $run $rm "$libobj" "${libobj}T"
41204 + # Create a libtool object file (analogous to a ".la" file),
41205 + # but don't create it if we're doing a dry run.
41206 + test -z "$run" && cat > ${libobj}T <<EOF
41207 +# $libobj - a libtool object file
41208 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
41209 +#
41210 +# Please DO NOT delete this file!
41211 +# It is necessary for linking the library.
41213 +# Name of the PIC object.
41214 +EOF
41216 # Only build a PIC object if we are building libtool libraries.
41217 if test "$build_libtool_libs" = yes; then
41218 # Without this assignment, base_compile gets emptied.
41219 fbsd_hideous_sh_bug=$base_compile
41221 - # All platforms use -DPIC, to notify preprocessed assembler code.
41222 - command="$base_compile$pic_flag -DPIC $srcfile"
41223 - if test "$compiler_o_lo" = yes; then
41224 - command="$command -o $libobj"
41225 - output_obj="$libobj"
41226 - elif test "$compiler_c_o" = yes; then
41227 - command="$command -o $obj"
41228 - output_obj="$obj"
41229 + if test "$pic_mode" != no; then
41230 + command="$base_compile $srcfile $pic_flag"
41231 + else
41232 + # Don't build PIC code
41233 + command="$base_compile $srcfile"
41234 + fi
41236 + if test ! -d "${xdir}$objdir"; then
41237 + $show "$mkdir ${xdir}$objdir"
41238 + $run $mkdir ${xdir}$objdir
41239 + status=$?
41240 + if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
41241 + exit $status
41242 + fi
41243 fi
41245 + if test -z "$output_obj"; then
41246 + # Place PIC objects in $objdir
41247 + command="$command -o $lobj"
41248 + fi
41250 + $run $rm "$lobj" "$output_obj"
41252 $show "$command"
41253 if $run eval "$command"; then :
41254 else
41255 @@ -445,8 +696,8 @@ compiler."
41256 fi
41258 if test "$need_locks" = warn &&
41259 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
41260 - echo "\
41261 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
41262 + $echo "\
41263 *** ERROR, $lockfile contains:
41264 `cat $lockfile 2>/dev/null`
41266 @@ -465,9 +716,9 @@ compiler."
41267 fi
41269 # Just move the object if needed, then go on to compile the next one
41270 - if test "$compiler_o_lo" = no && test x"$output_obj" != x"$libobj"; then
41271 - $show "$mv $output_obj $libobj"
41272 - if $run $mv $output_obj $libobj; then :
41273 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
41274 + $show "$mv $output_obj $lobj"
41275 + if $run $mv $output_obj $lobj; then :
41276 else
41277 error=$?
41278 $run $rm $removelist
41279 @@ -475,34 +726,40 @@ compiler."
41280 fi
41281 fi
41283 - # If we have no pic_flag, then copy the object into place and finish.
41284 - if test -z "$pic_flag"; then
41285 - $show $rm $obj
41286 - $run $rm $obj
41287 - $show "$LN_S $libobj $obj"
41288 - if $run $LN_S $libobj $obj; then
41289 - exit 0
41290 - else
41291 - error=$?
41292 - $run $rm $removelist
41293 - exit $error
41294 - fi
41295 - fi
41296 + # Append the name of the PIC object to the libtool object file.
41297 + test -z "$run" && cat >> ${libobj}T <<EOF
41298 +pic_object='$objdir/$objname'
41300 +EOF
41302 # Allow error messages only from the first compilation.
41303 - suppress_output=' >/dev/null 2>&1'
41304 + if test "$suppress_opt" = yes; then
41305 + suppress_output=' >/dev/null 2>&1'
41306 + fi
41307 + else
41308 + # No PIC object so indicate it doesn't exist in the libtool
41309 + # object file.
41310 + test -z "$run" && cat >> ${libobj}T <<EOF
41311 +pic_object=none
41313 +EOF
41314 fi
41316 # Only build a position-dependent object if we build old libraries.
41317 if test "$build_old_libs" = yes; then
41318 - command="$base_compile $srcfile"
41319 + if test "$pic_mode" != yes; then
41320 + # Don't build PIC code
41321 + command="$base_compile $srcfile"
41322 + else
41323 + command="$base_compile $srcfile $pic_flag"
41324 + fi
41325 if test "$compiler_c_o" = yes; then
41326 command="$command -o $obj"
41327 - output_obj="$obj"
41328 fi
41330 # Suppress compiler output if we already did a PIC compilation.
41331 command="$command$suppress_output"
41332 + $run $rm "$obj" "$output_obj"
41333 $show "$command"
41334 if $run eval "$command"; then :
41335 else
41336 @@ -511,8 +768,8 @@ compiler."
41337 fi
41339 if test "$need_locks" = warn &&
41340 - test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
41341 - echo "\
41342 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
41343 + $echo "\
41344 *** ERROR, $lockfile contains:
41345 `cat $lockfile 2>/dev/null`
41347 @@ -531,7 +788,7 @@ compiler."
41348 fi
41350 # Just move the object if needed
41351 - if test "$compiler_c_o" = no && test x"$output_obj" != x"$obj"; then
41352 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
41353 $show "$mv $output_obj $obj"
41354 if $run $mv $output_obj $obj; then :
41355 else
41356 @@ -540,34 +797,43 @@ compiler."
41357 exit $error
41358 fi
41359 fi
41361 + # Append the name of the non-PIC object the libtool object file.
41362 + # Only append if the libtool object file exists.
41363 + test -z "$run" && cat >> ${libobj}T <<EOF
41364 +# Name of the non-PIC object.
41365 +non_pic_object='$objname'
41367 +EOF
41368 + else
41369 + # Append the name of the non-PIC object the libtool object file.
41370 + # Only append if the libtool object file exists.
41371 + test -z "$run" && cat >> ${libobj}T <<EOF
41372 +# Name of the non-PIC object.
41373 +non_pic_object=none
41375 +EOF
41376 fi
41378 + $run $mv "${libobj}T" "${libobj}"
41380 # Unlock the critical section if it was locked
41381 if test "$need_locks" != no; then
41382 - $rm "$lockfile"
41383 - fi
41385 - # Create an invalid libtool object if no PIC, so that we do not
41386 - # accidentally link it into a program.
41387 - if test "$build_libtool_libs" != yes; then
41388 - $show "echo timestamp > $libobj"
41389 - $run eval "echo timestamp > \$libobj" || exit $?
41390 + $run $rm "$lockfile"
41391 fi
41393 exit 0
41394 ;;
41396 # libtool link mode
41397 - link)
41398 + link | relink)
41399 modename="$modename: link"
41400 - C_compiler="$CC" # save it, to compile generated C sources
41401 - CC="$nonopt"
41402 - case "$host" in
41403 - *-*-cygwin32* | *-*-mingw32* | *-*-os2*)
41404 + case $host in
41405 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
41406 # It is impossible to link a dll without this setting, and
41407 # we shouldn't force the makefile maintainer to figure out
41408 # which system we are compiling for in order to pass an extra
41409 - # flag for every libtool invokation.
41410 + # flag for every libtool invocation.
41411 # allow_undefined=no
41413 # FIXME: Unfortunately, there are problems with the above when trying
41414 @@ -576,55 +842,45 @@ compiler."
41415 # -no-undefined on the libtool link line when we can be certain
41416 # that all symbols are satisfied, otherwise we get a static library.
41417 allow_undefined=yes
41419 - # This is a source program that is used to create dlls on Windows
41420 - # Don't remove nor modify the starting and closing comments
41421 -# /* ltdll.c starts here */
41422 -# #define WIN32_LEAN_AND_MEAN
41423 -# #include <windows.h>
41424 -# #undef WIN32_LEAN_AND_MEAN
41425 -# #include <stdio.h>
41426 -#
41427 -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
41428 -#
41429 -# #include <cygwin/cygwin_dll.h>
41430 -# DECLARE_CYGWIN_DLL( DllMain );
41431 -# HINSTANCE __hDllInstance_base;
41432 -#
41433 -# BOOL APIENTRY
41434 -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
41435 -# {
41436 -# __hDllInstance_base = hInst;
41437 -# return TRUE;
41438 -# }
41439 -# /* ltdll.c ends here */
41440 ;;
41441 *)
41442 allow_undefined=yes
41443 ;;
41444 esac
41445 - compile_command="$CC"
41446 - finalize_command="$CC"
41447 + libtool_args="$nonopt"
41448 + base_compile="$nonopt"
41449 + compile_command="$nonopt"
41450 + finalize_command="$nonopt"
41452 + compile_rpath=
41453 + finalize_rpath=
41454 compile_shlibpath=
41455 finalize_shlibpath=
41456 convenience=
41457 old_convenience=
41458 deplibs=
41459 - eval lib_search_path=\"$sys_lib_search_path\"
41461 - avoid_versioning=no
41462 + old_deplibs=
41463 + compiler_flags=
41464 + linker_flags=
41465 + dllsearchpath=
41466 + lib_search_path=`pwd`
41467 + inst_prefix_dir=
41469 + avoid_version=no
41470 dlfiles=
41471 dlprefiles=
41472 + dlself=no
41473 export_dynamic=no
41474 export_symbols=
41475 + export_symbols_regex=
41476 generated=
41477 - hardcode_libdirs=
41478 libobjs=
41479 - link_against_libtool_libs=
41480 ltlibs=
41481 module=no
41482 + no_install=no
41483 objs=
41484 + non_pic_objects=
41485 + prefer_static_libs=no
41486 preload=no
41487 prev=
41488 prevarg=
41489 @@ -633,18 +889,30 @@ compiler."
41490 xrpath=
41491 perm_rpath=
41492 temp_rpath=
41493 + thread_safe=no
41494 vinfo=
41495 + vinfo_number=no
41497 # We need to know -static, to get the right output filenames.
41498 for arg
41499 do
41500 - case "$arg" in
41501 + case $arg in
41502 -all-static | -static)
41503 - if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
41504 + if test "X$arg" = "X-all-static"; then
41505 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
41506 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
41507 + fi
41508 + if test -n "$link_static_flag"; then
41509 + dlopen_self=$dlopen_self_static
41510 + fi
41511 + else
41512 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
41513 + dlopen_self=$dlopen_self_static
41514 + fi
41515 fi
41516 build_libtool_libs=no
41517 build_old_libs=yes
41518 + prefer_static_libs=yes
41519 break
41520 ;;
41521 esac
41522 @@ -654,20 +922,28 @@ compiler."
41523 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
41525 # Go through the arguments, transforming them on the way.
41526 - while test $# -gt 0; do
41527 + while test "$#" -gt 0; do
41528 arg="$1"
41529 + base_compile="$base_compile $arg"
41530 shift
41531 + case $arg in
41532 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
41533 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
41534 + ;;
41535 + *) qarg=$arg ;;
41536 + esac
41537 + libtool_args="$libtool_args $qarg"
41539 # If the previous option needs an argument, assign it.
41540 if test -n "$prev"; then
41541 - case "$prev" in
41542 + case $prev in
41543 output)
41544 compile_command="$compile_command @OUTPUT@"
41545 finalize_command="$finalize_command @OUTPUT@"
41546 ;;
41547 esac
41549 - case "$prev" in
41550 + case $prev in
41551 dlfiles|dlprefiles)
41552 if test "$preload" = no; then
41553 # Add the symbol object into the linking commands.
41554 @@ -675,36 +951,214 @@ compiler."
41555 finalize_command="$finalize_command @SYMFILE@"
41556 preload=yes
41557 fi
41558 - case "$arg" in
41559 + case $arg in
41560 *.la | *.lo) ;; # We handle these cases below.
41561 + force)
41562 + if test "$dlself" = no; then
41563 + dlself=needless
41564 + export_dynamic=yes
41565 + fi
41566 + prev=
41567 + continue
41568 + ;;
41569 + self)
41570 + if test "$prev" = dlprefiles; then
41571 + dlself=yes
41572 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
41573 + dlself=yes
41574 + else
41575 + dlself=needless
41576 + export_dynamic=yes
41577 + fi
41578 + prev=
41579 + continue
41580 + ;;
41581 *)
41582 - dlprefiles="$dlprefiles $arg"
41583 - test "$prev" = dlfiles && dlfiles="$dlfiles $arg"
41584 + if test "$prev" = dlfiles; then
41585 + dlfiles="$dlfiles $arg"
41586 + else
41587 + dlprefiles="$dlprefiles $arg"
41588 + fi
41589 prev=
41590 + continue
41591 ;;
41592 esac
41593 ;;
41594 - exportsyms)
41595 + expsyms)
41596 export_symbols="$arg"
41597 if test ! -f "$arg"; then
41598 $echo "$modename: symbol file \`$arg' does not exist"
41599 exit 1
41600 fi
41601 prev=
41602 + continue
41603 + ;;
41604 + expsyms_regex)
41605 + export_symbols_regex="$arg"
41606 + prev=
41607 + continue
41608 + ;;
41609 + inst_prefix)
41610 + inst_prefix_dir="$arg"
41611 + prev=
41612 + continue
41613 ;;
41614 release)
41615 release="-$arg"
41616 prev=
41617 continue
41618 ;;
41619 - rpath)
41620 - rpath="$rpath $arg"
41621 + objectlist)
41622 + if test -f "$arg"; then
41623 + save_arg=$arg
41624 + moreargs=
41625 + for fil in `cat $save_arg`
41626 + do
41627 +# moreargs="$moreargs $fil"
41628 + arg=$fil
41629 + # A libtool-controlled object.
41631 + # Check to see that this really is a libtool object.
41632 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
41633 + pic_object=
41634 + non_pic_object=
41636 + # Read the .lo file
41637 + # If there is no directory component, then add one.
41638 + case $arg in
41639 + */* | *\\*) . $arg ;;
41640 + *) . ./$arg ;;
41641 + esac
41643 + if test -z "$pic_object" || \
41644 + test -z "$non_pic_object" ||
41645 + test "$pic_object" = none && \
41646 + test "$non_pic_object" = none; then
41647 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
41648 + exit 1
41649 + fi
41651 + # Extract subdirectory from the argument.
41652 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
41653 + if test "X$xdir" = "X$arg"; then
41654 + xdir=
41655 + else
41656 + xdir="$xdir/"
41657 + fi
41659 + if test "$pic_object" != none; then
41660 + # Prepend the subdirectory the object is found in.
41661 + pic_object="$xdir$pic_object"
41663 + if test "$prev" = dlfiles; then
41664 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
41665 + dlfiles="$dlfiles $pic_object"
41666 + prev=
41667 + continue
41668 + else
41669 + # If libtool objects are unsupported, then we need to preload.
41670 + prev=dlprefiles
41671 + fi
41672 + fi
41674 + # CHECK ME: I think I busted this. -Ossama
41675 + if test "$prev" = dlprefiles; then
41676 + # Preload the old-style object.
41677 + dlprefiles="$dlprefiles $pic_object"
41678 + prev=
41679 + fi
41681 + # A PIC object.
41682 + libobjs="$libobjs $pic_object"
41683 + arg="$pic_object"
41684 + fi
41686 + # Non-PIC object.
41687 + if test "$non_pic_object" != none; then
41688 + # Prepend the subdirectory the object is found in.
41689 + non_pic_object="$xdir$non_pic_object"
41691 + # A standard non-PIC object
41692 + non_pic_objects="$non_pic_objects $non_pic_object"
41693 + if test -z "$pic_object" || test "$pic_object" = none ; then
41694 + arg="$non_pic_object"
41695 + fi
41696 + fi
41697 + else
41698 + # Only an error if not doing a dry-run.
41699 + if test -z "$run"; then
41700 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
41701 + exit 1
41702 + else
41703 + # Dry-run case.
41705 + # Extract subdirectory from the argument.
41706 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
41707 + if test "X$xdir" = "X$arg"; then
41708 + xdir=
41709 + else
41710 + xdir="$xdir/"
41711 + fi
41713 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
41714 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
41715 + libobjs="$libobjs $pic_object"
41716 + non_pic_objects="$non_pic_objects $non_pic_object"
41717 + fi
41718 + fi
41719 + done
41720 + else
41721 + $echo "$modename: link input file \`$save_arg' does not exist"
41722 + exit 1
41723 + fi
41724 + arg=$save_arg
41725 + prev=
41726 + continue
41727 + ;;
41728 + rpath | xrpath)
41729 + # We need an absolute path.
41730 + case $arg in
41731 + [\\/]* | [A-Za-z]:[\\/]*) ;;
41732 + *)
41733 + $echo "$modename: only absolute run-paths are allowed" 1>&2
41734 + exit 1
41735 + ;;
41736 + esac
41737 + if test "$prev" = rpath; then
41738 + case "$rpath " in
41739 + *" $arg "*) ;;
41740 + *) rpath="$rpath $arg" ;;
41741 + esac
41742 + else
41743 + case "$xrpath " in
41744 + *" $arg "*) ;;
41745 + *) xrpath="$xrpath $arg" ;;
41746 + esac
41747 + fi
41748 + prev=
41749 + continue
41750 + ;;
41751 + xcompiler)
41752 + compiler_flags="$compiler_flags $qarg"
41753 prev=
41754 + compile_command="$compile_command $qarg"
41755 + finalize_command="$finalize_command $qarg"
41756 continue
41757 ;;
41758 - xrpath)
41759 - xrpath="$xrpath $arg"
41760 + xlinker)
41761 + linker_flags="$linker_flags $qarg"
41762 + compiler_flags="$compiler_flags $wl$qarg"
41763 prev=
41764 + compile_command="$compile_command $wl$qarg"
41765 + finalize_command="$finalize_command $wl$qarg"
41766 + continue
41767 + ;;
41768 + xcclinker)
41769 + linker_flags="$linker_flags $qarg"
41770 + compiler_flags="$compiler_flags $qarg"
41771 + prev=
41772 + compile_command="$compile_command $qarg"
41773 + finalize_command="$finalize_command $qarg"
41774 continue
41775 ;;
41776 *)
41777 @@ -713,11 +1167,11 @@ compiler."
41778 continue
41779 ;;
41780 esac
41781 - fi
41782 + fi # test -n "$prev"
41784 prevarg="$arg"
41786 - case "$arg" in
41787 + case $arg in
41788 -all-static)
41789 if test -n "$link_static_flag"; then
41790 compile_command="$compile_command $link_static_flag"
41791 @@ -732,8 +1186,8 @@ compiler."
41792 continue
41793 ;;
41795 - -avoid-versioning)
41796 - avoid_versioning=yes
41797 + -avoid-version)
41798 + avoid_version=yes
41799 continue
41800 ;;
41802 @@ -748,79 +1202,170 @@ compiler."
41803 ;;
41805 -export-dynamic)
41806 - if test "$export_dynamic" != yes; then
41807 - export_dynamic=yes
41808 - if test -n "$export_dynamic_flag_spec"; then
41809 - eval arg=\"$export_dynamic_flag_spec\"
41810 - else
41811 - arg=
41812 - fi
41813 - if test "$preload" = no; then
41814 - # Add the symbol object into the linking commands.
41815 - compile_command="$compile_command @SYMFILE@"
41816 - finalize_command="$finalize_command @SYMFILE@"
41817 - preload=yes
41818 - fi
41819 - fi
41820 + export_dynamic=yes
41821 + continue
41822 ;;
41824 - -export-symbols)
41825 - if test -n "$export_symbols"; then
41826 - $echo "$modename: cannot have more than one -exported-symbols"
41827 + -export-symbols | -export-symbols-regex)
41828 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
41829 + $echo "$modename: more than one -exported-symbols argument is not allowed"
41830 exit 1
41831 fi
41832 - prev=exportsyms
41833 + if test "X$arg" = "X-export-symbols"; then
41834 + prev=expsyms
41835 + else
41836 + prev=expsyms_regex
41837 + fi
41838 continue
41839 ;;
41841 - -L*)
41842 - dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`
41843 - case "$dir" in
41844 - /* | [A-Za-z]:[/\\]*)
41845 - # Add the corresponding hardcode_libdir_flag, if it is not identical.
41846 + -inst-prefix-dir)
41847 + prev=inst_prefix
41848 + continue
41849 + ;;
41851 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
41852 + # so, if we see these flags be careful not to treat them like -L
41853 + -L[A-Z][A-Z]*:*)
41854 + case $with_gcc/$host in
41855 + no/*-*-irix* | /*-*-irix*)
41856 + compile_command="$compile_command $arg"
41857 + finalize_command="$finalize_command $arg"
41858 ;;
41859 + esac
41860 + continue
41861 + ;;
41863 + -L*)
41864 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
41865 + # We need an absolute path.
41866 + case $dir in
41867 + [\\/]* | [A-Za-z]:[\\/]*) ;;
41868 *)
41869 - $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2
41870 - exit 1
41871 + absdir=`cd "$dir" && pwd`
41872 + if test -z "$absdir"; then
41873 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
41874 + exit 1
41875 + fi
41876 + dir="$absdir"
41877 ;;
41878 esac
41879 - deplibs="$deplibs $arg"
41880 - lib_search_path="$lib_search_path `expr $arg : '-L\(.*\)'`"
41881 - case "$host" in
41882 - *-*-cygwin32* | *-*-mingw32* | *-*-os2*)
41883 - compile_dependencylibs="$compile_dependencylibs $arg"
41884 - dllsearchdir="`expr $arg : '-L\(.*\)'`"
41885 - dllsearchdir=`cd "$dllsearchdir" && pwd || echo "$dllsearchdir"`
41886 - if test -n "$dllsearchpath"; then
41887 - dllsearchpath="$dllsearchpath:$dllsearchdir"
41888 - else
41889 - dllsearchpath="$dllsearchdir"
41890 - fi
41891 + case "$deplibs " in
41892 + *" -L$dir "*) ;;
41893 + *)
41894 + deplibs="$deplibs -L$dir"
41895 + lib_search_path="$lib_search_path $dir"
41896 ;;
41897 esac
41898 + case $host in
41899 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
41900 + case :$dllsearchpath: in
41901 + *":$dir:"*) ;;
41902 + *) dllsearchpath="$dllsearchpath:$dir";;
41903 + esac
41904 + ;;
41905 + esac
41906 + continue
41907 ;;
41909 -l*)
41910 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
41911 + case $host in
41912 + *-*-cygwin* | *-*-pw32* | *-*-beos*)
41913 + # These systems don't actually have a C or math library (as such)
41914 + continue
41915 + ;;
41916 + *-*-mingw* | *-*-os2*)
41917 + # These systems don't actually have a C library (as such)
41918 + test "X$arg" = "X-lc" && continue
41919 + ;;
41920 + *-*-openbsd* | *-*-freebsd*)
41921 + # Do not include libc due to us having libc/libc_r.
41922 + test "X$arg" = "X-lc" && continue
41923 + ;;
41924 + *-*-rhapsody* | *-*-darwin1.[012])
41925 + # Rhapsody C and math libraries are in the System framework
41926 + deplibs="$deplibs -framework System"
41927 + continue
41928 + esac
41929 + elif test "X$arg" = "X-lc_r"; then
41930 + case $host in
41931 + *-*-openbsd* | *-*-freebsd*)
41932 + # Do not include libc_r directly, use -pthread flag.
41933 + continue
41934 + ;;
41935 + esac
41936 + fi
41937 deplibs="$deplibs $arg"
41938 - compile_dependencylibs="$compile_dependencylibs $arg"
41939 + continue
41940 + ;;
41942 + -pthread|-pthreads|-kthread|-Kthread|-mthreads|--thread-safe|-mt)
41943 + # deplibs="$deplibs $arg"
41944 ;;
41946 -module)
41947 - if test "$module" != yes; then
41948 - module=yes
41949 - if test -n "$export_dynamic_flag_spec"; then
41950 - eval arg=\"$export_dynamic_flag_spec\"
41951 - else
41952 - arg=
41953 - fi
41954 - fi
41955 + module=yes
41956 + continue
41957 ;;
41960 + # gcc -m* arguments should be passed to the linker via $compiler_flags
41961 + # in order to pass architecture information to the linker
41962 + # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
41963 + # but this is not reliable with gcc because gcc may use -mfoo to
41964 + # select a different linker, different libraries, etc, while
41965 + # -Wl,-mfoo simply passes -mfoo to the linker.
41966 + -m*)
41967 + # Unknown arguments in both finalize_command and compile_command need
41968 + # to be aesthetically quoted because they are evaled later.
41969 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
41970 + case $arg in
41971 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
41972 + arg="\"$arg\""
41973 + ;;
41974 + esac
41975 + compile_command="$compile_command $arg"
41976 + finalize_command="$finalize_command $arg"
41977 + if test "$with_gcc" = "yes" ; then
41978 + compiler_flags="$compiler_flags $arg"
41979 + fi
41980 + continue
41981 + ;;
41983 + -shrext)
41984 + prev=shrext
41985 + continue
41986 + ;;
41988 + -no-fast-install)
41989 + fast_install=no
41990 + continue
41991 + ;;
41993 + -no-install)
41994 + case $host in
41995 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
41996 + # The PATH hackery in wrapper scripts is required on Windows
41997 + # in order for the loader to find any dlls it needs.
41998 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
41999 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
42000 + fast_install=no
42001 + ;;
42002 + *) no_install=yes ;;
42003 + esac
42004 + continue
42005 + ;;
42007 -no-undefined)
42008 allow_undefined=no
42009 continue
42010 ;;
42012 + -objectlist)
42013 + prev=objectlist
42014 + continue
42015 + ;;
42017 -o) prev=output ;;
42019 -release)
42020 @@ -839,16 +1384,33 @@ compiler."
42021 ;;
42023 -R*)
42024 - xrpath="$xrpath "`echo "X$arg" | $Xsed -e 's/^-R//'`
42025 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
42026 + # We need an absolute path.
42027 + case $dir in
42028 + [\\/]* | [A-Za-z]:[\\/]*) ;;
42029 + *)
42030 + $echo "$modename: only absolute run-paths are allowed" 1>&2
42031 + exit 1
42032 + ;;
42033 + esac
42034 + case "$xrpath " in
42035 + *" $dir "*) ;;
42036 + *) xrpath="$xrpath $dir" ;;
42037 + esac
42038 continue
42039 ;;
42041 -static)
42042 - # If we have no pic_flag, then this is the same as -all-static.
42043 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
42044 - compile_command="$compile_command $link_static_flag"
42045 - finalize_command="$finalize_command $link_static_flag"
42046 - fi
42047 + # The effects of -static are defined in a previous loop.
42048 + # We used to do the same as -all-static on platforms that
42049 + # didn't have a PIC flag, but the assumption that the effects
42050 + # would be equivalent was wrong. It would break on at least
42051 + # Digital Unix and AIX.
42052 + continue
42053 + ;;
42055 + -thread-safe)
42056 + thread_safe=yes
42057 continue
42058 ;;
42060 @@ -856,350 +1418,1335 @@ compiler."
42061 prev=vinfo
42062 continue
42063 ;;
42064 + -version-number)
42065 + prev=vinfo
42066 + vinfo_number=yes
42067 + continue
42068 + ;;
42070 + -Wc,*)
42071 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
42072 + arg=
42073 + save_ifs="$IFS"; IFS=','
42074 + for flag in $args; do
42075 + IFS="$save_ifs"
42076 + case $flag in
42077 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42078 + flag="\"$flag\""
42079 + ;;
42080 + esac
42081 + arg="$arg $wl$flag"
42082 + compiler_flags="$compiler_flags $flag"
42083 + done
42084 + IFS="$save_ifs"
42085 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
42086 + ;;
42088 + -Wl,*)
42089 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
42090 + arg=
42091 + save_ifs="$IFS"; IFS=','
42092 + for flag in $args; do
42093 + IFS="$save_ifs"
42094 + case $flag in
42095 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42096 + flag="\"$flag\""
42097 + ;;
42098 + esac
42099 + arg="$arg $wl$flag"
42100 + compiler_flags="$compiler_flags $wl$flag"
42101 + linker_flags="$linker_flags $flag"
42102 + done
42103 + IFS="$save_ifs"
42104 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
42105 + ;;
42107 + -Xcompiler)
42108 + prev=xcompiler
42109 + continue
42110 + ;;
42112 + -Xlinker)
42113 + prev=xlinker
42114 + continue
42115 + ;;
42117 + -XCClinker)
42118 + prev=xcclinker
42119 + continue
42120 + ;;
42122 # Some other compiler flag.
42123 -* | +*)
42124 # Unknown arguments in both finalize_command and compile_command need
42125 # to be aesthetically quoted because they are evaled later.
42126 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
42127 - case "$arg" in
42128 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
42129 + case $arg in
42130 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42131 arg="\"$arg\""
42132 ;;
42133 esac
42134 ;;
42136 - *.o | *.obj | *.a | *.lib)
42137 + *.$objext)
42138 # A standard object.
42139 objs="$objs $arg"
42140 ;;
42142 *.lo)
42143 - # A library object.
42144 - if test "$prev" = dlfiles; then
42145 - dlfiles="$dlfiles $arg"
42146 - if test "$build_libtool_libs" = yes; then
42147 - prev=
42148 - continue
42149 + # A libtool-controlled object.
42151 + # Check to see that this really is a libtool object.
42152 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
42153 + pic_object=
42154 + non_pic_object=
42156 + # Read the .lo file
42157 + # If there is no directory component, then add one.
42158 + case $arg in
42159 + */* | *\\*) . $arg ;;
42160 + *) . ./$arg ;;
42161 + esac
42163 + if test -z "$pic_object" || \
42164 + test -z "$non_pic_object" ||
42165 + test "$pic_object" = none && \
42166 + test "$non_pic_object" = none; then
42167 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
42168 + exit 1
42169 + fi
42171 + # Extract subdirectory from the argument.
42172 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
42173 + if test "X$xdir" = "X$arg"; then
42174 + xdir=
42175 + else
42176 + xdir="$xdir/"
42177 + fi
42179 + if test "$pic_object" != none; then
42180 + # Prepend the subdirectory the object is found in.
42181 + pic_object="$xdir$pic_object"
42183 + if test "$prev" = dlfiles; then
42184 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
42185 + dlfiles="$dlfiles $pic_object"
42186 + prev=
42187 + continue
42188 + else
42189 + # If libtool objects are unsupported, then we need to preload.
42190 + prev=dlprefiles
42191 + fi
42192 + fi
42194 + # CHECK ME: I think I busted this. -Ossama
42195 + if test "$prev" = dlprefiles; then
42196 + # Preload the old-style object.
42197 + dlprefiles="$dlprefiles $pic_object"
42198 + prev=
42199 + fi
42201 + # A PIC object.
42202 + libobjs="$libobjs $pic_object"
42203 + arg="$pic_object"
42204 + fi
42206 + # Non-PIC object.
42207 + if test "$non_pic_object" != none; then
42208 + # Prepend the subdirectory the object is found in.
42209 + non_pic_object="$xdir$non_pic_object"
42211 + # A standard non-PIC object
42212 + non_pic_objects="$non_pic_objects $non_pic_object"
42213 + if test -z "$pic_object" || test "$pic_object" = none ; then
42214 + arg="$non_pic_object"
42215 + fi
42216 + fi
42217 + else
42218 + # Only an error if not doing a dry-run.
42219 + if test -z "$run"; then
42220 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
42221 + exit 1
42222 else
42223 - # If libtool objects are unsupported, then we need to preload.
42224 - prev=dlprefiles
42225 + # Dry-run case.
42227 + # Extract subdirectory from the argument.
42228 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
42229 + if test "X$xdir" = "X$arg"; then
42230 + xdir=
42231 + else
42232 + xdir="$xdir/"
42233 + fi
42235 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
42236 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
42237 + libobjs="$libobjs $pic_object"
42238 + non_pic_objects="$non_pic_objects $non_pic_object"
42239 fi
42240 fi
42241 + ;;
42243 - if test "$prev" = dlprefiles; then
42244 - # Preload the old-style object.
42245 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
42246 - prev=
42247 - fi
42248 - libobjs="$libobjs $arg"
42249 + *.$libext)
42250 + # An archive.
42251 + deplibs="$deplibs $arg"
42252 + old_deplibs="$old_deplibs $arg"
42253 + continue
42254 ;;
42256 *.la)
42257 # A libtool-controlled library.
42259 - dlname=
42260 - libdir=
42261 - library_names=
42262 - old_library=
42263 + if test "$prev" = dlfiles; then
42264 + # This library was specified with -dlopen.
42265 + dlfiles="$dlfiles $arg"
42266 + prev=
42267 + elif test "$prev" = dlprefiles; then
42268 + # The library was specified with -dlpreopen.
42269 + dlprefiles="$dlprefiles $arg"
42270 + prev=
42271 + else
42272 + deplibs="$deplibs $arg"
42273 + fi
42274 + continue
42275 + ;;
42277 + # Some other compiler argument.
42278 + *)
42279 + # Unknown arguments in both finalize_command and compile_command need
42280 + # to be aesthetically quoted because they are evaled later.
42281 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
42282 + case $arg in
42283 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
42284 + arg="\"$arg\""
42285 + ;;
42286 + esac
42287 + ;;
42288 + esac # arg
42290 + # Now actually substitute the argument into the commands.
42291 + if test -n "$arg"; then
42292 + compile_command="$compile_command $arg"
42293 + finalize_command="$finalize_command $arg"
42294 + fi
42295 + done # argument parsing loop
42297 + if test -n "$prev"; then
42298 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
42299 + $echo "$help" 1>&2
42300 + exit 1
42301 + fi
42303 + # Infer tagged configuration to use if any are available and
42304 + # if one wasn't chosen via the "--tag" command line option.
42305 + # Only attempt this if the compiler in the base link
42306 + # command doesn't match the default compiler.
42307 + if test -n "$available_tags" && test -z "$tagname"; then
42308 + case $base_compile in
42309 + # Blanks in the command may have been stripped by the calling shell,
42310 + # but not from the CC environment variable when configure was run.
42311 + "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*) ;;
42312 + # Blanks at the start of $base_compile will cause this to fail
42313 + # if we don't check for them as well.
42314 + *)
42315 + for z in $available_tags; do
42316 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$0" > /dev/null; then
42317 + # Evaluate the configuration.
42318 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $0`"
42319 + case $base_compile in
42320 + "$CC "* | " $CC "* | "`$echo $CC` "* | " `$echo $CC` "*)
42321 + # The compiler in $compile_command matches
42322 + # the one in the tagged configuration.
42323 + # Assume this is the tagged configuration we want.
42324 + tagname=$z
42325 + break
42326 + ;;
42327 + esac
42328 + fi
42329 + done
42330 + # If $tagname still isn't set, then no tagged configuration
42331 + # was found and let the user know that the "--tag" command
42332 + # line option must be used.
42333 + if test -z "$tagname"; then
42334 + $echo "$modename: unable to infer tagged configuration"
42335 + $echo "$modename: specify a tag with \`--tag'" 1>&2
42336 + exit 1
42337 +# else
42338 +# $echo "$modename: using $tagname tagged configuration"
42339 + fi
42340 + ;;
42341 + esac
42342 + fi
42344 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
42345 + eval arg=\"$export_dynamic_flag_spec\"
42346 + compile_command="$compile_command $arg"
42347 + finalize_command="$finalize_command $arg"
42348 + fi
42350 + oldlibs=
42351 + # calculate the name of the file, without its directory
42352 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
42353 + libobjs_save="$libobjs"
42355 + if test -n "$shlibpath_var"; then
42356 + # get the directories listed in $shlibpath_var
42357 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
42358 + else
42359 + shlib_search_path=
42360 + fi
42361 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
42362 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
42364 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
42365 + if test "X$output_objdir" = "X$output"; then
42366 + output_objdir="$objdir"
42367 + else
42368 + output_objdir="$output_objdir/$objdir"
42369 + fi
42370 + # Create the object directory.
42371 + if test ! -d "$output_objdir"; then
42372 + $show "$mkdir $output_objdir"
42373 + $run $mkdir $output_objdir
42374 + status=$?
42375 + if test "$status" -ne 0 && test ! -d "$output_objdir"; then
42376 + exit $status
42377 + fi
42378 + fi
42380 + # Determine the type of output
42381 + case $output in
42382 + "")
42383 + $echo "$modename: you must specify an output file" 1>&2
42384 + $echo "$help" 1>&2
42385 + exit 1
42386 + ;;
42387 + *.$libext) linkmode=oldlib ;;
42388 + *.lo | *.$objext) linkmode=obj ;;
42389 + *.la) linkmode=lib ;;
42390 + *) linkmode=prog ;; # Anything else should be a program.
42391 + esac
42393 + case $host in
42394 + *cygwin* | *mingw* | *pw32*)
42395 + # don't eliminate duplcations in $postdeps and $predeps
42396 + duplicate_compiler_generated_deps=yes
42397 + ;;
42398 + *)
42399 + duplicate_compiler_generated_deps=$duplicate_deps
42400 + ;;
42401 + esac
42402 + specialdeplibs=
42404 + libs=
42405 + # Find all interdependent deplibs by searching for libraries
42406 + # that are linked more than once (e.g. -la -lb -la)
42407 + for deplib in $deplibs; do
42408 + if test "X$duplicate_deps" = "Xyes" ; then
42409 + case "$libs " in
42410 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
42411 + esac
42412 + fi
42413 + libs="$libs $deplib"
42414 + done
42416 + if test "$linkmode" = lib; then
42417 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
42419 + # Compute libraries that are listed more than once in $predeps
42420 + # $postdeps and mark them as special (i.e., whose duplicates are
42421 + # not to be eliminated).
42422 + pre_post_deps=
42423 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
42424 + for pre_post_dep in $predeps $postdeps; do
42425 + case "$pre_post_deps " in
42426 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
42427 + esac
42428 + pre_post_deps="$pre_post_deps $pre_post_dep"
42429 + done
42430 + fi
42431 + pre_post_deps=
42432 + fi
42434 + deplibs=
42435 + newdependency_libs=
42436 + newlib_search_path=
42437 + need_relink=no # whether we're linking any uninstalled libtool libraries
42438 + notinst_deplibs= # not-installed libtool libraries
42439 + notinst_path= # paths that contain not-installed libtool libraries
42440 + case $linkmode in
42441 + lib)
42442 + passes="conv link"
42443 + for file in $dlfiles $dlprefiles; do
42444 + case $file in
42445 + *.la) ;;
42446 + *)
42447 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
42448 + exit 1
42449 + ;;
42450 + esac
42451 + done
42452 + ;;
42453 + prog)
42454 + compile_deplibs=
42455 + finalize_deplibs=
42456 + alldeplibs=no
42457 + newdlfiles=
42458 + newdlprefiles=
42459 + passes="conv scan dlopen dlpreopen link"
42460 + ;;
42461 + *) passes="conv"
42462 + ;;
42463 + esac
42464 + for pass in $passes; do
42465 + if test "$linkmode,$pass" = "lib,link" ||
42466 + test "$linkmode,$pass" = "prog,scan"; then
42467 + libs="$deplibs"
42468 + deplibs=
42469 + fi
42470 + if test "$linkmode" = prog; then
42471 + case $pass in
42472 + dlopen) libs="$dlfiles" ;;
42473 + dlpreopen) libs="$dlprefiles" ;;
42474 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
42475 + esac
42476 + fi
42477 + if test "$pass" = dlopen; then
42478 + # Collect dlpreopened libraries
42479 + save_deplibs="$deplibs"
42480 + deplibs=
42481 + fi
42482 + for deplib in $libs; do
42483 + lib=
42484 + found=no
42485 + case $deplib in
42486 + -pthread|-pthreads|-kthread|-Kthread|-mthreads|--thread-safe|-mt)
42487 + deplibs="$deplib $deplibs"
42488 + # test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
42489 + continue
42490 + ;;
42491 + -l*)
42492 + if test "$linkmode" != lib && test "$linkmode" != prog; then
42493 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
42494 + continue
42495 + fi
42496 + if test "$pass" = conv; then
42497 + deplibs="$deplib $deplibs"
42498 + continue
42499 + fi
42500 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
42501 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
42502 + for search_ext in .la $shrext .so .a; do
42503 + # Search the libtool library
42504 + lib="$searchdir/lib${name}${search_ext}"
42505 + if test -f "$lib"; then
42506 + if test "$search_ext" = ".la"; then
42507 + found=yes
42508 + else
42509 + found=no
42510 + fi
42511 + break 2
42512 + fi
42513 + done
42514 + done
42515 + if test "$found" != yes; then
42516 + # deplib doesn't seem to be a libtool library
42517 + if test "$linkmode,$pass" = "prog,link"; then
42518 + compile_deplibs="$deplib $compile_deplibs"
42519 + finalize_deplibs="$deplib $finalize_deplibs"
42520 + else
42521 + deplibs="$deplib $deplibs"
42522 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
42523 + fi
42524 + continue
42525 + else # deplib is a libtool library
42526 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
42527 + # We need to do some special things here, and not later.
42528 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
42529 + case " $predeps $postdeps " in
42530 + *" $deplib "*)
42531 + if (${SED} -e '2q' $lib |
42532 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
42533 + library_names=
42534 + old_library=
42535 + case $lib in
42536 + */* | *\\*) . $lib ;;
42537 + *) . ./$lib ;;
42538 + esac
42539 + for l in $old_library $library_names; do
42540 + ll="$l"
42541 + done
42542 + if test "X$ll" = "X$old_library" ; then # only static version available
42543 + found=no
42544 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
42545 + test "X$ladir" = "X$lib" && ladir="."
42546 + lib=$ladir/$old_library
42547 + if test "$linkmode,$pass" = "prog,link"; then
42548 + compile_deplibs="$deplib $compile_deplibs"
42549 + finalize_deplibs="$deplib $finalize_deplibs"
42550 + else
42551 + deplibs="$deplib $deplibs"
42552 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
42553 + fi
42554 + continue
42555 + fi
42556 + fi
42557 + ;;
42558 + *) ;;
42559 + esac
42560 + fi
42561 + fi
42562 + ;; # -l
42563 + -L*)
42564 + case $linkmode in
42565 + lib)
42566 + deplibs="$deplib $deplibs"
42567 + test "$pass" = conv && continue
42568 + newdependency_libs="$deplib $newdependency_libs"
42569 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
42570 + ;;
42571 + prog)
42572 + if test "$pass" = conv; then
42573 + deplibs="$deplib $deplibs"
42574 + continue
42575 + fi
42576 + if test "$pass" = scan; then
42577 + deplibs="$deplib $deplibs"
42578 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
42579 + else
42580 + compile_deplibs="$deplib $compile_deplibs"
42581 + finalize_deplibs="$deplib $finalize_deplibs"
42582 + fi
42583 + ;;
42584 + *)
42585 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
42586 + ;;
42587 + esac # linkmode
42588 + continue
42589 + ;; # -L
42590 + -R*)
42591 + if test "$pass" = link; then
42592 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
42593 + # Make sure the xrpath contains only unique directories.
42594 + case "$xrpath " in
42595 + *" $dir "*) ;;
42596 + *) xrpath="$xrpath $dir" ;;
42597 + esac
42598 + fi
42599 + deplibs="$deplib $deplibs"
42600 + continue
42601 + ;;
42602 + *.la) lib="$deplib" ;;
42603 + *.$libext)
42604 + if test "$pass" = conv; then
42605 + deplibs="$deplib $deplibs"
42606 + continue
42607 + fi
42608 + case $linkmode in
42609 + lib)
42610 + if test "$deplibs_check_method" != pass_all; then
42611 + $echo
42612 + $echo "*** Warning: Trying to link with static lib archive $deplib."
42613 + $echo "*** I have the capability to make that library automatically link in when"
42614 + $echo "*** you link to this library. But I can only do this if you have a"
42615 + $echo "*** shared version of the library, which you do not appear to have"
42616 + $echo "*** because the file extensions .$libext of this argument makes me believe"
42617 + $echo "*** that it is just a static archive that I should not used here."
42618 + else
42619 + $echo
42620 + $echo "*** Warning: Linking the shared library $output against the"
42621 + $echo "*** static library $deplib is not portable!"
42622 + deplibs="$deplib $deplibs"
42623 + fi
42624 + continue
42625 + ;;
42626 + prog)
42627 + if test "$pass" != link; then
42628 + deplibs="$deplib $deplibs"
42629 + else
42630 + compile_deplibs="$deplib $compile_deplibs"
42631 + finalize_deplibs="$deplib $finalize_deplibs"
42632 + fi
42633 + continue
42634 + ;;
42635 + esac # linkmode
42636 + ;; # *.$libext
42637 + *.lo | *.$objext)
42638 + if test "$pass" = conv; then
42639 + deplibs="$deplib $deplibs"
42640 + elif test "$linkmode" = prog; then
42641 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
42642 + # If there is no dlopen support or we're linking statically,
42643 + # we need to preload.
42644 + newdlprefiles="$newdlprefiles $deplib"
42645 + compile_deplibs="$deplib $compile_deplibs"
42646 + finalize_deplibs="$deplib $finalize_deplibs"
42647 + else
42648 + newdlfiles="$newdlfiles $deplib"
42649 + fi
42650 + fi
42651 + continue
42652 + ;;
42653 + %DEPLIBS%)
42654 + alldeplibs=yes
42655 + continue
42656 + ;;
42657 + esac # case $deplib
42658 + if test "$found" = yes || test -f "$lib"; then :
42659 + else
42660 + $echo "$modename: cannot find the library \`$lib'" 1>&2
42661 + exit 1
42662 + fi
42664 # Check to see that this really is a libtool archive.
42665 - if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
42666 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
42667 else
42668 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
42669 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
42670 exit 1
42671 fi
42673 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
42674 + test "X$ladir" = "X$lib" && ladir="."
42676 + dlname=
42677 + dlopen=
42678 + dlpreopen=
42679 + libdir=
42680 + library_names=
42681 + old_library=
42682 # If the library was installed with an old release of libtool,
42683 - # it will not redefine variable installed.
42684 + # it will not redefine variables installed, or shouldnotlink
42685 installed=yes
42686 + shouldnotlink=no
42688 - # If there is no directory component, then add one.
42689 - case "$arg" in
42690 - */* | *\\*) . $arg ;;
42691 - *) . ./$arg ;;
42692 + # Read the .la file
42693 + case $lib in
42694 + */* | *\\*) . $lib ;;
42695 + *) . ./$lib ;;
42696 esac
42698 + if test "$linkmode,$pass" = "lib,link" ||
42699 + test "$linkmode,$pass" = "prog,scan" ||
42700 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
42701 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
42702 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
42703 + fi
42705 + if test "$pass" = conv; then
42706 + # Only check for convenience libraries
42707 + deplibs="$lib $deplibs"
42708 + if test -z "$libdir"; then
42709 + if test -z "$old_library"; then
42710 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
42711 + exit 1
42712 + fi
42713 + # It is a libtool convenience library, so add in its objects.
42714 + convenience="$convenience $ladir/$objdir/$old_library"
42715 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
42716 + tmp_libs=
42717 + for deplib in $dependency_libs; do
42718 + deplibs="$deplib $deplibs"
42719 + if test "X$duplicate_deps" = "Xyes" ; then
42720 + case "$tmp_libs " in
42721 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
42722 + esac
42723 + fi
42724 + tmp_libs="$tmp_libs $deplib"
42725 + done
42726 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
42727 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
42728 + exit 1
42729 + fi
42730 + continue
42731 + fi # $pass = conv
42734 # Get the name of the library we link against.
42735 linklib=
42736 for l in $old_library $library_names; do
42737 linklib="$l"
42738 done
42740 if test -z "$linklib"; then
42741 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
42742 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
42743 exit 1
42744 fi
42746 - # Find the relevant object directory and library name.
42747 - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
42748 + # This library was specified with -dlopen.
42749 + if test "$pass" = dlopen; then
42750 + if test -z "$libdir"; then
42751 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
42752 + exit 1
42753 + fi
42754 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
42755 + # If there is no dlname, no dlopen support or we're linking
42756 + # statically, we need to preload. We also need to preload any
42757 + # dependent libraries so libltdl's deplib preloader doesn't
42758 + # bomb out in the load deplibs phase.
42759 + dlprefiles="$dlprefiles $lib $dependency_libs"
42760 + else
42761 + newdlfiles="$newdlfiles $lib"
42762 + fi
42763 + continue
42764 + fi # $pass = dlopen
42766 + # We need an absolute path.
42767 + case $ladir in
42768 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
42769 + *)
42770 + abs_ladir=`cd "$ladir" && pwd`
42771 + if test -z "$abs_ladir"; then
42772 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
42773 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
42774 + abs_ladir="$ladir"
42775 + fi
42776 + ;;
42777 + esac
42778 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
42780 + # Find the relevant object directory and library name.
42781 if test "X$installed" = Xyes; then
42782 - dir="$libdir"
42783 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
42784 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
42785 + dir="$ladir"
42786 + absdir="$abs_ladir"
42787 + libdir="$abs_ladir"
42788 + else
42789 + dir="$libdir"
42790 + absdir="$libdir"
42791 + fi
42792 else
42793 - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
42794 - if test "X$dir" = "X$arg"; then
42795 - dir="$objdir"
42796 + dir="$ladir/$objdir"
42797 + absdir="$abs_ladir/$objdir"
42798 + # Remove this search path later
42799 + notinst_path="$notinst_path $abs_ladir"
42800 + fi # $installed = yes
42801 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
42803 + # This library was specified with -dlpreopen.
42804 + if test "$pass" = dlpreopen; then
42805 + if test -z "$libdir"; then
42806 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
42807 + exit 1
42808 + fi
42809 + # Prefer using a static library (so that no silly _DYNAMIC symbols
42810 + # are required to link).
42811 + if test -n "$old_library"; then
42812 + newdlprefiles="$newdlprefiles $dir/$old_library"
42813 + # Otherwise, use the dlname, so that lt_dlopen finds it.
42814 + elif test -n "$dlname"; then
42815 + newdlprefiles="$newdlprefiles $dir/$dlname"
42816 + else
42817 + newdlprefiles="$newdlprefiles $dir/$linklib"
42818 + fi
42819 + fi # $pass = dlpreopen
42821 + if test -z "$libdir"; then
42822 + # Link the convenience library
42823 + if test "$linkmode" = lib; then
42824 + deplibs="$dir/$old_library $deplibs"
42825 + elif test "$linkmode,$pass" = "prog,link"; then
42826 + compile_deplibs="$dir/$old_library $compile_deplibs"
42827 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
42828 else
42829 - dir="$dir/$objdir"
42830 + deplibs="$lib $deplibs" # used for prog,scan pass
42831 fi
42832 + continue
42833 fi
42835 - if test -n "$dependency_libs"; then
42836 - # Extract -R from dependency_libs
42837 - temp_deplibs=
42839 + if test "$linkmode" = prog && test "$pass" != link; then
42840 + newlib_search_path="$newlib_search_path $ladir"
42841 + deplibs="$lib $deplibs"
42843 + linkalldeplibs=no
42844 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
42845 + test "$build_libtool_libs" = no; then
42846 + linkalldeplibs=yes
42847 + fi
42849 + tmp_libs=
42850 for deplib in $dependency_libs; do
42851 - case "$deplib" in
42852 - -R*) xrpath="$xrpath "`echo "X$deplib" | $Xsed -e 's/^-R//'`;;
42853 - *) temp_deplibs="$temp_deplibs $deplib";;
42854 + case $deplib in
42855 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
42856 esac
42857 - done
42858 - dependency_libs="$temp_deplibs"
42859 - fi
42861 - if test -z "$libdir"; then
42862 - # It is a libtool convenience library, so add in its objects.
42863 - convenience="$convenience $dir/$old_library"
42864 - old_convenience="$old_convenience $dir/$old_library"
42865 - deplibs="$deplibs$dependency_libs"
42866 - compile_command="$compile_command $dir/$old_library$dependency_libs"
42867 - finalize_command="$finalize_command $dir/$old_library$dependency_libs"
42868 + # Need to link against all dependency_libs?
42869 + if test "$linkalldeplibs" = yes; then
42870 + deplibs="$deplib $deplibs"
42871 + else
42872 + # Need to hardcode shared library paths
42873 + # or/and link against static libraries
42874 + newdependency_libs="$deplib $newdependency_libs"
42875 + fi
42876 + if test "X$duplicate_deps" = "Xyes" ; then
42877 + case "$tmp_libs " in
42878 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
42879 + esac
42880 + fi
42881 + tmp_libs="$tmp_libs $deplib"
42882 + done # for deplib
42883 continue
42884 - fi
42885 + fi # $linkmode = prog...
42887 - # This library was specified with -dlopen.
42888 - if test "$prev" = dlfiles; then
42889 - dlfiles="$dlfiles $arg"
42890 - if test -z "$dlname" || test "$build_libtool_libs" = no; then
42891 - # If there is no dlname or we're linking statically,
42892 - # we need to preload.
42893 - prev=dlprefiles
42894 - else
42895 - # We should not create a dependency on this library, but we
42896 - # may need any libraries it requires.
42897 - compile_command="$compile_command$dependency_libs"
42898 - finalize_command="$finalize_command$dependency_libs"
42899 - prev=
42900 + if test "$linkmode,$pass" = "prog,link"; then
42901 + if test -n "$library_names" &&
42902 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
42903 + # We need to hardcode the library path
42904 + if test -n "$shlibpath_var"; then
42905 + # Make sure the rpath contains only unique directories.
42906 + case "$temp_rpath " in
42907 + *" $dir "*) ;;
42908 + *" $absdir "*) ;;
42909 + *) temp_rpath="$temp_rpath $dir" ;;
42910 + esac
42911 + fi
42913 + # Hardcode the library path.
42914 + # Skip directories that are in the system default run-time
42915 + # search path.
42916 + case " $sys_lib_dlsearch_path " in
42917 + *" $absdir "*) ;;
42918 + *)
42919 + case "$compile_rpath " in
42920 + *" $absdir "*) ;;
42921 + *) compile_rpath="$compile_rpath $absdir"
42922 + esac
42923 + ;;
42924 + esac
42925 + case " $sys_lib_dlsearch_path " in
42926 + *" $libdir "*) ;;
42927 + *)
42928 + case "$finalize_rpath " in
42929 + *" $libdir "*) ;;
42930 + *) finalize_rpath="$finalize_rpath $libdir"
42931 + esac
42932 + ;;
42933 + esac
42934 + fi # $linkmode,$pass = prog,link...
42936 + if test "$alldeplibs" = yes &&
42937 + { test "$deplibs_check_method" = pass_all ||
42938 + { test "$build_libtool_libs" = yes &&
42939 + test -n "$library_names"; }; }; then
42940 + # We only need to search for static libraries
42941 continue
42942 fi
42943 fi
42945 - # The library was specified with -dlpreopen.
42946 - if test "$prev" = dlprefiles; then
42947 - # Prefer using a static library (so that no silly _DYNAMIC symbols
42948 - # are required to link).
42949 - if test -n "$old_library"; then
42950 - dlprefiles="$dlprefiles $dir/$old_library"
42951 - else
42952 - dlprefiles="$dlprefiles $dir/$linklib"
42953 + link_static=no # Whether the deplib will be linked statically
42954 + if test -n "$library_names" &&
42955 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
42956 + if test "$installed" = no; then
42957 + notinst_deplibs="$notinst_deplibs $lib"
42958 + need_relink=yes
42959 fi
42960 - prev=
42961 - fi
42963 - if test "$build_libtool_libs" = yes && test -n "$library_names"; then
42964 - link_against_libtool_libs="$link_against_libtool_libs $arg"
42965 - if test -n "$shlibpath_var"; then
42966 - # Make sure the rpath contains only unique directories.
42967 - case "$temp_rpath " in
42968 - *" $dir "*) ;;
42969 - *) temp_rpath="$temp_rpath $dir" ;;
42970 + # This is a shared library
42972 + # Warn about portability, can't link against -module's on some systems (darwin)
42973 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
42974 + $echo
42975 + if test "$linkmode" = prog; then
42976 + $echo "*** Warning: Linking the executable $output against the loadable module"
42977 + else
42978 + $echo "*** Warning: Linking the shared library $output against the loadable module"
42979 + fi
42980 + $echo "*** $linklib is not portable!"
42981 + fi
42982 + if test "$linkmode" = lib &&
42983 + test "$hardcode_into_libs" = yes; then
42984 + # Hardcode the library path.
42985 + # Skip directories that are in the system default run-time
42986 + # search path.
42987 + case " $sys_lib_dlsearch_path " in
42988 + *" $absdir "*) ;;
42989 + *)
42990 + case "$compile_rpath " in
42991 + *" $absdir "*) ;;
42992 + *) compile_rpath="$compile_rpath $absdir"
42993 + esac
42994 + ;;
42995 + esac
42996 + case " $sys_lib_dlsearch_path " in
42997 + *" $libdir "*) ;;
42998 + *)
42999 + case "$finalize_rpath " in
43000 + *" $libdir "*) ;;
43001 + *) finalize_rpath="$finalize_rpath $libdir"
43002 + esac
43003 + ;;
43004 esac
43005 fi
43007 - # This is the magic to use -rpath.
43008 - if test -n "$hardcode_libdir_flag_spec"; then
43009 - if test -n "$hardcode_libdir_separator"; then
43010 - if test -z "$hardcode_libdirs"; then
43011 - # Put the magic libdir with the hardcode flag.
43012 - hardcode_libdirs="$libdir"
43013 - libdir="@HARDCODE_LIBDIRS@"
43014 + if test -n "$old_archive_from_expsyms_cmds"; then
43015 + # figure out the soname
43016 + set dummy $library_names
43017 + realname="$2"
43018 + shift; shift
43019 + libname=`eval \\$echo \"$libname_spec\"`
43020 + # use dlname if we got it. it's perfectly good, no?
43021 + if test -n "$dlname"; then
43022 + soname="$dlname"
43023 + elif test -n "$soname_spec"; then
43024 + # bleh windows
43025 + case $host in
43026 + *cygwin* | mingw*)
43027 + major=`expr $current - $age`
43028 + versuffix="-$major"
43029 + ;;
43030 + esac
43031 + eval soname=\"$soname_spec\"
43032 + else
43033 + soname="$realname"
43034 + fi
43036 + # Make a new name for the extract_expsyms_cmds to use
43037 + soroot="$soname"
43038 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
43039 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
43041 + # If the library has no export list, then create one now
43042 + if test -f "$output_objdir/$soname-def"; then :
43043 + else
43044 + $show "extracting exported symbol list from \`$soname'"
43045 + save_ifs="$IFS"; IFS='~'
43046 + eval cmds=\"$extract_expsyms_cmds\"
43047 + for cmd in $cmds; do
43048 + IFS="$save_ifs"
43049 + $show "$cmd"
43050 + $run eval "$cmd" || exit $?
43051 + done
43052 + IFS="$save_ifs"
43053 + fi
43055 + # Create $newlib
43056 + if test -f "$output_objdir/$newlib"; then :; else
43057 + $show "generating import library for \`$soname'"
43058 + save_ifs="$IFS"; IFS='~'
43059 + eval cmds=\"$old_archive_from_expsyms_cmds\"
43060 + for cmd in $cmds; do
43061 + IFS="$save_ifs"
43062 + $show "$cmd"
43063 + $run eval "$cmd" || exit $?
43064 + done
43065 + IFS="$save_ifs"
43066 + fi
43067 + # make sure the library variables are pointing to the new library
43068 + dir=$output_objdir
43069 + linklib=$newlib
43070 + fi # test -n "$old_archive_from_expsyms_cmds"
43072 + if test "$linkmode" = prog || test "$mode" != relink; then
43073 + add_shlibpath=
43074 + add_dir=
43075 + add=
43076 + lib_linked=yes
43077 + case $hardcode_action in
43078 + immediate | unsupported)
43079 + if test "$hardcode_direct" = no; then
43080 + add="$dir/$linklib"
43081 + case $host in
43082 + *-*-sco3.2v5* ) add_dir="-L$dir" ;;
43083 + *-*-darwin* )
43084 + # if the lib is a module then we can not link against it, someone
43085 + # is ignoring the new warnings I added
43086 + if /usr/bin/file -L $add 2> /dev/null | grep "bundle" >/dev/null ; then
43087 + $echo "** Warning, lib $linklib is a module, not a shared library"
43088 + if test -z "$old_library" ; then
43089 + $echo
43090 + $echo "** And there doesn't seem to be a static archive available"
43091 + $echo "** The link will probably fail, sorry"
43092 + else
43093 + add="$dir/$old_library"
43094 + fi
43095 + fi
43096 + esac
43097 + elif test "$hardcode_minus_L" = no; then
43098 + case $host in
43099 + *-*-sunos*) add_shlibpath="$dir" ;;
43100 + esac
43101 + add_dir="-L$dir"
43102 + add="-l$name"
43103 + elif test "$hardcode_shlibpath_var" = no; then
43104 + add_shlibpath="$dir"
43105 + add="-l$name"
43106 else
43107 - # Just accumulate the unique libdirs.
43108 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
43109 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
43110 - ;;
43111 - *)
43112 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
43113 - ;;
43114 + lib_linked=no
43115 + fi
43116 + ;;
43117 + relink)
43118 + if test "$hardcode_direct" = yes; then
43119 + add="$dir/$linklib"
43120 + elif test "$hardcode_minus_L" = yes; then
43121 + add_dir="-L$dir"
43122 + # Try looking first in the location we're being installed to.
43123 + if test -n "$inst_prefix_dir"; then
43124 + case "$libdir" in
43125 + [\\/]*)
43126 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
43127 + ;;
43128 + esac
43129 + fi
43130 + add="-l$name"
43131 + elif test "$hardcode_shlibpath_var" = yes; then
43132 + add_shlibpath="$dir"
43133 + add="-l$name"
43134 + else
43135 + lib_linked=no
43136 + fi
43137 + ;;
43138 + *) lib_linked=no ;;
43139 + esac
43141 + if test "$lib_linked" != yes; then
43142 + $echo "$modename: configuration error: unsupported hardcode properties"
43143 + exit 1
43144 + fi
43146 + if test -n "$add_shlibpath"; then
43147 + case :$compile_shlibpath: in
43148 + *":$add_shlibpath:"*) ;;
43149 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
43150 + esac
43151 + fi
43152 + if test "$linkmode" = prog; then
43153 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
43154 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
43155 + else
43156 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
43157 + test -n "$add" && deplibs="$add $deplibs"
43158 + if test "$hardcode_direct" != yes && \
43159 + test "$hardcode_minus_L" != yes && \
43160 + test "$hardcode_shlibpath_var" = yes; then
43161 + case :$finalize_shlibpath: in
43162 + *":$libdir:"*) ;;
43163 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
43164 esac
43165 - libdir=
43166 fi
43167 fi
43168 + fi
43170 - if test -n "$libdir"; then
43171 - eval flag=\"$hardcode_libdir_flag_spec\"
43172 + if test "$linkmode" = prog || test "$mode" = relink; then
43173 + add_shlibpath=
43174 + add_dir=
43175 + add=
43176 + # Finalize command for both is simple: just hardcode it.
43177 + if test "$hardcode_direct" = yes; then
43178 + add="$libdir/$linklib"
43179 + elif test "$hardcode_minus_L" = yes; then
43180 + add_dir="-L$libdir"
43181 + add="-l$name"
43182 + elif test "$hardcode_shlibpath_var" = yes; then
43183 + case :$finalize_shlibpath: in
43184 + *":$libdir:"*) ;;
43185 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
43186 + esac
43187 + add="-l$name"
43188 + elif test "$hardcode_automatic" = yes; then
43189 + if test -n "$inst_prefix_dir" && test -f "$inst_prefix_dir$libdir/$linklib" ; then
43190 + add="$inst_prefix_dir$libdir/$linklib"
43191 + else
43192 + add="$libdir/$linklib"
43193 + fi
43194 + else
43195 + # We cannot seem to hardcode it, guess we'll fake it.
43196 + add_dir="-L$libdir"
43197 + # Try looking first in the location we're being installed to.
43198 + if test -n "$inst_prefix_dir"; then
43199 + case "$libdir" in
43200 + [\\/]*)
43201 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
43202 + ;;
43203 + esac
43204 + fi
43205 + add="-l$name"
43206 + fi
43208 - compile_command="$compile_command $flag"
43209 - finalize_command="$finalize_command $flag"
43210 + if test "$linkmode" = prog; then
43211 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
43212 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
43213 + else
43214 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
43215 + test -n "$add" && deplibs="$add $deplibs"
43216 fi
43217 - elif test -n "$runpath_var"; then
43218 - # Do the same for the permanent run path.
43219 - case "$perm_rpath " in
43220 - *" $libdir "*) ;;
43221 - *) perm_rpath="$perm_rpath $libdir" ;;
43222 - esac
43223 fi
43224 + elif test "$linkmode" = prog; then
43225 + # Here we assume that one of hardcode_direct or hardcode_minus_L
43226 + # is not unsupported. This is valid on all known static and
43227 + # shared platforms.
43228 + if test "$hardcode_direct" != unsupported; then
43229 + test -n "$old_library" && linklib="$old_library"
43230 + compile_deplibs="$dir/$linklib $compile_deplibs"
43231 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
43232 + else
43233 + compile_deplibs="-l$name -L$dir $compile_deplibs"
43234 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
43235 + fi
43236 + elif test "$build_libtool_libs" = yes; then
43237 + # Not a shared library
43238 + if test "$deplibs_check_method" != pass_all; then
43239 + # We're trying link a shared library against a static one
43240 + # but the system doesn't support it.
43242 + # Just print a warning and add the library to dependency_libs so
43243 + # that the program can be linked against the static library.
43244 + $echo
43245 + $echo "*** Warning: This system can not link to static lib archive $lib."
43246 + $echo "*** I have the capability to make that library automatically link in when"
43247 + $echo "*** you link to this library. But I can only do this if you have a"
43248 + $echo "*** shared version of the library, which you do not appear to have."
43249 + if test "$module" = yes; then
43250 + $echo "*** But as you try to build a module library, libtool will still create "
43251 + $echo "*** a static module, that should work as long as the dlopening application"
43252 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
43253 + if test -z "$global_symbol_pipe"; then
43254 + $echo
43255 + $echo "*** However, this would only work if libtool was able to extract symbol"
43256 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
43257 + $echo "*** not find such a program. So, this module is probably useless."
43258 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
43259 + fi
43260 + if test "$build_old_libs" = no; then
43261 + build_libtool_libs=module
43262 + build_old_libs=yes
43263 + else
43264 + build_libtool_libs=no
43265 + fi
43266 + fi
43267 + else
43268 + convenience="$convenience $dir/$old_library"
43269 + old_convenience="$old_convenience $dir/$old_library"
43270 + deplibs="$dir/$old_library $deplibs"
43271 + link_static=yes
43272 + fi
43273 + fi # link shared/static library?
43275 + if test "$linkmode" = lib; then
43276 + if test -n "$dependency_libs" &&
43277 + { test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes ||
43278 + test "$link_static" = yes; }; then
43279 + # Extract -R from dependency_libs
43280 + temp_deplibs=
43281 + for libdir in $dependency_libs; do
43282 + case $libdir in
43283 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
43284 + case " $xrpath " in
43285 + *" $temp_xrpath "*) ;;
43286 + *) xrpath="$xrpath $temp_xrpath";;
43287 + esac;;
43288 + *) temp_deplibs="$temp_deplibs $libdir";;
43289 + esac
43290 + done
43291 + dependency_libs="$temp_deplibs"
43292 + fi
43294 - lib_linked=yes
43295 - case "$hardcode_action" in
43296 - immediate | unsupported)
43297 - if test "$hardcode_direct" = no; then
43298 - compile_command="$compile_command $dir/$linklib"
43299 - case "$host" in
43300 - *-*-cygwin32* | *-*-mingw32* | *-*-os2*)
43301 - compile_dependencylibs="$compile_dependencylibs -L$dir -l$name"
43302 - dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
43303 - if test -n "$dllsearchpath"; then
43304 - dllsearchpath="$dllsearchpath:$dllsearchdir"
43305 + newlib_search_path="$newlib_search_path $absdir"
43306 + # Link against this library
43307 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
43308 + # ... and its dependency_libs
43309 + tmp_libs=
43310 + for deplib in $dependency_libs; do
43311 + newdependency_libs="$deplib $newdependency_libs"
43312 + if test "X$duplicate_deps" = "Xyes" ; then
43313 + case "$tmp_libs " in
43314 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
43315 + esac
43316 + fi
43317 + tmp_libs="$tmp_libs $deplib"
43318 + done
43320 + if test "$link_all_deplibs" != no; then
43321 + # Add the search paths of all dependency libraries
43322 + for deplib in $dependency_libs; do
43323 + case $deplib in
43324 + -L*) path="$deplib" ;;
43325 + *.la)
43326 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
43327 + test "X$dir" = "X$deplib" && dir="."
43328 + # We need an absolute path.
43329 + case $dir in
43330 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
43331 + *)
43332 + absdir=`cd "$dir" && pwd`
43333 + if test -z "$absdir"; then
43334 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
43335 + absdir="$dir"
43336 + fi
43337 + ;;
43338 + esac
43339 + if grep "^installed=no" $deplib > /dev/null; then
43340 + path="$absdir/$objdir"
43341 else
43342 - dllsearchpath="$dllsearchdir"
43343 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
43344 + if test -z "$libdir"; then
43345 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
43346 + exit 1
43347 + fi
43348 + if test "$absdir" != "$libdir"; then
43349 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
43350 + fi
43351 + path="$absdir"
43352 fi
43353 + depdepl=
43354 + case $host in
43355 + *-*-darwin*)
43356 + # we do not want to link against static libs, but need to link against shared
43357 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
43358 + if test -n "$deplibrary_names" ; then
43359 + for tmp in $deplibrary_names ; do
43360 + depdepl=$tmp
43361 + done
43362 + if test -f "$path/$depdepl" ; then
43363 + depdepl="$path/$depdepl"
43364 + fi
43365 + # do not add paths which are already there
43366 + case " $newlib_search_path " in
43367 + *" $path "*) ;;
43368 + *) newlib_search_path="$newlib_search_path $path";;
43369 + esac
43370 + path=""
43371 + fi
43372 + ;;
43373 + *)
43374 + path="-L$path"
43375 ;;
43376 - esac
43377 - elif test "$hardcode_minus_L" = no; then
43378 - case "$host" in
43379 - *-*-sunos*)
43380 - compile_shlibpath="$compile_shlibpath$dir:"
43381 + esac
43383 + ;;
43384 + -l*)
43385 + case $host in
43386 + *-*-darwin*)
43387 + # Again, we only want to link against shared libraries
43388 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
43389 + for tmp in $newlib_search_path ; do
43390 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
43391 + eval depdepl="$tmp/lib$tmp_libs.dylib"
43392 + break
43393 + fi
43394 + done
43395 + path=""
43396 + ;;
43397 + *) continue ;;
43398 + esac
43399 ;;
43400 + *) continue ;;
43401 esac
43402 - compile_command="$compile_command -L$dir -l$name"
43403 - elif test "$hardcode_shlibpath_var" = no; then
43404 - compile_shlibpath="$compile_shlibpath$dir:"
43405 - compile_command="$compile_command -l$name"
43406 - else
43407 - lib_linked=no
43408 - fi
43409 - ;;
43410 + case " $deplibs " in
43411 + *" $depdepl "*) ;;
43412 + *) deplibs="$deplibs $depdepl" ;;
43413 + esac
43414 + case " $deplibs " in
43415 + *" $path "*) ;;
43416 + *) deplibs="$deplibs $path" ;;
43417 + esac
43418 + done
43419 + fi # link_all_deplibs != no
43420 + fi # linkmode = lib
43421 + done # for deplib in $libs
43422 + dependency_libs="$newdependency_libs"
43423 + if test "$pass" = dlpreopen; then
43424 + # Link the dlpreopened libraries before other libraries
43425 + for deplib in $save_deplibs; do
43426 + deplibs="$deplib $deplibs"
43427 + done
43428 + fi
43429 + if test "$pass" != dlopen; then
43430 + if test "$pass" != conv; then
43431 + # Make sure lib_search_path contains only unique directories.
43432 + lib_search_path=
43433 + for dir in $newlib_search_path; do
43434 + case "$lib_search_path " in
43435 + *" $dir "*) ;;
43436 + *) lib_search_path="$lib_search_path $dir" ;;
43437 + esac
43438 + done
43439 + newlib_search_path=
43440 + fi
43442 - relink)
43443 - # We need an absolute path.
43444 - case "$dir" in
43445 - /* | [A-Za-z]:[/\\]*) ;;
43446 + if test "$linkmode,$pass" != "prog,link"; then
43447 + vars="deplibs"
43448 + else
43449 + vars="compile_deplibs finalize_deplibs"
43450 + fi
43451 + for var in $vars dependency_libs; do
43452 + # Add libraries to $var in reverse order
43453 + eval tmp_libs=\"\$$var\"
43454 + new_libs=
43455 + for deplib in $tmp_libs; do
43456 + # FIXME: Pedantically, this is the right thing to do, so
43457 + # that some nasty dependency loop isn't accidentally
43458 + # broken:
43459 + #new_libs="$deplib $new_libs"
43460 + # Pragmatically, this seems to cause very few problems in
43461 + # practice:
43462 + case $deplib in
43463 + -L*) new_libs="$deplib $new_libs" ;;
43464 + -R*) ;;
43465 *)
43466 - absdir=`cd "$dir" && pwd`
43467 - if test -z "$absdir"; then
43468 - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
43469 - exit 1
43470 - fi
43471 - dir="$absdir"
43472 + # And here is the reason: when a library appears more
43473 + # than once as an explicit dependence of a library, or
43474 + # is implicitly linked in more than once by the
43475 + # compiler, it is considered special, and multiple
43476 + # occurrences thereof are not removed. Compare this
43477 + # with having the same library being listed as a
43478 + # dependency of multiple other libraries: in this case,
43479 + # we know (pedantically, we assume) the library does not
43480 + # need to be listed more than once, so we keep only the
43481 + # last copy. This is not always right, but it is rare
43482 + # enough that we require users that really mean to play
43483 + # such unportable linking tricks to link the library
43484 + # using -Wl,-lname, so that libtool does not consider it
43485 + # for duplicate removal.
43486 + case " $specialdeplibs " in
43487 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
43488 + *)
43489 + case " $new_libs " in
43490 + *" $deplib "*) ;;
43491 + *) new_libs="$deplib $new_libs" ;;
43492 + esac
43493 + ;;
43494 + esac
43495 ;;
43496 esac
43498 - if test "$hardcode_direct" = yes; then
43499 - compile_command="$compile_command $dir/$linklib"
43500 - elif test "$hardcode_minus_L" = yes; then
43501 - compile_command="$compile_command -L$dir -l$name"
43502 - elif test "$hardcode_shlibpath_var" = yes; then
43503 - compile_shlibpath="$compile_shlibpath$dir:"
43504 - compile_command="$compile_command -l$name"
43505 - else
43506 - lib_linked=no
43507 - fi
43508 - ;;
43510 - *)
43511 - lib_linked=no
43512 - ;;
43513 - esac
43515 - if test "$lib_linked" != yes; then
43516 - $echo "$modename: configuration error: unsupported hardcode properties"
43517 - exit 1
43518 - fi
43520 - # Finalize command for both is simple: just hardcode it.
43521 - if test "$hardcode_direct" = yes; then
43522 - finalize_command="$finalize_command $libdir/$linklib"
43523 - elif test "$hardcode_minus_L" = yes; then
43524 - finalize_command="$finalize_command -L$libdir -l$name"
43525 - elif test "$hardcode_shlibpath_var" = yes; then
43526 - finalize_shlibpath="$finalize_shlibpath$libdir:"
43527 - finalize_command="$finalize_command -l$name"
43528 - else
43529 - # We cannot seem to hardcode it, guess we'll fake it.
43530 - finalize_command="$finalize_command -L$libdir -l$name"
43531 - fi
43532 - else
43533 - # Transform directly to old archives if we don't build new libraries.
43534 - if test -n "$pic_flag" && test -z "$old_library"; then
43535 - $echo "$modename: cannot find static library for \`$arg'" 1>&2
43536 - exit 1
43537 - fi
43539 - # Here we assume that one of hardcode_direct or hardcode_minus_L
43540 - # is not unsupported. This is valid on all known static and
43541 - # shared platforms.
43542 - if test "$hardcode_direct" != unsupported; then
43543 - test -n "$old_library" && linklib="$old_library"
43544 - compile_command="$compile_command $dir/$linklib"
43545 - finalize_command="$finalize_command $dir/$linklib"
43546 - else
43547 - compile_command="$compile_command -L$dir -l$name"
43548 - finalize_command="$finalize_command -L$dir -l$name"
43549 - fi
43550 - fi
43552 - # Add in any libraries that this one depends upon.
43553 - compile_command="$compile_command$dependency_libs"
43554 - finalize_command="$finalize_command$dependency_libs"
43555 - continue
43556 - ;;
43558 - # Some other compiler argument.
43559 - *)
43560 - # Unknown arguments in both finalize_command and compile_command need
43561 - # to be aesthetically quoted because they are evaled later.
43562 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
43563 - case "$arg" in
43564 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
43565 - arg="\"$arg\""
43566 + done
43567 + tmp_libs=
43568 + for deplib in $new_libs; do
43569 + case $deplib in
43570 + -L*)
43571 + case " $tmp_libs " in
43572 + *" $deplib "*) ;;
43573 + *) tmp_libs="$tmp_libs $deplib" ;;
43574 + esac
43575 + ;;
43576 + *) tmp_libs="$tmp_libs $deplib" ;;
43577 + esac
43578 + done
43579 + eval $var=\"$tmp_libs\"
43580 + done # for var
43581 + fi
43582 + # Last step: remove runtime libs from dependency_libs (they stay in deplibs)
43583 + tmp_libs=
43584 + for i in $dependency_libs ; do
43585 + case " $predeps $postdeps $compiler_lib_search_path " in
43586 + *" $i "*)
43587 + i=""
43588 ;;
43589 esac
43590 - ;;
43591 - esac
43593 - # Now actually substitute the argument into the commands.
43594 - if test -n "$arg"; then
43595 - compile_command="$compile_command $arg"
43596 - finalize_command="$finalize_command $arg"
43597 - fi
43598 - done
43600 - if test -n "$prev"; then
43601 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
43602 - $echo "$help" 1>&2
43603 - exit 1
43604 - fi
43606 - if test -n "$export_symbols" && test "$module" = yes; then
43607 - $echo "$modename: \`-export-symbols' is not supported for modules"
43608 - exit 1
43609 + if test -n "$i" ; then
43610 + tmp_libs="$tmp_libs $i"
43611 + fi
43612 + done
43613 + dependency_libs=$tmp_libs
43614 + done # for pass
43615 + if test "$linkmode" = prog; then
43616 + dlfiles="$newdlfiles"
43617 + dlprefiles="$newdlprefiles"
43618 fi
43620 - oldlibs=
43621 - # calculate the name of the file, without its directory
43622 - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
43623 - libobjs_save="$libobjs"
43625 - case "$output" in
43626 - "")
43627 - $echo "$modename: you must specify an output file" 1>&2
43628 - $echo "$help" 1>&2
43629 - exit 1
43630 - ;;
43632 - *.a | *.lib)
43633 - if test -n "$link_against_libtool_libs"; then
43634 - $echo "$modename: error: cannot link libtool libraries into archives" 1>&2
43635 - exit 1
43636 - fi
43638 + case $linkmode in
43639 + oldlib)
43640 if test -n "$deplibs"; then
43641 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
43642 fi
43644 - if test -n "$dlfiles$dlprefiles"; then
43645 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
43646 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
43647 fi
43649 @@ -1212,27 +2759,29 @@ compiler."
43650 fi
43652 if test -n "$vinfo"; then
43653 - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
43654 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
43655 fi
43657 if test -n "$release"; then
43658 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
43659 fi
43661 - if test -n "$export_symbols"; then
43662 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
43663 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
43664 fi
43666 # Now set the variables for building old libraries.
43667 build_libtool_libs=no
43668 oldlibs="$output"
43669 + objs="$objs$old_deplibs"
43670 ;;
43672 - *.la)
43673 + lib)
43674 # Make sure we only generate libraries of the form `libNAME.la'.
43675 - case "$outputname" in
43676 - lib*)
43677 + case $outputname in
43678 + lib*)
43679 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
43680 + eval shared_ext=\"$shrext\"
43681 eval libname=\"$libname_spec\"
43682 ;;
43683 *)
43684 @@ -1241,9 +2790,10 @@ compiler."
43685 $echo "$help" 1>&2
43686 exit 1
43687 fi
43688 - if test "$need_lib_prefix" = yes; then
43689 + if test "$need_lib_prefix" != no; then
43690 # Add the "lib" prefix for modules if required
43691 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
43692 + eval shared_ext=\"$shrext\"
43693 eval libname=\"$libname_spec\"
43694 else
43695 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
43696 @@ -1251,46 +2801,24 @@ compiler."
43697 ;;
43698 esac
43700 - if test -n "$xrpath"; then
43701 - temp_xrpath=
43702 - for libdir in $xrpath; do
43703 - temp_xrpath="$temp_xrpath -R$libdir"
43704 - done
43705 - deplibs="$temp_xrpath $deplibs"
43706 - fi
43708 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
43709 - if test "X$output_objdir" = "X$output"; then
43710 - output_objdir="$objdir"
43711 - else
43712 - output_objdir="$output_objdir/$objdir"
43713 - fi
43715 - # All the library-specific variables (install_libdir is set above).
43716 - library_names=
43717 - old_library=
43718 - dlname=
43720 if test -n "$objs"; then
43721 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
43722 - exit 1
43723 + if test "$deplibs_check_method" != pass_all; then
43724 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
43725 + exit 1
43726 + else
43727 + $echo
43728 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
43729 + $echo "*** objects $objs is not portable!"
43730 + libobjs="$libobjs $objs"
43731 + fi
43732 fi
43734 - # If the following section is uncommented, then it is impossible to
43735 - # link with ltlibrary deplibs...
43737 - # How the heck are we supposed to write a wrapper for a shared library?
43738 - #if test -n "$link_against_libtool_libs"; then
43739 - # $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
43740 - # exit 1
43741 - #fi
43743 - if test -n "$dlfiles$dlprefiles"; then
43744 - $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
43745 + if test "$dlself" != no; then
43746 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
43747 fi
43749 set dummy $rpath
43750 - if test $# -gt 2; then
43751 + if test "$#" -gt 2; then
43752 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
43753 fi
43754 install_libdir="$2"
43755 @@ -1299,15 +2827,16 @@ compiler."
43756 if test -z "$rpath"; then
43757 if test "$build_libtool_libs" = yes; then
43758 # Building a libtool convenience library.
43759 - libext=al
43760 + # Some compilers have problems with a `.al' extension so
43761 + # convenience libraries should have the same extension an
43762 + # archive normally would.
43763 oldlibs="$output_objdir/$libname.$libext $oldlibs"
43764 build_libtool_libs=convenience
43765 build_old_libs=yes
43766 fi
43767 - dependency_libs="$deplibs"
43769 if test -n "$vinfo"; then
43770 - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
43771 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
43772 fi
43774 if test -n "$release"; then
43775 @@ -1316,7 +2845,7 @@ compiler."
43776 else
43778 # Parse the version information argument.
43779 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
43780 + save_ifs="$IFS"; IFS=':'
43781 set dummy $vinfo 0 0 0
43782 IFS="$save_ifs"
43784 @@ -1326,13 +2855,50 @@ compiler."
43785 exit 1
43786 fi
43788 - current="$2"
43789 - revision="$3"
43790 - age="$4"
43791 + # convert absolute version numbers to libtool ages
43792 + # this retains compatibility with .la files and attempts
43793 + # to make the code below a bit more comprehensible
43795 + case $vinfo_number in
43796 + yes)
43797 + number_major="$2"
43798 + number_minor="$3"
43799 + number_revision="$4"
43800 + #
43801 + # There are really only two kinds -- those that
43802 + # use the current revision as the major version
43803 + # and those that subtract age and use age as
43804 + # a minor version. But, then there is irix
43805 + # which has an extra 1 added just for fun
43806 + #
43807 + case $version_type in
43808 + darwin|linux|osf|windows)
43809 + current=`expr $number_major + $number_minor`
43810 + age="$number_minor"
43811 + revision="$number_revision"
43812 + ;;
43813 + freebsd-aout|freebsd-elf|sunos)
43814 + current="$number_major"
43815 + revision="$number_minor"
43816 + age="0"
43817 + ;;
43818 + irix|nonstopux)
43819 + current=`expr $number_major + $number_minor - 1`
43820 + age="$number_minor"
43821 + revision="$number_minor"
43822 + ;;
43823 + esac
43824 + ;;
43825 + no)
43826 + current="$2"
43827 + revision="$3"
43828 + age="$4"
43829 + ;;
43830 + esac
43832 # Check that each of the things are valid numbers.
43833 - case "$current" in
43834 - 0 | [1-9] | [1-9][0-9]*) ;;
43835 + case $current in
43836 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
43837 *)
43838 $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
43839 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
43840 @@ -1340,8 +2906,8 @@ compiler."
43841 ;;
43842 esac
43844 - case "$revision" in
43845 - 0 | [1-9] | [1-9][0-9]*) ;;
43846 + case $revision in
43847 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
43848 *)
43849 $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
43850 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
43851 @@ -1349,8 +2915,8 @@ compiler."
43852 ;;
43853 esac
43855 - case "$age" in
43856 - 0 | [1-9] | [1-9][0-9]*) ;;
43857 + case $age in
43858 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
43859 *)
43860 $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
43861 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
43862 @@ -1358,7 +2924,7 @@ compiler."
43863 ;;
43864 esac
43866 - if test $age -gt $current; then
43867 + if test "$age" -gt "$current"; then
43868 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
43869 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
43870 exit 1
43871 @@ -1368,22 +2934,64 @@ compiler."
43872 major=
43873 versuffix=
43874 verstring=
43875 - case "$version_type" in
43876 + case $version_type in
43877 none) ;;
43879 + darwin)
43880 + # Like Linux, but with the current version available in
43881 + # verstring for coding it into the library header
43882 + major=.`expr $current - $age`
43883 + versuffix="$major.$age.$revision"
43884 + # Darwin ld doesn't like 0 for these options...
43885 + minor_current=`expr $current + 1`
43886 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
43887 + ;;
43889 + freebsd-aout)
43890 + major=".$current"
43891 + versuffix=".$current.$revision";
43892 + ;;
43894 + freebsd-elf)
43895 + major=".$current"
43896 + versuffix=".$current";
43897 + ;;
43899 + irix | nonstopux)
43900 + major=`expr $current - $age + 1`
43902 + case $version_type in
43903 + nonstopux) verstring_prefix=nonstopux ;;
43904 + *) verstring_prefix=sgi ;;
43905 + esac
43906 + verstring="$verstring_prefix$major.$revision"
43908 + # Add in all the interfaces that we are compatible with.
43909 + loop=$revision
43910 + while test "$loop" -ne 0; do
43911 + iface=`expr $revision - $loop`
43912 + loop=`expr $loop - 1`
43913 + verstring="$verstring_prefix$major.$iface:$verstring"
43914 + done
43916 + # Before this point, $major must not contain `.'.
43917 + major=.$major
43918 + versuffix="$major.$revision"
43919 + ;;
43921 linux)
43922 major=.`expr $current - $age`
43923 versuffix="$major.$age.$revision"
43924 ;;
43926 osf)
43927 - major=`expr $current - $age`
43928 + major=.`expr $current - $age`
43929 versuffix=".$current.$age.$revision"
43930 verstring="$current.$age.$revision"
43932 # Add in all the interfaces that we are compatible with.
43933 loop=$age
43934 - while test $loop != 0; do
43935 + while test "$loop" -ne 0; do
43936 iface=`expr $current - $loop`
43937 loop=`expr $loop - 1`
43938 verstring="$verstring:${iface}.0"
43939 @@ -1398,26 +3006,16 @@ compiler."
43940 versuffix=".$current.$revision"
43941 ;;
43943 - freebsd-aout)
43944 - major=".$current"
43945 - versuffix=".$current.$revision";
43946 - ;;
43948 - freebsd-elf)
43949 - major=".$current"
43950 - versuffix=".$current";
43951 - ;;
43953 windows)
43954 - # Like Linux, but with '-' rather than '.', since we only
43955 - # want one extension on Windows 95.
43956 + # Use '-' rather than '.', since we only want one
43957 + # extension on DOS 8.3 filesystems.
43958 major=`expr $current - $age`
43959 - versuffix="-$major-$age-$revision"
43960 + versuffix="-$major"
43961 ;;
43963 *)
43964 $echo "$modename: unknown library version type \`$version_type'" 1>&2
43965 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
43966 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
43967 exit 1
43968 ;;
43969 esac
43970 @@ -1425,22 +3023,30 @@ compiler."
43971 # Clear the version info if we defaulted, and they specified a release.
43972 if test -z "$vinfo" && test -n "$release"; then
43973 major=
43974 - versuffix=
43975 - verstring="0.0"
43976 - case "$host" in
43977 - *-*-sunos*)
43978 - versuffix=".0.0"
43979 + case $version_type in
43980 + darwin)
43981 + # we can't check for "0.0" in archive_cmds due to quoting
43982 + # problems, so we reset it completely
43983 + verstring=
43984 + ;;
43985 + *)
43986 + verstring="0.0"
43987 ;;
43988 esac
43989 + if test "$need_version" = no; then
43990 + versuffix=
43991 + else
43992 + versuffix=".0.0"
43993 + fi
43994 fi
43996 # Remove version info from name if versioning should be avoided
43997 - if test "$avoid_versioning" = yes && test "$need_version" = no; then
43998 + if test "$avoid_version" = yes && test "$need_version" = no; then
43999 major=
44000 versuffix=
44001 verstring=""
44002 fi
44005 # Check to see if the archive will have undefined symbols.
44006 if test "$allow_undefined" = yes; then
44007 if test "$allow_undefined_flag" = unsupported; then
44008 @@ -1452,29 +3058,26 @@ compiler."
44009 # Don't allow undefined symbols.
44010 allow_undefined_flag="$no_undefined_flag"
44011 fi
44013 - dependency_libs="$deplibs"
44014 - case "$host" in
44015 - *-*-cygwin32* | *-*-mingw32* | *-*-os2*)
44016 - # these systems don't actually have a c library (as such)!
44017 - ;;
44018 - *)
44019 - # Add libc to deplibs on all other systems.
44020 - deplibs="$deplibs -lc"
44021 - ;;
44022 - esac
44023 fi
44025 - # Create the output directory, or remove our outputs if we need to.
44026 - if test -d $output_objdir; then
44027 - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
44028 - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
44029 - else
44030 - $show "$mkdir $output_objdir"
44031 - $run $mkdir $output_objdir
44032 - status=$?
44033 - if test $status -ne 0 && test ! -d $output_objdir; then
44034 - exit $status
44035 + if test "$mode" != relink; then
44036 + # Remove our outputs, but don't remove object files since they
44037 + # may have been created when compiling PIC objects.
44038 + removelist=
44039 + tempremovelist=`$echo "$output_objdir/*"`
44040 + for p in $tempremovelist; do
44041 + case $p in
44042 + *.$objext)
44043 + ;;
44044 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
44045 + removelist="$removelist $p"
44046 + ;;
44047 + *) ;;
44048 + esac
44049 + done
44050 + if test -n "$removelist"; then
44051 + $show "${rm}r $removelist"
44052 + $run ${rm}r $removelist
44053 fi
44054 fi
44056 @@ -1486,12 +3089,75 @@ compiler."
44057 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
44058 fi
44060 + # Eliminate all temporary directories.
44061 + for path in $notinst_path; do
44062 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
44063 + deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
44064 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
44065 + done
44067 + if test -n "$xrpath"; then
44068 + # If the user specified any rpath flags, then add them.
44069 + temp_xrpath=
44070 + for libdir in $xrpath; do
44071 + temp_xrpath="$temp_xrpath -R$libdir"
44072 + case "$finalize_rpath " in
44073 + *" $libdir "*) ;;
44074 + *) finalize_rpath="$finalize_rpath $libdir" ;;
44075 + esac
44076 + done
44077 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
44078 + dependency_libs="$temp_xrpath $dependency_libs"
44079 + fi
44080 + fi
44082 + # Make sure dlfiles contains only unique files that won't be dlpreopened
44083 + old_dlfiles="$dlfiles"
44084 + dlfiles=
44085 + for lib in $old_dlfiles; do
44086 + case " $dlprefiles $dlfiles " in
44087 + *" $lib "*) ;;
44088 + *) dlfiles="$dlfiles $lib" ;;
44089 + esac
44090 + done
44092 + # Make sure dlprefiles contains only unique files
44093 + old_dlprefiles="$dlprefiles"
44094 + dlprefiles=
44095 + for lib in $old_dlprefiles; do
44096 + case "$dlprefiles " in
44097 + *" $lib "*) ;;
44098 + *) dlprefiles="$dlprefiles $lib" ;;
44099 + esac
44100 + done
44102 if test "$build_libtool_libs" = yes; then
44103 + if test -n "$rpath"; then
44104 + case $host in
44105 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
44106 + # these systems don't actually have a c library (as such)!
44107 + ;;
44108 + *-*-rhapsody* | *-*-darwin1.[012])
44109 + # Rhapsody C library is in the System framework
44110 + deplibs="$deplibs -framework System"
44111 + ;;
44112 + *-*-netbsd*)
44113 + # Don't link with libc until the a.out ld.so is fixed.
44114 + ;;
44115 + *-*-openbsd* | *-*-freebsd*)
44116 + # Do not include libc due to us having libc/libc_r.
44117 + test "X$arg" = "X-lc" && continue
44118 + ;;
44119 + *)
44120 + # Add libc to deplibs on all other systems if necessary.
44121 + if test "$build_libtool_need_lc" = "yes"; then
44122 + deplibs="$deplibs -lc"
44123 + fi
44124 + ;;
44125 + esac
44126 + fi
44128 # Transform deplibs into only deplibs that can be linked in shared.
44129 - ## Gordon: Do you check for the existence of the libraries in deplibs
44130 - ## on the system? That should maybe be merged in here someplace....
44131 - ## Actually: I think test_compile and file_magic do this... file_regex
44132 - ## sorta does this. Only pass_all needs to be changed. -Toshio
44133 name_save=$name
44134 libname_save=$libname
44135 release_save=$release
44136 @@ -1504,14 +3170,16 @@ compiler."
44137 versuffix=""
44138 major=""
44139 newdeplibs=
44140 - case "$deplibs_check_method" in
44141 - pass_all)
44142 - newdeplibs=$deplibs
44143 - ;; # Don't check for shared/static. Everything works.
44144 - # This might be a little naive. We might want to check
44145 - # whether the library exists or not. But this is on
44146 - # osf3 & osf4 and I'm not really sure... Just
44147 - # implementing what was already the behaviour.
44148 + droppeddeps=no
44149 + case $deplibs_check_method in
44150 + pass_all)
44151 + # Don't check for shared/static. Everything works.
44152 + # This might be a little naive. We might want to check
44153 + # whether the library exists or not. But this is on
44154 + # osf3 & osf4 and I'm not really sure... Just
44155 + # implementing what was already the behavior.
44156 + newdeplibs=$deplibs
44157 + ;;
44158 test_compile)
44159 # This code stresses the "libraries are programs" paradigm to its
44160 # limits. Maybe even breaks it. We compile a program, linking it
44161 @@ -1522,42 +3190,64 @@ compiler."
44162 int main() { return 0; }
44163 EOF
44164 $rm conftest
44165 - $C_compiler -o conftest conftest.c $deplibs
44166 - if test $? -eq 0 ; then
44167 + $LTCC -o conftest conftest.c $deplibs
44168 + if test "$?" -eq 0 ; then
44169 ldd_output=`ldd conftest`
44170 for i in $deplibs; do
44171 name="`expr $i : '-l\(.*\)'`"
44172 # If $name is empty we are operating on a -L argument.
44173 - if test "$name" != "" ; then
44174 - libname=`eval \\$echo \"$libname_spec\"`
44175 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
44176 - set dummy $deplib_matches
44177 - deplib_match=$2
44178 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
44179 - newdeplibs="$newdeplibs $i"
44180 - else
44181 - echo
44182 - echo "*** Warning: This library needs some functionality provided by $i."
44183 - echo "*** I have the capability to make that library automatically link in when"
44184 - echo "*** you link to this library. But I can only do this if you have a"
44185 - echo "*** shared version of the library, which you do not appear to have."
44186 + if test "$name" != "" && test "$name" -ne "0"; then
44187 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
44188 + case " $predeps $postdeps " in
44189 + *" $i "*)
44190 + newdeplibs="$newdeplibs $i"
44191 + i=""
44192 + ;;
44193 + esac
44194 + fi
44195 + if test -n "$i" ; then
44196 + libname=`eval \\$echo \"$libname_spec\"`
44197 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
44198 + set dummy $deplib_matches
44199 + deplib_match=$2
44200 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
44201 + newdeplibs="$newdeplibs $i"
44202 + else
44203 + droppeddeps=yes
44204 + $echo
44205 + $echo "*** Warning: dynamic linker does not accept needed library $i."
44206 + $echo "*** I have the capability to make that library automatically link in when"
44207 + $echo "*** you link to this library. But I can only do this if you have a"
44208 + $echo "*** shared version of the library, which I believe you do not have"
44209 + $echo "*** because a test_compile did reveal that the linker did not use it for"
44210 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
44211 + fi
44212 fi
44213 else
44214 newdeplibs="$newdeplibs $i"
44215 fi
44216 done
44217 else
44218 - # Error occured in the first compile. Let's try to salvage the situation:
44219 - # Compile a seperate program for each library.
44220 + # Error occurred in the first compile. Let's try to salvage
44221 + # the situation: Compile a separate program for each library.
44222 for i in $deplibs; do
44223 name="`expr $i : '-l\(.*\)'`"
44224 - # If $name is empty we are operating on a -L argument.
44225 - if test "$name" != "" ; then
44226 + # If $name is empty we are operating on a -L argument.
44227 + if test "$name" != "" && test "$name" != "0"; then
44228 $rm conftest
44229 - $C_compiler -o conftest conftest.c $i
44230 + $LTCC -o conftest conftest.c $i
44231 # Did it work?
44232 - if test $? -eq 0 ; then
44233 + if test "$?" -eq 0 ; then
44234 ldd_output=`ldd conftest`
44235 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
44236 + case " $predeps $postdeps " in
44237 + *" $i "*)
44238 + newdeplibs="$newdeplibs $i"
44239 + i=""
44240 + ;;
44241 + esac
44242 + fi
44243 + if test -n "$i" ; then
44244 libname=`eval \\$echo \"$libname_spec\"`
44245 deplib_matches=`eval \\$echo \"$library_names_spec\"`
44246 set dummy $deplib_matches
44247 @@ -1565,93 +3255,301 @@ EOF
44248 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
44249 newdeplibs="$newdeplibs $i"
44250 else
44251 - echo
44252 - echo "*** Warning: This library needs some functionality provided by $i."
44253 - echo "*** I have the capability to make that library automatically link in when"
44254 - echo "*** you link to this library. But I can only do this if you have a"
44255 - echo "*** shared version of the library, which you do not appear to have."
44256 + droppeddeps=yes
44257 + $echo
44258 + $echo "*** Warning: dynamic linker does not accept needed library $i."
44259 + $echo "*** I have the capability to make that library automatically link in when"
44260 + $echo "*** you link to this library. But I can only do this if you have a"
44261 + $echo "*** shared version of the library, which you do not appear to have"
44262 + $echo "*** because a test_compile did reveal that the linker did not use this one"
44263 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
44264 fi
44265 + fi
44266 else
44267 - echo
44268 - echo "*** Warning! Library $i is needed by this library but I was not able to"
44269 - echo "*** make it link in! You will probably need to install it or some"
44270 - echo "*** library that it depends on before this library will be fully"
44271 - echo "*** functional. Installing it before continuing would be even better."
44272 + droppeddeps=yes
44273 + $echo
44274 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
44275 + $echo "*** make it link in! You will probably need to install it or some"
44276 + $echo "*** library that it depends on before this library will be fully"
44277 + $echo "*** functional. Installing it before continuing would be even better."
44278 fi
44279 else
44280 newdeplibs="$newdeplibs $i"
44281 fi
44282 done
44283 fi
44284 - deplibs=$newdeplibs
44285 ;;
44286 - file_magic* | file_regex)
44287 + file_magic*)
44288 set dummy $deplibs_check_method
44289 - file_magic_regex="`expr \"$deplibs_check_method\" : \"$2 \(.*\)\"`"
44290 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
44291 for a_deplib in $deplibs; do
44292 name="`expr $a_deplib : '-l\(.*\)'`"
44293 # If $name is empty we are operating on a -L argument.
44294 - if test "$name" != "" ; then
44295 - libname=`eval \\$echo \"$libname_spec\"`
44296 - case "$deplibs_check_method" in
44297 - file_magic*)
44298 - for i in $lib_search_path; do
44299 - # This needs to be more general than file_regex in order to
44300 - # catch things like glibc on linux. Maybe file_regex
44301 - # should be more general as well, but maybe not. Since
44302 - # library names are supposed to conform to
44303 - # library_name_spec, I think file_regex should remain
44304 - # strict. What do you think Gordon?
44305 - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
44306 - for potent_lib in $potential_libs; do
44307 - file_output=`eval $file_magic_command $potent_lib \
44308 - | sed '11,$d'`
44309 - if test `expr "X$file_output" : "X.*$file_magic_regex"` -ne 0 ; then
44310 + if test "$name" != "" && test "$name" != "0"; then
44311 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
44312 + case " $predeps $postdeps " in
44313 + *" $a_deplib "*)
44314 + newdeplibs="$newdeplibs $a_deplib"
44315 + a_deplib=""
44316 + ;;
44317 + esac
44318 + fi
44319 + if test -n "$a_deplib" ; then
44320 + libname=`eval \\$echo \"$libname_spec\"`
44321 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
44322 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
44323 + for potent_lib in $potential_libs; do
44324 + # Follow soft links.
44325 + if ls -lLd "$potent_lib" 2>/dev/null \
44326 + | grep " -> " >/dev/null; then
44327 + continue
44328 + fi
44329 + # The statement above tries to avoid entering an
44330 + # endless loop below, in case of cyclic links.
44331 + # We might still enter an endless loop, since a link
44332 + # loop can be closed while we follow links,
44333 + # but so what?
44334 + potlib="$potent_lib"
44335 + while test -h "$potlib" 2>/dev/null; do
44336 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
44337 + case $potliblink in
44338 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
44339 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
44340 + esac
44341 + done
44342 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
44343 + | ${SED} 10q \
44344 + | $EGREP "$file_magic_regex" > /dev/null; then
44345 newdeplibs="$newdeplibs $a_deplib"
44346 a_deplib=""
44347 break 2
44348 fi
44349 - done
44350 done
44351 + done
44352 + fi
44353 + if test -n "$a_deplib" ; then
44354 + droppeddeps=yes
44355 + $echo
44356 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
44357 + $echo "*** I have the capability to make that library automatically link in when"
44358 + $echo "*** you link to this library. But I can only do this if you have a"
44359 + $echo "*** shared version of the library, which you do not appear to have"
44360 + $echo "*** because I did check the linker path looking for a file starting"
44361 + if test -z "$potlib" ; then
44362 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
44363 + else
44364 + $echo "*** with $libname and none of the candidates passed a file format test"
44365 + $echo "*** using a file magic. Last file checked: $potlib"
44366 + fi
44367 + fi
44368 + else
44369 + # Add a -L argument.
44370 + newdeplibs="$newdeplibs $a_deplib"
44371 + fi
44372 + done # Gone through all deplibs.
44373 + ;;
44374 + match_pattern*)
44375 + set dummy $deplibs_check_method
44376 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
44377 + for a_deplib in $deplibs; do
44378 + name="`expr $a_deplib : '-l\(.*\)'`"
44379 + # If $name is empty we are operating on a -L argument.
44380 + if test -n "$name" && test "$name" != "0"; then
44381 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
44382 + case " $predeps $postdeps " in
44383 + *" $a_deplib "*)
44384 + newdeplibs="$newdeplibs $a_deplib"
44385 + a_deplib=""
44386 ;;
44387 - file_regex)
44388 - deplib_matches=`eval \\$echo \"$library_names_spec\"`
44389 - set dummy $deplib_matches
44390 - deplib_match=$2
44391 - for i in $lib_search_path; do
44392 - potential_libs=`ls $i/$deplib_match* 2>/dev/null`
44393 - if test "$potential_libs" != "" ; then
44394 + esac
44395 + fi
44396 + if test -n "$a_deplib" ; then
44397 + libname=`eval \\$echo \"$libname_spec\"`
44398 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
44399 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
44400 + for potent_lib in $potential_libs; do
44401 + potlib="$potent_lib" # see symlink-check above in file_magic test
44402 + if eval $echo \"$potent_lib\" 2>/dev/null \
44403 + | ${SED} 10q \
44404 + | $EGREP "$match_pattern_regex" > /dev/null; then
44405 newdeplibs="$newdeplibs $a_deplib"
44406 a_deplib=""
44407 - break
44408 + break 2
44409 fi
44410 done
44411 - ;;
44412 - esac
44413 - if test "$a_deplib" != "" ; then
44414 - echo
44415 - echo "*** Warning: This library needs some functionality provided by $a_deplib."
44416 - echo "*** I have the capability to make that library automatically link in when"
44417 - echo "*** you link to this library. But I can only do this if you have a"
44418 - echo "*** shared version of the library, which you do not appear to have."
44419 + done
44420 + fi
44421 + if test -n "$a_deplib" ; then
44422 + droppeddeps=yes
44423 + $echo
44424 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
44425 + $echo "*** I have the capability to make that library automatically link in when"
44426 + $echo "*** you link to this library. But I can only do this if you have a"
44427 + $echo "*** shared version of the library, which you do not appear to have"
44428 + $echo "*** because I did check the linker path looking for a file starting"
44429 + if test -z "$potlib" ; then
44430 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
44431 + else
44432 + $echo "*** with $libname and none of the candidates passed a file format test"
44433 + $echo "*** using a regex pattern. Last file checked: $potlib"
44434 + fi
44435 + fi
44436 + else
44437 + # Add a -L argument.
44438 + newdeplibs="$newdeplibs $a_deplib"
44439 + fi
44440 + done # Gone through all deplibs.
44441 + ;;
44442 + none | unknown | *)
44443 + newdeplibs=""
44444 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
44445 + -e 's/ -[LR][^ ]*//g'`
44446 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
44447 + for i in $predeps $postdeps ; do
44448 + # can't use Xsed below, because $i might contain '/'
44449 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
44450 + done
44451 + fi
44452 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
44453 + | grep . >/dev/null; then
44454 + $echo
44455 + if test "X$deplibs_check_method" = "Xnone"; then
44456 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
44457 + else
44458 + $echo "*** Warning: inter-library dependencies are not known to be supported."
44459 + fi
44460 + $echo "*** All declared inter-library dependencies are being dropped."
44461 + droppeddeps=yes
44462 + fi
44463 + ;;
44464 + esac
44465 + versuffix=$versuffix_save
44466 + major=$major_save
44467 + release=$release_save
44468 + libname=$libname_save
44469 + name=$name_save
44471 + case $host in
44472 + *-*-rhapsody* | *-*-darwin1.[012])
44473 + # On Rhapsody replace the C library is the System framework
44474 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
44475 + ;;
44476 + esac
44478 + if test "$droppeddeps" = yes; then
44479 + if test "$module" = yes; then
44480 + $echo
44481 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
44482 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
44483 + $echo "*** a static module, that should work as long as the dlopening"
44484 + $echo "*** application is linked with the -dlopen flag."
44485 + if test -z "$global_symbol_pipe"; then
44486 + $echo
44487 + $echo "*** However, this would only work if libtool was able to extract symbol"
44488 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
44489 + $echo "*** not find such a program. So, this module is probably useless."
44490 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
44491 + fi
44492 + if test "$build_old_libs" = no; then
44493 + oldlibs="$output_objdir/$libname.$libext"
44494 + build_libtool_libs=module
44495 + build_old_libs=yes
44496 + else
44497 + build_libtool_libs=no
44498 + fi
44499 + else
44500 + $echo "*** The inter-library dependencies that have been dropped here will be"
44501 + $echo "*** automatically added whenever a program is linked with this library"
44502 + $echo "*** or is declared to -dlopen it."
44504 + if test "$allow_undefined" = no; then
44505 + $echo
44506 + $echo "*** Since this library must not contain undefined symbols,"
44507 + $echo "*** because either the platform does not support them or"
44508 + $echo "*** it was explicitly requested with -no-undefined,"
44509 + $echo "*** libtool will only create a static version of it."
44510 + if test "$build_old_libs" = no; then
44511 + oldlibs="$output_objdir/$libname.$libext"
44512 + build_libtool_libs=module
44513 + build_old_libs=yes
44514 + else
44515 + build_libtool_libs=no
44516 + fi
44517 + fi
44518 + fi
44519 + fi
44520 + # Done checking deplibs!
44521 + deplibs=$newdeplibs
44522 + fi
44524 + # All the library-specific variables (install_libdir is set above).
44525 + library_names=
44526 + old_library=
44527 + dlname=
44529 + # Test again, we may have decided not to build it any more
44530 + if test "$build_libtool_libs" = yes; then
44531 + if test "$hardcode_into_libs" = yes; then
44532 + # Hardcode the library paths
44533 + hardcode_libdirs=
44534 + dep_rpath=
44535 + rpath="$finalize_rpath"
44536 + test "$mode" != relink && rpath="$compile_rpath$rpath"
44537 + for libdir in $rpath; do
44538 + if test -n "$hardcode_libdir_flag_spec"; then
44539 + if test -n "$hardcode_libdir_separator"; then
44540 + if test -z "$hardcode_libdirs"; then
44541 + hardcode_libdirs="$libdir"
44542 + else
44543 + # Just accumulate the unique libdirs.
44544 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
44545 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
44546 + ;;
44547 + *)
44548 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
44549 + ;;
44550 + esac
44551 + fi
44552 + else
44553 + eval flag=\"$hardcode_libdir_flag_spec\"
44554 + dep_rpath="$dep_rpath $flag"
44555 fi
44556 + elif test -n "$runpath_var"; then
44557 + case "$perm_rpath " in
44558 + *" $libdir "*) ;;
44559 + *) perm_rpath="$perm_rpath $libdir" ;;
44560 + esac
44561 + fi
44562 + done
44563 + # Substitute the hardcoded libdirs into the rpath.
44564 + if test -n "$hardcode_libdir_separator" &&
44565 + test -n "$hardcode_libdirs"; then
44566 + libdir="$hardcode_libdirs"
44567 + if test -n "$hardcode_libdir_flag_spec_ld"; then
44568 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
44569 else
44570 - # Add a -L argument.
44571 - newdeplibs="$newdeplibs $a_deplib"
44572 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
44573 fi
44574 - done # Gone through all deplibs.
44575 - ;;
44576 - none | *) deplibs="" ;;
44577 - esac
44578 - versuffix=$versuffix_save
44579 - major=$major_save
44580 - release=$release_save
44581 - libname=$libname_save
44582 - name=$name_save
44583 - deplibs=$newdeplibs
44584 - # Done checking deplibs!
44586 + fi
44587 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
44588 + # We should set the runpath_var.
44589 + rpath=
44590 + for dir in $perm_rpath; do
44591 + rpath="$rpath$dir:"
44592 + done
44593 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
44594 + fi
44595 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
44596 + fi
44598 + shlibpath="$finalize_shlibpath"
44599 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
44600 + if test -n "$shlibpath"; then
44601 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
44602 + fi
44604 # Get the real and link names of the library.
44605 + eval shared_ext=\"$shrext\"
44606 eval library_names=\"$library_names_spec\"
44607 set dummy $library_names
44608 realname="$2"
44609 @@ -1662,6 +3560,9 @@ EOF
44610 else
44611 soname="$realname"
44612 fi
44613 + if test -z "$dlname"; then
44614 + dlname=$soname
44615 + fi
44617 lib="$output_objdir/$realname"
44618 for link
44619 @@ -1669,42 +3570,259 @@ EOF
44620 linknames="$linknames $link"
44621 done
44623 - # Use standard objects if they are PIC.
44624 + # Use standard objects if they are pic
44625 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
44627 - if test -n "$whole_archive_flag_spec"; then
44628 - if test -n "$convenience"; then
44629 - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
44630 + # Prepare the list of exported symbols
44631 + if test -z "$export_symbols"; then
44632 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
44633 + $show "generating symbol list for \`$libname.la'"
44634 + export_symbols="$output_objdir/$libname.exp"
44635 + $run $rm $export_symbols
44636 + eval cmds=\"$export_symbols_cmds\"
44637 + save_ifs="$IFS"; IFS='~'
44638 + for cmd in $cmds; do
44639 + IFS="$save_ifs"
44640 + if len=`expr "X$cmd" : ".*"` &&
44641 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
44642 + $show "$cmd"
44643 + $run eval "$cmd" || exit $?
44644 + skipped_export=false
44645 + else
44646 + # The command line is too long to execute in one step.
44647 + $show "using reloadable object file for export list..."
44648 + skipped_export=:
44649 + fi
44650 + done
44651 + IFS="$save_ifs"
44652 + if test -n "$export_symbols_regex"; then
44653 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
44654 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
44655 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
44656 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
44657 + fi
44658 fi
44659 - else
44660 - for xlib in $convenience; do
44661 - # Extract the objects.
44662 - xdir="$xlib"x
44663 - generated="$generated $xdir"
44664 - xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'`
44665 + fi
44667 - $show "${rm}r $xdir"
44668 - $run ${rm}r "$xdir"
44669 - $show "mkdir $xdir"
44670 - $run mkdir "$xdir"
44671 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
44672 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
44673 + fi
44675 + tmp_deplibs=
44676 + for test_deplib in $deplibs; do
44677 + case " $convenience " in
44678 + *" $test_deplib "*) ;;
44679 + *)
44680 + tmp_deplibs="$tmp_deplibs $test_deplib"
44681 + ;;
44682 + esac
44683 + done
44684 + deplibs="$tmp_deplibs"
44686 + if test -n "$convenience"; then
44687 + if test -n "$whole_archive_flag_spec"; then
44688 + save_libobjs=$libobjs
44689 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
44690 + else
44691 + gentop="$output_objdir/${outputname}x"
44692 + $show "${rm}r $gentop"
44693 + $run ${rm}r "$gentop"
44694 + $show "$mkdir $gentop"
44695 + $run $mkdir "$gentop"
44696 status=$?
44697 - if test $status -ne 0 && test ! -d "$xdir"; then
44698 + if test "$status" -ne 0 && test ! -d "$gentop"; then
44699 exit $status
44700 fi
44701 - $show "(cd $xdir && $AR x ../$xlib)"
44702 - $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
44703 + generated="$generated $gentop"
44705 - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
44706 - done
44707 + for xlib in $convenience; do
44708 + # Extract the objects.
44709 + case $xlib in
44710 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
44711 + *) xabs=`pwd`"/$xlib" ;;
44712 + esac
44713 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
44714 + xdir="$gentop/$xlib"
44716 + $show "${rm}r $xdir"
44717 + $run ${rm}r "$xdir"
44718 + $show "$mkdir $xdir"
44719 + $run $mkdir "$xdir"
44720 + status=$?
44721 + if test "$status" -ne 0 && test ! -d "$xdir"; then
44722 + exit $status
44723 + fi
44724 + # We will extract separately just the conflicting names and we will no
44725 + # longer touch any unique names. It is faster to leave these extract
44726 + # automatically by $AR in one run.
44727 + $show "(cd $xdir && $AR x $xabs)"
44728 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
44729 + if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
44730 + :
44731 + else
44732 + $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
44733 + $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
44734 + $AR t "$xabs" | sort | uniq -cd | while read -r count name
44735 + do
44736 + i=1
44737 + while test "$i" -le "$count"
44738 + do
44739 + # Put our $i before any first dot (extension)
44740 + # Never overwrite any file
44741 + name_to="$name"
44742 + while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
44743 + do
44744 + name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
44745 + done
44746 + $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
44747 + $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
44748 + i=`expr $i + 1`
44749 + done
44750 + done
44751 + fi
44753 + libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
44754 + done
44755 + fi
44756 + fi
44758 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
44759 + eval flag=\"$thread_safe_flag_spec\"
44760 + linker_flags="$linker_flags $flag"
44761 + fi
44763 + # Make a backup of the uninstalled library when relinking
44764 + if test "$mode" = relink; then
44765 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
44766 fi
44768 # Do each of the archive commands.
44769 - if test -n "$export_symbols" && test -n "$archive_sym_cmds"; then
44770 - eval cmds=\"$archive_sym_cmds\"
44771 + if test "$module" = yes && test -n "$module_cmds" ; then
44772 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
44773 + eval cmds=\"$module_expsym_cmds\"
44774 + else
44775 + eval cmds=\"$module_cmds\"
44776 + fi
44777 + else
44778 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
44779 + eval cmds=\"$archive_expsym_cmds\"
44780 else
44781 eval cmds=\"$archive_cmds\"
44782 + fi
44783 + fi
44785 + if test "X$skipped_export" != "X:" && len=`expr "X$cmds" : ".*"` &&
44786 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
44787 + :
44788 + else
44789 + # The command line is too long to link in one step, link piecewise.
44790 + $echo "creating reloadable object files..."
44792 + # Save the value of $output and $libobjs because we want to
44793 + # use them later. If we have whole_archive_flag_spec, we
44794 + # want to use save_libobjs as it was before
44795 + # whole_archive_flag_spec was expanded, because we can't
44796 + # assume the linker understands whole_archive_flag_spec.
44797 + # This may have to be revisited, in case too many
44798 + # convenience libraries get linked in and end up exceeding
44799 + # the spec.
44800 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
44801 + save_libobjs=$libobjs
44802 + fi
44803 + save_output=$output
44805 + # Clear the reloadable object creation command queue and
44806 + # initialize k to one.
44807 + test_cmds=
44808 + concat_cmds=
44809 + objlist=
44810 + delfiles=
44811 + last_robj=
44812 + k=1
44813 + output=$output_objdir/$save_output-${k}.$objext
44814 + # Loop over the list of objects to be linked.
44815 + for obj in $save_libobjs
44816 + do
44817 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
44818 + if test "X$objlist" = X ||
44819 + { len=`expr "X$test_cmds" : ".*"` &&
44820 + test "$len" -le "$max_cmd_len"; }; then
44821 + objlist="$objlist $obj"
44822 + else
44823 + # The command $test_cmds is almost too long, add a
44824 + # command to the queue.
44825 + if test "$k" -eq 1 ; then
44826 + # The first file doesn't have a previous command to add.
44827 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
44828 + else
44829 + # All subsequent reloadable object files will link in
44830 + # the last one created.
44831 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
44832 + fi
44833 + last_robj=$output_objdir/$save_output-${k}.$objext
44834 + k=`expr $k + 1`
44835 + output=$output_objdir/$save_output-${k}.$objext
44836 + objlist=$obj
44837 + len=1
44838 + fi
44839 + done
44840 + # Handle the remaining objects by creating one last
44841 + # reloadable object file. All subsequent reloadable object
44842 + # files will link in the last one created.
44843 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
44844 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
44846 + if ${skipped_export-false}; then
44847 + $show "generating symbol list for \`$libname.la'"
44848 + export_symbols="$output_objdir/$libname.exp"
44849 + $run $rm $export_symbols
44850 + libobjs=$output
44851 + # Append the command to create the export file.
44852 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
44853 + fi
44855 + # Set up a command to remove the reloadale object files
44856 + # after they are used.
44857 + i=0
44858 + while test "$i" -lt "$k"
44859 + do
44860 + i=`expr $i + 1`
44861 + delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
44862 + done
44864 + $echo "creating a temporary reloadable object file: $output"
44866 + # Loop through the commands generated above and execute them.
44867 + save_ifs="$IFS"; IFS='~'
44868 + for cmd in $concat_cmds; do
44869 + IFS="$save_ifs"
44870 + $show "$cmd"
44871 + $run eval "$cmd" || exit $?
44872 + done
44873 + IFS="$save_ifs"
44875 + libobjs=$output
44876 + # Restore the value of output.
44877 + output=$save_output
44879 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
44880 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
44881 + fi
44882 + # Expand the library linking commands again to reset the
44883 + # value of $libobjs for piecewise linking.
44885 + # Do each of the archive commands.
44886 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
44887 + eval cmds=\"$archive_expsym_cmds\"
44888 + else
44889 + eval cmds=\"$archive_cmds\"
44890 + fi
44892 + # Append the command to remove the reloadable object files
44893 + # to the just-reset $cmds.
44894 + eval cmds=\"\$cmds~$rm $delfiles\"
44895 fi
44896 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
44897 + save_ifs="$IFS"; IFS='~'
44898 for cmd in $cmds; do
44899 IFS="$save_ifs"
44900 $show "$cmd"
44901 @@ -1712,6 +3830,12 @@ EOF
44902 done
44903 IFS="$save_ifs"
44905 + # Restore the uninstalled library and exit
44906 + if test "$mode" = relink; then
44907 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
44908 + exit 0
44909 + fi
44911 # Create links to the real library.
44912 for linkname in $linknames; do
44913 if test "$realname" != "$linkname"; then
44914 @@ -1728,17 +3852,12 @@ EOF
44915 fi
44916 ;;
44918 - *.lo | *.o | *.obj)
44919 - if test -n "$link_against_libtool_libs"; then
44920 - $echo "$modename: error: cannot link libtool libraries into objects" 1>&2
44921 - exit 1
44922 - fi
44924 + obj)
44925 if test -n "$deplibs"; then
44926 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
44927 fi
44929 - if test -n "$dlfiles$dlprefiles"; then
44930 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
44931 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
44932 fi
44934 @@ -1758,9 +3877,9 @@ EOF
44935 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
44936 fi
44938 - case "$output" in
44939 + case $output in
44940 *.lo)
44941 - if test -n "$objs"; then
44942 + if test -n "$objs$old_deplibs"; then
44943 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
44944 exit 1
44945 fi
44946 @@ -1776,12 +3895,88 @@ EOF
44947 # Delete the old objects.
44948 $run $rm $obj $libobj
44950 + # Objects from convenience libraries. This assumes
44951 + # single-version convenience libraries. Whenever we create
44952 + # different ones for PIC/non-PIC, this we'll have to duplicate
44953 + # the extraction.
44954 + reload_conv_objs=
44955 + gentop=
44956 + # reload_cmds runs $LD directly, so let us get rid of
44957 + # -Wl from whole_archive_flag_spec
44958 + wl=
44960 + if test -n "$convenience"; then
44961 + if test -n "$whole_archive_flag_spec"; then
44962 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
44963 + else
44964 + gentop="$output_objdir/${obj}x"
44965 + $show "${rm}r $gentop"
44966 + $run ${rm}r "$gentop"
44967 + $show "$mkdir $gentop"
44968 + $run $mkdir "$gentop"
44969 + status=$?
44970 + if test "$status" -ne 0 && test ! -d "$gentop"; then
44971 + exit $status
44972 + fi
44973 + generated="$generated $gentop"
44975 + for xlib in $convenience; do
44976 + # Extract the objects.
44977 + case $xlib in
44978 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
44979 + *) xabs=`pwd`"/$xlib" ;;
44980 + esac
44981 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
44982 + xdir="$gentop/$xlib"
44984 + $show "${rm}r $xdir"
44985 + $run ${rm}r "$xdir"
44986 + $show "$mkdir $xdir"
44987 + $run $mkdir "$xdir"
44988 + status=$?
44989 + if test "$status" -ne 0 && test ! -d "$xdir"; then
44990 + exit $status
44991 + fi
44992 + # We will extract separately just the conflicting names and we will no
44993 + # longer touch any unique names. It is faster to leave these extract
44994 + # automatically by $AR in one run.
44995 + $show "(cd $xdir && $AR x $xabs)"
44996 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
44997 + if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
44998 + :
44999 + else
45000 + $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
45001 + $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
45002 + $AR t "$xabs" | sort | uniq -cd | while read -r count name
45003 + do
45004 + i=1
45005 + while test "$i" -le "$count"
45006 + do
45007 + # Put our $i before any first dot (extension)
45008 + # Never overwrite any file
45009 + name_to="$name"
45010 + while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
45011 + do
45012 + name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
45013 + done
45014 + $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
45015 + $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
45016 + i=`expr $i + 1`
45017 + done
45018 + done
45019 + fi
45021 + reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
45022 + done
45023 + fi
45024 + fi
45026 # Create the old-style object.
45027 - reload_objs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
45028 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
45030 output="$obj"
45031 eval cmds=\"$reload_cmds\"
45032 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
45033 + save_ifs="$IFS"; IFS='~'
45034 for cmd in $cmds; do
45035 IFS="$save_ifs"
45036 $show "$cmd"
45037 @@ -1790,41 +3985,54 @@ EOF
45038 IFS="$save_ifs"
45040 # Exit if we aren't doing a library object file.
45041 - test -z "$libobj" && exit 0
45042 + if test -z "$libobj"; then
45043 + if test -n "$gentop"; then
45044 + $show "${rm}r $gentop"
45045 + $run ${rm}r $gentop
45046 + fi
45048 + exit 0
45049 + fi
45051 if test "$build_libtool_libs" != yes; then
45052 + if test -n "$gentop"; then
45053 + $show "${rm}r $gentop"
45054 + $run ${rm}r $gentop
45055 + fi
45057 # Create an invalid libtool object if no PIC, so that we don't
45058 # accidentally link it into a program.
45059 - $show "echo timestamp > $libobj"
45060 - $run eval "echo timestamp > $libobj" || exit $?
45061 + # $show "echo timestamp > $libobj"
45062 + # $run eval "echo timestamp > $libobj" || exit $?
45063 exit 0
45064 fi
45066 - if test -n "$pic_flag"; then
45067 + if test -n "$pic_flag" || test "$pic_mode" != default; then
45068 # Only do commands if we really have different PIC objects.
45069 - reload_objs="$libobjs"
45070 + reload_objs="$libobjs $reload_conv_objs"
45071 output="$libobj"
45072 eval cmds=\"$reload_cmds\"
45073 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
45074 + save_ifs="$IFS"; IFS='~'
45075 for cmd in $cmds; do
45076 IFS="$save_ifs"
45077 $show "$cmd"
45078 $run eval "$cmd" || exit $?
45079 done
45080 IFS="$save_ifs"
45081 - else
45082 - # Just create a symlink.
45083 - $show $rm $libobj
45084 - $run $rm $libobj
45085 - $show "$LN_S $obj $libobj"
45086 - $run $LN_S $obj $libobj || exit $?
45087 + fi
45089 + if test -n "$gentop"; then
45090 + $show "${rm}r $gentop"
45091 + $run ${rm}r $gentop
45092 fi
45094 exit 0
45095 ;;
45097 - # Anything else should be a program.
45098 - *)
45099 + prog)
45100 + case $host in
45101 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
45102 + esac
45103 if test -n "$vinfo"; then
45104 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
45105 fi
45106 @@ -1833,55 +4041,125 @@ EOF
45107 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
45108 fi
45110 + if test "$preload" = yes; then
45111 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
45112 + test "$dlopen_self_static" = unknown; then
45113 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
45114 + fi
45115 + fi
45117 + case $host in
45118 + *-*-rhapsody* | *-*-darwin1.[012])
45119 + # On Rhapsody replace the C library is the System framework
45120 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
45121 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
45122 + ;;
45123 + esac
45125 + case $host in
45126 + *darwin*)
45127 + # Don't allow lazy linking, it breaks C++ global constructors
45128 + if test "$tagname" = CXX ; then
45129 + compile_command="$compile_command ${wl}-bind_at_load"
45130 + finalize_command="$finalize_command ${wl}-bind_at_load"
45131 + fi
45132 + ;;
45133 + esac
45135 + compile_command="$compile_command $compile_deplibs"
45136 + finalize_command="$finalize_command $finalize_deplibs"
45138 if test -n "$rpath$xrpath"; then
45139 # If the user specified any rpath flags, then add them.
45140 for libdir in $rpath $xrpath; do
45141 - if test -n "$hardcode_libdir_flag_spec"; then
45142 - if test -n "$hardcode_libdir_separator"; then
45143 - if test -z "$hardcode_libdirs"; then
45144 - # Put the magic libdir with the hardcode flag.
45145 - hardcode_libdirs="$libdir"
45146 - libdir="@HARDCODE_LIBDIRS@"
45147 - else
45148 - # Just accumulate the unique libdirs.
45149 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
45150 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
45151 - ;;
45152 - *)
45153 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
45154 - ;;
45155 - esac
45156 - libdir=
45157 - fi
45158 - fi
45160 - if test -n "$libdir"; then
45161 - eval flag=\"$hardcode_libdir_flag_spec\"
45163 - compile_command="$compile_command $flag"
45164 - finalize_command="$finalize_command $flag"
45165 - fi
45166 - elif test -n "$runpath_var"; then
45167 - case "$perm_rpath " in
45168 - *" $libdir "*) ;;
45169 - *) perm_rpath="$perm_rpath $libdir" ;;
45170 - esac
45171 - fi
45172 + # This is the magic to use -rpath.
45173 + case "$finalize_rpath " in
45174 + *" $libdir "*) ;;
45175 + *) finalize_rpath="$finalize_rpath $libdir" ;;
45176 + esac
45177 done
45178 fi
45180 - # Substitute the hardcoded libdirs into the compile commands.
45181 - if test -n "$hardcode_libdir_separator"; then
45182 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"`
45183 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"`
45184 - fi
45186 - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
45187 - if test "X$output_objdir" = "X$output"; then
45188 - output_objdir="$objdir"
45189 - else
45190 - output_objdir="$output_objdir/$objdir"
45191 + # Now hardcode the library paths
45192 + rpath=
45193 + hardcode_libdirs=
45194 + for libdir in $compile_rpath $finalize_rpath; do
45195 + if test -n "$hardcode_libdir_flag_spec"; then
45196 + if test -n "$hardcode_libdir_separator"; then
45197 + if test -z "$hardcode_libdirs"; then
45198 + hardcode_libdirs="$libdir"
45199 + else
45200 + # Just accumulate the unique libdirs.
45201 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
45202 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
45203 + ;;
45204 + *)
45205 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
45206 + ;;
45207 + esac
45208 + fi
45209 + else
45210 + eval flag=\"$hardcode_libdir_flag_spec\"
45211 + rpath="$rpath $flag"
45212 + fi
45213 + elif test -n "$runpath_var"; then
45214 + case "$perm_rpath " in
45215 + *" $libdir "*) ;;
45216 + *) perm_rpath="$perm_rpath $libdir" ;;
45217 + esac
45218 + fi
45219 + case $host in
45220 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
45221 + case :$dllsearchpath: in
45222 + *":$libdir:"*) ;;
45223 + *) dllsearchpath="$dllsearchpath:$libdir";;
45224 + esac
45225 + ;;
45226 + esac
45227 + done
45228 + # Substitute the hardcoded libdirs into the rpath.
45229 + if test -n "$hardcode_libdir_separator" &&
45230 + test -n "$hardcode_libdirs"; then
45231 + libdir="$hardcode_libdirs"
45232 + eval rpath=\" $hardcode_libdir_flag_spec\"
45233 + fi
45234 + compile_rpath="$rpath"
45236 + rpath=
45237 + hardcode_libdirs=
45238 + for libdir in $finalize_rpath; do
45239 + if test -n "$hardcode_libdir_flag_spec"; then
45240 + if test -n "$hardcode_libdir_separator"; then
45241 + if test -z "$hardcode_libdirs"; then
45242 + hardcode_libdirs="$libdir"
45243 + else
45244 + # Just accumulate the unique libdirs.
45245 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
45246 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
45247 + ;;
45248 + *)
45249 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
45250 + ;;
45251 + esac
45252 + fi
45253 + else
45254 + eval flag=\"$hardcode_libdir_flag_spec\"
45255 + rpath="$rpath $flag"
45256 + fi
45257 + elif test -n "$runpath_var"; then
45258 + case "$finalize_perm_rpath " in
45259 + *" $libdir "*) ;;
45260 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
45261 + esac
45262 + fi
45263 + done
45264 + # Substitute the hardcoded libdirs into the rpath.
45265 + if test -n "$hardcode_libdir_separator" &&
45266 + test -n "$hardcode_libdirs"; then
45267 + libdir="$hardcode_libdirs"
45268 + eval rpath=\" $hardcode_libdir_flag_spec\"
45269 fi
45270 + finalize_rpath="$rpath"
45272 if test -n "$libobjs" && test "$build_old_libs" = yes; then
45273 # Transform all the library objects into standard objects.
45274 @@ -1889,42 +4167,31 @@ EOF
45275 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
45276 fi
45278 - if test "$export_dynamic" = yes || test -n "$dlfiles$dlprefiles" && test -n "$NM" && test -n "$global_symbol_pipe"; then
45279 - dlsyms="${outputname}S.c"
45280 - else
45281 - dlsyms=
45282 + dlsyms=
45283 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
45284 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
45285 + dlsyms="${outputname}S.c"
45286 + else
45287 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
45288 + fi
45289 fi
45291 if test -n "$dlsyms"; then
45292 - case "$dlsyms" in
45293 + case $dlsyms in
45294 "") ;;
45295 *.c)
45296 - if test "$export_dynamic" = yes && test -z "$export_symbols"; then
45297 - # Add our own program objects to the preloaded list.
45298 - dlprefiles=`$echo "X$objs $dlprefiles" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
45299 - fi
45301 # Discover the nlist of each of the dlfiles.
45302 - nlist="$objdir/${output}.nm"
45303 + nlist="$output_objdir/${outputname}.nm"
45305 - if test -d $objdir; then
45306 - $show "$rm $nlist ${nlist}T"
45307 - $run $rm "$nlist" "${nlist}T"
45308 - else
45309 - $show "$mkdir $objdir"
45310 - $run $mkdir $objdir
45311 - status=$?
45312 - if test $status -ne 0 && test ! -d $objdir; then
45313 - exit $status
45314 - fi
45315 - fi
45316 + $show "$rm $nlist ${nlist}S ${nlist}T"
45317 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
45319 # Parse the name list into a source file.
45320 - $show "creating $objdir/$dlsyms"
45321 + $show "creating $output_objdir/$dlsyms"
45323 - $echo > "$objdir/$dlsyms" "\
45324 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
45325 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
45326 -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION */
45327 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
45329 #ifdef __cplusplus
45330 extern \"C\" {
45331 @@ -1936,12 +4203,44 @@ extern \"C\" {
45332 /* External symbol declarations for the compiler. */\
45335 - if test "$export_dynamic" = yes && test -n "$export_symbols"; then
45336 - sed -e 's/^\(.*\)/\1 \1/' < "$export_symbols" > "$nlist"
45337 + if test "$dlself" = yes; then
45338 + $show "generating symbol list for \`$output'"
45340 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
45342 + # Add our own program objects to the symbol list.
45343 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
45344 + for arg in $progfiles; do
45345 + $show "extracting global C symbols from \`$arg'"
45346 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
45347 + done
45349 + if test -n "$exclude_expsyms"; then
45350 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
45351 + $run eval '$mv "$nlist"T "$nlist"'
45352 + fi
45354 + if test -n "$export_symbols_regex"; then
45355 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
45356 + $run eval '$mv "$nlist"T "$nlist"'
45357 + fi
45359 + # Prepare the list of exported symbols
45360 + if test -z "$export_symbols"; then
45361 + export_symbols="$output_objdir/$output.exp"
45362 + $run $rm $export_symbols
45363 + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
45364 + else
45365 + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
45366 + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
45367 + $run eval 'mv "$nlist"T "$nlist"'
45368 + fi
45369 fi
45371 for arg in $dlprefiles; do
45372 $show "extracting global C symbols from \`$arg'"
45373 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
45374 + $run eval '$echo ": $name " >> "$nlist"'
45375 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
45376 done
45378 @@ -1949,17 +4248,28 @@ extern \"C\" {
45379 # Make sure we have at least an empty file.
45380 test -f "$nlist" || : > "$nlist"
45382 + if test -n "$exclude_expsyms"; then
45383 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
45384 + $mv "$nlist"T "$nlist"
45385 + fi
45387 # Try sorting and uniquifying the output.
45388 - if sort "$nlist" | uniq > "$nlist"T; then
45389 - mv -f "$nlist"T "$nlist"
45390 + if grep -v "^: " < "$nlist" |
45391 + if sort -k 3 </dev/null >/dev/null 2>&1; then
45392 + sort -k 3
45393 + else
45394 + sort +2
45395 + fi |
45396 + uniq > "$nlist"S; then
45397 + :
45398 else
45399 - $rm "$nlist"T
45400 + grep -v "^: " < "$nlist" > "$nlist"S
45401 fi
45403 - if test -f "$nlist"; then
45404 - sed -e 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> "$output_objdir/$dlsyms"
45405 + if test -f "$nlist"S; then
45406 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
45407 else
45408 - echo '/* NONE */' >> "$output_objdir/$dlsyms"
45409 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
45410 fi
45412 $echo >> "$output_objdir/$dlsyms" "\
45413 @@ -1967,56 +4277,70 @@ extern \"C\" {
45414 #undef lt_preloaded_symbols
45416 #if defined (__STDC__) && __STDC__
45417 -# define lt_ptr_t void *
45418 +# define lt_ptr void *
45419 #else
45420 -# define lt_ptr_t char *
45421 +# define lt_ptr char *
45422 +# define const
45423 #endif
45425 /* The mapping between symbol names and symbols. */
45426 const struct {
45427 const char *name;
45428 - lt_ptr_t address;
45429 + lt_ptr address;
45431 lt_preloaded_symbols[] =
45432 {\
45435 - if test "$export_dynamic" = yes && test -n "$export_symbols"; then
45436 - echo >> "$output_objdir/$dlsyms" "\
45437 - {\"${output}\", (lt_ptr_t) 0},"
45438 - sed 's/^\(.*\)/ {"\1", (lt_ptr_t) \&\1},/' < "$export_symbols" >> "$output_objdir/$dlsyms"
45439 - fi
45441 - for arg in $dlprefiles; do
45442 - name=`echo "$arg" | sed -e 's%^.*/%%'`
45443 - echo >> "$output_objdir/$dlsyms" "\
45444 - {\"$name\", (lt_ptr_t) 0},"
45445 - eval "$NM $arg | $global_symbol_pipe > '$nlist'"
45447 - if test -f "$nlist"; then
45448 - sed 's/^\(.*\) \(.*\)$/ {"\1", (lt_ptr_t) \&\2},/' < "$nlist" >> "$output_objdir/$dlsyms"
45449 - else
45450 - echo '/* NONE */' >> "$output_objdir/$dlsyms"
45451 - fi
45452 - done
45453 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
45455 $echo >> "$output_objdir/$dlsyms" "\
45456 - {0, (lt_ptr_t) 0}
45457 + {0, (lt_ptr) 0}
45458 };
45460 +/* This works around a problem in FreeBSD linker */
45461 +#ifdef FREEBSD_WORKAROUND
45462 +static const void *lt_preloaded_setup() {
45463 + return lt_preloaded_symbols;
45464 +}
45465 +#endif
45467 #ifdef __cplusplus
45469 #endif\
45471 fi
45473 + pic_flag_for_symtable=
45474 + case $host in
45475 + # compiling the symbol table file with pic_flag works around
45476 + # a FreeBSD bug that causes programs to crash when -lm is
45477 + # linked before any other PIC object. But we must not use
45478 + # pic_flag when linking with -static. The problem exists in
45479 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
45480 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
45481 + case "$compile_command " in
45482 + *" -static "*) ;;
45483 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
45484 + esac;;
45485 + *-*-hpux*)
45486 + case "$compile_command " in
45487 + *" -static "*) ;;
45488 + *) pic_flag_for_symtable=" $pic_flag";;
45489 + esac
45490 + esac
45492 # Now compile the dynamic symbol file.
45493 - $show "(cd $objdir && $C_compiler -c$no_builtin_flag \"$dlsyms\")"
45494 - $run eval '(cd $objdir && $C_compiler -c$no_builtin_flag "$dlsyms")' || exit $?
45495 + $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
45496 + $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
45498 + # Clean up the generated files.
45499 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
45500 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
45502 # Transform the symbol file into the correct name.
45503 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
45504 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.${objext}%"`
45505 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
45506 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
45507 ;;
45508 *)
45509 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
45510 @@ -2027,46 +4351,37 @@ lt_preloaded_symbols[] =
45511 # We keep going just in case the user didn't refer to
45512 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
45513 # really was required.
45514 - if test -n "$dlfiles$dlprefiles"; then
45515 - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
45516 - fi
45518 # Nullify the symbol file.
45519 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
45520 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
45521 fi
45523 - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
45524 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
45525 # Replace the output file specification.
45526 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
45527 - finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
45528 + link_command="$compile_command$compile_rpath"
45530 # We have no uninstalled library dependencies, so finalize right now.
45531 - $show "$compile_command"
45532 - $run eval "$compile_command"
45533 - exit $?
45534 - fi
45536 - # Replace the output file specification.
45537 - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
45538 - finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'T%g'`
45540 - # Create the binary in the object directory, then wrap it.
45541 - if test ! -d $output_objdir; then
45542 - $show "$mkdir $output_objdir"
45543 - $run $mkdir $output_objdir
45544 + $show "$link_command"
45545 + $run eval "$link_command"
45546 status=$?
45547 - if test $status -ne 0 && test ! -d $objdir; then
45548 - exit $status
45550 + # Delete the generated files.
45551 + if test -n "$dlsyms"; then
45552 + $show "$rm $output_objdir/${outputname}S.${objext}"
45553 + $run $rm "$output_objdir/${outputname}S.${objext}"
45554 fi
45556 + exit $status
45557 fi
45559 if test -n "$shlibpath_var"; then
45560 # We should set the shlibpath_var
45561 rpath=
45562 for dir in $temp_rpath; do
45563 - case "$dir" in
45564 - /* | [A-Za-z]:[/\\]*)
45565 + case $dir in
45566 + [\\/]* | [A-Za-z]:[\\/]*)
45567 # Absolute path.
45568 rpath="$rpath$dir:"
45569 ;;
45570 @@ -2079,45 +4394,102 @@ lt_preloaded_symbols[] =
45571 temp_rpath="$rpath"
45572 fi
45574 - # Delete the old output file.
45575 - $run $rm $output
45577 - if test -n "$compile_shlibpath"; then
45578 - compile_command="$shlibpath_var=\"$compile_shlibpath\$$shlibpath_var\" $compile_command"
45579 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
45580 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
45581 fi
45582 if test -n "$finalize_shlibpath"; then
45583 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
45584 fi
45586 - if test -n "$runpath_var" && test -n "$perm_rpath"; then
45587 - # We should set the runpath_var.
45588 - rpath=
45589 - for dir in $perm_rpath; do
45590 - rpath="$rpath$dir:"
45591 - done
45592 - compile_command="$runpath_var=\"$rpath\$$runpath_var\" $compile_command"
45593 - finalize_command="$runpath_var=\"$rpath\$$runpath_var\" $finalize_command"
45594 + compile_var=
45595 + finalize_var=
45596 + if test -n "$runpath_var"; then
45597 + if test -n "$perm_rpath"; then
45598 + # We should set the runpath_var.
45599 + rpath=
45600 + for dir in $perm_rpath; do
45601 + rpath="$rpath$dir:"
45602 + done
45603 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
45604 + fi
45605 + if test -n "$finalize_perm_rpath"; then
45606 + # We should set the runpath_var.
45607 + rpath=
45608 + for dir in $finalize_perm_rpath; do
45609 + rpath="$rpath$dir:"
45610 + done
45611 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
45612 + fi
45613 + fi
45615 + if test "$no_install" = yes; then
45616 + # We don't need to create a wrapper script.
45617 + link_command="$compile_var$compile_command$compile_rpath"
45618 + # Replace the output file specification.
45619 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
45620 + # Delete the old output file.
45621 + $run $rm $output
45622 + # Link the executable and exit
45623 + $show "$link_command"
45624 + $run eval "$link_command" || exit $?
45625 + exit 0
45626 fi
45628 if test "$hardcode_action" = relink; then
45629 - # AGH! Flame the AIX and HP-UX people for me, will ya?
45630 + # Fast installation is not supported
45631 + link_command="$compile_var$compile_command$compile_rpath"
45632 + relink_command="$finalize_var$finalize_command$finalize_rpath"
45634 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
45635 $echo "$modename: \`$output' will be relinked during installation" 1>&2
45636 + else
45637 + if test "$fast_install" != no; then
45638 + link_command="$finalize_var$compile_command$finalize_rpath"
45639 + if test "$fast_install" = yes; then
45640 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
45641 + else
45642 + # fast_install is set to needless
45643 + relink_command=
45644 + fi
45645 + else
45646 + link_command="$compile_var$compile_command$compile_rpath"
45647 + relink_command="$finalize_var$finalize_command$finalize_rpath"
45648 + fi
45649 fi
45651 - $show "$compile_command"
45652 - $run eval "$compile_command" || exit $?
45653 + # Replace the output file specification.
45654 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
45656 + # Delete the old output files.
45657 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
45659 + $show "$link_command"
45660 + $run eval "$link_command" || exit $?
45662 # Now create the wrapper script.
45663 $show "creating $output"
45665 - # Quote the finalize command for shipping.
45666 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "$sed_quote_subst"`
45667 + # Quote the relink command for shipping.
45668 + if test -n "$relink_command"; then
45669 + # Preserve any variables that may affect compiler behavior
45670 + for var in $variables_saved_for_relink; do
45671 + if eval test -z \"\${$var+set}\"; then
45672 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
45673 + elif eval var_value=\$$var; test -z "$var_value"; then
45674 + relink_command="$var=; export $var; $relink_command"
45675 + else
45676 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
45677 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
45678 + fi
45679 + done
45680 + relink_command="(cd `pwd`; $relink_command)"
45681 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
45682 + fi
45684 # Quote $echo for shipping.
45685 if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
45686 - case "$0" in
45687 - /* | [A-Za-z]:[/\\]*) qecho="$SHELL $0 --fallback-echo";;
45688 + case $0 in
45689 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
45690 *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
45691 esac
45692 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
45693 @@ -2130,7 +4502,227 @@ lt_preloaded_symbols[] =
45694 # win32 will think the script is a binary if it has
45695 # a .exe suffix, so we strip it off here.
45696 case $output in
45697 - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
45698 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
45699 + esac
45700 + # test for cygwin because mv fails w/o .exe extensions
45701 + case $host in
45702 + *cygwin*)
45703 + exeext=.exe
45704 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
45705 + *) exeext= ;;
45706 + esac
45707 + case $host in
45708 + *cygwin* | *mingw* )
45709 + cwrappersource=`$echo ${objdir}/lt-${output}.c`
45710 + cwrapper=`$echo ${output}.exe`
45711 + $rm $cwrappersource $cwrapper
45712 + trap "$rm $cwrappersource $cwrapper; exit 1" 1 2 15
45714 + cat > $cwrappersource <<EOF
45716 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
45717 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
45719 + The $output program cannot be directly executed until all the libtool
45720 + libraries that it depends on are installed.
45722 + This wrapper executable should never be moved out of the build directory.
45723 + If it is, it will not operate correctly.
45725 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
45726 + but could eventually absorb all of the scripts functionality and
45727 + exec $objdir/$outputname directly.
45728 +*/
45729 +EOF
45730 + cat >> $cwrappersource<<"EOF"
45731 +#include <stdio.h>
45732 +#include <stdlib.h>
45733 +#include <unistd.h>
45734 +#include <malloc.h>
45735 +#include <stdarg.h>
45736 +#include <assert.h>
45738 +#if defined(PATH_MAX)
45739 +# define LT_PATHMAX PATH_MAX
45740 +#elif defined(MAXPATHLEN)
45741 +# define LT_PATHMAX MAXPATHLEN
45742 +#else
45743 +# define LT_PATHMAX 1024
45744 +#endif
45746 +#ifndef DIR_SEPARATOR
45747 +#define DIR_SEPARATOR '/'
45748 +#endif
45750 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
45751 + defined (__OS2__)
45752 +#define HAVE_DOS_BASED_FILE_SYSTEM
45753 +#ifndef DIR_SEPARATOR_2
45754 +#define DIR_SEPARATOR_2 '\\'
45755 +#endif
45756 +#endif
45758 +#ifndef DIR_SEPARATOR_2
45759 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
45760 +#else /* DIR_SEPARATOR_2 */
45761 +# define IS_DIR_SEPARATOR(ch) \
45762 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
45763 +#endif /* DIR_SEPARATOR_2 */
45765 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
45766 +#define XFREE(stale) do { \
45767 + if (stale) { free ((void *) stale); stale = 0; } \
45768 +} while (0)
45770 +const char *program_name = NULL;
45772 +void * xmalloc (size_t num);
45773 +char * xstrdup (const char *string);
45774 +char * basename (const char *name);
45775 +char * fnqualify(const char *path);
45776 +char * strendzap(char *str, const char *pat);
45777 +void lt_fatal (const char *message, ...);
45779 +int
45780 +main (int argc, char *argv[])
45781 +{
45782 + char **newargz;
45783 + int i;
45785 + program_name = (char *) xstrdup ((char *) basename (argv[0]));
45786 + newargz = XMALLOC(char *, argc+2);
45787 +EOF
45789 + cat >> $cwrappersource <<EOF
45790 + newargz[0] = "$SHELL";
45791 +EOF
45793 + cat >> $cwrappersource <<"EOF"
45794 + newargz[1] = fnqualify(argv[0]);
45795 + /* we know the script has the same name, without the .exe */
45796 + /* so make sure newargz[1] doesn't end in .exe */
45797 + strendzap(newargz[1],".exe");
45798 + for (i = 1; i < argc; i++)
45799 + newargz[i+1] = xstrdup(argv[i]);
45800 + newargz[argc+1] = NULL;
45801 +EOF
45803 + cat >> $cwrappersource <<EOF
45804 + execv("$SHELL",newargz);
45805 +EOF
45807 + cat >> $cwrappersource <<"EOF"
45808 +}
45810 +void *
45811 +xmalloc (size_t num)
45812 +{
45813 + void * p = (void *) malloc (num);
45814 + if (!p)
45815 + lt_fatal ("Memory exhausted");
45817 + return p;
45818 +}
45820 +char *
45821 +xstrdup (const char *string)
45822 +{
45823 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
45824 +;
45825 +}
45827 +char *
45828 +basename (const char *name)
45829 +{
45830 + const char *base;
45832 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
45833 + /* Skip over the disk name in MSDOS pathnames. */
45834 + if (isalpha (name[0]) && name[1] == ':')
45835 + name += 2;
45836 +#endif
45838 + for (base = name; *name; name++)
45839 + if (IS_DIR_SEPARATOR (*name))
45840 + base = name + 1;
45841 + return (char *) base;
45842 +}
45844 +char *
45845 +fnqualify(const char *path)
45846 +{
45847 + size_t size;
45848 + char *p;
45849 + char tmp[LT_PATHMAX + 1];
45851 + assert(path != NULL);
45853 + /* Is it qualified already? */
45854 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
45855 + if (isalpha (path[0]) && path[1] == ':')
45856 + return xstrdup (path);
45857 +#endif
45858 + if (IS_DIR_SEPARATOR (path[0]))
45859 + return xstrdup (path);
45861 + /* prepend the current directory */
45862 + /* doesn't handle '~' */
45863 + if (getcwd (tmp, LT_PATHMAX) == NULL)
45864 + lt_fatal ("getcwd failed");
45865 + size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
45866 + p = XMALLOC(char, size);
45867 + sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
45868 + return p;
45869 +}
45871 +char *
45872 +strendzap(char *str, const char *pat)
45873 +{
45874 + size_t len, patlen;
45876 + assert(str != NULL);
45877 + assert(pat != NULL);
45879 + len = strlen(str);
45880 + patlen = strlen(pat);
45882 + if (patlen <= len)
45883 + {
45884 + str += len - patlen;
45885 + if (strcmp(str, pat) == 0)
45886 + *str = '\0';
45887 + }
45888 + return str;
45889 +}
45891 +static void
45892 +lt_error_core (int exit_status, const char * mode,
45893 + const char * message, va_list ap)
45894 +{
45895 + fprintf (stderr, "%s: %s: ", program_name, mode);
45896 + vfprintf (stderr, message, ap);
45897 + fprintf (stderr, ".\n");
45899 + if (exit_status >= 0)
45900 + exit (exit_status);
45901 +}
45903 +void
45904 +lt_fatal (const char *message, ...)
45905 +{
45906 + va_list ap;
45907 + va_start (ap, message);
45908 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
45909 + va_end (ap);
45910 +}
45911 +EOF
45912 + # we should really use a build-platform specific compiler
45913 + # here, but OTOH, the wrappers (shell script and this C one)
45914 + # are only useful if you want to execute the "real" binary.
45915 + # Since the "real" binary is built for $host, then this
45916 + # wrapper might as well be built for $host, too.
45917 + $run $LTCC -s -o $cwrapper $cwrappersource
45918 + ;;
45919 esac
45920 $rm $output
45921 trap "$rm $output; exit 1" 1 2 15
45922 @@ -2139,7 +4731,7 @@ lt_preloaded_symbols[] =
45923 #! $SHELL
45925 # $output - temporary wrapper script for $objdir/$outputname
45926 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION
45927 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
45929 # The $output program cannot be directly executed until all the libtool
45930 # libraries that it depends on are installed.
45931 @@ -2149,18 +4741,19 @@ lt_preloaded_symbols[] =
45933 # Sed substitution that helps us do robust quoting. It backslashifies
45934 # metacharacters that are still active within double-quoted strings.
45935 -Xsed='sed -e s/^X//'
45936 +Xsed='${SED} -e 1s/^X//'
45937 sed_quote_subst='$sed_quote_subst'
45939 # The HP-UX ksh and POSIX shell print the target directory to stdout
45940 # if CDPATH is set.
45941 -if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
45942 +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
45944 +relink_command=\"$relink_command\"
45946 # This environment variable determines our operation mode.
45947 if test \"\$libtool_install_magic\" = \"$magic\"; then
45948 - # install mode needs the following variables:
45949 - link_against_libtool_libs='$link_against_libtool_libs'
45950 - finalize_command=\"cd `pwd | sed -e $sed_quote_subst`; $finalize_command\"
45951 + # install mode needs the following variable:
45952 + notinst_deplibs='$notinst_deplibs'
45953 else
45954 # When we are sourced in execute mode, \$file and \$echo are already set.
45955 if test \"\$libtool_execute_magic\" != \"$magic\"; then
45956 @@ -2186,33 +4779,74 @@ else
45957 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
45959 # Follow symbolic links until we get to the real thisdir.
45960 - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
45961 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
45962 while test -n \"\$file\"; do
45963 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
45965 # If there was a directory component, then change thisdir.
45966 if test \"x\$destdir\" != \"x\$file\"; then
45967 case \"\$destdir\" in
45968 - /* | [A-Za-z]:[/\\]*) thisdir=\"\$destdir\" ;;
45969 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
45970 *) thisdir=\"\$thisdir/\$destdir\" ;;
45971 esac
45972 fi
45974 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
45975 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
45976 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
45977 done
45979 # Try to get the absolute directory name.
45980 absdir=\`cd \"\$thisdir\" && pwd\`
45981 test -n \"\$absdir\" && thisdir=\"\$absdir\"
45982 +"
45984 + if test "$fast_install" = yes; then
45985 + $echo >> $output "\
45986 + program=lt-'$outputname'$exeext
45987 progdir=\"\$thisdir/$objdir\"
45989 + if test ! -f \"\$progdir/\$program\" || \\
45990 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
45991 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
45993 + file=\"\$\$-\$program\"
45995 + if test ! -d \"\$progdir\"; then
45996 + $mkdir \"\$progdir\"
45997 + else
45998 + $rm \"\$progdir/\$file\"
45999 + fi"
46001 + $echo >> $output "\
46003 + # relink executable if necessary
46004 + if test -n \"\$relink_command\"; then
46005 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
46006 + else
46007 + $echo \"\$relink_command_output\" >&2
46008 + $rm \"\$progdir/\$file\"
46009 + exit 1
46010 + fi
46011 + fi
46013 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
46014 + { $rm \"\$progdir/\$program\";
46015 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
46016 + $rm \"\$progdir/\$file\"
46017 + fi"
46018 + else
46019 + $echo >> $output "\
46020 program='$outputname'
46021 + progdir=\"\$thisdir/$objdir\"
46022 +"
46023 + fi
46025 + $echo >> $output "\
46027 if test -f \"\$progdir/\$program\"; then"
46029 # Export our shlibpath_var if we have one.
46030 - if test -n "$shlibpath_var" && test -n "$temp_rpath"; then
46031 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
46032 $echo >> $output "\
46033 # Add our own library path to $shlibpath_var
46034 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
46035 @@ -2238,20 +4872,16 @@ else
46036 # Run the actual program with our arguments.
46038 case $host in
46039 - *-*-cygwin32* | *-*-mingw32 | *-*-os2*)
46040 - # win32 systems need to use the prog path for dll
46041 - # lookup to work
46042 + # Backslashes separate directories on plain windows
46043 + *-*-mingw | *-*-os2*)
46044 $echo >> $output "\
46045 exec \$progdir\\\\\$program \${1+\"\$@\"}
46047 ;;
46049 *)
46050 $echo >> $output "\
46051 - # Export the path to the program.
46052 - PATH=\"\$progdir:\$PATH\"
46053 - export PATH
46055 - exec \$program \${1+\"\$@\"}
46056 + exec \$progdir/\$program \${1+\"\$@\"}
46058 ;;
46059 esac
46060 @@ -2263,7 +4893,7 @@ else
46061 # The program doesn't exist.
46062 \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
46063 \$echo \"This script is just a wrapper for \$program.\" 1>&2
46064 - echo \"See the $PACKAGE documentation for more information.\" 1>&2
46065 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
46066 exit 1
46067 fi
46068 fi\
46069 @@ -2282,38 +4912,143 @@ fi\
46070 addlibs="$convenience"
46071 build_libtool_libs=no
46072 else
46073 - oldobjs="$objs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
46074 + if test "$build_libtool_libs" = module; then
46075 + oldobjs="$libobjs_save"
46076 + build_libtool_libs=no
46077 + else
46078 + oldobjs="$old_deplibs $non_pic_objects"
46079 + fi
46080 addlibs="$old_convenience"
46081 fi
46083 - # Add in members from convenience archives.
46084 - for xlib in $addlibs; do
46085 - # Extract the objects.
46086 - xdir="$xlib"x
46087 - generated="$generated $xdir"
46088 - xlib=`echo "$xlib" | $Xsed -e 's%^.*/%%'`
46090 - $show "${rm}r $xdir"
46091 - $run ${rm}r "$xdir"
46092 - $show "mkdir $xdir"
46093 - $run mkdir "$xdir"
46094 + if test -n "$addlibs"; then
46095 + gentop="$output_objdir/${outputname}x"
46096 + $show "${rm}r $gentop"
46097 + $run ${rm}r "$gentop"
46098 + $show "$mkdir $gentop"
46099 + $run $mkdir "$gentop"
46100 status=$?
46101 - if test $status -ne 0 && test ! -d "$xdir"; then
46102 + if test "$status" -ne 0 && test ! -d "$gentop"; then
46103 exit $status
46104 fi
46105 - $show "(cd $xdir && $AR x ../$xlib)"
46106 - $run eval "(cd \$xdir && $AR x ../\$xlib)" || exit $?
46107 + generated="$generated $gentop"
46109 - oldobjs="$oldobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
46110 - done
46111 + # Add in members from convenience archives.
46112 + for xlib in $addlibs; do
46113 + # Extract the objects.
46114 + case $xlib in
46115 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
46116 + *) xabs=`pwd`"/$xlib" ;;
46117 + esac
46118 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
46119 + xdir="$gentop/$xlib"
46121 + $show "${rm}r $xdir"
46122 + $run ${rm}r "$xdir"
46123 + $show "$mkdir $xdir"
46124 + $run $mkdir "$xdir"
46125 + status=$?
46126 + if test "$status" -ne 0 && test ! -d "$xdir"; then
46127 + exit $status
46128 + fi
46129 + # We will extract separately just the conflicting names and we will no
46130 + # longer touch any unique names. It is faster to leave these extract
46131 + # automatically by $AR in one run.
46132 + $show "(cd $xdir && $AR x $xabs)"
46133 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
46134 + if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
46135 + :
46136 + else
46137 + $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
46138 + $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
46139 + $AR t "$xabs" | sort | uniq -cd | while read -r count name
46140 + do
46141 + i=1
46142 + while test "$i" -le "$count"
46143 + do
46144 + # Put our $i before any first dot (extension)
46145 + # Never overwrite any file
46146 + name_to="$name"
46147 + while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
46148 + do
46149 + name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
46150 + done
46151 + $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
46152 + $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
46153 + i=`expr $i + 1`
46154 + done
46155 + done
46156 + fi
46158 + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
46159 + done
46160 + fi
46162 # Do each command in the archive commands.
46163 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
46164 eval cmds=\"$old_archive_from_new_cmds\"
46165 else
46166 eval cmds=\"$old_archive_cmds\"
46168 + if len=`expr "X$cmds" : ".*"` &&
46169 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
46170 + :
46171 + else
46172 + # the command line is too long to link in one step, link in parts
46173 + $echo "using piecewise archive linking..."
46174 + save_RANLIB=$RANLIB
46175 + RANLIB=:
46176 + objlist=
46177 + concat_cmds=
46178 + save_oldobjs=$oldobjs
46179 + # GNU ar 2.10+ was changed to match POSIX; thus no paths are
46180 + # encoded into archives. This makes 'ar r' malfunction in
46181 + # this piecewise linking case whenever conflicting object
46182 + # names appear in distinct ar calls; check, warn and compensate.
46183 + if (for obj in $save_oldobjs
46184 + do
46185 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
46186 + done | sort | sort -uc >/dev/null 2>&1); then
46187 + :
46188 + else
46189 + $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
46190 + $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
46191 + AR_FLAGS=cq
46192 + fi
46193 + # Is there a better way of finding the last object in the list?
46194 + for obj in $save_oldobjs
46195 + do
46196 + last_oldobj=$obj
46197 + done
46198 + for obj in $save_oldobjs
46199 + do
46200 + oldobjs="$objlist $obj"
46201 + objlist="$objlist $obj"
46202 + eval test_cmds=\"$old_archive_cmds\"
46203 + if len=`expr "X$test_cmds" : ".*"` &&
46204 + test "$len" -le "$max_cmd_len"; then
46205 + :
46206 + else
46207 + # the above command should be used before it gets too long
46208 + oldobjs=$objlist
46209 + if test "$obj" = "$last_oldobj" ; then
46210 + RANLIB=$save_RANLIB
46211 + fi
46212 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
46213 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
46214 + objlist=
46215 + fi
46216 + done
46217 + RANLIB=$save_RANLIB
46218 + oldobjs=$objlist
46219 + if test "X$oldobjs" = "X" ; then
46220 + eval cmds=\"\$concat_cmds\"
46221 + else
46222 + eval cmds=\"\$concat_cmds~$old_archive_cmds\"
46223 + fi
46224 + fi
46225 fi
46226 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
46227 + save_ifs="$IFS"; IFS='~'
46228 for cmd in $cmds; do
46229 IFS="$save_ifs"
46230 $show "$cmd"
46231 @@ -2328,20 +5063,111 @@ fi\
46232 fi
46234 # Now create the libtool archive.
46235 - case "$output" in
46236 + case $output in
46237 *.la)
46238 old_library=
46239 test "$build_old_libs" = yes && old_library="$libname.$libext"
46240 $show "creating $output"
46242 + # Preserve any variables that may affect compiler behavior
46243 + for var in $variables_saved_for_relink; do
46244 + if eval test -z \"\${$var+set}\"; then
46245 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
46246 + elif eval var_value=\$$var; test -z "$var_value"; then
46247 + relink_command="$var=; export $var; $relink_command"
46248 + else
46249 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
46250 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
46251 + fi
46252 + done
46253 + # Quote the link command for shipping.
46254 + relink_command="(cd `pwd`; $SHELL $0 $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
46255 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
46256 + if test "$hardcode_automatic" = yes ; then
46257 + relink_command=
46258 + fi
46259 # Only create the output if not a dry run.
46260 if test -z "$run"; then
46261 - $echo > $output "\
46262 -# $output - a libtool library file
46263 -# Generated by $PROGRAM - GNU $PACKAGE $VERSION
46264 + for installed in no yes; do
46265 + if test "$installed" = yes; then
46266 + if test -z "$install_libdir"; then
46267 + break
46268 + fi
46269 + output="$output_objdir/$outputname"i
46270 + # Replace all uninstalled libtool libraries with the installed ones
46271 + newdependency_libs=
46272 + for deplib in $dependency_libs; do
46273 + case $deplib in
46274 + *.la)
46275 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
46276 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
46277 + if test -z "$libdir"; then
46278 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
46279 + exit 1
46280 + fi
46281 + newdependency_libs="$newdependency_libs $libdir/$name"
46282 + ;;
46283 + *) newdependency_libs="$newdependency_libs $deplib" ;;
46284 + esac
46285 + done
46286 + dependency_libs="$newdependency_libs"
46287 + newdlfiles=
46288 + for lib in $dlfiles; do
46289 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
46290 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
46291 + if test -z "$libdir"; then
46292 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
46293 + exit 1
46294 + fi
46295 + newdlfiles="$newdlfiles $libdir/$name"
46296 + done
46297 + dlfiles="$newdlfiles"
46298 + newdlprefiles=
46299 + for lib in $dlprefiles; do
46300 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
46301 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
46302 + if test -z "$libdir"; then
46303 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
46304 + exit 1
46305 + fi
46306 + newdlprefiles="$newdlprefiles $libdir/$name"
46307 + done
46308 + dlprefiles="$newdlprefiles"
46309 + else
46310 + newdlfiles=
46311 + for lib in $dlfiles; do
46312 + case $lib in
46313 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
46314 + *) abs=`pwd`"/$lib" ;;
46315 + esac
46316 + newdlfiles="$newdlfiles $abs"
46317 + done
46318 + dlfiles="$newdlfiles"
46319 + newdlprefiles=
46320 + for lib in $dlprefiles; do
46321 + case $lib in
46322 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
46323 + *) abs=`pwd`"/$lib" ;;
46324 + esac
46325 + newdlprefiles="$newdlprefiles $abs"
46326 + done
46327 + dlprefiles="$newdlprefiles"
46328 + fi
46329 + $rm $output
46330 + # place dlname in correct position for cygwin
46331 + tdlname=$dlname
46332 + case $host,$output,$installed,$module,$dlname in
46333 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
46334 + esac
46335 + $echo > $output "\
46336 +# $outputname - a libtool library file
46337 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
46338 +#
46339 +# Please DO NOT delete this file!
46340 +# It is necessary for linking the library.
46342 # The name that we can dlopen(3).
46343 -dlname='$dlname'
46344 +dlname='$tdlname'
46346 # Names of this library.
46347 library_names='$library_names'
46348 @@ -2358,17 +5184,28 @@ age=$age
46349 revision=$revision
46351 # Is this an already installed library?
46352 -installed=no
46353 +installed=$installed
46355 +# Should we warn about portability when linking against -modules?
46356 +shouldnotlink=$module
46358 +# Files to dlopen/dlpreopen
46359 +dlopen='$dlfiles'
46360 +dlpreopen='$dlprefiles'
46362 # Directory that this library needs to be installed in:
46363 -libdir='$install_libdir'\
46364 -"
46365 +libdir='$install_libdir'"
46366 + if test "$installed" = no && test "$need_relink" = yes; then
46367 + $echo >> $output "\
46368 +relink_command=\"$relink_command\""
46369 + fi
46370 + done
46371 fi
46373 # Do a symbolic link so that the libtool archive can be found in
46374 # LD_LIBRARY_PATH before the program is installed.
46375 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
46376 - $run eval "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" || exit $?
46377 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
46378 ;;
46379 esac
46380 exit 0
46381 @@ -2380,10 +5217,12 @@ libdir='$install_libdir'\
46383 # There may be an optional sh(1) argument at the beginning of
46384 # install_prog (especially on Windows NT).
46385 - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh; then
46386 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
46387 + # Allow the use of GNU shtool's install command.
46388 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
46389 # Aesthetically quote it.
46390 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
46391 - case "$arg" in
46392 + case $arg in
46393 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
46394 arg="\"$arg\""
46395 ;;
46396 @@ -2399,7 +5238,7 @@ libdir='$install_libdir'\
46397 # The real first argument should be the name of the installation program.
46398 # Aesthetically quote it.
46399 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
46400 - case "$arg" in
46401 + case $arg in
46402 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
46403 arg="\"$arg\""
46404 ;;
46405 @@ -2422,7 +5261,7 @@ libdir='$install_libdir'\
46406 continue
46407 fi
46409 - case "$arg" in
46410 + case $arg in
46411 -d) isdir=yes ;;
46412 -f) prev="-f" ;;
46413 -g) prev="-g" ;;
46414 @@ -2447,7 +5286,7 @@ libdir='$install_libdir'\
46416 # Aesthetically quote the argument.
46417 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
46418 - case "$arg" in
46419 + case $arg in
46420 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
46421 arg="\"$arg\""
46422 ;;
46423 @@ -2492,17 +5331,17 @@ libdir='$install_libdir'\
46425 # Not a directory, so check to see that there is only one file specified.
46426 set dummy $files
46427 - if test $# -gt 2; then
46428 + if test "$#" -gt 2; then
46429 $echo "$modename: \`$dest' is not a directory" 1>&2
46430 $echo "$help" 1>&2
46431 exit 1
46432 fi
46433 fi
46434 - case "$destdir" in
46435 - /* | [A-Za-z]:[/\\]*) ;;
46436 + case $destdir in
46437 + [\\/]* | [A-Za-z]:[\\/]*) ;;
46438 *)
46439 for file in $files; do
46440 - case "$file" in
46441 + case $file in
46442 *.lo) ;;
46443 *)
46444 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
46445 @@ -2524,15 +5363,15 @@ libdir='$install_libdir'\
46446 for file in $files; do
46448 # Do each installation.
46449 - case "$file" in
46450 - *.a | *.lib)
46451 + case $file in
46452 + *.$libext)
46453 # Do the static libraries later.
46454 staticlibs="$staticlibs $file"
46455 ;;
46457 *.la)
46458 # Check to see that this really is a libtool archive.
46459 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
46460 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
46461 else
46462 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
46463 $echo "$help" 1>&2
46464 @@ -2541,8 +5380,9 @@ libdir='$install_libdir'\
46466 library_names=
46467 old_library=
46468 + relink_command=
46469 # If there is no directory component, then add one.
46470 - case "$file" in
46471 + case $file in
46472 */* | *\\*) . $file ;;
46473 *) . ./$file ;;
46474 esac
46475 @@ -2561,10 +5401,41 @@ libdir='$install_libdir'\
46476 esac
46477 fi
46479 - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
46480 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
46481 test "X$dir" = "X$file/" && dir=
46482 dir="$dir$objdir"
46484 + if test -n "$relink_command"; then
46485 + # Determine the prefix the user has applied to our future dir.
46486 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
46488 + # Don't allow the user to place us outside of our expected
46489 + # location b/c this prevents finding dependent libraries that
46490 + # are installed to the same prefix.
46491 + # At present, this check doesn't affect windows .dll's that
46492 + # are installed into $libdir/../bin (currently, that works fine)
46493 + # but it's something to keep an eye on.
46494 + if test "$inst_prefix_dir" = "$destdir"; then
46495 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
46496 + exit 1
46497 + fi
46499 + if test -n "$inst_prefix_dir"; then
46500 + # Stick the inst_prefix_dir data into the link command.
46501 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
46502 + else
46503 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
46504 + fi
46506 + $echo "$modename: warning: relinking \`$file'" 1>&2
46507 + $show "$relink_command"
46508 + if $run eval "$relink_command"; then :
46509 + else
46510 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
46511 + exit 1
46512 + fi
46513 + fi
46515 # See the names of the shared library.
46516 set dummy $library_names
46517 if test -n "$2"; then
46518 @@ -2572,16 +5443,21 @@ libdir='$install_libdir'\
46519 shift
46520 shift
46522 + srcname="$realname"
46523 + test -n "$relink_command" && srcname="$realname"T
46525 # Install the shared library and build the symlinks.
46526 - $show "$install_prog $dir/$realname $destdir/$realname"
46527 - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
46528 - test "X$dlname" = "X$realname" && dlname=
46529 + $show "$install_prog $dir/$srcname $destdir/$realname"
46530 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
46531 + if test -n "$stripme" && test -n "$striplib"; then
46532 + $show "$striplib $destdir/$realname"
46533 + $run eval "$striplib $destdir/$realname" || exit $?
46534 + fi
46536 - if test $# -gt 0; then
46537 + if test "$#" -gt 0; then
46538 # Delete the old symlinks, and create new ones.
46539 for linkname
46540 do
46541 - test "X$dlname" = "X$linkname" && dlname=
46542 if test "$linkname" != "$realname"; then
46543 $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
46544 $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
46545 @@ -2589,16 +5465,10 @@ libdir='$install_libdir'\
46546 done
46547 fi
46549 - if test -n "$dlname"; then
46550 - # Install the dynamically-loadable library.
46551 - $show "$install_prog $dir/$dlname $destdir/$dlname"
46552 - $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $?
46553 - fi
46555 # Do each command in the postinstall commands.
46556 lib="$destdir/$realname"
46557 eval cmds=\"$postinstall_cmds\"
46558 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
46559 + save_ifs="$IFS"; IFS='~'
46560 for cmd in $cmds; do
46561 IFS="$save_ifs"
46562 $show "$cmd"
46563 @@ -2610,13 +5480,8 @@ libdir='$install_libdir'\
46564 # Install the pseudo-library for information purposes.
46565 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
46566 instname="$dir/$name"i
46567 - $show "Creating $instname"
46568 - $rm "$instname"
46569 - sed 's/^installed=no$/installed=yes/' "$file" > "$instname"
46570 $show "$install_prog $instname $destdir/$name"
46571 $run eval "$install_prog $instname $destdir/$name" || exit $?
46572 - $show "$rm $instname"
46573 - $rm "$instname"
46575 # Maybe install the static library, too.
46576 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
46577 @@ -2634,11 +5499,11 @@ libdir='$install_libdir'\
46578 fi
46580 # Deduce the name of the destination old-style object file.
46581 - case "$destfile" in
46582 + case $destfile in
46583 *.lo)
46584 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
46585 ;;
46586 - *.o | *.obj)
46587 + *.$objext)
46588 staticdest="$destfile"
46589 destfile=
46590 ;;
46591 @@ -2675,62 +5540,136 @@ libdir='$install_libdir'\
46592 destfile="$destdir/$destfile"
46593 fi
46595 - # Do a test to see if this is really a libtool program.
46596 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
46597 - link_against_libtool_libs=
46598 - finalize_command=
46599 + # If the file is missing, and there is a .exe on the end, strip it
46600 + # because it is most likely a libtool script we actually want to
46601 + # install
46602 + stripped_ext=""
46603 + case $file in
46604 + *.exe)
46605 + if test ! -f "$file"; then
46606 + file=`$echo $file|${SED} 's,.exe$,,'`
46607 + stripped_ext=".exe"
46608 + fi
46609 + ;;
46610 + esac
46612 + # Do a test to see if this is really a libtool program.
46613 + case $host in
46614 + *cygwin*|*mingw*)
46615 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
46616 + ;;
46617 + *)
46618 + wrapper=$file
46619 + ;;
46620 + esac
46621 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
46622 + notinst_deplibs=
46623 + relink_command=
46625 + # To insure that "foo" is sourced, and not "foo.exe",
46626 + # finese the cygwin/MSYS system by explicitly sourcing "foo."
46627 + # which disallows the automatic-append-.exe behavior.
46628 + case $build in
46629 + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
46630 + *) wrapperdot=${wrapper} ;;
46631 + esac
46632 # If there is no directory component, then add one.
46633 - case "$file" in
46634 - */* | *\\*) . $file ;;
46635 - *) . ./$file ;;
46636 + case $file in
46637 + */* | *\\*) . ${wrapperdot} ;;
46638 + *) . ./${wrapperdot} ;;
46639 esac
46641 # Check the variables that should have been set.
46642 - if test -z "$link_against_libtool_libs" || test -z "$finalize_command"; then
46643 - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
46644 + if test -z "$notinst_deplibs"; then
46645 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
46646 exit 1
46647 fi
46649 finalize=yes
46650 - for lib in $link_against_libtool_libs; do
46651 + for lib in $notinst_deplibs; do
46652 # Check to see that each library is installed.
46653 libdir=
46654 if test -f "$lib"; then
46655 # If there is no directory component, then add one.
46656 - case "$lib" in
46657 + case $lib in
46658 */* | *\\*) . $lib ;;
46659 *) . ./$lib ;;
46660 esac
46661 fi
46662 - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
46663 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
46664 if test -n "$libdir" && test ! -f "$libfile"; then
46665 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
46666 finalize=no
46667 fi
46668 done
46670 - if test "$hardcode_action" = relink; then
46671 - if test "$finalize" = yes; then
46672 - $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2
46673 - $show "$finalize_command"
46674 - if $run eval "$finalize_command"; then :
46675 + relink_command=
46676 + # To insure that "foo" is sourced, and not "foo.exe",
46677 + # finese the cygwin/MSYS system by explicitly sourcing "foo."
46678 + # which disallows the automatic-append-.exe behavior.
46679 + case $build in
46680 + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
46681 + *) wrapperdot=${wrapper} ;;
46682 + esac
46683 + # If there is no directory component, then add one.
46684 + case $file in
46685 + */* | *\\*) . ${wrapperdot} ;;
46686 + *) . ./${wrapperdot} ;;
46687 + esac
46689 + outputname=
46690 + if test "$fast_install" = no && test -n "$relink_command"; then
46691 + if test "$finalize" = yes && test -z "$run"; then
46692 + tmpdir="/tmp"
46693 + test -n "$TMPDIR" && tmpdir="$TMPDIR"
46694 + tmpdir="$tmpdir/libtool-$$"
46695 + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
46696 + else
46697 + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
46698 + continue
46699 + fi
46700 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
46701 + outputname="$tmpdir/$file"
46702 + # Replace the output file specification.
46703 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
46705 + $show "$relink_command"
46706 + if $run eval "$relink_command"; then :
46707 else
46708 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
46709 + ${rm}r "$tmpdir"
46710 continue
46711 fi
46712 - file="$objdir/$file"T
46713 + file="$outputname"
46714 else
46715 - $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2
46716 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
46717 fi
46718 else
46719 # Install the binary that we compiled earlier.
46720 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
46721 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
46722 fi
46723 fi
46725 + # remove .exe since cygwin /usr/bin/install will append another
46726 + # one anyways
46727 + case $install_prog,$host in
46728 + */usr/bin/install*,*cygwin*)
46729 + case $file:$destfile in
46730 + *.exe:*.exe)
46731 + # this is ok
46732 + ;;
46733 + *.exe:*)
46734 + destfile=$destfile.exe
46735 + ;;
46736 + *:*.exe)
46737 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
46738 + ;;
46739 + esac
46740 + ;;
46741 + esac
46742 $show "$install_prog$stripme $file $destfile"
46743 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
46744 + test -n "$outputname" && ${rm}r "$tmpdir"
46745 ;;
46746 esac
46747 done
46748 @@ -2744,9 +5683,14 @@ libdir='$install_libdir'\
46749 $show "$install_prog $file $oldlib"
46750 $run eval "$install_prog \$file \$oldlib" || exit $?
46752 + if test -n "$stripme" && test -n "$striplib"; then
46753 + $show "$old_striplib $oldlib"
46754 + $run eval "$old_striplib $oldlib" || exit $?
46755 + fi
46757 # Do each command in the postinstall commands.
46758 eval cmds=\"$old_postinstall_cmds\"
46759 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
46760 + save_ifs="$IFS"; IFS='~'
46761 for cmd in $cmds; do
46762 IFS="$save_ifs"
46763 $show "$cmd"
46764 @@ -2762,11 +5706,10 @@ libdir='$install_libdir'\
46765 if test -n "$current_libdirs"; then
46766 # Maybe just do a dry run.
46767 test -n "$run" && current_libdirs=" -n$current_libdirs"
46768 - exec $SHELL $0 --finish$current_libdirs
46769 - exit 1
46770 + exec_cmd='$SHELL $0 $preserve_args --finish$current_libdirs'
46771 + else
46772 + exit 0
46773 fi
46775 - exit 0
46776 ;;
46778 # libtool finish mode
46779 @@ -2785,7 +5728,7 @@ libdir='$install_libdir'\
46780 if test -n "$finish_cmds"; then
46781 # Do each command in the finish commands.
46782 eval cmds=\"$finish_cmds\"
46783 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
46784 + save_ifs="$IFS"; IFS='~'
46785 for cmd in $cmds; do
46786 IFS="$save_ifs"
46787 $show "$cmd"
46788 @@ -2806,40 +5749,40 @@ libdir='$install_libdir'\
46789 # Exit here if they wanted silent mode.
46790 test "$show" = : && exit 0
46792 - echo "----------------------------------------------------------------------"
46793 - echo "Libraries have been installed in:"
46794 + $echo "----------------------------------------------------------------------"
46795 + $echo "Libraries have been installed in:"
46796 for libdir in $libdirs; do
46797 - echo " $libdir"
46798 + $echo " $libdir"
46799 done
46800 - echo
46801 - echo "If you ever happen to want to link against installed libraries"
46802 - echo "in a given directory, LIBDIR, you must either use libtool, and"
46803 - echo "specify the full pathname of the library, or use \`-LLIBDIR'"
46804 - echo "flag during linking and do at least one of the following:"
46805 + $echo
46806 + $echo "If you ever happen to want to link against installed libraries"
46807 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
46808 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
46809 + $echo "flag during linking and do at least one of the following:"
46810 if test -n "$shlibpath_var"; then
46811 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
46812 - echo " during execution"
46813 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
46814 + $echo " during execution"
46815 fi
46816 if test -n "$runpath_var"; then
46817 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
46818 - echo " during linking"
46819 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
46820 + $echo " during linking"
46821 fi
46822 if test -n "$hardcode_libdir_flag_spec"; then
46823 libdir=LIBDIR
46824 eval flag=\"$hardcode_libdir_flag_spec\"
46826 - echo " - use the \`$flag' linker flag"
46827 + $echo " - use the \`$flag' linker flag"
46828 fi
46829 if test -n "$admincmds"; then
46830 - echo " - have your system administrator run these commands:$admincmds"
46831 + $echo " - have your system administrator run these commands:$admincmds"
46832 fi
46833 if test -f /etc/ld.so.conf; then
46834 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
46835 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
46836 fi
46837 - echo
46838 - echo "See any operating system documentation about shared libraries for"
46839 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
46840 - echo "----------------------------------------------------------------------"
46841 + $echo
46842 + $echo "See any operating system documentation about shared libraries for"
46843 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
46844 + $echo "----------------------------------------------------------------------"
46845 exit 0
46846 ;;
46848 @@ -2864,10 +5807,10 @@ libdir='$install_libdir'\
46849 fi
46851 dir=
46852 - case "$file" in
46853 + case $file in
46854 *.la)
46855 # Check to see that this really is a libtool archive.
46856 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
46857 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
46858 else
46859 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
46860 $echo "$help" 1>&2
46861 @@ -2879,7 +5822,7 @@ libdir='$install_libdir'\
46862 library_names=
46864 # If there is no directory component, then add one.
46865 - case "$file" in
46866 + case $file in
46867 */* | *\\*) . $file ;;
46868 *) . ./$file ;;
46869 esac
46870 @@ -2934,13 +5877,13 @@ libdir='$install_libdir'\
46871 args=
46872 for file
46873 do
46874 - case "$file" in
46875 + case $file in
46876 -*) ;;
46877 *)
46878 # Do a test to see if this is really a libtool program.
46879 - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
46880 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
46881 # If there is no directory component, then add one.
46882 - case "$file" in
46883 + case $file in
46884 */* | *\\*) . $file ;;
46885 *) . ./$file ;;
46886 esac
46887 @@ -2956,10 +5899,12 @@ libdir='$install_libdir'\
46888 done
46890 if test -z "$run"; then
46891 - # Export the shlibpath_var.
46892 - eval "export $shlibpath_var"
46893 + if test -n "$shlibpath_var"; then
46894 + # Export the shlibpath_var.
46895 + eval "export $shlibpath_var"
46896 + fi
46898 - # Restore saved enviroment variables
46899 + # Restore saved environment variables
46900 if test "${save_LC_ALL+set}" = set; then
46901 LC_ALL="$save_LC_ALL"; export LC_ALL
46902 fi
46903 @@ -2967,29 +5912,35 @@ libdir='$install_libdir'\
46904 LANG="$save_LANG"; export LANG
46905 fi
46907 - # Now actually exec the command.
46908 - eval "exec \$cmd$args"
46910 - $echo "$modename: cannot exec \$cmd$args"
46911 - exit 1
46912 + # Now prepare to actually exec the command.
46913 + exec_cmd="\$cmd$args"
46914 else
46915 # Display what would be done.
46916 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
46917 - $echo "export $shlibpath_var"
46918 + if test -n "$shlibpath_var"; then
46919 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
46920 + $echo "export $shlibpath_var"
46921 + fi
46922 $echo "$cmd$args"
46923 exit 0
46924 fi
46925 ;;
46927 - # libtool uninstall mode
46928 - uninstall)
46929 - modename="$modename: uninstall"
46930 + # libtool clean and uninstall mode
46931 + clean | uninstall)
46932 + modename="$modename: $mode"
46933 rm="$nonopt"
46934 files=
46935 + rmforce=
46936 + exit_status=0
46938 + # This variable tells wrapper scripts just to set variables rather
46939 + # than running their programs.
46940 + libtool_install_magic="$magic"
46942 for arg
46943 do
46944 - case "$arg" in
46945 + case $arg in
46946 + -f) rm="$rm $arg"; rmforce=yes ;;
46947 -*) rm="$rm $arg" ;;
46948 *) files="$files $arg" ;;
46949 esac
46950 @@ -3001,74 +5952,155 @@ libdir='$install_libdir'\
46951 exit 1
46952 fi
46954 + rmdirs=
46956 + origobjdir="$objdir"
46957 for file in $files; do
46958 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
46959 - test "X$dir" = "X$file" && dir=.
46960 + if test "X$dir" = "X$file"; then
46961 + dir=.
46962 + objdir="$origobjdir"
46963 + else
46964 + objdir="$dir/$origobjdir"
46965 + fi
46966 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
46967 + test "$mode" = uninstall && objdir="$dir"
46969 + # Remember objdir for removal later, being careful to avoid duplicates
46970 + if test "$mode" = clean; then
46971 + case " $rmdirs " in
46972 + *" $objdir "*) ;;
46973 + *) rmdirs="$rmdirs $objdir" ;;
46974 + esac
46975 + fi
46977 + # Don't error if the file doesn't exist and rm -f was used.
46978 + if (test -L "$file") >/dev/null 2>&1 \
46979 + || (test -h "$file") >/dev/null 2>&1 \
46980 + || test -f "$file"; then
46981 + :
46982 + elif test -d "$file"; then
46983 + exit_status=1
46984 + continue
46985 + elif test "$rmforce" = yes; then
46986 + continue
46987 + fi
46989 rmfiles="$file"
46991 - case "$name" in
46992 + case $name in
46993 *.la)
46994 # Possibly a libtool archive, so verify it.
46995 - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
46996 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
46997 . $dir/$name
46999 # Delete the libtool libraries and symlinks.
47000 for n in $library_names; do
47001 - rmfiles="$rmfiles $dir/$n"
47002 - test "X$n" = "X$dlname" && dlname=
47003 + rmfiles="$rmfiles $objdir/$n"
47004 done
47005 - test -n "$dlname" && rmfiles="$rmfiles $dir/$dlname"
47006 - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
47007 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
47008 + test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
47010 - $show "$rm $rmfiles"
47011 - $run $rm $rmfiles
47013 - if test -n "$library_names"; then
47014 - # Do each command in the postuninstall commands.
47015 - eval cmds=\"$postuninstall_cmds\"
47016 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47017 - for cmd in $cmds; do
47018 + if test "$mode" = uninstall; then
47019 + if test -n "$library_names"; then
47020 + # Do each command in the postuninstall commands.
47021 + eval cmds=\"$postuninstall_cmds\"
47022 + save_ifs="$IFS"; IFS='~'
47023 + for cmd in $cmds; do
47024 + IFS="$save_ifs"
47025 + $show "$cmd"
47026 + $run eval "$cmd"
47027 + if test "$?" -ne 0 && test "$rmforce" != yes; then
47028 + exit_status=1
47029 + fi
47030 + done
47031 IFS="$save_ifs"
47032 - $show "$cmd"
47033 - $run eval "$cmd"
47034 - done
47035 - IFS="$save_ifs"
47036 - fi
47037 + fi
47039 - if test -n "$old_library"; then
47040 - # Do each command in the old_postuninstall commands.
47041 - eval cmds=\"$old_postuninstall_cmds\"
47042 - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
47043 - for cmd in $cmds; do
47044 + if test -n "$old_library"; then
47045 + # Do each command in the old_postuninstall commands.
47046 + eval cmds=\"$old_postuninstall_cmds\"
47047 + save_ifs="$IFS"; IFS='~'
47048 + for cmd in $cmds; do
47049 + IFS="$save_ifs"
47050 + $show "$cmd"
47051 + $run eval "$cmd"
47052 + if test "$?" -ne 0 && test "$rmforce" != yes; then
47053 + exit_status=1
47054 + fi
47055 + done
47056 IFS="$save_ifs"
47057 - $show "$cmd"
47058 - $run eval "$cmd"
47059 - done
47060 - IFS="$save_ifs"
47061 + fi
47062 + # FIXME: should reinstall the best remaining shared library.
47063 fi
47065 - # FIXME: should reinstall the best remaining shared library.
47066 fi
47067 ;;
47069 *.lo)
47070 - if test "$build_old_libs" = yes; then
47071 - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
47072 - rmfiles="$rmfiles $dir/$oldobj"
47073 + # Possibly a libtool object, so verify it.
47074 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
47076 + # Read the .lo file
47077 + . $dir/$name
47079 + # Add PIC object to the list of files to remove.
47080 + if test -n "$pic_object" \
47081 + && test "$pic_object" != none; then
47082 + rmfiles="$rmfiles $dir/$pic_object"
47083 + fi
47085 + # Add non-PIC object to the list of files to remove.
47086 + if test -n "$non_pic_object" \
47087 + && test "$non_pic_object" != none; then
47088 + rmfiles="$rmfiles $dir/$non_pic_object"
47089 + fi
47090 fi
47091 - $show "$rm $rmfiles"
47092 - $run $rm $rmfiles
47093 ;;
47095 *)
47096 - $show "$rm $rmfiles"
47097 - $run $rm $rmfiles
47098 + if test "$mode" = clean ; then
47099 + noexename=$name
47100 + case $file in
47101 + *.exe)
47102 + file=`$echo $file|${SED} 's,.exe$,,'`
47103 + noexename=`$echo $name|${SED} 's,.exe$,,'`
47104 + # $file with .exe has already been added to rmfiles,
47105 + # add $file without .exe
47106 + rmfiles="$rmfiles $file"
47107 + ;;
47108 + esac
47109 + # Do a test to see if this is a libtool program.
47110 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
47111 + relink_command=
47112 + . $dir/$noexename
47114 + # note $name still contains .exe if it was in $file originally
47115 + # as does the version of $file that was added into $rmfiles
47116 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
47117 + if test "$fast_install" = yes && test -n "$relink_command"; then
47118 + rmfiles="$rmfiles $objdir/lt-$name"
47119 + fi
47120 + if test "X$noexename" != "X$name" ; then
47121 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
47122 + fi
47123 + fi
47124 + fi
47125 ;;
47126 esac
47127 + $show "$rm $rmfiles"
47128 + $run $rm $rmfiles || exit_status=1
47129 done
47130 - exit 0
47131 + objdir="$origobjdir"
47133 + # Try to remove the ${objdir}s in the directories where we deleted files
47134 + for dir in $rmdirs; do
47135 + if test -d "$dir"; then
47136 + $show "rmdir $dir"
47137 + $run rmdir $dir >/dev/null 2>&1
47138 + fi
47139 + done
47141 + exit $exit_status
47142 ;;
47144 "")
47145 @@ -3078,13 +6110,20 @@ libdir='$install_libdir'\
47146 ;;
47147 esac
47149 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
47150 - $echo "$generic_help" 1>&2
47151 - exit 1
47152 + if test -z "$exec_cmd"; then
47153 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
47154 + $echo "$generic_help" 1>&2
47155 + exit 1
47156 + fi
47157 fi # test -z "$show_help"
47159 +if test -n "$exec_cmd"; then
47160 + eval exec $exec_cmd
47161 + exit 1
47162 +fi
47164 # We need to display help for each of the modes.
47165 -case "$mode" in
47166 +case $mode in
47167 "") $echo \
47168 "Usage: $modename [OPTION]... [MODE-ARG]...
47170 @@ -3099,10 +6138,12 @@ Provide generalized library-building sup
47171 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
47172 --quiet same as \`--silent'
47173 --silent don't print informational messages
47174 + --tag=TAG use configuration variables from tag TAG
47175 --version print version information
47177 MODE must be one of the following:
47179 + clean remove files from the build directory
47180 compile compile a source file into a libtool object
47181 execute automatically set library path, then run a program
47182 finish complete the installation of libtool libraries
47183 @@ -3111,10 +6152,26 @@ MODE must be one of the following:
47184 uninstall remove libraries from an installed directory
47186 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
47187 -a more detailed description of MODE."
47188 +a more detailed description of MODE.
47190 +Report bugs to <bug-libtool@gnu.org>."
47191 exit 0
47192 ;;
47194 +clean)
47195 + $echo \
47196 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
47198 +Remove files from the build directory.
47200 +RM is the name of the program to use to delete files associated with each FILE
47201 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
47202 +to RM.
47204 +If FILE is a libtool library, object or program, all the files associated
47205 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
47206 + ;;
47208 compile)
47209 $echo \
47210 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
47211 @@ -3123,6 +6180,9 @@ Compile a source file into a libtool lib
47213 This mode accepts the following additional options:
47215 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
47216 + -prefer-pic try to building PIC objects only
47217 + -prefer-non-pic try to building non-PIC objects only
47218 -static always build a \`.o' file suitable for static linking
47220 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
47221 @@ -3191,17 +6251,22 @@ a program from several object files.
47222 The following components of LINK-COMMAND are treated specially:
47224 -all-static do not do any dynamic linking at all
47225 - -avoid-versioning do not add a version suffix if possible
47226 + -avoid-version do not add a version suffix if possible
47227 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
47228 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
47229 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
47230 -export-symbols SYMFILE
47231 try to export only the symbols listed in SYMFILE
47232 + -export-symbols-regex REGEX
47233 + try to export only the symbols matching REGEX
47234 -LLIBDIR search LIBDIR for required installed libraries
47235 -lNAME OUTPUT-FILE requires the installed library libNAME
47236 -module build a library that can dlopened
47237 + -no-fast-install disable the fast-install mode
47238 + -no-install link a not-installable executable
47239 -no-undefined declare that a library does not refer to external symbols
47240 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
47241 + -objectlist FILE Use a list of object files found in FILE to specify objects
47242 -release RELEASE specify package release information
47243 -rpath LIBDIR the created library will eventually be installed in LIBDIR
47244 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
47245 @@ -3227,7 +6292,7 @@ is created, otherwise an executable prog
47246 ;;
47248 uninstall)
47249 - $echo
47250 + $echo \
47251 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
47253 Remove libraries from an installation directory.
47254 @@ -3247,11 +6312,31 @@ Otherwise, only FILE itself is deleted u
47255 ;;
47256 esac
47258 -echo
47259 +$echo
47260 $echo "Try \`$modename --help' for more information about other modes."
47262 exit 0
47264 +# The TAGs below are defined such that we never get into a situation
47265 +# in which we disable both kinds of libraries. Given conflicting
47266 +# choices, we go for a static library, that is the most portable,
47267 +# since we can't tell whether shared libraries were disabled because
47268 +# the user asked for that or because the platform doesn't support
47269 +# them. This is particularly important on AIX, because we don't
47270 +# support having both static and shared libraries enabled at the same
47271 +# time on that platform, so we default to a shared-only configuration.
47272 +# If a disable-shared tag is given, we'll fallback to a static-only
47273 +# configuration. But we'll never go from static-only to shared-only.
47275 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
47276 +build_libtool_libs=no
47277 +build_old_libs=yes
47278 +# ### END LIBTOOL TAG CONFIG: disable-shared
47280 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
47281 +build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
47282 +# ### END LIBTOOL TAG CONFIG: disable-static
47284 # Local Variables:
47285 # mode:shell-script
47286 # sh-indentation:2
47287 --- libstroke-0.5.1.orig/missing
47288 +++ libstroke-0.5.1/missing
47289 @@ -1,6 +1,6 @@
47290 #! /bin/sh
47291 # Common stub for a few missing GNU programs while installing.
47292 -# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
47293 +# Copyright (C) 1996, 1997, 2001, 2002 Free Software Foundation, Inc.
47294 # Franc,ois Pinard <pinard@iro.umontreal.ca>, 1996.
47296 # This program is free software; you can redistribute it and/or modify
47297 @@ -23,6 +23,14 @@ if test $# -eq 0; then
47298 exit 1
47299 fi
47301 +# In the cases where this matters, `missing' is being run in the
47302 +# srcdir already.
47303 +if test -f configure.in; then
47304 + configure_ac=configure.ac
47305 +else
47306 + configure_ac=configure.in
47307 +fi
47309 case "$1" in
47311 -h|--h|--he|--hel|--help)
47312 @@ -58,10 +66,10 @@ Supported PROGRAM values:
47313 exit 1
47314 ;;
47316 - aclocal)
47317 + aclocal*)
47318 echo 1>&2 "\
47319 WARNING: \`$1' is missing on your system. You should only need it if
47320 - you modified \`acinclude.m4' or \`configure.in'. You might want
47321 + you modified \`acinclude.m4' or \`$configure_ac'. You might want
47322 to install the \`Automake' and \`Perl' packages. Grab them from
47323 any GNU archive site."
47324 touch aclocal.m4
47325 @@ -70,7 +78,7 @@ WARNING: \`$1' is missing on your system
47326 autoconf)
47327 echo 1>&2 "\
47328 WARNING: \`$1' is missing on your system. You should only need it if
47329 - you modified \`configure.in'. You might want to install the
47330 + you modified \`$configure_ac'. You might want to install the
47331 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
47332 archive site."
47333 touch configure
47334 @@ -79,10 +87,10 @@ WARNING: \`$1' is missing on your system
47335 autoheader)
47336 echo 1>&2 "\
47337 WARNING: \`$1' is missing on your system. You should only need it if
47338 - you modified \`acconfig.h' or \`configure.in'. You might want
47339 + you modified \`acconfig.h' or \`$configure_ac'. You might want
47340 to install the \`Autoconf' and \`GNU m4' packages. Grab them
47341 from any GNU archive site."
47342 - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in`
47343 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' $configure_ac`
47344 test -z "$files" && files="config.h"
47345 touch_files=
47346 for f in $files; do
47347 @@ -95,10 +103,10 @@ WARNING: \`$1' is missing on your system
47348 touch $touch_files
47349 ;;
47351 - automake)
47352 + automake*)
47353 echo 1>&2 "\
47354 WARNING: \`$1' is missing on your system. You should only need it if
47355 - you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'.
47356 + you modified \`Makefile.am', \`acinclude.m4' or \`$configure_ac'.
47357 You might want to install the \`Automake' and \`Perl' packages.
47358 Grab them from any GNU archive site."
47359 find . -type f -name Makefile.am -print |
47360 --- libstroke-0.5.1.orig/tests/Makefile.am
47361 +++ libstroke-0.5.1/tests/Makefile.am
47362 @@ -7,7 +7,7 @@ GSTROKETEST =
47363 endif
47366 -noinst_PROGRAMS = stroke_test $(GSTROKETEST) #gstroke_conf
47367 +bin_PROGRAMS = stroke_test $(GSTROKETEST) #gstroke_conf
47369 # don't forget all *.h files */
47370 stroke_test_SOURCES = stroke_test.c #gstroke_conf.c
47371 --- libstroke-0.5.1.orig/tests/Makefile.in
47372 +++ libstroke-0.5.1/tests/Makefile.in
47373 @@ -1,6 +1,8 @@
47374 -# Makefile.in generated automatically by automake 1.4 from Makefile.am
47375 +# Makefile.in generated by automake 1.7.8 from Makefile.am.
47376 +# @configure_input@
47378 -# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
47379 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
47380 +# Free Software Foundation, Inc.
47381 # This Makefile.in is free software; the Free Software Foundation
47382 # gives unlimited permission to copy and/or distribute it,
47383 # with or without modifications, as long as this notice is preserved.
47384 @@ -10,171 +12,283 @@
47385 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
47386 # PARTICULAR PURPOSE.
47389 -SHELL = @SHELL@
47390 +@SET_MAKE@
47392 srcdir = @srcdir@
47393 top_srcdir = @top_srcdir@
47394 VPATH = @srcdir@
47395 -prefix = @prefix@
47396 -exec_prefix = @exec_prefix@
47398 -bindir = @bindir@
47399 -sbindir = @sbindir@
47400 -libexecdir = @libexecdir@
47401 -datadir = @datadir@
47402 -sysconfdir = @sysconfdir@
47403 -sharedstatedir = @sharedstatedir@
47404 -localstatedir = @localstatedir@
47405 -libdir = @libdir@
47406 -infodir = @infodir@
47407 -mandir = @mandir@
47408 -includedir = @includedir@
47409 -oldincludedir = /usr/include
47411 -DESTDIR =
47413 pkgdatadir = $(datadir)/@PACKAGE@
47414 pkglibdir = $(libdir)/@PACKAGE@
47415 pkgincludedir = $(includedir)/@PACKAGE@
47417 top_builddir = ..
47419 -ACLOCAL = @ACLOCAL@
47420 -AUTOCONF = @AUTOCONF@
47421 -AUTOMAKE = @AUTOMAKE@
47422 -AUTOHEADER = @AUTOHEADER@
47424 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
47425 INSTALL = @INSTALL@
47426 -INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
47427 -INSTALL_DATA = @INSTALL_DATA@
47428 -INSTALL_SCRIPT = @INSTALL_SCRIPT@
47429 -transform = @program_transform_name@
47431 +install_sh_DATA = $(install_sh) -c -m 644
47432 +install_sh_PROGRAM = $(install_sh) -c
47433 +install_sh_SCRIPT = $(install_sh) -c
47434 +INSTALL_HEADER = $(INSTALL_DATA)
47435 +transform = $(program_transform_name)
47436 NORMAL_INSTALL = :
47437 PRE_INSTALL = :
47438 POST_INSTALL = :
47439 NORMAL_UNINSTALL = :
47440 PRE_UNINSTALL = :
47441 POST_UNINSTALL = :
47442 -host_alias = @host_alias@
47443 host_triplet = @host@
47444 -AS = @AS@
47445 +ACLOCAL = @ACLOCAL@
47446 +AMDEP_FALSE = @AMDEP_FALSE@
47447 +AMDEP_TRUE = @AMDEP_TRUE@
47448 +AMTAR = @AMTAR@
47449 +AR = @AR@
47450 +AUTOCONF = @AUTOCONF@
47451 +AUTOHEADER = @AUTOHEADER@
47452 +AUTOMAKE = @AUTOMAKE@
47453 +AWK = @AWK@
47454 CC = @CC@
47455 -DLLTOOL = @DLLTOOL@
47456 +CCDEPMODE = @CCDEPMODE@
47457 +CFLAGS = @CFLAGS@
47458 +CPP = @CPP@
47459 +CPPFLAGS = @CPPFLAGS@
47460 +CXX = @CXX@
47461 +CXXCPP = @CXXCPP@
47462 +CXXDEPMODE = @CXXDEPMODE@
47463 +CXXFLAGS = @CXXFLAGS@
47464 +CYGPATH_W = @CYGPATH_W@
47465 +DEFS = @DEFS@
47466 +DEPDIR = @DEPDIR@
47467 +ECHO = @ECHO@
47468 +ECHO_C = @ECHO_C@
47469 +ECHO_N = @ECHO_N@
47470 +ECHO_T = @ECHO_T@
47471 +EGREP = @EGREP@
47472 +ENABLE_TCL_FALSE = @ENABLE_TCL_FALSE@
47473 +ENABLE_TCL_TRUE = @ENABLE_TCL_TRUE@
47474 +EXEEXT = @EXEEXT@
47475 +F77 = @F77@
47476 +FFLAGS = @FFLAGS@
47477 GTK_CFLAGS = @GTK_CFLAGS@
47478 GTK_CONFIG = @GTK_CONFIG@
47479 GTK_LIBS = @GTK_LIBS@
47480 -LD = @LD@
47481 +HAVE_LIBGTK_FALSE = @HAVE_LIBGTK_FALSE@
47482 +HAVE_LIBGTK_TRUE = @HAVE_LIBGTK_TRUE@
47483 +INSTALL_DATA = @INSTALL_DATA@
47484 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
47485 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
47486 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
47487 +LDFLAGS = @LDFLAGS@
47488 +LIBOBJS = @LIBOBJS@
47489 +LIBS = @LIBS@
47490 LIBTOOL = @LIBTOOL@
47491 LN_S = @LN_S@
47492 +LTLIBOBJS = @LTLIBOBJS@
47493 MAINT = @MAINT@
47494 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
47495 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
47496 MAKEINFO = @MAKEINFO@
47497 -NM = @NM@
47498 +OBJEXT = @OBJEXT@
47499 PACKAGE = @PACKAGE@
47500 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
47501 +PACKAGE_NAME = @PACKAGE_NAME@
47502 +PACKAGE_STRING = @PACKAGE_STRING@
47503 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
47504 +PACKAGE_VERSION = @PACKAGE_VERSION@
47505 +PATH_SEPARATOR = @PATH_SEPARATOR@
47506 RANLIB = @RANLIB@
47507 -USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
47508 +SET_MAKE = @SET_MAKE@
47509 +SHELL = @SHELL@
47510 +STRIP = @STRIP@
47511 VERSION = @VERSION@
47512 X_CFLAGS = @X_CFLAGS@
47513 +X_EXTRA_LIBS = @X_EXTRA_LIBS@
47514 X_LDFLAGS = @X_LDFLAGS@
47515 -@HAVE_LIBGTK_TRUE@GSTROKETEST = gnome_stroke_test
47516 +X_LIBS = @X_LIBS@
47517 +X_PRE_LIBS = @X_PRE_LIBS@
47518 +ac_ct_AR = @ac_ct_AR@
47519 +ac_ct_CC = @ac_ct_CC@
47520 +ac_ct_CXX = @ac_ct_CXX@
47521 +ac_ct_F77 = @ac_ct_F77@
47522 +ac_ct_RANLIB = @ac_ct_RANLIB@
47523 +ac_ct_STRIP = @ac_ct_STRIP@
47524 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
47525 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
47526 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
47527 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
47528 +am__include = @am__include@
47529 +am__leading_dot = @am__leading_dot@
47530 +am__quote = @am__quote@
47531 +bindir = @bindir@
47532 +build = @build@
47533 +build_alias = @build_alias@
47534 +build_cpu = @build_cpu@
47535 +build_os = @build_os@
47536 +build_vendor = @build_vendor@
47537 +datadir = @datadir@
47538 +exec_prefix = @exec_prefix@
47539 +host = @host@
47540 +host_alias = @host_alias@
47541 +host_cpu = @host_cpu@
47542 +host_os = @host_os@
47543 +host_vendor = @host_vendor@
47544 +includedir = @includedir@
47545 +infodir = @infodir@
47546 +install_sh = @install_sh@
47547 +libdir = @libdir@
47548 +libexecdir = @libexecdir@
47549 +localstatedir = @localstatedir@
47550 +mandir = @mandir@
47551 +oldincludedir = @oldincludedir@
47552 +prefix = @prefix@
47553 +program_transform_name = @program_transform_name@
47554 +sbindir = @sbindir@
47555 +sharedstatedir = @sharedstatedir@
47556 +sysconfdir = @sysconfdir@
47557 +target_alias = @target_alias@
47558 @HAVE_LIBGTK_FALSE@GSTROKETEST =
47560 -noinst_PROGRAMS = stroke_test $(GSTROKETEST) #gstroke_conf
47561 +@HAVE_LIBGTK_TRUE@GSTROKETEST = gnome_stroke_test
47563 +bin_PROGRAMS = stroke_test $(GSTROKETEST) #gstroke_conf
47565 # don't forget all *.h files */
47566 stroke_test_SOURCES = stroke_test.c #gstroke_conf.c
47567 gnome_stroke_test_SOURCES = gnome_stroke_test.c
47569 -INCLUDES = -I$(top_srcdir)/libstroke -I$(top_srcdir)/libgstroke @X_CFLAGS@ @GTK_CFLAGS@
47570 +INCLUDES = -I$(top_srcdir)/libstroke -I$(top_srcdir)/libgstroke \
47571 + @X_CFLAGS@ @GTK_CFLAGS@
47574 stroke_test_LDADD = ../libstroke/libstroke.la @X_LDFLAGS@
47575 gnome_stroke_test_LDADD = ../libgstroke/libgstroke.la @GTK_LIBS@
47576 -#gstroke_conf_LDADD = ../libstroke/libgstroke.la @X_LDFLAGS@
47578 +#gstroke_conf_LDADD = ../libstroke/libgstroke.la @X_LDFLAGS@
47579 EXTRA_DIST = stroke_test.tcl
47581 MOSTLYCLEANFILES = core *~
47582 CLEANFILES = core *~
47583 DISTCLEANFILES = core *~
47584 MAINTAINERCLEANFILES = core *~
47585 +subdir = tests
47586 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
47587 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
47588 -CONFIG_HEADER = ../config.h
47589 -CONFIG_CLEAN_FILES =
47590 -PROGRAMS = $(noinst_PROGRAMS)
47593 -DEFS = @DEFS@ -I. -I$(srcdir) -I..
47594 -CPPFLAGS = @CPPFLAGS@
47595 -LDFLAGS = @LDFLAGS@
47596 -LIBS = @LIBS@
47597 -X_LIBS = @X_LIBS@
47598 -X_EXTRA_LIBS = @X_EXTRA_LIBS@
47599 -X_PRE_LIBS = @X_PRE_LIBS@
47600 -stroke_test_OBJECTS = stroke_test.o
47601 -stroke_test_DEPENDENCIES = ../libstroke/libstroke.la
47602 -stroke_test_LDFLAGS =
47603 -gnome_stroke_test_OBJECTS = gnome_stroke_test.o
47604 -gnome_stroke_test_DEPENDENCIES = ../libgstroke/libgstroke.la
47605 -gnome_stroke_test_LDFLAGS =
47606 -CFLAGS = @CFLAGS@
47607 -COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
47608 -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
47609 +CONFIG_HEADER = $(top_builddir)/config.h
47610 +CONFIG_CLEAN_FILES =
47611 +@HAVE_LIBGTK_TRUE@bin_PROGRAMS = stroke_test$(EXEEXT) \
47612 +@HAVE_LIBGTK_TRUE@ gnome_stroke_test$(EXEEXT)
47613 +@HAVE_LIBGTK_FALSE@bin_PROGRAMS = stroke_test$(EXEEXT)
47614 +PROGRAMS = $(bin_PROGRAMS)
47616 +am_gnome_stroke_test_OBJECTS = gnome_stroke_test.$(OBJEXT)
47617 +gnome_stroke_test_OBJECTS = $(am_gnome_stroke_test_OBJECTS)
47618 +gnome_stroke_test_DEPENDENCIES = ../libgstroke/libgstroke.la
47619 +gnome_stroke_test_LDFLAGS =
47620 +am_stroke_test_OBJECTS = stroke_test.$(OBJEXT)
47621 +stroke_test_OBJECTS = $(am_stroke_test_OBJECTS)
47622 +stroke_test_DEPENDENCIES = ../libstroke/libstroke.la
47623 +stroke_test_LDFLAGS =
47625 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
47626 +depcomp = $(SHELL) $(top_srcdir)/depcomp
47627 +am__depfiles_maybe = depfiles
47628 +@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/gnome_stroke_test.Po \
47629 +@AMDEP_TRUE@ ./$(DEPDIR)/stroke_test.Po
47630 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
47631 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
47632 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
47633 + $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
47634 CCLD = $(CC)
47635 -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
47636 -DIST_COMMON = Makefile.am Makefile.in
47637 +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
47638 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
47639 +DIST_SOURCES = $(gnome_stroke_test_SOURCES) $(stroke_test_SOURCES)
47640 +DIST_COMMON = $(srcdir)/Makefile.in Makefile.am
47641 +SOURCES = $(gnome_stroke_test_SOURCES) $(stroke_test_SOURCES)
47643 +all: all-am
47645 -DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
47647 -TAR = gtar
47648 -GZIP_ENV = --best
47649 -DEP_FILES = .deps/gnome_stroke_test.P .deps/stroke_test.P
47650 -SOURCES = $(stroke_test_SOURCES) $(gnome_stroke_test_SOURCES)
47651 -OBJECTS = $(stroke_test_OBJECTS) $(gnome_stroke_test_OBJECTS)
47653 -all: all-redirect
47654 .SUFFIXES:
47655 -.SUFFIXES: .S .c .lo .o .s
47656 -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
47657 - cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile
47659 -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
47660 - cd $(top_builddir) \
47661 - && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
47664 -mostlyclean-noinstPROGRAMS:
47666 -clean-noinstPROGRAMS:
47667 - -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS)
47669 -distclean-noinstPROGRAMS:
47671 -maintainer-clean-noinstPROGRAMS:
47672 +.SUFFIXES: .c .lo .o .obj
47673 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
47674 + cd $(top_srcdir) && \
47675 + $(AUTOMAKE) --gnu tests/Makefile
47676 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
47677 + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
47678 +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
47679 +install-binPROGRAMS: $(bin_PROGRAMS)
47680 + @$(NORMAL_INSTALL)
47681 + $(mkinstalldirs) $(DESTDIR)$(bindir)
47682 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
47683 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
47684 + if test -f $$p \
47685 + || test -f $$p1 \
47686 + ; then \
47687 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
47688 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \
47689 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \
47690 + else :; fi; \
47691 + done
47693 -.s.o:
47694 - $(COMPILE) -c $<
47695 +uninstall-binPROGRAMS:
47696 + @$(NORMAL_UNINSTALL)
47697 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
47698 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
47699 + echo " rm -f $(DESTDIR)$(bindir)/$$f"; \
47700 + rm -f $(DESTDIR)$(bindir)/$$f; \
47701 + done
47703 -.S.o:
47704 - $(COMPILE) -c $<
47705 +clean-binPROGRAMS:
47706 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
47707 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
47708 + echo " rm -f $$p $$f"; \
47709 + rm -f $$p $$f ; \
47710 + done
47711 +gnome_stroke_test$(EXEEXT): $(gnome_stroke_test_OBJECTS) $(gnome_stroke_test_DEPENDENCIES)
47712 + @rm -f gnome_stroke_test$(EXEEXT)
47713 + $(LINK) $(gnome_stroke_test_LDFLAGS) $(gnome_stroke_test_OBJECTS) $(gnome_stroke_test_LDADD) $(LIBS)
47714 +stroke_test$(EXEEXT): $(stroke_test_OBJECTS) $(stroke_test_DEPENDENCIES)
47715 + @rm -f stroke_test$(EXEEXT)
47716 + $(LINK) $(stroke_test_LDFLAGS) $(stroke_test_OBJECTS) $(stroke_test_LDADD) $(LIBS)
47718 mostlyclean-compile:
47719 - -rm -f *.o core *.core
47721 -clean-compile:
47722 + -rm -f *.$(OBJEXT) core *.core
47724 distclean-compile:
47725 -rm -f *.tab.c
47727 -maintainer-clean-compile:
47728 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gnome_stroke_test.Po@am__quote@
47729 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stroke_test.Po@am__quote@
47731 -.s.lo:
47732 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
47734 -.S.lo:
47735 - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
47736 +.c.o:
47737 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
47738 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
47739 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
47740 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
47741 +@am__fastdepCC_TRUE@ fi
47742 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
47743 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
47744 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
47745 +@am__fastdepCC_FALSE@ $(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<
47747 +.c.obj:
47748 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
47749 +@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \
47750 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \
47751 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
47752 +@am__fastdepCC_TRUE@ fi
47753 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
47754 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
47755 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
47756 +@am__fastdepCC_FALSE@ $(COMPILE) -c `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
47758 +.c.lo:
47759 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \
47760 +@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \
47761 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \
47762 +@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \
47763 +@am__fastdepCC_TRUE@ fi
47764 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
47765 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
47766 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
47767 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<
47769 mostlyclean-libtool:
47770 -rm -f *.lo
47771 @@ -183,124 +297,114 @@ clean-libtool:
47772 -rm -rf .libs _libs
47774 distclean-libtool:
47775 + -rm -f libtool
47776 +uninstall-info-am:
47778 -maintainer-clean-libtool:
47779 +ETAGS = etags
47780 +ETAGSFLAGS =
47782 -stroke_test: $(stroke_test_OBJECTS) $(stroke_test_DEPENDENCIES)
47783 - @rm -f stroke_test
47784 - $(LINK) $(stroke_test_LDFLAGS) $(stroke_test_OBJECTS) $(stroke_test_LDADD) $(LIBS)
47786 -gnome_stroke_test: $(gnome_stroke_test_OBJECTS) $(gnome_stroke_test_DEPENDENCIES)
47787 - @rm -f gnome_stroke_test
47788 - $(LINK) $(gnome_stroke_test_LDFLAGS) $(gnome_stroke_test_OBJECTS) $(gnome_stroke_test_LDADD) $(LIBS)
47789 +CTAGS = ctags
47790 +CTAGSFLAGS =
47792 tags: TAGS
47794 -ID: $(HEADERS) $(SOURCES) $(LISP)
47795 - list='$(SOURCES) $(HEADERS)'; \
47796 - unique=`for i in $$list; do echo $$i; done | \
47797 - awk ' { files[$$0] = 1; } \
47798 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
47799 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
47800 + unique=`for i in $$list; do \
47801 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
47802 + done | \
47803 + $(AWK) ' { files[$$0] = 1; } \
47804 END { for (i in files) print i; }'`; \
47805 - here=`pwd` && cd $(srcdir) \
47806 - && mkid -f$$here/ID $$unique $(LISP)
47807 + mkid -fID $$unique
47809 -TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
47810 +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
47811 + $(TAGS_FILES) $(LISP)
47812 tags=; \
47813 here=`pwd`; \
47814 - list='$(SOURCES) $(HEADERS)'; \
47815 - unique=`for i in $$list; do echo $$i; done | \
47816 - awk ' { files[$$0] = 1; } \
47817 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
47818 + unique=`for i in $$list; do \
47819 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
47820 + done | \
47821 + $(AWK) ' { files[$$0] = 1; } \
47822 END { for (i in files) print i; }'`; \
47823 - test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
47824 - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
47826 -mostlyclean-tags:
47828 -clean-tags:
47829 + test -z "$(ETAGS_ARGS)$$tags$$unique" \
47830 + || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
47831 + $$tags $$unique
47833 +ctags: CTAGS
47834 +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
47835 + $(TAGS_FILES) $(LISP)
47836 + tags=; \
47837 + here=`pwd`; \
47838 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
47839 + unique=`for i in $$list; do \
47840 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
47841 + done | \
47842 + $(AWK) ' { files[$$0] = 1; } \
47843 + END { for (i in files) print i; }'`; \
47844 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
47845 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
47846 + $$tags $$unique
47848 +GTAGS:
47849 + here=`$(am__cd) $(top_builddir) && pwd` \
47850 + && cd $(top_srcdir) \
47851 + && gtags -i $(GTAGS_ARGS) $$here
47853 distclean-tags:
47854 - -rm -f TAGS ID
47856 -maintainer-clean-tags:
47857 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
47858 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
47860 -distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
47862 -subdir = tests
47863 +top_distdir = ..
47864 +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
47866 distdir: $(DISTFILES)
47867 - here=`cd $(top_builddir) && pwd`; \
47868 - top_distdir=`cd $(top_distdir) && pwd`; \
47869 - distdir=`cd $(distdir) && pwd`; \
47870 - cd $(top_srcdir) \
47871 - && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu tests/Makefile
47872 - @for file in $(DISTFILES); do \
47873 - d=$(srcdir); \
47874 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
47875 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
47876 + list='$(DISTFILES)'; for file in $$list; do \
47877 + case $$file in \
47878 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
47879 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
47880 + esac; \
47881 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
47882 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
47883 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
47884 + dir="/$$dir"; \
47885 + $(mkinstalldirs) "$(distdir)$$dir"; \
47886 + else \
47887 + dir=''; \
47888 + fi; \
47889 if test -d $$d/$$file; then \
47890 - cp -pr $$d/$$file $(distdir)/$$file; \
47891 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
47892 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
47893 + fi; \
47894 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
47895 else \
47896 test -f $(distdir)/$$file \
47897 - || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
47898 - || cp -p $$d/$$file $(distdir)/$$file || :; \
47899 + || cp -p $$d/$$file $(distdir)/$$file \
47900 + || exit 1; \
47901 fi; \
47902 done
47904 -DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
47906 --include $(DEP_FILES)
47908 -mostlyclean-depend:
47910 -clean-depend:
47912 -distclean-depend:
47913 - -rm -rf .deps
47915 -maintainer-clean-depend:
47917 -%.o: %.c
47918 - @echo '$(COMPILE) -c $<'; \
47919 - $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
47920 - @-cp .deps/$(*F).pp .deps/$(*F).P; \
47921 - tr ' ' '\012' < .deps/$(*F).pp \
47922 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
47923 - >> .deps/$(*F).P; \
47924 - rm .deps/$(*F).pp
47926 -%.lo: %.c
47927 - @echo '$(LTCOMPILE) -c $<'; \
47928 - $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
47929 - @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
47930 - < .deps/$(*F).pp > .deps/$(*F).P; \
47931 - tr ' ' '\012' < .deps/$(*F).pp \
47932 - | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
47933 - >> .deps/$(*F).P; \
47934 - rm -f .deps/$(*F).pp
47935 -info-am:
47936 -info: info-am
47937 -dvi-am:
47938 -dvi: dvi-am
47939 check-am: all-am
47940 check: check-am
47941 -installcheck-am:
47942 -installcheck: installcheck-am
47943 -install-exec-am:
47944 -install-exec: install-exec-am
47945 +all-am: Makefile $(PROGRAMS)
47947 -install-data-am:
47948 +installdirs:
47949 + $(mkinstalldirs) $(DESTDIR)$(bindir)
47950 +install: install-am
47951 +install-exec: install-exec-am
47952 install-data: install-data-am
47953 +uninstall: uninstall-am
47955 install-am: all-am
47956 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
47957 -install: install-am
47958 -uninstall-am:
47959 -uninstall: uninstall-am
47960 -all-am: Makefile $(PROGRAMS)
47961 -all-redirect: all-am
47962 -install-strip:
47963 - $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
47964 -installdirs:
47967 +installcheck: installcheck-am
47968 +install-strip:
47969 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
47970 + INSTALL_STRIP_FLAG=-s \
47971 + `test -z '$(STRIP)' || \
47972 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
47973 mostlyclean-generic:
47974 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
47976 @@ -308,53 +412,72 @@ clean-generic:
47977 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
47979 distclean-generic:
47980 - -rm -f Makefile $(CONFIG_CLEAN_FILES)
47981 - -rm -f config.cache config.log stamp-h stamp-h[0-9]*
47982 + -rm -f $(CONFIG_CLEAN_FILES)
47983 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
47985 maintainer-clean-generic:
47986 + @echo "This command is intended for maintainers to use"
47987 + @echo "it deletes files that may require special tools to rebuild."
47988 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
47989 -mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
47990 - mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
47991 - mostlyclean-generic
47992 +clean: clean-am
47994 -mostlyclean: mostlyclean-am
47995 +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
47997 -clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
47998 - clean-depend clean-generic mostlyclean-am
47999 +distclean: distclean-am
48000 + -rm -rf ./$(DEPDIR)
48001 + -rm -f Makefile
48002 +distclean-am: clean-am distclean-compile distclean-generic \
48003 + distclean-libtool distclean-tags
48005 -clean: clean-am
48006 +dvi: dvi-am
48008 -distclean-am: distclean-noinstPROGRAMS distclean-compile \
48009 - distclean-libtool distclean-tags distclean-depend \
48010 - distclean-generic clean-am
48011 - -rm -f libtool
48012 +dvi-am:
48014 -distclean: distclean-am
48015 +info: info-am
48017 -maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
48018 - maintainer-clean-compile maintainer-clean-libtool \
48019 - maintainer-clean-tags maintainer-clean-depend \
48020 - maintainer-clean-generic distclean-am
48021 - @echo "This command is intended for maintainers to use;"
48022 - @echo "it deletes files that may require special tools to rebuild."
48023 +info-am:
48025 +install-data-am:
48027 +install-exec-am: install-binPROGRAMS
48029 +install-info: install-info-am
48031 +install-man:
48033 +installcheck-am:
48035 maintainer-clean: maintainer-clean-am
48036 + -rm -rf ./$(DEPDIR)
48037 + -rm -f Makefile
48038 +maintainer-clean-am: distclean-am maintainer-clean-generic
48040 +mostlyclean: mostlyclean-am
48042 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
48043 + mostlyclean-libtool
48045 +pdf: pdf-am
48047 +pdf-am:
48049 -.PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \
48050 -clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \
48051 -mostlyclean-compile distclean-compile clean-compile \
48052 -maintainer-clean-compile mostlyclean-libtool distclean-libtool \
48053 -clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
48054 -distclean-tags clean-tags maintainer-clean-tags distdir \
48055 -mostlyclean-depend distclean-depend clean-depend \
48056 -maintainer-clean-depend info-am info dvi-am dvi check check-am \
48057 -installcheck-am installcheck install-exec-am install-exec \
48058 -install-data-am install-data install-am install uninstall-am uninstall \
48059 -all-redirect all-am all installdirs mostlyclean-generic \
48060 -distclean-generic clean-generic maintainer-clean-generic clean \
48061 -mostlyclean distclean maintainer-clean
48062 +ps: ps-am
48064 +ps-am:
48066 +uninstall-am: uninstall-binPROGRAMS uninstall-info-am
48068 +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
48069 + clean-generic clean-libtool ctags distclean distclean-compile \
48070 + distclean-generic distclean-libtool distclean-tags distdir dvi \
48071 + dvi-am info info-am install install-am install-binPROGRAMS \
48072 + install-data install-data-am install-exec install-exec-am \
48073 + install-info install-info-am install-man install-strip \
48074 + installcheck installcheck-am installdirs maintainer-clean \
48075 + maintainer-clean-generic mostlyclean mostlyclean-compile \
48076 + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
48077 + tags uninstall uninstall-am uninstall-binPROGRAMS \
48078 + uninstall-info-am
48080 # Tell versions [3.59,3.63) of GNU make to not export all variables.
48081 # Otherwise a system limit (for SysV at least) may be exceeded.